//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";
<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>
<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>
<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>
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);
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);