summaryrefslogtreecommitdiff
path: root/RealtimeSync/application.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:03:20 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:03:20 +0200
commit528635604eea1d8c679a3d038e2f00030ef72444 (patch)
tree9c3cbec29aa7d3e209939662e040b9342c9e7400 /RealtimeSync/application.cpp
parent3.1 (diff)
downloadFreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.gz
FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.bz2
FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.zip
3.2
Diffstat (limited to 'RealtimeSync/application.cpp')
-rw-r--r--RealtimeSync/application.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/RealtimeSync/application.cpp b/RealtimeSync/application.cpp
index 827a54c6..b974fb89 100644
--- a/RealtimeSync/application.cpp
+++ b/RealtimeSync/application.cpp
@@ -43,6 +43,15 @@ void Application::OnStartApplication(wxIdleEvent& event)
::gtk_rc_parse("styles.rc"); //remove inner border from bitmap buttons
#endif
+ //initialize help controller
+ helpController.reset(new wxHelpController);
+ helpController->Initialize(FreeFileSync::getInstallationDir() +
+#ifdef FFS_WIN
+ wxT("FreeFileSync.chm"));
+#elif defined FFS_LINUX
+ wxT("Help/FreeFileSync.hhp"));
+#endif
+
//set program language
FreeFileSync::CustomLocale::getInstance().setLanguage(RealtimeSync::getProgramLanguage());
@@ -67,7 +76,7 @@ void Application::OnStartApplication(wxIdleEvent& event)
GlobalResources::getInstance().load(); //loads bitmap resources on program startup
- MainDialog* frame = new MainDialog(NULL, cfgFilename);
+ MainDialog* frame = new MainDialog(NULL, cfgFilename, *helpController);
frame->SetIcon(*GlobalResources::getInstance().programIcon); //set application icon
frame->Show();
}
bgstack15