| Home · All Namespaces · All Classes |
#include <switcher.h>


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 WindowMonitor * | windowMonitor |
| The window monitor instance this switcher uses. | |
Switcher is a widget that shows the available windows.
| Switcher::Switcher | ( | const WindowMonitor * | windowMonitor = NULL, |
|
| MWidget * | parent = NULL, |
|||
| SwitcherModel * | model = new SwitcherModel | |||
| ) |
Constructs a Switcher widget.
| 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.
| void Switcher::animationStateChanged | ( | bool | animating | ) | [signal] |
Sent when something starts or stops animating in switcher
| 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.
| newWindowList | QList<WindowInfo> that contains all windows in stacking order |
| bool Switcher::handleXEvent | ( | const XEvent & | event | ) | [virtual] |
Handles an X event if it is related to the Switcher.
| event | the XEvent to be handled |
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.
const WindowMonitor* Switcher::windowMonitor [protected] |
The window monitor instance this switcher uses.
| Copyright © 2010 Nokia Corporation | Generated on Sun Feb 6 23:02:53 2011 Doxygen 1.6.1 |
MeeGo Touch |