1 // File: PartSet_WidgetSketchLabel.h
2 // Created: 07 July 2014
3 // Author: Vitaly SMETANNIKOV
5 #ifndef PartSet_WidgetSketchLabel_H
6 #define PartSet_WidgetSketchLabel_H
10 #include <ModuleBase_ModelWidget.h>
13 class XGUI_OperationMgr;
15 class PARTSET_EXPORT PartSet_WidgetSketchLabel : public ModuleBase_ModelWidget
19 PartSet_WidgetSketchLabel(QWidget* theParent, const Config_WidgetAPI* theData);
21 virtual ~PartSet_WidgetSketchLabel() {};
23 /// Saves the internal parameters to the given feature
24 /// \param theFeature a model feature to be changed
25 virtual bool storeValue(FeaturePtr theFeature) const { return true;}
27 virtual bool restoreValue(FeaturePtr theFeature) { return true;}
29 /// Returns list of widget controls
30 /// \return a control list
31 virtual QList<QWidget*> getControls() const;
33 QWidget* getControl() const;
35 void setOperationsMgr(XGUI_OperationMgr* theMgr);
38 void onPlaneSelected();