SelectMask.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 "XPGroupBox.hpp"
  13. //---------------------------------------------------------------------------
  14. class TSelectMaskDialog : public TForm
  15. {
  16. __published:
  17. TButton *OKBtn;
  18. TButton *CancelBtn;
  19. TXPGroupBox *MaskGroup;
  20. TLabel *Label1;
  21. THistoryComboBox *MaskEdit;
  22. TCheckBox *IncludingDirectoriesCheck;
  23. TLabel *Label2;
  24. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  25. private:
  26. TFileFilter FFileFilter;
  27. bool FSelect;
  28. void __fastcall SetFileFilter(TFileFilter value);
  29. TFileFilter __fastcall GetFileFilter();
  30. void __fastcall SetSelect(bool value);
  31. public:
  32. bool __fastcall Execute();
  33. __fastcall TSelectMaskDialog(TComponent* Owner);
  34. __property TFileFilter FileFilter = { read = GetFileFilter, write = SetFileFilter };
  35. __property bool Select = { read = FSelect, write = SetSelect };
  36. };
  37. //---------------------------------------------------------------------------
  38. #endif