]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
It removes SketchShapePlugin from plugins
authornds <nds@opencascade.com>
Thu, 17 Dec 2015 15:38:31 +0000 (18:38 +0300)
committernds <nds@opencascade.com>
Thu, 17 Dec 2015 15:38:56 +0000 (18:38 +0300)
First code for Status Bar.

src/Config/plugins.xml
src/ModuleBase/ModuleBase_IModule.cpp
src/ModuleBase/ModuleBase_Preferences.cpp

index 45903311b7f071242080f25252c200b1d57d4171..90a80b50b6be903570f9339620c5fa11b6fac8ac 100644 (file)
@@ -5,7 +5,6 @@
   <plugin library="InitializationPlugin"/>
   <plugin library="PartSetPlugin" configuration="plugin-PartSet.xml"/>
   <plugin library="SketchPlugin" configuration="plugin-Sketch.xml"/>
-  <plugin library="SketchShapePlugin" configuration="plugin-SketchShape.xml"/>
   <plugin library="ConstructionPlugin" configuration="plugin-Construction.xml"/>
   <plugin library="FeaturesPlugin" configuration="plugin-Features.xml"/>
   <plugin library="ExchangePlugin" configuration="plugin-Exchange.xml"/>
index 35d09d0def4e24b791e1dccde7a602943a3d731f..a4fb017577a7bc20c8d46fd5d92e489cdc418fa6 100644 (file)
@@ -129,6 +129,7 @@ void ModuleBase_IModule::createFeatures()
 
 void ModuleBase_IModule::actionCreated(QAction* theFeature)
 {
+  theFeature->setStatusTip(theFeature->text());
   connect(theFeature, SIGNAL(triggered(bool)), this, SLOT(onFeatureTriggered()));
 }
 
index 1cd5e702f07e0c517ccde10f55606aa749fa74e3..bc7864833c5abb214a1ba6dfad763a233a0d9fc3 100644 (file)
@@ -301,6 +301,10 @@ void ModuleBase_PreferencesDlg::createMenuPage(int thePageId)
                                        "rows_number");
   myPreferences->setItemProperty("min", 1, aRowsNb);
   myPreferences->setItemProperty("max", 6, aRowsNb);
+
+  myPreferences->addItem(tr("Show Status Bar"), aSizeGroup,
+                         SUIT_PreferenceMgr::Bool, ModuleBase_Preferences::MENU_SECTION,
+                         "status_bar");
 }
 
 void ModuleBase_PreferencesDlg::accept()