Salome HOME
"Internal" feature XML procesing. Fixes #40
[modules/shaper.git] / src / SketchPlugin / plugin-Sketch.xml
index 755458ba0fc99605d73719bde36b717845b723f4..5f100983e57b9645a43805fb5f94d5269709c26b 100644 (file)
@@ -1,18 +1,16 @@
 <plugin>
   <workbench id="Sketch">
     <group id="Basic">
-      <feature id="Sketch" text="New sketch" tooltip="Create a new sketch or edit an existing sketch" icon=":icons/sketch.png"/>
-    </group>
-    <group id="Operations">
-      <feature id="Point" text="New point" tooltip="Create a new point" icon=":icons/point.png">
-        <doublevalue id="x" label="X:" min="0" max="" step="0.1" default="0"
-               icon=":pictures/x_point.png" tooltip="Set X"/>
-        <doublevalue id="y" label="Y:" min="0" max="" step="0.1" default="1"
-               icon=":pictures/y_point.png" tooltip="Set Y"/>
-        <doublevalue id="z" label="Z:" min="0" max="10" step="0.1" default="2"
-               icon=":pictures/z_point.png" tooltip="Set Z"/>
+      <feature id="Sketch" nested="SketchLine" text="New sketch" tooltip="Create a new sketch or edit an existing sketch" icon=":icons/sketch.png">
+        <label text="Select a plane on which to create a sketch" tooltip="Select a plane on which to create a sketch"/> 
+      <!--icon=":pictures/x_point.png"-->
+      </feature>
+      <feature id="SketchPoint" text="Point" tooltip="Create a new point" icon=":icons/point.png"/>
+      <feature id="SketchLine" text="Line" tooltip="Create a new line" icon=":icons/line.png">
+        <point_selector id="StartPoint" title="Start point" tooltip="Start point of the line"/>
+        <point_selector id="EndPoint" title="End point" tooltip="End point of the line"/>
       </feature>
-      <feature id="Line" text="New line" tooltip="Create a new line" icon=":icons/line.png"/>
+      <feature id="SketchConstraintCoincidence" text="Points coincidence" tooltip="Create constraint for the coincidence of two points" internal="1"/>
     </group>
   </workbench>
 </plugin>