Salome HOME
refs #836: the icons of extrusion options with size 32x32
[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 class ModuleBase_PageBase;
15 class ModuleBase_ToolBox;
16
17 class MODULEBASE_EXPORT ModuleBase_WidgetToolbox : public ModuleBase_PagedContainer
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   /// Defines if it is supported to set the value in this widget
26   /// It returns false because this is an info widget
27   virtual bool canSetValue() const { return false; };
28
29   /// Overrides ModuleBase_PagedContainer
30   virtual int addPage( ModuleBase_PageBase* theWidget,
31                        const QString& theName,
32                        const QString& theCaseId,
33                        const QPixmap& theIcon );
34
35  protected:
36   /// Implements ModuleBase_PagedContainer
37   virtual int currentPageIndex() const;
38   /// Implements ModuleBase_PagedContainer
39   virtual void setCurrentPageIndex(int);
40
41  private:
42   ModuleBase_ToolBox* myToolBox;
43 };
44
45 #endif /* MODULEBASE_WIDGETTOOLBOX_H_ */