Salome HOME
Updating property pannel on sketch editing (refs #31)
[modules/shaper.git] / src / ModuleBase / ModuleBase_MetaWidget.h
1 /*
2  *
3  */
4
5 #ifndef MODULEBASE_METAWIDGET_H_
6 #define MODULEBASE_METAWIDGET_H_
7
8 #include <ModuleBase.h>
9 #include <ModuleBase_ModelWidget.h>
10
11 #include <ModelAPI_Feature.h>
12
13 #include <QWidget>
14
15 #include <boost/shared_ptr.hpp>
16
17 /*
18  *
19  */
20 class ModuleBase_MetaWidget : public ModuleBase_ModelWidget
21 {
22 public:
23   MODULEBASE_EXPORT ModuleBase_MetaWidget(QWidget* theWrapped);
24   virtual ~ModuleBase_MetaWidget();
25   //! Interface for saving widget's data into the data model
26   MODULEBASE_EXPORT virtual bool storeValue(boost::shared_ptr<ModelAPI_Feature> theFeature);
27   //! Interface for loading widget's data from the data model
28   MODULEBASE_EXPORT virtual bool restoreValue(boost::shared_ptr<ModelAPI_Feature> theFeature);
29
30 private:
31   QWidget* myWrappedWidget;
32 };
33
34 #endif /* MODULEBASE_METAWIDGET_H_ */