Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[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(const QString& theId,
13                                                QWidget* theWrapped,
14                                                boost::shared_ptr<ModelAPI_Feature> theFeature)
15     : myId(theId), myWrappedWidget(theWrapped), myFeature(theFeature)
16 {
17
18 }
19
20 ModuleBase_MetaWidget::~ModuleBase_MetaWidget()
21 {
22
23 }
24
25 bool ModuleBase_MetaWidget::storeValue()
26 {
27   #ifdef _DEBUG
28   std::cout << "ModuleBase_MetaWidget::storeValue"
29             << myWrappedWidget->metaObject()->className() << std::endl;
30   #endif
31   return true;
32 }
33
34 bool ModuleBase_MetaWidget::restoreValue()
35 {
36   #ifdef _DEBUG
37   std::cout << "ModuleBase_MetaWidget::restoreValue"
38             << myWrappedWidget->metaObject()->className() << std::endl;
39   #endif
40   return true;
41 }