SelectMask.h 1.5 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 <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. TControl * FParent;
  35. public:
  36. enum TMode { smSelect, smDeselect, smFilter };
  37. __fastcall TSelectMaskDialog(TComponent* Owner);
  38. void __fastcall Init(TMode Mode, TControl * Parent);
  39. bool __fastcall Execute(TFileFilter & FileFilter);
  40. };
  41. //---------------------------------------------------------------------------
  42. #endif