Salome HOME
Updates for stability of application
[modules/shaper.git] / src / ModuleBase / ModuleBase_MetaWidget.cpp
index 442be7daedaacb6b386f18233897fad96e1487d2..308cc3065fa743b363d6469f3d6821baae8ee150 100644 (file)
@@ -9,10 +9,9 @@
 #include <iostream>
 #endif
 
-ModuleBase_MetaWidget::ModuleBase_MetaWidget(const QString& theId,
-                                               QWidget* theWrapped,
-                                               boost::shared_ptr<ModelAPI_Feature> theFeature)
-    : myId(theId), myWrappedWidget(theWrapped), myFeature(theFeature)
+ModuleBase_MetaWidget::ModuleBase_MetaWidget(QWidget* theWrapped)
+    : ModuleBase_ModelWidget(theWrapped->parent()),
+      myWrappedWidget(theWrapped)
 {
 
 }
@@ -22,7 +21,7 @@ ModuleBase_MetaWidget::~ModuleBase_MetaWidget()
 
 }
 
-bool ModuleBase_MetaWidget::storeValue()
+bool ModuleBase_MetaWidget::storeValue(boost::shared_ptr<ModelAPI_Feature> theFeature)
 {
   #ifdef _DEBUG
   std::cout << "ModuleBase_MetaWidget::storeValue"
@@ -31,7 +30,7 @@ bool ModuleBase_MetaWidget::storeValue()
   return true;
 }
 
-bool ModuleBase_MetaWidget::restoreValue()
+bool ModuleBase_MetaWidget::restoreValue(boost::shared_ptr<ModelAPI_Feature> theFeature)
 {
   #ifdef _DEBUG
   std::cout << "ModuleBase_MetaWidget::restoreValue"