1 |
torben |
2671 |
// ***** BEGIN LICENSE BLOCK *****
|
2 |
|
|
// * Version: MPL 1.1
|
3 |
|
|
// *
|
4 |
|
|
// * The contents of this file are subject to the Mozilla Public License Version
|
5 |
|
|
// * 1.1 (the "License"); you may not use this file except in compliance with
|
6 |
|
|
// * the License. You may obtain a copy of the License at
|
7 |
|
|
// * http://www.mozilla.org/MPL/
|
8 |
|
|
// *
|
9 |
|
|
// * Software distributed under the License is distributed on an "AS IS" basis,
|
10 |
|
|
// * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
11 |
|
|
// * for the specific language governing rights and limitations under the
|
12 |
|
|
// * License.
|
13 |
|
|
// *
|
14 |
|
|
// * The Original Code is TurboPower SysTools
|
15 |
|
|
// *
|
16 |
|
|
// * The Initial Developer of the Original Code is
|
17 |
|
|
// * TurboPower Software
|
18 |
|
|
// *
|
19 |
|
|
// * Portions created by the Initial Developer are Copyright (C) 1996-2002
|
20 |
|
|
// * the Initial Developer. All Rights Reserved.
|
21 |
|
|
// *
|
22 |
|
|
// * Contributor(s):
|
23 |
|
|
// *
|
24 |
|
|
// * ***** END LICENSE BLOCK *****
|
25 |
|
|
//---------------------------------------------------------------------------
|
26 |
|
|
#ifndef exregeu1H
|
27 |
|
|
#define exregeu1H
|
28 |
|
|
//---------------------------------------------------------------------------
|
29 |
|
|
#include <vcl\Classes.hpp>
|
30 |
|
|
#include <vcl\Controls.hpp>
|
31 |
|
|
#include <vcl\StdCtrls.hpp>
|
32 |
|
|
#include <vcl\Forms.hpp>
|
33 |
|
|
#include <vcl\Buttons.hpp>
|
34 |
|
|
#include <vcl\Dialogs.hpp>
|
35 |
|
|
#include "StRegEx.hpp"
|
36 |
|
|
#include "cgauges.h"
|
37 |
|
|
#include "StBase.hpp"
|
38 |
|
|
//---------------------------------------------------------------------------
|
39 |
|
|
class TForm1 : public TForm
|
40 |
|
|
{
|
41 |
|
|
__published: // IDE-managed Components
|
42 |
|
|
TGroupBox *gbOptions;
|
43 |
|
|
TCheckBox *cbSelect;
|
44 |
|
|
TCheckBox *cbIgnoreCase;
|
45 |
|
|
TCheckBox *cbLineNumbers;
|
46 |
|
|
TCheckBox *cbxModOnly;
|
47 |
|
|
TCheckBox *cbxCountOnly;
|
48 |
|
|
TLabel *Label1;
|
49 |
|
|
TEdit *edtSourceFile;
|
50 |
|
|
TSpeedButton *sbSource;
|
51 |
|
|
TLabel *Label2;
|
52 |
|
|
TEdit *edtDestFile;
|
53 |
|
|
TSpeedButton *sbDest;
|
54 |
|
|
TButton *btnReplace;
|
55 |
|
|
TButton *btnMatch;
|
56 |
|
|
TButton *bntSelAvoid;
|
57 |
|
|
TMemo *Memo1;
|
58 |
|
|
TLabel *lblSelAvoid;
|
59 |
|
|
TLabel *lblLPS;
|
60 |
|
|
TLabel *lblMatch;
|
61 |
|
|
TLabel *lblReplace;
|
62 |
|
|
TButton *Button1;
|
63 |
|
|
TOpenDialog *OpenDialog1;
|
64 |
|
|
TStRegEx *StRegEx1;
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
TCGauge *Gauge1;
|
68 |
|
|
void __fastcall bntSelAvoidClick(TObject *Sender);
|
69 |
|
|
void __fastcall btnMatchClick(TObject *Sender);
|
70 |
|
|
void __fastcall btnReplaceClick(TObject *Sender);
|
71 |
|
|
void __fastcall Button1Click(TObject *Sender);
|
72 |
|
|
void __fastcall SelectFile(TObject *Sender);
|
73 |
|
|
void __fastcall StRegEx1Match(TObject *Sender, TMatchPosition &REPosition);
|
74 |
|
|
void __fastcall StRegEx1Progress(TObject *Sender, WORD Percent);
|
75 |
|
|
private: // User declarations
|
76 |
|
|
public: // User declarations
|
77 |
|
|
long ACount;
|
78 |
|
|
|
79 |
|
|
__fastcall TForm1(TComponent* Owner);
|
80 |
|
|
};
|
81 |
|
|
//---------------------------------------------------------------------------
|
82 |
|
|
extern TForm1 *Form1;
|
83 |
|
|
//---------------------------------------------------------------------------
|
84 |
|
|
#endif
|