Home · All Namespaces · All Classes

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)

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 (const WindowMonitor *windowMonitor=NULL, 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 ()
 

Protected Attributes

const WindowMonitorwindowMonitor
 The window monitor instance this switcher uses.

Detailed Description

Switcher is a widget that shows the available windows.


Constructor & Destructor Documentation

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

Constructs a Switcher widget.

Parameters:
windowMonitor a window monitor instance to be used by this switcher. Switcher takes ownership of the window monitor passed in.
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::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.


Member Data Documentation

The window monitor instance this switcher uses.


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

Copyright © 2010 Nokia Corporation Generated on Sun Feb 6 23:02:53 2011
Doxygen 1.6.1
MeeGo Touch