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 ()

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 302 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 325 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 669 of file tabbox.cpp.

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

Paints the tab box

Definition at line 362 of file tabbox.cpp.

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

hide the icon box if necessary

Definition at line 351 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 95 of file tabbox.h.

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

Shows the next or previous item, depending on next

Definition at line 243 of file tabbox.cpp.

void KWinInternal::TabBox::reset  ) 
 

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

Definition at line 155 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 87 of file tabbox.cpp.

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

Reimplemented to raise the tab box as well

Definition at line 337 of file tabbox.cpp.

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

Returns the tab box' workspace

Definition at line 85 of file tabbox.h.


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