diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:50:14 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:50:14 +0200 |
commit | ad0ea7798b82cc3a4dfed4c2fce6f2cb1b6805e4 (patch) | |
tree | dcc7dd2ed76fd0900944c07776fcbdbcd665c020 /ui/SyncDialog.h | |
parent | 1.5 (diff) | |
download | FreeFileSync-ad0ea7798b82cc3a4dfed4c2fce6f2cb1b6805e4.tar.gz FreeFileSync-ad0ea7798b82cc3a4dfed4c2fce6f2cb1b6805e4.tar.bz2 FreeFileSync-ad0ea7798b82cc3a4dfed4c2fce6f2cb1b6805e4.zip |
1.6
Diffstat (limited to 'ui/SyncDialog.h')
-rw-r--r-- | ui/SyncDialog.h | 82 |
1 files changed, 63 insertions, 19 deletions
diff --git a/ui/SyncDialog.h b/ui/SyncDialog.h index 23d8ce5b..9e79c7d2 100644 --- a/ui/SyncDialog.h +++ b/ui/SyncDialog.h @@ -1,41 +1,85 @@ #ifndef SYNCDIALOG_H_INCLUDED #define SYNCDIALOG_H_INCLUDED -#include "mainDialog.h" +#include "../FreeFileSync.h" +#include "guiGenerated.h" -class MainDialog; - -class SyncDialog: public SyncDialogGenerated +class SyncDialog: public SyncDlgGenerated { public: - SyncDialog(MainDialog* window); + SyncDialog(wxWindow* window, + const FileCompareResult& gridDataRef, + Configuration& config, + bool synchronizationEnabled); + ~SyncDialog(); static const int StartSynchronizationProcess = 15; + static void updateConfigIcons(wxBitmapButton* button1, + wxBitmapButton* button2, + wxBitmapButton* button3, + wxBitmapButton* button4, + wxBitmapButton* button5, + const SyncConfiguration& syncConfig); + private: - //temporal copy of maindialog->syncConfiguration + void calculatePreview(); + + void OnSyncLeftToRight( wxCommandEvent& event); + void OnSyncBothSides( wxCommandEvent& event); + + void OnExLeftSideOnly( wxCommandEvent& event); + void OnExRightSideOnly( wxCommandEvent& event); + void OnLeftNewer( wxCommandEvent& event); + 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 OnSelectRecycleBin(wxCommandEvent& event); + + //temporal copy of maindialog.cfg.syncConfiguration SyncConfiguration localSyncConfiguration; + const FileCompareResult& gridData; + Configuration& cfg; +}; + - void updateConfigIcons(); +class BatchDialog: public BatchDlgGenerated +{ +public: + BatchDialog(wxWindow* window, + const Configuration& config, + const wxString& leftDir, + const wxString& rightDir); - void OnSyncLeftToRight( wxCommandEvent& event ); - void OnSyncBothSides( wxCommandEvent& event ); + ~BatchDialog(); - void OnExLeftSideOnly( wxCommandEvent& event ); - void OnExRightSideOnly( wxCommandEvent& event ); - void OnLeftNewer( wxCommandEvent& event ); - void OnRightNewer( wxCommandEvent& event ); - void OnDifferent( wxCommandEvent& event ); + static const int batchFileCreated = 15; - void OnStartSync(wxCommandEvent& event); - void OnClose(wxCloseEvent& event); - void OnBack(wxCommandEvent& event); - void OnCancel(wxCommandEvent& event); +private: + void OnExLeftSideOnly( wxCommandEvent& event); + void OnExRightSideOnly( wxCommandEvent& event); + void OnLeftNewer( wxCommandEvent& event); + void OnRightNewer( wxCommandEvent& event); + void OnDifferent( wxCommandEvent& event); + void OnFilterButton( wxCommandEvent& event); void OnSelectRecycleBin(wxCommandEvent& event); - MainDialog* mainDialog; + void OnClose( wxCloseEvent& event); + void OnCancel( wxCommandEvent& event); + void OnCreateJob( wxCommandEvent& event); + + void updateFilterButton(); + wxString parseConfiguration(); + + SyncConfiguration localSyncConfiguration; + bool filterIsActive; }; #endif // SYNCDIALOG_H_INCLUDED |