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