From: vsv Date: Wed, 15 Aug 2018 09:56:02 +0000 (+0300) Subject: Improvement of help system X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36b55169682ecfb2903e0a178559532a87a5ef3f;p=modules%2Fshaper.git Improvement of help system --- diff --git a/src/PythonAddons/doc/PythonAddons.rst b/src/PythonAddons/doc/PythonAddons.rst new file mode 100644 index 000000000..3480bd54e --- /dev/null +++ b/src/PythonAddons/doc/PythonAddons.rst @@ -0,0 +1,3 @@ + +Python addons +============= \ No newline at end of file diff --git a/src/PythonAddons/doc/boxFeature.rst b/src/PythonAddons/doc/boxFeature.rst new file mode 100644 index 000000000..d724515d4 --- /dev/null +++ b/src/PythonAddons/doc/boxFeature.rst @@ -0,0 +1,3 @@ + +Box +=== diff --git a/src/PythonAddons/doc/rectangleFeature.rst b/src/PythonAddons/doc/rectangleFeature.rst new file mode 100644 index 000000000..3148b08e2 --- /dev/null +++ b/src/PythonAddons/doc/rectangleFeature.rst @@ -0,0 +1,3 @@ + +Rectangle +========= diff --git a/src/PythonAddons/macros/box/widget.xml b/src/PythonAddons/macros/box/widget.xml index 51d5a0c07..f45e45410 100644 --- a/src/PythonAddons/macros/box/widget.xml +++ b/src/PythonAddons/macros/box/widget.xml @@ -23,7 +23,8 @@ email : webmaster.salome@opencascade.com - + diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 6ca6f7d50..1edb2dca5 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -591,9 +591,12 @@ void XGUI_Workshop::onHelpActionClicked() QString aDir(getenv("OPENPARTS_ROOT_DIR")); aDocDir = aDir + aSep + "doc" + aSep + "gui"; #endif - QStringList aParams; - aParams << aDocDir + aSep + aHelpPage; - QProcess::startDetached(aBrowserName, aParams); + QString aFileName = aDocDir + aSep + aHelpPage; + if (QFile::exists(aFileName)) { + QStringList aParams; + aParams << aFileName; + QProcess::startDetached(aBrowserName, aParams); + } } } }