]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Connect Sketcher pictures to its pages
authorvsv <vsv@opencascade.com>
Tue, 7 Aug 2018 14:07:28 +0000 (17:07 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Fri, 10 Aug 2018 07:37:22 +0000 (10:37 +0300)
doc/gui/SketchPlugin/arcFeature.rst
doc/gui/SketchPlugin/circleFeature.rst
doc/gui/SketchPlugin/filletFeature.rst
doc/gui/SketchPlugin/intersectionFeature.rst
doc/gui/SketchPlugin/lineFeature.rst
doc/gui/SketchPlugin/pointFeature.rst
doc/gui/SketchPlugin/projectionFeature.rst
doc/gui/SketchPlugin/splitFeature.rst
doc/gui/SketchPlugin/trimFeature.rst
src/XGUI/XGUI_Workshop.cpp

index cbc880f69166981f18053e45c9e96045f03ab7f0..a830d1874576b59fed4fbfda1ebb98c241b9cea3 100644 (file)
@@ -1,3 +1,24 @@
 
 Arc
 ===
+
+
+.. image:: images/Arc1.png
+  :align: center
+
+.. centered::
+  Create arc by center and two points
+
+
+.. image:: images/Arc2.png
+  :align: center
+
+.. centered::
+  Create arc by three points
+
+
+.. image:: images/Arc3.png
+  :align: center
+
+.. centered::
+  Create arc as tangent to an edge
index 3142b2a9b871abfae8269927f8675baa19c50823..d0dc3f9e5b147e0dd1986cfd4b86709b2839ff93 100644 (file)
@@ -1,3 +1,17 @@
 
 Circle
 ======
+
+
+.. image:: images/Circle1.png
+  :align: center
+
+.. centered::
+  Create circle by center and point
+
+
+.. image:: images/Circle2.png
+  :align: center
+
+.. centered::
+  Create circle by tree points
index 879ce5953a167ddc713a0db1dabd59fef68d3a8a..ea7850060489d2e1add25b77933058e697eb11b7 100644 (file)
@@ -1,3 +1,10 @@
 
 Fillet
 ======
+
+
+.. image:: images/Fillet.png
+  :align: center
+
+.. centered::
+  Create a fillet
index d48c825a1aeeb2ca2de14ec951cb0cb2a8cf7e1b..f0998acaff04c2caffb2af4d270f1183defb1225 100644 (file)
@@ -1,3 +1,10 @@
 
 Intersection
 ============
+
+
+.. image:: images/Intersection.png
+  :align: center
+
+.. centered::
+  Create an intersection
index d50a2f6c738d427366ea12d4aa33bff734ba02b4..a182759764b7180bad66e7af0c072a40de0fddb1 100644 (file)
@@ -1,3 +1,10 @@
 
 Line
 ====
+
+
+.. image:: images/Line.png
+  :align: center
+
+.. centered::
+  Create a line
index 64f21b1673f60c4da77846432d451395d41db088..b344fcce0f9f09a54a41ef6805c97827e5baf46a 100644 (file)
@@ -1,3 +1,10 @@
 
 Point
 =====
+
+
+.. image:: images/Point.png
+  :align: center
+
+.. centered::
+  Create a point
index babf395698f30a686dcda3a7a26ed993c159f664..27f83721ecb8a36222f4f0b5a0b851303b30d25c 100644 (file)
@@ -1,3 +1,10 @@
 
 Projection
 ==========
+
+
+.. image:: images/Projection.png
+  :align: center
+
+.. centered::
+  Create a projection
index ad36430f9ce611bddf24eb69e4c5f46addd03d43..1f3beaf1ea071c07c230a2f9e8a4c784af4e0018 100644 (file)
@@ -1,3 +1,10 @@
 
 Split
 =====
+
+
+.. image:: images/Split.png
+  :align: center
+
+.. centered::
+  Split a line
index 7c9c2ce358fc77ad3ead03bda251679d45bc4beb..8ed75213589fd7408755e3772912c62b84f50113 100644 (file)
@@ -1,3 +1,10 @@
 
 Trim
 ====
+
+
+.. image:: images/Trim.png
+  :align: center
+
+.. centered::
+  Trim a line
index ea60b2aaa72515737956e043d93e0f78fffbe8d7..ebddf77c4e64eaca0a3c08e6884c273152052d6c 100755 (executable)
@@ -567,30 +567,33 @@ void XGUI_Workshop::onHelpActionClicked()
   if (anOperationMgr) {
     ModuleBase_Operation* aOperation = anOperationMgr->currentOperation();
     if (aOperation) {
-      QString aDocDir;
-      const QChar aSep = QDir::separator();
-      QString platform;
-      SUIT_ResourceMgr* aResMgr = ModuleBase_Preferences::resourceMgr();
+      QString aHelpPage = aOperation->helpFileName();
+      if (!aHelpPage.isEmpty()) {
+        QString aDocDir;
+        const QChar aSep = QDir::separator();
+        QString platform;
+        SUIT_ResourceMgr* aResMgr = ModuleBase_Preferences::resourceMgr();
 #ifdef WIN32
-      platform = "winapplication";
+        platform = "winapplication";
 #else
-      platform = "application";
+        platform = "application";
 #endif
-      QString aBrowserName = aResMgr->stringValue("ExternalBrowser", platform);
+        QString aBrowserName = aResMgr->stringValue("ExternalBrowser", platform);
 
 #ifdef HAVE_SALOME
-      QString aDir(getenv("SHAPER_ROOT_DIR"));
-      if (!aDir.isEmpty()) {
-        aDocDir = aDir + aSep + "share" + aSep + "doc" + aSep +
-          "salome" + aSep + "gui" + aSep + "SHAPER";
-      }
+        QString aDir(getenv("SHAPER_ROOT_DIR"));
+        if (!aDir.isEmpty()) {
+          aDocDir = aDir + aSep + "share" + aSep + "doc" + aSep +
+            "salome" + aSep + "gui" + aSep + "SHAPER";
+        }
 #else
-      QString aDir(getenv("OPENPARTS_ROOT_DIR"));
-      aDocDir = aDir + aSep + "doc";
+        QString aDir(getenv("OPENPARTS_ROOT_DIR"));
+        aDocDir = aDir + aSep + "doc";
 #endif
-      QStringList aParams;
-      aParams << aDocDir + aSep + aOperation->helpFileName();
-      QProcess::startDetached(aBrowserName, aParams);
+        QStringList aParams;
+        aParams << aDocDir + aSep + aHelpPage;
+        QProcess::startDetached(aBrowserName, aParams);
+      }
     }
   }
 }