2
// Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
3
// Earlier copyrights 1998 - 2006 Jim Bublitz also apply
7
// PyKDE4 module kdeui version KDE 3.92.0
10
// This file is part of PyKDE4.
12
// PyKDE4 is free software; you can redistribute it and/or modify
13
// it under the terms of the GNU Lesser General Public License as
14
// published by the Free Software Foundation; either version 2.1 of
15
// the License, or (at your option) any later version.
17
// PyKDE4 is distributed in the hope that it will be useful,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
// GNU General Public License for more details.
22
// You should have received a copy of the GNU General Public License
23
// along with this program. If not, see <http://www.gnu.org/licenses/>.
26
class KTabWidget : QTabWidget
29
#include <ktabwidget.h>
34
KTabWidget (QWidget* /TransferThis/ = 0, Qt::WFlags = 0);
35
void setTabTextColor (int, const QColor&);
36
QColor tabTextColor (int) const;
37
bool isTabReorderingEnabled () const;
38
bool hoverCloseButton () const;
39
bool hoverCloseButtonDelayed () const;
40
bool tabCloseActivatePrevious () const;
41
bool automaticResizeTabs () const;
42
void setTabBarHidden (bool);
43
bool isTabBarHidden () const;
44
QString tabText (int) const;
45
void setTabText (int, const QString&);
48
virtual void moveTab (int, int);
49
virtual void removePage (QWidget*);
50
virtual void removeTab (int);
51
void setTabReorderingEnabled (bool);
52
void setHoverCloseButton (bool);
53
void setHoverCloseButtonDelayed (bool);
54
void setTabCloseActivatePrevious (bool);
55
void setAutomaticResizeTabs (bool);
58
//ig void testCanDecode (const QDragMoveEvent*, bool&);
59
void receivedDropEvent (QDropEvent*);
60
void receivedDropEvent (QWidget*, QDropEvent*);
61
void initiateDrag (QWidget*);
62
//ig void contextMenu (const QPoint&);
63
void contextMenu (QWidget*, const QPoint&);
64
void movedTab (int, int);
65
void mouseDoubleClick ();
66
void mouseDoubleClick (QWidget*);
67
void mouseMiddleClick ();
68
void mouseMiddleClick (QWidget*);
69
void closeRequest (QWidget*);
72
virtual void mouseDoubleClickEvent (QMouseEvent*);
73
virtual void mousePressEvent (QMouseEvent*);
74
virtual void dragEnterEvent (QDragEnterEvent*);
75
virtual void dragMoveEvent (QDragMoveEvent*);
76
virtual void dropEvent (QDropEvent*);
77
int tabBarWidthForMaxChars (int);
78
virtual void wheelEvent (QWheelEvent*);
79
virtual void resizeEvent (QResizeEvent*);
80
virtual void tabInserted (int);
81
virtual void tabRemoved (int);
84
//ig virtual void receivedDropEvent (int, QDropEvent*);
85
//ig virtual void initiateDrag (int);
86
//ig virtual void contextMenu (int, const QPoint&);
87
//ig virtual void mouseDoubleClick (int);
88
//ig virtual void mouseMiddleClick (int);
89
//ig virtual void closeRequest (int);
90
virtual void wheelDelta (int);
92
}; // class KTabWidget