KWinInternal::TabBox Class Reference
Inheritance diagram for KWinInternal::TabBox:

Public Types | |
enum | Mode { DesktopMode, DesktopListMode, WindowsMode } |
Public Member Functions | |
TabBox (Workspace *ws, const char *name=0) | |
~TabBox () | |
Client * | currentClient () |
int | currentDesktop () |
void | setMode (Mode mode) |
Mode | mode () const |
void | reset () |
void | nextPrev (bool next=TRUE) |
void | delayedShow () |
void | hide () |
void | handleMouseEvent (XEvent *) |
Workspace * | workspace () const |
void | reconfigure () |
Protected Member Functions | |
void | showEvent (QShowEvent *) |
void | hideEvent (QHideEvent *) |
void | drawContents (QPainter *) |
Detailed Description
Definition at line 28 of file tabbox.h.
Member Function Documentation
|
Returns the currently displayed client ( only works in WindowsMode ). Returns 0 if no client is displayed. Definition at line 283 of file tabbox.cpp. References mode(), and workspace(). Referenced by drawContents(). |
|
Returns the currently displayed virtual desktop ( only works in DesktopListMode ) Returns -1 if no desktop is displayed. Definition at line 297 of file tabbox.cpp. References mode(). Referenced by drawContents(), and reset(). |
|
Sets the current mode to mode, either DesktopListMode or WindowsMode
Definition at line 72 of file tabbox.cpp. |
|
Returns the current mode, either DesktopListMode or WindowsMode
Definition at line 92 of file tabbox.h. Referenced by currentClient(), currentDesktop(), drawContents(), handleMouseEvent(), nextPrev(), and reset(). |
|
Resets the tab box to display the active client in WindowsMode, or the current desktop in DesktopListMode Definition at line 138 of file tabbox.cpp. References KWinInternal::Workspace::activeClient(), QValueList::begin(), QValueList::ConstIterator(), QValueList::count(), KWinInternal::Workspace::currentDesktop(), currentDesktop(), QValueList::end(), QFrame::frameWidth(), QRect::height(), QValueList::last(), mode(), KWinInternal::Workspace::numberOfDesktops(), QCursor::pos(), QValueList::remove(), QFont::setBold(), QFont::setPointSize(), QRect::width(), workspace(), QRect::x(), and QRect::y(). Referenced by TabBox(). |
|
Shows the next or previous item, depending on next Definition at line 226 of file tabbox.cpp. References QValueList::contains(), mode(), KWinInternal::Workspace::nextDesktopFocusChain(), KWinInternal::Workspace::nextFocusChainClient(), KWinInternal::Workspace::numberOfDesktops(), KWinInternal::Workspace::previousDesktopFocusChain(), KWinInternal::Workspace::previousFocusChainClient(), and workspace(). |
|
Rikkus: please document! (Matthias) Ok, here's the docs :) You call delayedShow() instead of show() directly. If the 'ShowDelay' setting is false, show() is simply called. Otherwise, we start a timer for the delay given in the settings and only do a show() when it times out. This means that you can alt-tab between windows and you don't see the tab box immediately. Not only does this make alt-tabbing faster, it gives less 'flicker' to the eyes. You don't need to see the tab box if you're just quickly switching between 2 or 3 windows. It seems to work quite nicely. Definition at line 547 of file tabbox.cpp. References QTimer::start(). |
|
Returns the tab box' workspace Definition at line 82 of file tabbox.h. Referenced by currentClient(), drawContents(), handleMouseEvent(), nextPrev(), and reset(). |
|
Reimplemented to raise the tab box as well Definition at line 309 of file tabbox.cpp. |
|
hide the icon box if necessary Definition at line 318 of file tabbox.cpp. |
|
The documentation for this class was generated from the following files: