Salome HOME
Abort Sketch by click on the button in the tool bar. Abort nested opened operations.
[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.h>
12 #include <ModuleBase_PagedContainer.h>
13
14 #include <QToolBox>
15
16 class ModuleBase_PageBase;
17
18 class MODULEBASE_EXPORT ModuleBase_WidgetToolbox : public ModuleBase_PagedContainer
19 {
20   Q_OBJECT
21  public:
22   ModuleBase_WidgetToolbox(QWidget* theParent, const Config_WidgetAPI* theData,
23                            const std::string& theParentId);
24   virtual ~ModuleBase_WidgetToolbox();
25   /// Overrides ModuleBase_PagedContainer
26   int addPage(ModuleBase_PageBase* theWidget,
27               const QString& theName, const QString& theCaseId);
28
29  protected:
30   /// Implements ModuleBase_PagedContainer
31   virtual int currentPageIndex() const;
32   /// Implements ModuleBase_PagedContainer
33   virtual void setCurrentPageIndex(int);
34
35  private:
36   QToolBox* myToolBox;
37 };
38
39 #endif /* MODULEBASE_WIDGETTOOLBOX_H_ */