1 // File: ModuleBase_WidgetCustom.h
2 // Created: 25 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef ModuleBase_WidgetCustom_H
6 #define ModuleBase_WidgetCustom_H
8 #include <ModuleBase.h>
12 #include <boost/shared_ptr.hpp>
14 class ModelAPI_Feature;
16 /**\class ModuleBase_WidgetCustom
18 * \brief An abstract custom widget class. This class realization is assumed to create some controls.
19 * The controls values modification should send signal about values change. Method store is used to fill
20 * the feature with the
22 class MODULEBASE_EXPORT ModuleBase_WidgetCustom : public QObject
27 /// \theParent the parent object
28 ModuleBase_WidgetCustom(QObject* theParent) :QObject(theParent) {};
30 virtual ~ModuleBase_WidgetCustom() {};
32 /// Saves the internal parameters to the given feature
33 /// \param theFeature a model feature to be changed
34 virtual void store(boost::shared_ptr<ModelAPI_Feature> theFeature) = 0;
37 /// The signal about widget values changed