1
0

SelectMask.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. TButton *MaskButton;
  27. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  28. void __fastcall MaskEditExit(TObject *Sender);
  29. void __fastcall HelpButtonClick(TObject *Sender);
  30. void __fastcall ClearButtonClick(TObject *Sender);
  31. void __fastcall FormShow(TObject *Sender);
  32. void __fastcall MaskButtonClick(TObject *Sender);
  33. private:
  34. TFileFilter FFileFilter;
  35. TControl * FParent;
  36. void __fastcall SetFileFilter(TFileFilter value);
  37. TFileFilter __fastcall GetFileFilter();
  38. public:
  39. enum TMode { smSelect, smDeselect, smFilter };
  40. __fastcall TSelectMaskDialog(TComponent* Owner);
  41. void __fastcall Init(TMode Mode, TControl * Parent);
  42. bool __fastcall Execute();
  43. __property TFileFilter FileFilter = { read = GetFileFilter, write = SetFileFilter };
  44. };
  45. //---------------------------------------------------------------------------
  46. #endif