SelectMask.h 1.2 KB

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