From 36b55169682ecfb2903e0a178559532a87a5ef3f Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 15 Aug 2018 12:56:02 +0300 Subject: [PATCH] Improvement of help system --- src/PythonAddons/doc/PythonAddons.rst | 3 +++ src/PythonAddons/doc/boxFeature.rst | 3 +++ src/PythonAddons/doc/rectangleFeature.rst | 3 +++ src/PythonAddons/macros/box/widget.xml | 3 ++- src/XGUI/XGUI_Workshop.cpp | 9 ++++++--- 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/PythonAddons/doc/PythonAddons.rst create mode 100644 src/PythonAddons/doc/boxFeature.rst create mode 100644 src/PythonAddons/doc/rectangleFeature.rst 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); + } } } } -- 2.39.2