]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/ModuleBase_WidgetToolbox.h
Salome HOME
Property pannel refactoring: focus processing in paged widgets
[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_PageBase;
16
17 class ModuleBase_WidgetToolbox : public ModuleBase_ModelWidget
18 {
19   Q_OBJECT
20  public:
21   ModuleBase_WidgetToolbox(QWidget* theParent, const Config_WidgetAPI* theData,
22                            const std::string& theParentId);
23   virtual ~ModuleBase_WidgetToolbox();
24
25   virtual bool restoreValue();
26   virtual QList<QWidget*> getControls() const;
27   virtual bool focusTo();
28
29   int addPage(QWidget* theWidget, const QString& theName, const QString& theCaseId);
30
31  protected:
32   virtual bool storeValueCustom() const;
33
34  protected slots:
35   void onPageChanged();
36
37  private:
38   QToolBox* myToolBox;
39   QStringList myCaseIds;
40 };
41
42 #endif /* MODULEBASE_WIDGETTOOLBOX_H_ */