]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Add references into GEOM dialogs to the corresponding help page from GUI documentation.
authormkr <mkr@opencascade.com>
Fri, 24 Mar 2006 12:51:47 +0000 (12:51 +0000)
committermkr <mkr@opencascade.com>
Fri, 24 Mar 2006 12:51:47 +0000 (12:51 +0000)
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/GEOMBase/GEOMBase_Skeleton.cxx
src/GEOMToolsGUI/GEOMToolsGUI_NbIsosDlg.cxx
src/GEOMToolsGUI/GEOMToolsGUI_TransparencyDlg.cxx
src/MeasureGUI/MeasureGUI_Skeleton.cxx
src/RepairGUI/RepairGUI_FreeBoundDlg.cxx
src/RepairGUI/RepairGUI_FreeFacesDlg.cxx

index db33fa8d872219b4833b5cf6731c37438660bedb..91341571b5fc14c7243a6fde18c67812f95ed570 100644 (file)
@@ -702,7 +702,8 @@ void EntityGUI_SketcherDlg::ClickOnHelp()
     app->onHelpContextModule(myGeometryGUI ? app->moduleName(myGeometryGUI->moduleName()) : QString(""), myHelpFileName);
   else {
     SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
-                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+                          arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName),
                           QObject::tr("BUT_OK"));
   }
 }
index e38b6846fc2e75cef14aeda3e25856e81ab56297..a3a1b5c139c708c21815a59e18cc18679038c96d 100644 (file)
@@ -226,13 +226,14 @@ int GEOMBase_Skeleton::getConstructorId() const
 void GEOMBase_Skeleton::ClickOnHelp()
 {
   SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
-  if (app) 
+  /*if (app) 
     app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
-  else {
+    else {*/
     SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
-                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+                          arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName),
                           QObject::tr("BUT_OK"));
-  }
+    //}
 }
 //=================================================================================
 //  function : setHelpFileName()
index 9c4e5040c507cf73e601f8aa21ddd7d18e4420e7..98f1bb6cc0300e6c9e3818ac1f42fcd3320be35a 100644 (file)
@@ -172,7 +172,8 @@ void GEOMToolsGUI_NbIsosDlg::ClickOnHelp()
   }
   else {
     SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
-                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+                          arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName),
                           QObject::tr("BUT_OK"));
   }
 }
index 174601094e16315bf51ad85e4d34b63c6df29812..1366ff0ede370b0af9bc793440ff195268e72da2 100644 (file)
@@ -198,7 +198,8 @@ void GEOMToolsGUI_TransparencyDlg::ClickOnHelp()
   }
   else {
     SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
-                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+                          arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName),
                           QObject::tr("BUT_OK"));
   }
 }
index 1b9e75d60d839d479dbf29005ec10b74900532c5..3137686c7506df1bfd90b13c62fd7d3752f8e041 100644 (file)
@@ -153,7 +153,8 @@ void MeasureGUI_Skeleton::ClickOnHelp()
     app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
   else {
     SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
-                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+                          arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName),
                           QObject::tr("BUT_OK"));
   }
 }
index f9a2866a8c90a5423d4cd2ab5932ebdb95ed4905..0c918b0ad7e8b65f225b682714eae29d8fae5bfa 100644 (file)
@@ -137,7 +137,8 @@ void RepairGUI_FreeBoundDlg::onHelp()
     app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
   else {
     SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
-                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+                          arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName),
                           QObject::tr("BUT_OK"));
   }
 }
index 2bf49ed400bba2723b72a9079fd0577044430c0a..14014d9542211db5c92851bb7a912224bffcb5df 100644 (file)
@@ -156,7 +156,8 @@ void RepairGUI_FreeFacesDlg::onHelp()
     app->onHelpContextModule(myGeomGUI ? app->moduleName(myGeomGUI->moduleName()) : QString(""), myHelpFileName);
   else {
     SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
-                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").arg(1).arg(myHelpFileName),
+                          QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+                          arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(myHelpFileName),
                           QObject::tr("BUT_OK"));
   }
 }