2
/**************************************************************************
4
* Regina - A Normal Surface Theory Calculator *
7
* Copyright (c) 1999-2009, Ben Burton *
8
* For further details contact Ben Burton (bab@debian.org). *
10
* This program is free software; you can redistribute it and/or *
11
* modify it under the terms of the GNU General Public License as *
12
* published by the Free Software Foundation; either version 2 of the *
13
* License, or (at your option) any later version. *
15
* This program is distributed in the hope that it will be useful, but *
16
* WITHOUT ANY WARRANTY; without even the implied warranty of *
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18
* General Public License for more details. *
20
* You should have received a copy of the GNU General Public *
21
* License along with this program; if not, write to the Free *
22
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
23
* MA 02110-1301, USA. *
25
**************************************************************************/
30
* \brief Provides an extension to the KDE tabbed control.
39
* An extension to the KDE tabbed control.
41
* A public routine setCurrentTab() is provided to allow external
42
* entities to change the currently visible tab. For KTabCtl this
43
* functionality is only available through the protected method
46
class ExtTabCtl : public KTabCtl {
51
* Constructor and destructor.
53
ExtTabCtl(QWidget* parent = 0, const char* name = 0);
56
* Change the current tab to the tab at the given index.
58
void setCurrentTab(int tabIndex);
61
inline ExtTabCtl::ExtTabCtl(QWidget* parent, const char* name) :
62
KTabCtl(parent, name) {
63
// Grr, KTabCtl should do this itself.
67
inline void ExtTabCtl::setCurrentTab(int tabIndex) {