-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpisEditorC.h
53 lines (52 loc) · 1.9 KB
/
SpisEditorC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//---------------------------------------------------------------------------
#ifndef SpisEditorCH
#define SpisEditorCH
//---------------------------------------------------------------------------
#include <process.h>
#include <windows.h>
#include <stdio.h>
#include <Classes.hpp>
#include "SynchronizerUnit.h"
#include "DiscAnalyzer.h"
#include "CaseConvertUnit.h"
#include "DiscAnalOld.hpp"
//---------------------------------------------------------------------------
enum TSpisEdThrdFunction
{
etfNone,
etfCreateList,
etfCreateListOld,
etfCrListMenader,
etfFindInRichEd,
etfReplaceInRichEd,
};
//---------------------------------------------------------------------------
class TSpisEditor : public TThread
{
private:
protected:
void __fastcall Execute();
public:
TSynchronizer *Synchronizer;
TDiscAnalyzer *DiscAnalyzer;
//Zmienne u¿ywane przez w¹tek podczas pracy
TSpisEdThrdFunction Function;
TStrings *FuncParamList;
TRichEdit *FuncParamEditor;
//Funkcje wywo³uj¹ce analizê CD
void CreateList(TObject *Sender,TStrings *List);
void CreateListOld(TStrings *List);
void CreateListMenader(TStrings *List);
//Funkcje dodatkowe
void ChangeSelectionCase(TObject *Sender,TRichEdit *Editor);
void ChangeSelectionCase(TObject *Sender,TMemo *Editor);
void DoFindInRichEdit(TFindDialog *Dialog,TRichEdit *Editor);
void DoReplaceInRichEdit(TReplaceDialog *Dialog,TRichEdit *Editor);
void DoFindInMemo(TFindDialog *Dialog,TMemo *Editor);
void DoReplaceInMemo(TReplaceDialog *Dialog,TMemo *Editor);
//Konstrukcja/destrukcja
__fastcall TSpisEditor(TSynchronizer *nSynchronizer);
__fastcall ~TSpisEditor();
};
//---------------------------------------------------------------------------
#endif