From 7bfd950a3cb479cf019a725d0e370dedc1c4986c Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 24 May 2006 07:39:05 +0000 Subject: [PATCH] Modifications related to update documentation for modules. --- src/LightApp/LightApp_Application.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 1c231df2a..484e2b911 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -421,12 +421,12 @@ void LightApp_Application::createActions() int id = LightApp_Application::UserID + FIRST_HELP_ID; // help for KERNEL and GUI QCString dir; - QString aFileName; + QString aFileName = "index.htm"; QString root; QAction* a; if (dir = getenv("GUI_ROOT_DIR")) { - aFileName = "GUI_index_v3.1.0.html"; - root = Qtx::addSlash( Qtx::addSlash(dir) + Qtx::addSlash("doc") + Qtx::addSlash("salome") ); + root = Qtx::addSlash( Qtx::addSlash(dir) + Qtx::addSlash("doc") + Qtx::addSlash("salome") + + Qtx::addSlash("gui") + Qtx::addSlash("GUI") ); if ( QFileInfo( root + aFileName ).exists() ) { a = createAction( id, tr( QString("Kernel & GUI Help") ), QIconSet(), tr( QString("Kernel && GUI Help") ), @@ -445,10 +445,10 @@ void LightApp_Application::createActions() continue; QString modName = moduleName( *it ); - aFileName = modName + "_index_v3.1.0.html"; if (dir = getenv( modName + "_ROOT_DIR")) { - root = Qtx::addSlash( Qtx::addSlash(dir) + Qtx::addSlash("doc") + Qtx::addSlash("salome") ); + root = Qtx::addSlash( Qtx::addSlash(dir) + Qtx::addSlash("doc") + Qtx::addSlash("salome") + + Qtx::addSlash("gui") + Qtx::addSlash(modName) ); if ( QFileInfo( root + aFileName ).exists() ) { QAction* a = createAction( id, tr( moduleTitle(modName) + QString(" Help") ), QIconSet(), @@ -912,10 +912,11 @@ void LightApp_Application::onHelpContentsModule() const QAction* obj = (QAction*) sender(); QString aComponentName = obj->name(); - QString aFileName = aComponentName + "_index_v3.1.0.html"; + QString aFileName = "index.htm"; QCString dir = getenv( aComponentName + "_ROOT_DIR"); - QString homeDir = Qtx::addSlash( Qtx::addSlash(dir) + Qtx::addSlash("doc") + Qtx::addSlash("salome") ); + QString homeDir = Qtx::addSlash( Qtx::addSlash(dir) + Qtx::addSlash("doc") + Qtx::addSlash("salome") + + Qtx::addSlash("gui") + Qtx::addSlash(aComponentName) ); QString helpFile = QFileInfo( homeDir + aFileName ).absFilePath(); SUIT_ResourceMgr* resMgr = resourceMgr(); -- 2.39.2