From c601b5a27f74b16158adafe429faefbe573e64a2 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Sat, 1 Jan 2011 20:19:56 +0000 Subject: The big rename for modules. Still some details remaining. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5284 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/help/libkvihelp.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/modules/help/libkvihelp.cpp') diff --git a/src/modules/help/libkvihelp.cpp b/src/modules/help/libkvihelp.cpp index 8cf269cbd..039d4fbef 100644 --- a/src/modules/help/libkvihelp.cpp +++ b/src/modules/help/libkvihelp.cpp @@ -22,9 +22,9 @@ // //============================================================================= -#include "helpwidget.h" -#include "helpwindow.h" -#include "index.h" +#include "HelpWidget.h" +#include "HelpWindow.h" +#include "HelpIndex.h" #include "KviLocale.h" #include "KviModule.h" #include "KviFileUtils.h" @@ -36,9 +36,9 @@ #include #include -Index * g_pDocIndex = 0; -KviPointerList * g_pHelpWidgetList = 0; -KviPointerList * g_pHelpWindowList = 0; +HelpIndex * g_pDocIndex = 0; +KviPointerList * g_pHelpWidgetList = 0; +KviPointerList * g_pHelpWindowList = 0; /* @doc: help.open @@ -177,7 +177,7 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) if(!c->switches()->find('n',"new")) { - KviHelpWidget * w = (KviHelpWidget *)c->window()->frame()->findChild("help_widget"); + HelpWidget * w = (HelpWidget *)c->window()->frame()->findChild("help_widget"); if(w) { @@ -187,11 +187,11 @@ static bool help_kvs_cmd_open(KviKvsModuleCommandCall * c) } if(c->switches()->find('m',"mdi")) { - KviHelpWindow *w = new KviHelpWindow(c->window()->frame(),"Help browser"); + HelpWindow *w = new HelpWindow(c->window()->frame(),"Help browser"); w->textBrowser()->setSource(QUrl::fromLocalFile(f.absoluteFilePath())); c->window()->frame()->addWindow(w); } else { - KviHelpWidget *w = new KviHelpWidget(c->window()->frame()->splitter(), + HelpWidget *w = new HelpWidget(c->window()->frame()->splitter(), c->window()->frame(),true); w->textBrowser()->setSource(QUrl::fromLocalFile(f.absoluteFilePath())); w->show(); @@ -207,15 +207,15 @@ static bool help_module_init(KviModule * m) g_pApp->getLocalKvircDirectory(szDocList,KviApplication::Help,"help.doclist." KVI_SOURCES_DATE); g_pApp->getGlobalKvircDirectory(szHelpDir,KviApplication::Help); - g_pDocIndex = new Index(szHelpDir,szDocList); + g_pDocIndex = new HelpIndex(szHelpDir,szDocList); g_pDocIndex->setDocListFile(szDocList); g_pApp->getLocalKvircDirectory(szHelpDir,KviApplication::Help,"help.dict." KVI_SOURCES_DATE); g_pDocIndex->setDictionaryFile(szHelpDir); - g_pHelpWidgetList = new KviPointerList; + g_pHelpWidgetList = new KviPointerList; g_pHelpWidgetList->setAutoDelete(false); - g_pHelpWindowList = new KviPointerList; + g_pHelpWindowList = new KviPointerList; g_pHelpWindowList->setAutoDelete(false); KVSM_REGISTER_SIMPLE_COMMAND(m,"open",help_kvs_cmd_open); -- cgit v1.3.1-10-gc9f91