From bd6336c629841c6db3a6ca53a936d629d34db53b Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:15:16 +0200 Subject: 4.1 --- shared/help_provider.cpp | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 shared/help_provider.cpp (limited to 'shared/help_provider.cpp') diff --git a/shared/help_provider.cpp b/shared/help_provider.cpp deleted file mode 100644 index 666482eb..00000000 --- a/shared/help_provider.cpp +++ /dev/null @@ -1,44 +0,0 @@ -// ************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) 2008-2011 ZenJu (zhnmju123 AT gmx.de) * -// ************************************************************************** - -#include "help_provider.h" -#include -#include "standard_paths.h" -#include - -namespace -{ -class HelpProvider -{ -public: - HelpProvider() - { - controller.Initialize(zen::getResourceDir() + -#ifdef FFS_WIN - L"FreeFileSync.chm"); -#elif defined FFS_LINUX - L"Help/FreeFileSync.hhp"); -#endif - } - - void showHelp(const wxString& section) - { - if (section.empty()) - controller.DisplayContents(); - else - controller.DisplaySection(section); - } - -private: - wxHelpController controller; -}; -} - -void zen::displayHelpEntry(const wxString& section) -{ - static HelpProvider provider; - provider.showHelp(section); -} -- cgit