SelectMask.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //---------------------------------------------------------------------------
  2. #ifndef SelectMaskH
  3. #define SelectMaskH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <HistoryComboBox.hpp>
  10. #include <CustomDirView.hpp>
  11. #include <WinInterface.h>
  12. #include <Buttons.hpp>
  13. //---------------------------------------------------------------------------
  14. class TSelectMaskDialog : public TForm
  15. {
  16. __published:
  17. TButton *OKBtn;
  18. TButton *CancelBtn;
  19. TGroupBox *MaskGroup;
  20. TLabel *Label3;
  21. THistoryComboBox *MaskEdit;
  22. TCheckBox *ApplyToDirectoriesCheck;
  23. TButton *HelpButton;
  24. TStaticText *HintText;
  25. TButton *ClearButton;
  26. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  27. void __fastcall MaskEditExit(TObject *Sender);
  28. void __fastcall HelpButtonClick(TObject *Sender);
  29. void __fastcall ClearButtonClick(TObject *Sender);
  30. void __fastcall FormShow(TObject *Sender);
  31. private:
  32. TFileFilter FFileFilter;
  33. TControl * FParent;
  34. void __fastcall SetFileFilter(TFileFilter value);
  35. TFileFilter __fastcall GetFileFilter();
  36. public:
  37. enum TMode { smSelect, smDeselect, smFilter };
  38. __fastcall TSelectMaskDialog(TComponent* Owner);
  39. void __fastcall Init(TMode Mode, TControl * Parent);
  40. bool __fastcall Execute();
  41. __property TFileFilter FileFilter = { read = GetFileFilter, write = SetFileFilter };
  42. };
  43. //---------------------------------------------------------------------------
  44. #endif