LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OverlayWindowManager Class Reference

#include <OverlayWindowManager.h>

Inheritance diagram for OverlayWindowManager:
[legend]
Collaboration diagram for OverlayWindowManager:
[legend]

Public Types

enum  LauncherState { StateNoLauncher = 1, StateLauncherRegular, StateLauncherReorder }
 
enum  DockState { StateNoDock = 1, StateDockNormal, StateDockReorder }
 
enum  SearchPillState { StateSearchPillHidden = 1, StateSearchPillVisible }
 
enum  UniversalSearchState { StateUSearchHidden = 1, StateUSearchVisible }
 

Signals

void signalFSMShowSearchPill ()
 
void signalFSMHideSearchPill ()
 
void signalFSMShowLauncher ()
 
void signalFSMHideLauncher ()
 
void signalFSMShowUniversalSearch ()
 
void signalFSMHideUniversalSearch ()
 
void signalFSMShowDock ()
 
void signalFSMHideDock ()
 
void signalFSMDragStarted ()
 
void signalFSMDragEnded ()
 
void signalPenUpEvent ()
 
void signalPenCancelEvent ()
 
void signalLauncherOpened ()
 
void signalLauncherClosed ()
 
void signalUniversalSearchOpened ()
 
void signalUniversalSearchClosed ()
 

Public Member Functions

 OverlayWindowManager (int maxWidth, int maxHeight)
 
 ~OverlayWindowManager ()
 
void init ()
 
QRectF quickLaunchVisibleArea () const
 
QPointF quickLaunchVisiblePosition () const
 
UniversalSearchState universalSearchState () const
 
void setUniversalSearchState (UniversalSearchState s)
 
SearchPillState searchPillState () const
 
void setSearchPillState (SearchPillState s)
 
DockState dockState () const
 
void setDockState (DockState s)
 
LauncherState launcherState () const
 
void setLauncherState (LauncherState s)
 
bool dockShown () const
 
void setDockShown (bool shown)
 
bool universalSearchShown () const
 
void setUniversalSearchShown (bool shown)
 
void addWindow (Window *win)
 
bool launcherVisible () const
 
void applyLaunchFeedback (int centerX, int centerY)
 
int lastPenX () const
 
int lastPenY () const
 
bool inDrag () const
 
bool canRedirectDragToQuicklaunch (const QPointF &dragPosition)
 
bool okToResize ()
 
void resize (int width, int height)
 
void toggleLauncher ()
 
QuicklauncherquicklaunchBar () const
 
virtual bool handleNavigationEvent (QKeyEvent *keyEvent, bool &propogate)
 
- Public Member Functions inherited from WindowManagerBase
 WindowManagerBase (int maxWidth, int maxHeight)
 
virtual ~WindowManagerBase ()
 
void setScreenBounds (int x, int y, int w, int h)
 
virtual bool doReticle (QPointF pos)
 
virtual QRectF boundingRect () const
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
virtual void prepareAddWindow (Window *win)
 
virtual void addWindowTimedOut (Window *win)
 
virtual void removeWindow (Window *win)
 
virtual void focusWindow (Window *win)
 
virtual void unfocusWindow (Window *win)
 

Static Public Member Functions

static OverlayWindowManagersystemActiveInstance ()
 

Protected Member Functions

bool sceneEvent (QEvent *event)
 
void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
void keyReleaseEvent (QKeyEvent *event)
 
bool mouseFlickEvent (FlickGesture *flick)
 
- Protected Member Functions inherited from WindowManagerBase
void raiseChild (QGraphicsItem *child)
 

Properties

DockState dockState
 
LauncherState launcherState
 
SearchPillState searchPillState
 
UniversalSearchState universalSearchState
 
bool dockShown
 
bool universalSearchShown
 
QRectF quickLaunchVisibleArea
 
QPointF quickLaunchVisiblePosition
 

Friends

class WindowServerLuna
 

Additional Inherited Members

- Protected Attributes inherited from WindowManagerBase
QRectF m_boundingRect
 

Member Enumeration Documentation

Enumerator
StateNoDock 
StateDockNormal 
StateDockReorder 
Enumerator
StateNoLauncher 
StateLauncherRegular 
StateLauncherReorder 
Enumerator
StateSearchPillHidden 
StateSearchPillVisible 
Enumerator
StateUSearchHidden 
StateUSearchVisible 

Constructor & Destructor Documentation

OverlayWindowManager::OverlayWindowManager ( int  maxWidth,
int  maxHeight 
)
OverlayWindowManager::~OverlayWindowManager ( )

Member Function Documentation

