1
/*****************************************************************
2
KWin - the KDE window manager
3
This file is part of the KDE project.
5
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
6
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
8
You can Freely distribute this program under the GNU General Public
9
License. See the file "COPYING" for the exact licensing terms.
10
******************************************************************/
26
class TabBox : public QFrame
30
TabBox( Workspace *ws );
33
Client* currentClient();
34
ClientList currentClientList();
36
QList< int > currentDesktopList();
38
void setCurrentClient( Client* newClient );
39
void setCurrentDesktop( int newDesktop );
41
enum SortOrder { StaticOrder, MostRecentlyUsedOrder };
42
void setMode( TabBoxMode mode );
43
TabBoxMode mode() const;
45
void reset( bool partial_reset = false );
46
void nextPrev( bool next = true);
53
bool isDisplayed() const;
55
void handleMouseEvent( XEvent* );
57
Workspace* workspace() const;
65
void showEvent( QShowEvent* );
66
void hideEvent( QHideEvent* );
67
void paintEvent( QPaintEvent* );
70
void createClientList(ClientList &list, int desktop /*-1 = all*/, Client *start, bool chain);
71
void createDesktopList(QList< int > &list, int start, SortOrder order);
78
QList< int > desktops;
81
QTimer delayedShowTimer;
86
bool options_traverse_all;
91
Returns the tab box' workspace
93
inline Workspace* TabBox::workspace() const
99
Returns the current mode, either TabBoxDesktopListMode or TabBoxWindowsMode
103
inline TabBoxMode TabBox::mode() const
109
Increase the reference count, preventing the default tabbox from showing.
111
\sa unrefDisplay(), isDisplayed()
113
inline void TabBox::refDisplay()
119
Returns whether the tab box is being displayed, either natively or by an
122
\sa refDisplay(), unrefDisplay()
124
inline bool TabBox::isDisplayed() const
126
return display_refcount > 0;