2 * ModuleBase_WidgetSwitch.h
4 * Created on: Apr 16, 2014
8 #ifndef ModuleBase_WidgetSwitch_H_
9 #define ModuleBase_WidgetSwitch_H_
11 #include <ModuleBase.h>
17 class MODULEBASE_EXPORT ModuleBase_WidgetSwitch : public QFrame
21 ModuleBase_WidgetSwitch(QWidget* parent = NULL);
22 virtual ~ModuleBase_WidgetSwitch();
24 int addPage(QWidget * theWidget, const QString & theName);
26 int currentIndex() const;
27 QWidget * currentWidget() const;
28 int indexOf(QWidget * theWidget) const;
29 int insertPage(int index, QWidget * theWidget, const QString & theName);
30 bool isPageEnabled(int index) const;
31 QString pageText(int index) const;
32 QString pageToolTip(int index) const;
33 void removePage(int index);
34 void setPageEnabled(int index, bool enabled);
35 void setPageName(int index, const QString & text);
36 void setPageToolTip(int index, const QString & toolTip);
39 void setCurrentIndex(int index);
42 void currentPageChanged(int);
48 QVBoxLayout* myMainLay;
53 #endif /* ModuleBase_WidgetSwitch_H_ */