KWinInternal::TabBox Class Reference

List of all members.

Detailed Description

Definition at line 28 of file tabbox.h.


Public Types

enum  Mode { DesktopMode, DesktopListMode, WindowsMode }

Public Member Functions

 TabBox (Workspace *ws, const char *name=0)
 ~TabBox ()
ClientcurrentClient ()
void setCurrentClient (Client *c)
int currentDesktop ()
void setMode (Mode mode)
Mode mode () const
void reset ()
void nextPrev (bool next=TRUE)
void delayedShow ()
void hide ()
void handleMouseEvent (XEvent *)
Workspaceworkspace () const
void reconfigure ()
void updateKeyMapping ()

Protected Member Functions

void showEvent (QShowEvent *)
void hideEvent (QHideEvent *)
void drawContents (QPainter *)

Member Function Documentation

Client * KWinInternal::TabBox::currentClient (  ) 

Returns the currently displayed client ( only works in WindowsMode ). Returns 0 if no client is displayed.

Definition at line 303 of file tabbox.cpp.

int KWinInternal::TabBox::currentDesktop (  ) 

Returns the currently displayed virtual desktop ( only works in DesktopListMode ) Returns -1 if no desktop is displayed.

Definition at line 326 of file tabbox.cpp.

void KWinInternal::TabBox::setMode ( Mode  mode  ) 

Sets the current mode to mode, either DesktopListMode or WindowsMode

See also:
mode()

Definition at line 88 of file tabbox.cpp.

TabBox::Mode KWinInternal::TabBox::mode (  )  const [inline]

Returns the current mode, either DesktopListMode or WindowsMode

See also:
setMode()

Definition at line 96 of file tabbox.h.

void KWinInternal::TabBox::reset (  ) 

Resets the tab box to display the active client in WindowsMode, or the current desktop in DesktopListMode

Definition at line 156 of file tabbox.cpp.

void KWinInternal::TabBox::nextPrev ( bool  next = TRUE  ) 

Shows the next or previous item, depending on next

Definition at line 244 of file tabbox.cpp.

void KWinInternal::TabBox::delayedShow (  ) 

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 670 of file tabbox.cpp.

Workspace * KWinInternal::TabBox::workspace (  )  const [inline]

Returns the tab box' workspace

Definition at line 86 of file tabbox.h.

void KWinInternal::TabBox::showEvent ( QShowEvent *   )  [protected]

Reimplemented to raise the tab box as well

Definition at line 338 of file tabbox.cpp.

void KWinInternal::TabBox::hideEvent ( QHideEvent *   )  [protected]

hide the icon box if necessary

Definition at line 352 of file tabbox.cpp.

void KWinInternal::TabBox::drawContents ( QPainter *   )  [protected]

Paints the tab box

Definition at line 363 of file tabbox.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys