Salome HOME
It removes obsolete code. In Mirror constraint setFlushed should not be called as...
[modules/shaper.git] / src / ModuleBase / ModuleBase_ToolBox.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_ToolBox.h
4 // Created:     10 August 2015
5 // Author:      Alexandre SOLOVYOV
6
7 #ifndef ModuleBase_ToolBox_H
8 #define ModuleBase_ToolBox_H
9
10 #include <ModuleBase.h>
11 #include <QFrame>
12
13 class QButtonGroup;
14 class QFrame;
15 class QHBoxLayout;
16 class QStackedWidget;
17
18 class MODULEBASE_EXPORT ModuleBase_ToolBox : public QFrame
19 {
20   Q_OBJECT
21
22 public:
23   ModuleBase_ToolBox( QWidget* theParent );
24   virtual ~ModuleBase_ToolBox();
25
26   void addItem( QWidget* thePage, const QString& theName, const QPixmap& theIcon );
27   int count() const;
28   int currentIndex() const;
29   void setCurrentIndex( const int );
30
31 signals:
32   void currentChanged( int );
33
34 private slots:
35   void onButton( int );
36
37 private:
38   QButtonGroup*   myButtonsGroup;
39   QFrame*         myButtonsFrame;
40   QHBoxLayout*    myButtonsLayout;
41   QStackedWidget* myStack;
42 };
43 #endif