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;
14 class PartSet_OperationSketch;
16 class PARTSET_EXPORT PartSet_WidgetSketchLabel : public ModuleBase_ModelWidget
20 PartSet_WidgetSketchLabel(QWidget* theParent, const Config_WidgetAPI* theData);
22 virtual ~PartSet_WidgetSketchLabel() {};
24 /// Saves the internal parameters to the given feature
25 /// \param theFeature a model feature to be changed
26 virtual bool storeValue(FeaturePtr theFeature) const { return true;}
28 virtual bool restoreValue(FeaturePtr theFeature) { return true;}
30 /// Returns list of widget controls
31 /// \return a control list
32 virtual QList<QWidget*> getControls() const;
34 QWidget* getControl() const;
36 void setOperationsMgr(XGUI_OperationMgr* theMgr);
39 void onPlaneSelected();
42 void updateLabel(PartSet_OperationSketch* theSketchOpe);