]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/ModuleBase_IModelWidget.h
Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModelWidget.h
1 /*
2  * ModuleBase_IModelWidget.h
3  *
4  *  Created on: Apr 30, 2014
5  *      Author: sbh
6  */
7
8 #ifndef MODULEBASE_IMODELWIDGET_H_
9 #define MODULEBASE_IMODELWIDGET_H_
10
11 #include <ModuleBase.h>
12 #include <QWidget>
13 #include <QString>
14
15 /*
16  * Common interface for widgets in the property panel.
17  * Every widget are able to save/restore data from the
18  * model and/or to contain other widgets.
19  *
20  * Also, there are some methods to simplify and accelerate
21  * searching of children.
22  */
23 class ModuleBase_IModelWidget
24 {
25 public:
26   //! Interface for saving widget's data into the data model
27   MODULEBASE_EXPORT virtual bool storeValue() = 0;
28   //! Interface for loading widget's data from the data model
29   MODULEBASE_EXPORT virtual bool restoreValue() = 0;
30 };
31
32 #endif /* MODULEBASE_IMODELWIDGET_H_ */