3
<TITLE>Source: totabwidget.h</TITLE>
5
<META NAME="Generator" CONTENT="KDOC ">
7
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
8
<TABLE WIDTH="100%" BORDER="0">
12
<TR><TD valign="top" align="left" cellspacing="10">
13
<h1>Source: totabwidget.h</h1>
15
<TD valign="top" align="right" colspan="1"></TD></TR>
22
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
23
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
24
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
25
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
26
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
27
</TABLE></TD></TR></TABLE>
31
* TOra - An Oracle Toolkit for DBA's and developers
32
* Copyright (C) 2003-2005 Quest Software, Inc
33
* Portions Copyright (C) 2005 Other Contributors
35
* This program is free software; you can redistribute it and/or
36
* modify it under the terms of the GNU General Public License
37
* as published by the Free Software Foundation; only version 2 of
38
* the License is valid for this program.
40
* This program is distributed in the hope that it will be useful,
41
* but WITHOUT ANY WARRANTY; without even the implied warranty of
42
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43
* GNU General Public License for more details.
45
* You should have received a copy of the GNU General Public License
46
* along with this program; if not, write to the Free Software
47
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
49
* As a special exception, you have permission to link this program
50
* with the Oracle Client libraries and distribute executables, as long
51
* as you follow the requirements of the GNU GPL in regard to all of the
52
* software in the executable aside from Oracle client libraries.
54
* Specifically you are not permitted to link this program with the
55
* Qt/UNIX, Qt/Windows or Qt Non Commercial products of TrollTech.
56
* And you are not permitted to distribute binaries compiled against
57
* these libraries without written consent from Quest Software, Inc.
58
* Observe that this does not disallow linking to the Qt Free Edition.
60
* You may link this product with any GPL'd Qt library such as Qt/Free
62
* All trademarks belong to their respective owners.
70
#include <qtabwidget.h>
73
/** An extension of the regular tab bar with an extension to be able to hide
74
* tabs without removing them.
77
class toTabBar : public QTabBar {
85
barTab(QTab *tab,bool shown)
86
{ Tab=tab; Shown=shown; }
89
std::list<barTab> Tabs;
90
QTab *copyTab(QTab *tab);
94
toTabBar(QWidget *parent=0,const char *name=0)
95
: QTabBar(parent,name)
97
/** Reimplemented for internal reasons.
99
virtual int insertTab(QTab *newTab,int ix=-1);
100
/** Reimplemented for internal reasons.
102
virtual int addTab(QTab *newTab)
103
{ return insertTab(newTab); }
104
/** Reimplemented for internal reasons.
106
virtual void removeTab(QTab *t);
108
/** Reimplemented for internal reasons.
110
virtual void layoutTabs();
111
/** Specify if a tab is shown.
112
* @param ix Index of the tab to change visibility.
113
* @param shown Show tab if true, hide if false.
115
virtual void setTabShown(int ix,bool shown);
118
/** An extension of the regular tab widget with posibility to hide tabs.
120
class toTabWidget: public QTabWidget{
126
toTabWidget(QWidget *parent=0,const char *name=0,WFlags f=0)
127
: QTabWidget(parent,name,f)
128
{ setTabBar(Tabs=new toTabBar(this)); }
130
/** Specify if a tab is shown.
131
* @param w Widget to change visibility.
132
* @param shown Show tab if true, hide if false.
134
virtual void setTabShown(QWidget *w, bool value);
136
/** Specify that a tab is shown.
137
* @param w Tab to show.
139
virtual void showTab(QWidget *w)
140
{ setTabShown(w,true); }
141
/** Specify that a tab is hidden.
142
* @param w Tab to hide.
144
virtual void hideTab(QWidget *w)
145
{ setTabShown(w,false); }
152
<tr><td><small>Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54.</small></td></tr>