Salome HOME
Parameters manager implementation
[modules/shaper.git] / src / ParametersPlugin / ParametersPlugin_WidgetParamsMgr.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:        ParametersPlugin_WidgetParamsMgr.h
4 // Created:     11 Apr 2016
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ParametersPlugin_WidgetParamsMgr_H_
8 #define ParametersPlugin_WidgetParamsMgr_H_
9
10 #include <ModuleBase_ModelWidget.h>
11
12 class QTreeWidget;
13
14 /*!
15  * \ingroup GUI
16  * Represent a content of the property panel to show/modify parameters of some feature.
17  */
18 class ParametersPlugin_WidgetParamsMgr : public ModuleBase_ModelWidget
19 {
20  Q_OBJECT
21 public:
22   /// Constructs a model widget
23   ParametersPlugin_WidgetParamsMgr(QWidget* theParent, const Config_WidgetAPI* theData);
24
25   /// Destructs the model widget
26   virtual ~ParametersPlugin_WidgetParamsMgr() {}
27
28   /// Returns list of widget controls
29   /// \return a control list
30   virtual QList<QWidget*> getControls() const;
31
32 protected:
33   /// Saves the internal parameters to the given feature
34   /// \return True in success
35   virtual bool storeValueCustom() const;
36
37   /// Restore value from attribute data to the widget's control
38   virtual bool restoreValueCustom();
39
40 private:
41
42   QTreeWidget* myTable;
43 };
44
45
46 #endif