]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #21 xml property renamed "text" -> "title".
authorsbh <sergey.belash@opencascade.com>
Fri, 23 May 2014 08:13:39 +0000 (12:13 +0400)
committersbh <sergey.belash@opencascade.com>
Fri, 23 May 2014 08:13:39 +0000 (12:13 +0400)
src/Config/Config_Keywords.h
src/ConstructionPlugin/plugin-Construction.xml
src/PartSetPlugin/plugin-PartSet.xml
src/SketchPlugin/plugin-Sketch.xml
src/XGUI/XGUI_PropertyPanel.cpp
src/XGUI/XGUI_Workshop.cpp

index 25433ffa9ad55ca8143bb309167cb368645e9919..2056a658bff44d66ffcb4630482371009760d120 100644 (file)
@@ -34,7 +34,7 @@ const static char* _ID = "id";
 //const static char* WORKBENCH_ID = "id";
 //const static char* GROUP_ID = "id";
 //const static char* FEATURE_ID = "id";
-const static char* FEATURE_TEXT = "text";
+const static char* FEATURE_TEXT = "title";
 const static char* FEATURE_TOOLTIP = "tooltip";
 const static char* FEATURE_ICON = "icon";
 const static char* FEATURE_KEYSEQUENCE = "keysequence";
index 26a27bc83ef32f3b901e92ccc6d691dbe96bd10b..8e86996877b49bbee33942038b5b299bee4152fb 100644 (file)
@@ -1,11 +1,11 @@
 <plugin>
   <workbench id="Construction">
     <group id="Basic">
-      <feature id="Point" text="Point" tooltip="Create a new point" icon=":icons/point.png">
+      <feature id="Point" title="Point" tooltip="Create a new point" icon=":icons/point.png">
         <source path="point_widget.xml"/>
       </feature>
-      <feature id="Axis" text="Axis" tooltip="Create a new axis" icon=":icons/axis.png" keysequence="" internal="true"/>
-      <feature id="Plane" text="Plane" tooltip="Create a new plane" icon=":icons/plane.png" keysequence="" internal="true"/>
+      <feature id="Axis" title="Axis" tooltip="Create a new axis" icon=":icons/axis.png" keysequence="" internal="true"/>
+      <feature id="Plane" title="Plane" tooltip="Create a new plane" icon=":icons/plane.png" keysequence="" internal="true"/>
     </group>
   </workbench>  
 </plugin>
index 4b3391da8b846dc2cb0e0e8923da0f884b72975d..07438b2d2e62169747a0da8849c4573d63a9f909 100644 (file)
@@ -1,9 +1,9 @@
 <plugin>
   <workbench id="Part">
     <group id="Operations">
-      <feature id="Part" text="New part" tooltip="Creates a new part" icon=":pictures/part_ico.png"/>
-      <feature id="duplicate" text="Duplicate" tooltip="Duplicate selected object" icon=":icons/duplicate.png"/>
-      <feature id="remove" text="Remove"  tooltip="Remove selected object" icon=":icons/remove.png"/>
+      <feature id="Part" title="New part" tooltip="Creates a new part" icon=":pictures/part_ico.png"/>
+      <feature id="duplicate" title="Duplicate" tooltip="Duplicate selected object" icon=":icons/duplicate.png"/>
+      <feature id="remove" title="Remove"  tooltip="Remove selected object" icon=":icons/remove.png"/>
     </group>
   </workbench>
 </plugin>
index ab6db0ae8bb5266bce2f3c8da6985ee8812fb3a1..706d85f3b1ae8258e016209da1e57b83403f6f9e 100644 (file)
@@ -1,16 +1,16 @@
 <plugin>
   <workbench id="Sketch">
     <group id="Basic">
-      <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"/> 
+      <feature id="Sketch" nested="SketchLine" title="New sketch" tooltip="Create a new sketch or edit an existing sketch" icon=":icons/sketch.png">
+        <label title="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" internal="1"/>
-      <feature id="SketchLine" text="Line" tooltip="Create a new line" icon=":icons/line.png">
+      <feature id="SketchPoint" title="Point" tooltip="Create a new point" icon=":icons/point.png" internal="1"/>
+      <feature id="SketchLine" title="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="SketchConstraintCoincidence" text="Points coincidence" tooltip="Create constraint for the coincidence of two points" internal="1"/>
+      <feature id="SketchConstraintCoincidence" title="Points coincidence" tooltip="Create constraint for the coincidence of two points" internal="1"/>
     </group>
   </workbench>
 </plugin>
index 5067484718d39a2fc1d9fbea5983ce0f6ca6da17..ccf0469cfc2944b3d30b38fce8fbc867bbfcca27 100644 (file)
@@ -24,6 +24,7 @@ XGUI_PropertyPanel::XGUI_PropertyPanel(QWidget* theParent)
   this->setWindowTitle(tr("Property Panel"));
   QAction* aViewAct = this->toggleViewAction();
   this->setObjectName(XGUI::PROP_PANEL);
+  setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }");
 
   QWidget* aContent = new QWidget(this);
   QVBoxLayout* aMainLay = new QVBoxLayout(aContent);
index 40a31159a878e85a88d36aa7a51e2f6a579a22cd..db3d1b21402d19a01b62318605e026953840f035 100644 (file)
@@ -662,6 +662,7 @@ QDockWidget* XGUI_Workshop::createObjectBrowser(QWidget* theParent)
   QDockWidget* aObjDock = new QDockWidget(theParent);
   aObjDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
   aObjDock->setWindowTitle(tr("Object browser"));
+  aObjDock->setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }");
   myObjectBrowser = new XGUI_ObjectsBrowser(aObjDock);
   connect(myObjectBrowser, SIGNAL(activePartChanged(FeaturePtr)), this, SLOT(changeCurrentDocument(FeaturePtr)));
   aObjDock->setWidget(myObjectBrowser);