summaryrefslogtreecommitdiff
path: root/ui/SyncDialog.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:58:10 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:58:10 +0200
commitfefe20351d0720683990b666584b6879c90bd37d (patch)
tree8ab90520ae2123ac84293b0f9cec006317e5fc01 /ui/SyncDialog.h
parent1.18 (diff)
downloadFreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.tar.gz
FreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.tar.bz2
FreeFileSync-fefe20351d0720683990b666584b6879c90bd37d.zip
1.19
Diffstat (limited to 'ui/SyncDialog.h')
-rw-r--r--ui/SyncDialog.h37
1 files changed, 22 insertions, 15 deletions
diff --git a/ui/SyncDialog.h b/ui/SyncDialog.h
index 2c705122..940efac7 100644
--- a/ui/SyncDialog.h
+++ b/ui/SyncDialog.h
@@ -21,28 +21,31 @@ public:
SyncDialog(wxWindow* window,
const FreeFileSync::FolderComparison& folderCmpRef,
FreeFileSync::MainConfiguration& config,
- bool& ignoreErrors,
- bool synchronizationEnabled);
+ bool& ignoreErrors);
~SyncDialog();
enum
{
- BUTTON_START = 15
+ BUTTON_OKAY = 10
};
- static void updateConfigIcons(wxBitmapButton* button1,
- wxBitmapButton* button2,
- wxBitmapButton* button3,
- wxBitmapButton* button4,
- wxBitmapButton* button5,
- const FreeFileSync::SyncConfiguration& syncConfig);
-
- static void adjustToolTips(wxStaticBitmap* bitmap, const FreeFileSync::CompareVariant var);
+ static void updateConfigIcons(const FreeFileSync::CompareVariant compareVar,
+ const FreeFileSync::SyncConfiguration& syncConfig,
+ wxBitmapButton* buttonLeftOnly,
+ wxBitmapButton* buttonRightOnly,
+ wxBitmapButton* buttonLeftNewer,
+ wxBitmapButton* buttonRightNewer,
+ wxBitmapButton* buttonDifferent,
+ wxStaticBitmap* bitmapLeftOnly,
+ wxStaticBitmap* bitmapRightOnly,
+ wxStaticBitmap* bitmapLeftNewer,
+ wxStaticBitmap* bitmapRightNewer,
+ wxStaticBitmap* bitmapDifferent);
+ //some syntax relaxation
+ void updateConfigIcons(const FreeFileSync::CompareVariant cmpVar, const FreeFileSync::SyncConfiguration& syncConfig);
private:
- void calculatePreview();
-
void OnSyncLeftToRight( wxCommandEvent& event);
void OnSyncUpdate( wxCommandEvent& event);
void OnSyncBothSides( wxCommandEvent& event);
@@ -53,10 +56,9 @@ private:
void OnRightNewer( wxCommandEvent& event);
void OnDifferent( wxCommandEvent& event);
- void OnStartSync( wxCommandEvent& event);
void OnClose( wxCloseEvent& event);
- void OnBack( wxCommandEvent& event);
void OnCancel( wxCommandEvent& event);
+ void OnApply( wxCommandEvent& event);
void OnSelectRecycleBin(wxCommandEvent& event);
@@ -98,6 +100,11 @@ private:
void OnSelectRecycleBin(wxCommandEvent& event);
void OnChangeCompareVar(wxCommandEvent& event);
+ FreeFileSync::CompareVariant getCurrentCompareVar();
+
+ void updateConfigIcons(const FreeFileSync::CompareVariant cmpVar, const FreeFileSync::SyncConfiguration& syncConfig);
+
+
void updateVisibleTabs();
void showNotebookpage(wxWindow* page, const wxString& pageName, bool show);
bgstack15