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 ***************************************************************************/
25 #include "boost/utility.hpp"
28 * This widget provides a tab bar which can switch between a stack
31 class TabStack : public QWidget, public noncopyable {
34 TabStack(QWidget * parent = 0, const char * name = 0);
38 /// add a page widget to the stack
39 virtual int addTabPage(QWidget *, const char *);
40 /// set the enabled status of a tab page
41 virtual void setTabPageEnabled(int, bool);
42 /// is a tab page enabled ?
43 virtual bool isTabPageEnabled(int) const;
44 /// raise the given tab page
45 virtual void setCurrentTabPage(int);
46 /// which tab page is currently on top
47 virtual int currentTabPage(void) const;
51 virtual void show(void);
54 /// a tab page has been selected
55 virtual void selected(int);
58 virtual void paintEvent(QPaintEvent *);
66 QBoxLayout *topLayout;