SelectMask.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <XPThemes.hpp>
  12. #include <WinInterface.h>
  13. #include <Buttons.hpp>
  14. //---------------------------------------------------------------------------
  15. class TSelectMaskDialog : public TForm
  16. {
  17. __published:
  18. TButton *OKBtn;
  19. TButton *CancelBtn;
  20. TXPGroupBox *MaskGroup;
  21. TLabel *Label3;
  22. THistoryComboBox *MaskEdit;
  23. TCheckBox *IncludingDirectoriesCheck;
  24. TButton *HelpButton;
  25. TStaticText *HintText;
  26. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  27. void __fastcall MaskEditExit(TObject *Sender);
  28. void __fastcall HelpButtonClick(TObject *Sender);
  29. private:
  30. TFileFilter FFileFilter;
  31. bool FSelect;
  32. void __fastcall SetFileFilter(TFileFilter value);
  33. TFileFilter __fastcall GetFileFilter();
  34. void __fastcall SetSelect(bool value);
  35. public:
  36. bool __fastcall Execute();
  37. __fastcall TSelectMaskDialog(TComponent* Owner);
  38. __property TFileFilter FileFilter = { read = GetFileFilter, write = SetFileFilter };
  39. __property bool Select = { read = FSelect, write = SetSelect };
  40. };
  41. //---------------------------------------------------------------------------
  42. #endif