X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetShapeSelector.h;h=7d0a453f6931e4c25646fd6aac9bc739c57e5942;hb=6920ebc7d04391d5a1de785c8bed0301c3fab205;hp=760e371a82ce489cccab6889e26694252e5f87c7;hpb=9ebd551ac78366b4a21e97e4d6a3b911f717ff9a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.h b/src/ModuleBase/ModuleBase_WidgetShapeSelector.h index 760e371a8..7d0a453f6 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.h @@ -27,6 +27,8 @@ class MODULEBASE_EXPORT ModuleBase_WidgetShapeSelector : public ModuleBase_Model { Q_OBJECT public: + static TopAbs_ShapeEnum shapeType(const QString& theType); + ModuleBase_WidgetShapeSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop, const Config_WidgetAPI* theData, const std::string& theParentId); @@ -76,11 +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); - - static TopAbs_ShapeEnum shapeType(const QString& theType); + void setObject(ObjectPtr theObj, boost::shared_ptr theShape = boost::shared_ptr()); QWidget* myContainer; QLabel* myLabel;