X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetShapeSelector.h;h=7d0a453f6931e4c25646fd6aac9bc739c57e5942;hb=6920ebc7d04391d5a1de785c8bed0301c3fab205;hp=7446122705d4af04dddb8dc2c8fc460cd363a11d;hpb=496c2223e35ace4a376cc84d8eea529aa3138352;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.h b/src/ModuleBase/ModuleBase_WidgetShapeSelector.h index 744612270..7d0a453f6 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.h @@ -9,6 +9,7 @@ #include "ModuleBase_ModelWidget.h" #include +#include #include @@ -77,9 +78,10 @@ private: void updateSelectionName(); void raisePanel() const; bool isAccepted(const ObjectPtr theObject) const; + bool isAccepted(boost::shared_ptr theShape) const; // Set the given object as a value of the widget - void setObject(ObjectPtr theObj); + void setObject(ObjectPtr theObj, boost::shared_ptr theShape = boost::shared_ptr()); QWidget* myContainer; QLabel* myLabel; @@ -89,8 +91,13 @@ private: ModuleBase_IWorkshop* myWorkshop; ObjectPtr mySelectedObject; + boost::shared_ptr myShape; + QStringList myShapeTypes; + /// If true then local selector has to be activated in context + bool myUseSubShapes; + QPalette myBasePalet; QPalette myInactivePalet;