5 #ifndef MODULEBASE_METAWIDGET_H_
6 #define MODULEBASE_METAWIDGET_H_
8 #include <ModuleBase.h>
9 #include <ModuleBase_ModelWidget.h>
11 #include <ModelAPI_Feature.h>
15 #include <boost/shared_ptr.hpp>
20 class ModuleBase_MetaWidget : public ModuleBase_ModelWidget
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);
31 QWidget* myWrappedWidget;
34 #endif /* MODULEBASE_METAWIDGET_H_ */