4 * John Levon, moz@compsoc.man.ac.uk
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
26 #include "boost/utility.hpp"
29 * This widget provides a tab bar which can switch between a stack
32 class TabStack : public QWidget, public noncopyable {
35 TabStack(QWidget * parent = 0, const char * name = 0);
39 /// add a page widget to the stack
40 virtual int addTabPage(QWidget *, const char *);
41 /// set the enabled status of a tab page
42 virtual void setTabPageEnabled(int, bool);
43 /// is a tab page enabled ?
44 virtual bool isTabPageEnabled(int) const;
45 /// raise the given tab page
46 virtual void setCurrentTabPage(int);
47 /// which tab page is currently on top
48 virtual int currentTabPage(void) const;
51 virtual void selected(int);
54 virtual void paintEvent(QPaintEvent *);
59 QHBoxLayout *topLayout;