2 * ModuleBase_IModelWidget.h
4 * Created on: Apr 30, 2014
8 #ifndef MODULEBASE_IMODELWIDGET_H_
9 #define MODULEBASE_IMODELWIDGET_H_
11 #include <ModuleBase.h>
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.
20 * Also, there are some methods to simplify and accelerate
21 * searching of children.
23 class ModuleBase_IModelWidget
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;
32 #endif /* MODULEBASE_IMODELWIDGET_H_ */