From: vsv Date: Wed, 30 Apr 2014 13:10:07 +0000 (+0400) Subject: Hide property panel on module activation (ref #31) X-Git-Tag: V_0.2~97 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d3cc4fc51a569caa7eaab2d62457594ad93b5589;p=modules%2Fshaper.git Hide property panel on module activation (ref #31) --- diff --git a/src/NewGeom/NewGeom_Module.cpp b/src/NewGeom/NewGeom_Module.cpp index 7ef9d61f1..016cb735c 100644 --- a/src/NewGeom/NewGeom_Module.cpp +++ b/src/NewGeom/NewGeom_Module.cpp @@ -10,13 +10,15 @@ #include #include #include -#include +#include #include #include #include +#include + extern "C" { NewGeom_EXPORT CAM_Module* createModule() { return new NewGeom_Module(); @@ -68,6 +70,7 @@ bool NewGeom_Module::activateModule(SUIT_Study* theStudy) if (isDone) { setMenuShown( true ); setToolShown( true ); + myWorkshop->propertyPanel()->hide(); if (!mySelector) { ViewManagerList OCCViewManagers; diff --git a/src/XGUI/XGUI_Workshop.h b/src/XGUI/XGUI_Workshop.h index f3e31fa88..03e21ed31 100644 --- a/src/XGUI/XGUI_Workshop.h +++ b/src/XGUI/XGUI_Workshop.h @@ -65,6 +65,9 @@ public: //! ! Returns an actions manager XGUI_ActionsMgr* actionsMgr() const { return myActionsMgr; }; + //! Returns property panel widget + QDockWidget* propertyPanel() const { return myPropertyPanelDock; } + //! Creates and adds a new workbench (menu group) with the given name and returns it XGUI_Workbench* addWorkbench(const QString& theName);