diff options
Diffstat (limited to 'RealtimeSync/mainDialog.cpp')
-rw-r--r-- | RealtimeSync/mainDialog.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/RealtimeSync/mainDialog.cpp b/RealtimeSync/mainDialog.cpp index d849eee5..8d9c7d7a 100644 --- a/RealtimeSync/mainDialog.cpp +++ b/RealtimeSync/mainDialog.cpp @@ -17,8 +17,11 @@ using namespace FreeFileSync; -MainDialog::MainDialog(wxDialog *dlg, const wxString& cfgFilename) - : MainDlgGenerated(dlg) +MainDialog::MainDialog(wxDialog *dlg, + const wxString& cfgFilename, + wxHelpController& helpController) + : MainDlgGenerated(dlg), + helpController_(helpController) { wxWindowUpdateLocker dummy(this); //avoid display distortion @@ -93,7 +96,7 @@ MainDialog::~MainDialog() { writeRealConfig(currentCfg, lastConfigFileName()); } - catch (const FreeFileSync::FileError& error) + catch (const xmlAccess::XmlError& error) { wxMessageBox(error.show().c_str(), _("Error"), wxOK | wxICON_ERROR); } @@ -121,6 +124,16 @@ const wxString& MainDialog::lastConfigFileName() } +void MainDialog::OnShowHelp(wxCommandEvent& event) +{ + #ifdef FFS_WIN + helpController_.DisplaySection(wxT("html\\advanced\\RealtimeSync.html")); + #elif defined FFS_LINUX + helpController_.DisplaySection(wxT("html/advanced/RealtimeSync.html")); + #endif +} + + void MainDialog::OnMenuAbout(wxCommandEvent& event) { //build information |