CopyParamPreset.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. void __fastcall ControlChange(TObject *Sender);
  35. void __fastcall FormShow(TObject *Sender);
  36. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  37. void __fastcall CurrentRuleButtonClick(TObject *Sender);
  38. void __fastcall HelpButtonClick(TObject *Sender);
  39. private:
  40. TCopyParamPresetMode FMode;
  41. TCopyParamList * FCopyParamList;
  42. int FIndex;
  43. TCopyParamRuleData * FCurrentRuleData;
  44. protected:
  45. void __fastcall UpdateControls();
  46. TCopyParamRule * __fastcall GetRule();
  47. void __fastcall SetRuleData(const TCopyParamRuleData & Data);
  48. public:
  49. __fastcall TCopyParamPresetDialog(TComponent * Owner,
  50. TCopyParamPresetMode Mode, TCopyParamRuleData * CurrentRuleData);
  51. bool __fastcall Execute(TCopyParamList * CopyParamList, int & Index);
  52. };
  53. //---------------------------------------------------------------------------
  54. #endif