1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * ModuleBase_WidgetSwitch.h
6 * Created on: Apr 16, 2014
10 #ifndef ModuleBase_WidgetSwitch_H_
11 #define ModuleBase_WidgetSwitch_H_
13 #include <ModuleBase.h>
19 class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public QFrame
23 ModuleBase_WidgetSwitch(QWidget* parent = NULL);
24 virtual ~ModuleBase_WidgetSwitch();
26 int addPage(QWidget * theWidget, const QString & theName);
28 int currentIndex() const;
29 QWidget * currentWidget() const;
30 int indexOf(QWidget * theWidget) const;
31 int insertPage(int index, QWidget * theWidget, const QString & theName);
32 bool isPageEnabled(int index) const;
33 QString pageText(int index) const;
34 QString pageToolTip(int index) const;
35 void removePage(int index);
36 void setPageEnabled(int index, bool enabled);
37 void setPageName(int index, const QString & text);
38 void setPageToolTip(int index, const QString & toolTip);
41 void setCurrentIndex(int index);
44 void currentPageChanged(int);
50 QVBoxLayout* myMainLay;
55 #endif /* ModuleBase_WidgetSwitch_H_ */