diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:14 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:14 +0200 |
commit | 1046c195a9bbac24678c06310a4dd56b10347244 (patch) | |
tree | 89ad9f6fe3e538d65ef973b628ed9284b6c99e9f /ui/SmallDialogs.h | |
parent | 1.14 (diff) | |
download | FreeFileSync-1046c195a9bbac24678c06310a4dd56b10347244.tar.gz FreeFileSync-1046c195a9bbac24678c06310a4dd56b10347244.tar.bz2 FreeFileSync-1046c195a9bbac24678c06310a4dd56b10347244.zip |
1.15
Diffstat (limited to 'ui/SmallDialogs.h')
-rw-r--r-- | ui/SmallDialogs.h | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/ui/SmallDialogs.h b/ui/SmallDialogs.h index 06e6c407..5be461d2 100644 --- a/ui/SmallDialogs.h +++ b/ui/SmallDialogs.h @@ -3,6 +3,7 @@ #include "../FreeFileSync.h" #include "../library/statusHandler.h" +#include "../library/processXml.h" #include "guiGenerated.h" #include <wx/stopwatch.h> @@ -120,24 +121,48 @@ private: }; -class ModifyFilesDlg : public ModifyFilesDlgGenerated +class CustomizeColsDlg : public CustomizeColsDlgGenerated { public: - ModifyFilesDlg(wxWindow* window, const wxString& parentDirectory, const int timeShift); - ~ModifyFilesDlg(); + CustomizeColsDlg(wxWindow* window, xmlAccess::XmlGlobalSettings::ColumnAttributes& attr); + ~CustomizeColsDlg() {} enum { - BUTTON_APPLY = 10 + BUTTON_OKAY = 10 }; private: - void OnApply(wxCommandEvent& event); + void OnOkay(wxCommandEvent& event); + void OnDefault(wxCommandEvent& event); + void OnCancel(wxCommandEvent& event); + void OnClose(wxCloseEvent& event); + + void OnMoveUp(wxCommandEvent& event); + void OnMoveDown(wxCommandEvent& event); + + xmlAccess::XmlGlobalSettings::ColumnAttributes& output; +}; + + +class GlobalSettingsDlg : public GlobalSettingsDlgGenerated +{ +public: + GlobalSettingsDlg(wxWindow* window, xmlAccess::XmlGlobalSettings& globalSettings); + ~GlobalSettingsDlg() {} + + enum + { + BUTTON_OKAY = 10 + }; + +private: + void OnOkay(wxCommandEvent& event); + void OnDefault(wxCommandEvent& event); void OnCancel(wxCommandEvent& event); void OnClose(wxCloseEvent& event); - void OnWriteDirManually(wxCommandEvent& event); - void OnDirSelected(wxFileDirPickerEvent& event); + xmlAccess::XmlGlobalSettings& settings; }; @@ -160,7 +185,7 @@ public: void resetGauge(int totalObjectsToProcess, double totalDataToProcess); void incProgressIndicator_NoUpdate(int objectsProcessed, double dataProcessed); - void setStatusText_NoUpdate(const wxString& text); + void setStatusText_NoUpdate(const Zstring& text); void updateStatusDialogNow(); void setCurrentStatus(SyncStatusID id); @@ -185,7 +210,7 @@ private: int currentObjects; //each object represents a file or directory processed int totalObjects; - wxString currentStatusText; + Zstring currentStatusText; bool processPaused; }; @@ -226,13 +251,13 @@ public: void switchToCompareBytewise(int totalCmpObjectsToProcess, double totalCmpDataToProcess); void incScannedObjects_NoUpdate(int number); void incProcessedCmpData_NoUpdate(int objectsProcessed, double dataProcessed); - void setStatusText_NoUpdate(const wxString& text); + void setStatusText_NoUpdate(const Zstring& text); void updateStatusPanelNow(); private: //status variables unsigned int scannedObjects; - wxString currentStatusText; + Zstring currentStatusText; wxStopWatch timeElapsed; |