Salome HOME
Updates for stability of application
[modules/shaper.git] / src / ModuleBase / ModuleBase_MetaWidget.cpp
1 /*
2  *
3  */
4
5 #include <ModuleBase_MetaWidget.h>
6 #include <QMetaObject>
7
8 #ifdef _DEBUG
9 #include <iostream>
10 #endif
11
12 ModuleBase_MetaWidget::ModuleBase_MetaWidget(QWidget* theWrapped)
13     : ModuleBase_ModelWidget(theWrapped->parent()),
14       myWrappedWidget(theWrapped)
15 {
16
17 }
18
19 ModuleBase_MetaWidget::~ModuleBase_MetaWidget()
20 {
21
22 }
23
24 bool ModuleBase_MetaWidget::storeValue(boost::shared_ptr<ModelAPI_Feature> theFeature)
25 {
26   #ifdef _DEBUG
27   std::cout << "ModuleBase_MetaWidget::storeValue"
28             << myWrappedWidget->metaObject()->className() << std::endl;
29   #endif
30   return true;
31 }
32
33 bool ModuleBase_MetaWidget::restoreValue(boost::shared_ptr<ModelAPI_Feature> theFeature)
34 {
35   #ifdef _DEBUG
36   std::cout << "ModuleBase_MetaWidget::restoreValue"
37             << myWrappedWidget->metaObject()->className() << std::endl;
38   #endif
39   return true;
40 }