~ubuntu-branches/ubuntu/vivid/regina-normal/vivid-proposed

« back to all changes in this revision

Viewing changes to kdeui/src/part/exttabctl.h

  • Committer: Package Import Robot
  • Author(s): Ben Burton
  • Date: 2011-09-10 07:17:25 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: package-import@ubuntu.com-20110910071725-97n90tywdq60w2cr
Tags: 4.90-1
* New upstream release!
* The user interface has been ported from KDE3 to KDE4 (closes: #556318).
  Re-enabled the GUI as a result.
* The build system has been ported from autotools to cmake.
* The new upstream release builds fine on amd64 (closes: #624882).
* Moved the users' handbook into regina-normal-doc.
* Upgraded several suggests/recommends.  Upgraded regina-normal-mpi to
  depend on mpi-default-bin, and regina-normal to depend on both graphviz
  and regina-normal-doc (which the GUI expends to be present).  Upgraded
  regina-normal to recommend gap.
* Bumped standards-version to 3.9.2.0 (no changes required).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/**************************************************************************
3
 
 *                                                                        *
4
 
 *  Regina - A Normal Surface Theory Calculator                           *
5
 
 *  KDE User Interface                                                    *
6
 
 *                                                                        *
7
 
 *  Copyright (c) 1999-2009, Ben Burton                                   *
8
 
 *  For further details contact Ben Burton (bab@debian.org).              *
9
 
 *                                                                        *
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.                       *
14
 
 *                                                                        *
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.                              *
19
 
 *                                                                        *
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.                                                   *
24
 
 *                                                                        *
25
 
 **************************************************************************/
26
 
 
27
 
/* end stub */
28
 
 
29
 
/*! \file exttabctl.h
30
 
 *  \brief Provides an extension to the KDE tabbed control.
31
 
 */
32
 
 
33
 
#ifndef __EXTTABCTL_H
34
 
#define __EXTTABCTL_H
35
 
 
36
 
#include <ktabctl.h>
37
 
 
38
 
/**
39
 
 * An extension to the KDE tabbed control.
40
 
 *
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
44
 
 * showTab().
45
 
 */
46
 
class ExtTabCtl : public KTabCtl {
47
 
    Q_OBJECT
48
 
 
49
 
    public:
50
 
        /**
51
 
         * Constructor and destructor.
52
 
         */
53
 
        ExtTabCtl(QWidget* parent = 0, const char* name = 0);
54
 
 
55
 
        /**
56
 
         * Change the current tab to the tab at the given index.
57
 
         */
58
 
        void setCurrentTab(int tabIndex);
59
 
};
60
 
 
61
 
inline ExtTabCtl::ExtTabCtl(QWidget* parent, const char* name) :
62
 
        KTabCtl(parent, name) {
63
 
    // Grr, KTabCtl should do this itself.
64
 
    setFocusProxy(tabs);
65
 
}
66
 
 
67
 
inline void ExtTabCtl::setCurrentTab(int tabIndex) {
68
 
    showTab(tabIndex);
69
 
}
70
 
 
71
 
#endif