diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
commit | 98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 (patch) | |
tree | faadc6d8822c20cd3bc6f50b2a98e6c580585949 /ui/sync_cfg.h | |
parent | 3.16 (diff) | |
download | FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.gz FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.bz2 FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.zip |
3.17
Diffstat (limited to 'ui/sync_cfg.h')
-rw-r--r-- | ui/sync_cfg.h | 95 |
1 files changed, 13 insertions, 82 deletions
diff --git a/ui/sync_cfg.h b/ui/sync_cfg.h index fb00136a..bd52984b 100644 --- a/ui/sync_cfg.h +++ b/ui/sync_cfg.h @@ -7,93 +7,24 @@ #ifndef SYNCCONFIG_H_INCLUDED #define SYNCCONFIG_H_INCLUDED -#include <memory> -#include "gui_generated.h" -#include "../structures.h" +#include "../library/process_xml.h" - -namespace ffs3 +namespace zen { -class DirectoryName; -} - - -class SyncCfgDialog : public SyncCfgDlgGenerated +struct ReturnSyncConfig { -public: - SyncCfgDialog(wxWindow* window, - const ffs3::CompareVariant compareVar, - ffs3::SyncConfiguration& syncConfiguration, - ffs3::DeletionPolicy& handleDeletion, - wxString& customDeletionDirectory, - bool* ignoreErrors); //optional input parameter - - ~SyncCfgDialog(); - - enum + enum ButtonPressed { - BUTTON_APPLY = 10 + BUTTON_CANCEL, + BUTTON_OKAY = 1 }; - - static void updateConfigIcons(const ffs3::CompareVariant compareVar, - const ffs3::SyncConfiguration& syncConfig, - wxBitmapButton* buttonLeftOnly, - wxBitmapButton* buttonRightOnly, - wxBitmapButton* buttonLeftNewer, - wxBitmapButton* buttonRightNewer, - wxBitmapButton* buttonDifferent, - wxBitmapButton* buttonConflict, - wxStaticBitmap* bitmapLeftOnly, - wxStaticBitmap* bitmapRightOnly, - wxStaticBitmap* bitmapLeftNewer, - wxStaticBitmap* bitmapRightNewer, - wxStaticBitmap* bitmapDifferent, - wxStaticBitmap* bitmapConflict, - wxSizer* syncDirections); - //some syntax relaxation - void updateConfigIcons(const ffs3::CompareVariant cmpVar, const ffs3::SyncConfiguration& syncConfig); - -private: - virtual void OnSyncAutomatic( wxCommandEvent& event); - virtual void OnSyncLeftToRight( wxCommandEvent& event); - virtual void OnSyncUpdate( wxCommandEvent& event); - - virtual void OnExLeftSideOnly( wxCommandEvent& event); - virtual void OnExRightSideOnly( wxCommandEvent& event); - virtual void OnLeftNewer( wxCommandEvent& event); - virtual void OnRightNewer( wxCommandEvent& event); - virtual void OnDifferent( wxCommandEvent& event); - virtual void OnConflict( wxCommandEvent& event); - - virtual void OnClose( wxCloseEvent& event); - virtual void OnCancel( wxCommandEvent& event); - virtual void OnApply( wxCommandEvent& event); - - //set tooltip - void updateToolTipErrorHandling(bool ignoreErrors); - - //error handling - bool getErrorHandling(); - void setErrorHandling(bool ignoreErrors); - void OnChangeErrorHandling(wxCommandEvent& event); - - //deletion handling - ffs3::DeletionPolicy getDeletionHandling(); - void setDeletionHandling(ffs3::DeletionPolicy newValue); - void OnChangeDeletionHandling(wxCommandEvent& event); - - const ffs3::CompareVariant cmpVariant; - - //temporal copy of maindialog.cfg.syncConfiguration - ffs3::SyncConfiguration currentSyncConfig; - - //changing data - ffs3::SyncConfiguration& refSyncConfiguration; - ffs3::DeletionPolicy& refHandleDeletion; - wxString& refCustomDeletionDirectory; - bool* refIgnoreErrors; - - std::auto_ptr<ffs3::DirectoryName> customDelFolder; }; +ReturnSyncConfig::ButtonPressed showSyncConfigDlg(zen::CompareVariant compareVar, + zen::SyncConfig& syncConfiguration, + zen::DeletionPolicy& handleDeletion, + wxString& customDeletionDirectory, + xmlAccess::OnGuiError* handleError); //optional input parameter +} + #endif // SYNCCONFIG_H_INCLUDED |