SelectMask.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 *IncludingDirectoriesCheck;
  23. TButton *HelpButton;
  24. TStaticText *HintText;
  25. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  26. void __fastcall MaskEditExit(TObject *Sender);
  27. void __fastcall HelpButtonClick(TObject *Sender);
  28. private:
  29. TFileFilter FFileFilter;
  30. bool FSelect;
  31. void __fastcall SetFileFilter(TFileFilter value);
  32. TFileFilter __fastcall GetFileFilter();
  33. void __fastcall SetSelect(bool value);
  34. public:
  35. bool __fastcall Execute();
  36. __fastcall TSelectMaskDialog(TComponent* Owner);
  37. __property TFileFilter FileFilter = { read = GetFileFilter, write = SetFileFilter };
  38. __property bool Select = { read = FSelect, write = SetSelect };
  39. };
  40. //---------------------------------------------------------------------------
  41. #endif