CopyParamPreset.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //---------------------------------------------------------------------------
  2. #ifndef CopyParamPresetH
  3. #define CopyParamPresetH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "CopyParams.h"
  10. //---------------------------------------------------------------------------
  11. class TCopyParamPresetDialog : public TForm
  12. {
  13. __published:
  14. TButton *OkButton;
  15. TButton *CancelButton;
  16. TLabel *Label1;
  17. TEdit *DescriptionEdit;
  18. TCopyParamsFrame *CopyParamsFrame;
  19. TGroupBox *RuleGroup;
  20. TLabel *Label2;
  21. TEdit *HostNameEdit;
  22. TCheckBox *HasRuleCheck;
  23. TLabel *Label3;
  24. TEdit *UserNameEdit;
  25. TLabel *Label4;
  26. TEdit *RemoteDirectoryEdit;
  27. TLabel *Label5;
  28. TEdit *LocalDirectoryEdit;
  29. TButton *CurrentRuleButton;
  30. TButton *HelpButton;
  31. TStaticText *RuleMaskHintText;
  32. void __fastcall ControlChange(TObject *Sender);
  33. void __fastcall FormShow(TObject *Sender);
  34. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  35. void __fastcall CurrentRuleButtonClick(TObject *Sender);
  36. void __fastcall HelpButtonClick(TObject *Sender);
  37. void __fastcall MaskEditExit(TObject *Sender);
  38. private:
  39. TCopyParamPresetMode FMode;
  40. TCopyParamList * FCopyParamList;
  41. int FIndex;
  42. TCopyParamRuleData * FCurrentRuleData;
  43. protected:
  44. void __fastcall UpdateControls();
  45. TCopyParamRule * __fastcall GetRule();
  46. void __fastcall SetRuleData(const TCopyParamRuleData & Data);
  47. INTERFACE_HOOK
  48. public:
  49. __fastcall TCopyParamPresetDialog(TComponent * Owner,
  50. TCopyParamPresetMode Mode, TCopyParamRuleData * CurrentRuleData);
  51. bool __fastcall Execute(TCopyParamList * CopyParamList, int & Index,
  52. const TCopyParamType & DefaultCopyParams);
  53. };
  54. //---------------------------------------------------------------------------
  55. #endif