//---------------------------------------------------------------------------
#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TListBox *lstFiles;
TButton *btnFind;
TComboBox *lstDirectory;
TLabel *lblCount;
TButton *btnStop;
TLabel *lblCount_;
TStatusBar *barStatus;
TLabel *lblDirectory_;
TLabel *lblFileSpec_;
TComboBox *lstFileSpecs;
TCheckBox *chkIncludeSubdirectories;
TRadioGroup *grpUpdateFrequency;
TLabel *lblTime_;
TLabel *lblTime;
TCheckBox *chkUseUpdate;
TCheckBox *chkInsertAtFront;
TCheckBox *chkDisplayInStatusBar;
void __fastcall btnFindClick(TObject *Sender);
void __fastcall btnStopClick(TObject *Sender);
void __fastcall lstFilesDblClick(TObject *Sender);
private:
int CatalogFiles(const AnsiString& Directory, const AnsiString& FileSpec, TStringList& List);
int FindFiles(const AnsiString& Directory, TStringList& FileSpecs, TStringList& List, bool IncludeSubdirectories);
bool Abort;
public:
__fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif