diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
commit | 9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca (patch) | |
tree | 61e2edc315a164d6fa3940b7de4b14dda0a9838c /ui/SyncDialog.h | |
parent | 1.15 (diff) | |
download | FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.gz FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.bz2 FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.zip |
1.16
Diffstat (limited to 'ui/SyncDialog.h')
-rw-r--r-- | ui/SyncDialog.h | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/ui/SyncDialog.h b/ui/SyncDialog.h index 2f6c5a53..05a2d65b 100644 --- a/ui/SyncDialog.h +++ b/ui/SyncDialog.h @@ -3,6 +3,7 @@ #include "../FreeFileSync.h" #include "guiGenerated.h" +#include "../library/processXml.h" using namespace FreeFileSync; @@ -13,6 +14,7 @@ public: SyncDialog(wxWindow* window, const FileCompareResult& gridDataRef, MainConfiguration& config, + bool& ignoreErrors, bool synchronizationEnabled); ~SyncDialog(); @@ -55,21 +57,32 @@ private: SyncConfiguration localSyncConfiguration; const FileCompareResult& gridData; MainConfiguration& cfg; + bool& m_ignoreErrors; }; +class BatchFileDropEvent; + + class BatchDialog: public BatchDlgGenerated { -public: - BatchDialog(wxWindow* window, - const MainConfiguration& config, - const std::vector<FolderPair>& folderPairs); + friend class BatchFileDropEvent; - ~BatchDialog(); +public: + BatchDialog(wxWindow* window, const xmlAccess::XmlBatchConfig& batchCfg); + BatchDialog(wxWindow* window, const wxString& filename); + ~BatchDialog() {}; - static const int batchFileCreated = 15; + enum + { + BATCH_FILE_SAVED = 15 + }; private: + void init(); + + void OnChangeErrorHandling(wxCommandEvent& event); + void OnExLeftSideOnly( wxCommandEvent& event); void OnExRightSideOnly( wxCommandEvent& event); void OnLeftNewer( wxCommandEvent& event); @@ -83,15 +96,23 @@ private: void OnClose( wxCloseEvent& event); void OnCancel( wxCommandEvent& event); void OnSaveBatchJob( wxCommandEvent& event); + void OnLoadBatchJob( wxCommandEvent& event); void updateFilterButton(); + xmlAccess::OnError getSelectionHandleError(); + void setSelectionHandleError(const xmlAccess::OnError value); bool saveBatchFile(const wxString& filename); + void loadBatchFile(const wxString& filename); + void loadBatchCfg(const xmlAccess::XmlBatchConfig& batchCfg); SyncConfiguration localSyncConfiguration; std::vector<BatchFolderPairGenerated*> localFolderPairs; bool filterIsActive; + + //used when saving batch file + wxString proposedBatchFileName; }; #endif // SYNCDIALOG_H_INCLUDED |