Salome HOME
c57c75e02d625061ab943ebb23e93d3ce179939f
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetToolbox.h
1 /*
2  * ModuleBase_WidgetToolbox.h
3  *
4  *  Created on: Feb 27, 2015
5  *      Author: sbh
6  */
7
8 #ifndef MODULEBASE_WIDGETTOOLBOX_H_
9 #define MODULEBASE_WIDGETTOOLBOX_H_
10
11 #include <ModuleBase_ModelWidget.h>
12
13 #include <QToolBox>
14
15 class ModuleBase_WidgetToolbox : public ModuleBase_ModelWidget
16 {
17   Q_OBJECT
18  public:
19   ModuleBase_WidgetToolbox(QWidget* theParent, const Config_WidgetAPI* theData,
20                            const std::string& theParentId);
21   virtual ~ModuleBase_WidgetToolbox();
22
23   virtual bool restoreValue();
24   virtual QList<QWidget*> getControls() const;
25
26   int addPage(QWidget* theWidget, const QString& theName, const QString& theCaseId);
27
28  protected:
29   virtual bool storeValueCustom() const;
30
31  protected slots:
32   void onPageChanged();
33
34  private:
35   QToolBox* myToolBox;
36   QStringList myCaseIds;
37 };
38
39 #endif /* MODULEBASE_WIDGETTOOLBOX_H_ */