diff options
Diffstat (limited to 'FreeFileSync/Source/lib/help_provider.h')
-rw-r--r-- | FreeFileSync/Source/lib/help_provider.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/FreeFileSync/Source/lib/help_provider.h b/FreeFileSync/Source/lib/help_provider.h index 629501ce..adc736c3 100644 --- a/FreeFileSync/Source/lib/help_provider.h +++ b/FreeFileSync/Source/lib/help_provider.h @@ -7,6 +7,14 @@ #ifndef HELP_PROVIDER_H_85930427583421563126 #define HELP_PROVIDER_H_85930427583421563126 +#if 1 +namespace zen +{ +inline void displayHelpEntry(const wxString& topic, wxWindow* parent) { wxLaunchDefaultBrowser(L"http://www.freefilesync.org/manual.php?topic=" + topic); } +inline void uninitializeHelp() {} +} + +#else #ifdef ZEN_WIN #include <zen/zstring.h> #include <wx/msw/helpchm.h> @@ -20,9 +28,8 @@ namespace zen { -//use '/' as path separator! void displayHelpEntry(wxWindow* parent); -void displayHelpEntry(const wxString& section, wxWindow* parent); +void displayHelpEntry(const wxString& topic, wxWindow* parent); void uninitializeHelp(); //clean up gracefully during app shutdown: leaving this up to static destruction crashes on Win 8.1! @@ -106,9 +113,9 @@ public: inline -void displayHelpEntry(const wxString& section, wxWindow* parent) +void displayHelpEntry(const wxString& topic, wxWindow* parent) { - impl::FfsHelpController::getInstance().openSection(section, parent); + impl::FfsHelpController::getInstance().openSection(L"html/" + topic + L".html", parent); } @@ -125,5 +132,6 @@ void uninitializeHelp() } } +#endif #endif //HELP_PROVIDER_H_85930427583421563126 |