4 * Created on: Apr 16, 2014
8 #ifndef XGUI_SWITCHWIDGET_H_
9 #define XGUI_SWITCHWIDGET_H_
17 class XGUI_EXPORT XGUI_SwitchWidget: public QFrame
21 XGUI_SwitchWidget(QWidget* parent = NULL);
22 virtual ~XGUI_SwitchWidget();
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 /* XGUI_SWITCHWIDGET_H_ */