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/SmallDialogs.h | |
parent | 1.15 (diff) | |
download | FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.gz FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.bz2 FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.zip |
1.16
Diffstat (limited to 'ui/SmallDialogs.h')
-rw-r--r-- | ui/SmallDialogs.h | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/ui/SmallDialogs.h b/ui/SmallDialogs.h index 5be461d2..1425d822 100644 --- a/ui/SmallDialogs.h +++ b/ui/SmallDialogs.h @@ -57,8 +57,14 @@ private: class DeleteDialog : public DeleteDlgGenerated { public: - DeleteDialog(const wxString& headerText, const wxString& messageText, wxWindow* main); - ~DeleteDialog(); + DeleteDialog(wxWindow* main, + const FileCompareResult& grid, + const std::set<int>& rowsOnLeft, + const std::set<int>& rowsOnRight, + bool& deleteOnBothSides, + bool& useRecycleBin); + + ~DeleteDialog() {} enum { @@ -70,20 +76,30 @@ private: void OnOK(wxCommandEvent& event); void OnCancel(wxCommandEvent& event); void OnClose(wxCloseEvent& event); + void OnDelOnBothSides(wxCommandEvent& event); + void OnUseRecycler(wxCommandEvent& event); + + void updateTexts(); + + const FileCompareResult& mainGrid; + const std::set<int>& rowsToDeleteOnLeft; + const std::set<int>& rowsToDeleteOnRight; + bool& m_deleteOnBothSides; + bool& m_useRecycleBin; }; class ErrorDlg : public ErrorDlgGenerated { public: - ErrorDlg(wxWindow* parentWindow, const wxString messageText, bool& ignoreNextErrors); + ErrorDlg(wxWindow* parentWindow, const int activeButtons, const wxString messageText, bool& ignoreNextErrors); ~ErrorDlg(); enum { - BUTTON_IGNORE, - BUTTON_RETRY, - BUTTON_ABORT + BUTTON_IGNORE = 1, + BUTTON_RETRY = 2, + BUTTON_ABORT = 4 }; private: @@ -99,15 +115,13 @@ private: class WarningDlg : public WarningDlgGenerated { public: - WarningDlg(wxWindow* parentWindow, int activeButtons, const wxString messageText, bool& dontShowAgain); + WarningDlg(wxWindow* parentWindow, int activeButtons, const wxString messageText, bool& dontShowAgain); ~WarningDlg(); enum { BUTTON_IGNORE = 1, - BUTTON_RESOLVE = 2, - BUTTON_ABORT = 4, - BUTTON_OKAY = 8 + BUTTON_ABORT = 2 }; private: @@ -124,7 +138,7 @@ private: class CustomizeColsDlg : public CustomizeColsDlgGenerated { public: - CustomizeColsDlg(wxWindow* window, xmlAccess::XmlGlobalSettings::ColumnAttributes& attr); + CustomizeColsDlg(wxWindow* window, xmlAccess::ColumnAttributes& attr); ~CustomizeColsDlg() {} enum @@ -141,7 +155,7 @@ private: void OnMoveUp(wxCommandEvent& event); void OnMoveDown(wxCommandEvent& event); - xmlAccess::XmlGlobalSettings::ColumnAttributes& output; + xmlAccess::ColumnAttributes& output; }; @@ -158,6 +172,7 @@ public: private: void OnOkay(wxCommandEvent& event); + void OnResetWarnings(wxCommandEvent& event); void OnDefault(wxCommandEvent& event); void OnCancel(wxCommandEvent& event); void OnClose(wxCloseEvent& event); |