Home · All Namespaces · All Classes
Public Slots | Signals | Public Member Functions | Protected Member Functions

Switcher Class Reference

#include <switcher.h>

Inheritance diagram for Switcher:
Inheritance graph
[legend]
Collaboration diagram for Switcher:
Collaboration graph
[legend]

List of all members.

Public Slots

void handleWindowInfoList (QList< WindowInfo > newWindowList)
bool restoreButtonBeingRemoved (Window window, bool forceUpdateButtons=true)

Signals

void windowListUpdated (const QList< WindowInfo > &windowList)
 A signal for notifying that the window list has been updated.
void animationStateChanged (bool animating)

Public Member Functions

 Switcher (MWidget *parent=NULL, SwitcherModel *model=new SwitcherModel)
 ~Switcher ()
bool handleXEvent (const XEvent &event)

Protected Member Functions

virtual bool sceneEvent (QEvent *event)
 REIMPLEMENTATION
virtual QSharedPointer
< SwitcherButton
createSwitcherButton ()
 

Detailed Description

Switcher is a widget that shows the available windows.


Constructor & Destructor Documentation

Switcher::Switcher ( MWidget *  parent = NULL,
SwitcherModel model = new SwitcherModel 
)

Constructs a Switcher widget.

Parameters:
parent the parent widget of the Switcher, defaults to NULL
model model to be used with Switcher, defaults SwitcherModel
Switcher::~Switcher (  ) 

Destroys the Switcher.


Member Function Documentation

void Switcher::animationStateChanged ( bool  animating  )  [signal]

Sent when something starts or stops animating in switcher

Parameters:
animating if true, something is animating
QSharedPointer< SwitcherButton > Switcher::createSwitcherButton (  )  [protected, virtual]

Create switcher button

void Switcher::handleWindowInfoList ( QList< WindowInfo newWindowList  )  [slot]

Gets the current stacked client window list as parameter and checks whether new windows are added or removed. Adds and removes such windows from the switcher and emits the updated stacked window list.

Parameters:
newWindowList QList<WindowInfo> that contains all windows in stacking order
See also:
WindowMonitor::handleWindowInfoList()
bool Switcher::handleXEvent ( const XEvent &  event  )  [virtual]

Handles an X event if it is related to the Switcher.

Parameters:
event the XEvent to be handled
Returns:
true if the event was handled, false otherwise

Implements XEventListener.

bool Switcher::restoreButtonBeingRemoved ( Window  window,
bool  forceUpdateButtons = true 
) [slot]

Restore a button that were being removed.

Parameters:
window 
forceUpdateButtons Whether buttons should be updated
Returns:
Whether windon was removed from list
bool Switcher::sceneEvent ( QEvent *  event  )  [protected, virtual]

REIMPLEMENTATION

When QEvent::TouchEnd event arrives, stops the Switcher from being an event filter for the SwitcherButtons

void Switcher::windowListUpdated ( const QList< WindowInfo > &  windowList  )  [signal]

A signal for notifying that the window list has been updated.


The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Thu Jul 7 2011 22:14:50
Doxygen 1.7.1
MeeGo Touch