Salome HOME
Result attributes validators created
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.h
index 1419cc6670cb1e7d5a4737f1064211fb27240b80..558747b46864da25f2bb5eb7dec59e0ce730a964 100644 (file)
 
 class QLabel;
 class XGUI_OperationMgr; 
+class PartSet_OperationSketch;
 
 class PARTSET_EXPORT PartSet_WidgetSketchLabel : public ModuleBase_ModelWidget
 {
   Q_OBJECT
 public:
-  PartSet_WidgetSketchLabel(QWidget* theParent, const Config_WidgetAPI* theData);
+  PartSet_WidgetSketchLabel(QWidget* theParent, 
+    const Config_WidgetAPI* theData, 
+    const std::string& theParentId);
 
   virtual ~PartSet_WidgetSketchLabel() {};
 
   /// Saves the internal parameters to the given feature
   /// \param theFeature a model feature to be changed
-  virtual bool storeValue(FeaturePtr theFeature) const { return true;}
+  virtual bool storeValue(ObjectPtr theFeature) const { return true;}
 
-  virtual bool restoreValue(FeaturePtr theFeature) { return true;}
+  virtual bool restoreValue(ObjectPtr theFeature) { return true;}
 
   /// Returns list of widget controls
   /// \return a control list
@@ -38,6 +41,8 @@ private slots:
   void onPlaneSelected();
 
 private:
+  void updateLabel(PartSet_OperationSketch* theSketchOpe);
+
   QLabel* myLabel;
   QString myText;
   QString myTooltip;