FullSynchronize.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //---------------------------------------------------------------------------
  2. #ifndef FullSynchronizeH
  3. #define FullSynchronizeH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <XPGroupBox.hpp>
  10. #include <HistoryComboBox.hpp>
  11. #include <WinInterface.h>
  12. //---------------------------------------------------------------------------
  13. class TFullSynchronizeDialog : public TForm
  14. {
  15. __published:
  16. TXPGroupBox *DirectoriesGroup;
  17. TButton *OkButton;
  18. TButton *CancelButton;
  19. TLabel *LocalDirectoryLabel;
  20. TLabel *RemoteDirectoryLabel;
  21. THistoryComboBox *RemoteDirectoryEdit;
  22. THistoryComboBox *LocalDirectoryEdit;
  23. TXPGroupBox *OptionsGroup;
  24. TRadioButton *SynchronizeBothButton;
  25. TRadioButton *SynchronizeRemoteButton;
  26. TRadioButton *SynchronizeLocalButton;
  27. TCheckBox *SynchronizeDeleteCheck;
  28. TCheckBox *SynchronizeNoConfirmationCheck;
  29. TButton *LocalDirectoryBrowseButton;
  30. TCheckBox *SaveSettingsCheck;
  31. void __fastcall ControlChange(TObject *Sender);
  32. void __fastcall LocalDirectoryBrowseButtonClick(TObject *Sender);
  33. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  34. private:
  35. int FParams;
  36. void __fastcall SetRemoteDirectory(const AnsiString value);
  37. AnsiString __fastcall GetRemoteDirectory();
  38. void __fastcall SetLocalDirectory(const AnsiString value);
  39. AnsiString __fastcall GetLocalDirectory();
  40. void __fastcall SetMode(TSynchronizeMode value);
  41. TSynchronizeMode __fastcall GetMode();
  42. void __fastcall SetParams(int value);
  43. int __fastcall GetParams();
  44. void __fastcall SetSaveSettings(bool value);
  45. bool __fastcall GetSaveSettings();
  46. public:
  47. __fastcall TFullSynchronizeDialog(TComponent* Owner);
  48. bool __fastcall Execute();
  49. __property AnsiString RemoteDirectory = { read = GetRemoteDirectory, write = SetRemoteDirectory };
  50. __property AnsiString LocalDirectory = { read = GetLocalDirectory, write = SetLocalDirectory };
  51. __property int Params = { read = GetParams, write = SetParams };
  52. __property TSynchronizeMode Mode = { read = GetMode, write = SetMode };
  53. __property bool SaveSettings = { read = GetSaveSettings, write = SetSaveSettings };
  54. protected:
  55. void __fastcall UpdateControls();
  56. };
  57. //---------------------------------------------------------------------------
  58. #endif