void OverlayWindowManager::addWindow ( Window win)
virtual

Reimplemented from WindowManagerBase.

void OverlayWindowManager::applyLaunchFeedback ( int  centerX,
int  centerY 
)
bool OverlayWindowManager::canRedirectDragToQuicklaunch ( const QPointF &  dragPosition)
bool OverlayWindowManager::dockShown ( ) const
DockState OverlayWindowManager::dockState ( ) const
inline
bool OverlayWindowManager::handleNavigationEvent ( QKeyEvent *  keyEvent,
bool &  propogate 
)
virtual

Reimplemented from WindowManagerBase.

bool OverlayWindowManager::inDrag ( ) const
inline
void OverlayWindowManager::init ( )
virtual

Reimplemented from WindowManagerBase.

void OverlayWindowManager::keyPressEvent ( QKeyEvent *  event)
protected
void OverlayWindowManager::keyReleaseEvent ( QKeyEvent *  event)
protected
int OverlayWindowManager::lastPenX ( ) const
inline
int OverlayWindowManager::lastPenY ( ) const
inline
LauncherState OverlayWindowManager::launcherState ( ) const
inline
bool OverlayWindowManager::launcherVisible ( ) const
void OverlayWindowManager::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
protected
bool OverlayWindowManager::mouseFlickEvent ( FlickGesture flick)
protected
void OverlayWindowManager::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protected
void OverlayWindowManager::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protected
void OverlayWindowManager::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protected
bool OverlayWindowManager::okToResize ( )
virtual

Reimplemented from WindowManagerBase.

Quicklauncher* OverlayWindowManager::quicklaunchBar ( ) const
inline
QRectF OverlayWindowManager::quickLaunchVisibleArea ( ) const
QPointF OverlayWindowManager::quickLaunchVisiblePosition ( ) const
void OverlayWindowManager::resize ( int  width,
int  height 
)
virtual

Reimplemented from WindowManagerBase.

bool OverlayWindowManager::sceneEvent ( QEvent event)
protected
SearchPillState OverlayWindowManager::searchPillState ( ) const
inline
void OverlayWindowManager::setDockShown ( bool  shown)
void OverlayWindowManager::setDockState ( DockState  s)
inline
void OverlayWindowManager::setLauncherState ( LauncherState  s)
inline
void OverlayWindowManager::setSearchPillState ( SearchPillState  s)
inline
void OverlayWindowManager::setUniversalSearchShown ( bool  shown)
void OverlayWindowManager::setUniversalSearchState ( UniversalSearchState  s)
inline
void OverlayWindowManager::signalFSMDragEnded ( )
signal
void OverlayWindowManager::signalFSMDragStarted ( )
signal
void OverlayWindowManager::signalFSMHideDock ( )
signal
void OverlayWindowManager::signalFSMHideLauncher ( )
signal
void OverlayWindowManager::signalFSMHideSearchPill ( )
signal
void OverlayWindowManager::signalFSMHideUniversalSearch ( )
signal
void OverlayWindowManager::signalFSMShowDock ( )
signal
void OverlayWindowManager::signalFSMShowLauncher ( )
signal
void OverlayWindowManager::signalFSMShowSearchPill ( )
signal
void OverlayWindowManager::signalFSMShowUniversalSearch ( )
signal
void OverlayWindowManager::signalLauncherClosed ( )
signal
void OverlayWindowManager::signalLauncherOpened ( )
signal
void OverlayWindowManager::signalPenCancelEvent ( )
signal
void OverlayWindowManager::signalPenUpEvent ( )
signal
void OverlayWindowManager::signalUniversalSearchClosed ( )
signal
void OverlayWindowManager::signalUniversalSearchOpened ( )
signal
OverlayWindowManager * OverlayWindowManager::systemActiveInstance ( )
static
void OverlayWindowManager::toggleLauncher ( )
inline
bool OverlayWindowManager::universalSearchShown ( ) const
UniversalSearchState OverlayWindowManager::universalSearchState ( ) const
inline

Friends And Related Function Documentation

friend class WindowServerLuna
friend

Property Documentation

bool OverlayWindowManager::dockShown
readwrite
DockState OverlayWindowManager::dockState
readwrite
LauncherState OverlayWindowManager::launcherState
readwrite
QRectF OverlayWindowManager::quickLaunchVisibleArea
read
QPointF OverlayWindowManager::quickLaunchVisiblePosition
read
SearchPillState OverlayWindowManager::searchPillState
readwrite
bool OverlayWindowManager::universalSearchShown
readwrite
UniversalSearchState OverlayWindowManager::universalSearchState
readwrite

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