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

#include <WindowServerLuna.h>

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

Signals

void signalWallpaperImageChanged (QPixmap *wallpaper, bool fullScreen, int rotationAngle)
 
void signalDockModeAnimationStarted ()
 
void signalDockModeAnimationComplete ()
 
- Signals inherited from WindowServer
void signalWindowUpdated (Window *)
 
void signalAboutToTakeScreenShot ()
 
void signalTookScreenShot ()
 
void signalUiRotated ()
 
void signalTouchesReleasedFromScreen ()
 

Public Member Functions

 WindowServerLuna ()
 
virtual ~WindowServerLuna ()
 
virtual void prepareAddWindow (Window *win)
 
virtual void addWindow (Window *win)
 
virtual void addWindowTimedOut (Window *win)
 
virtual void removeWindow (Window *win)
 
virtual void focusWindow (Window *win)
 
virtual void unfocusWindow (Window *win)
 
virtual void windowUpdated (Window *win)
 
virtual void startDrag (int x, int y, void *imgRef, const std::string &lpid)
 
virtual void endDrag (int x, int y, const std::string &lpid, bool handled)
 
virtual void applyLaunchFeedback (int centerX, int centerY)
 
virtual void appLaunchPreventedUnderLowMemory ()
 
WindowManagerBaseoverlayWindowManager () const
 
WindowManagerBasecardWindowManager () const
 
WindowManagerBasedashboardWindowManager () const
 
WindowManagerBasemenuWindowManager () const
 
WindowManagerBasetopLevelWindowManager () const
 
WindowManagerBaseemergencyModeWindowManager () const
 
WindowManagerBaseinputWindowManager () const
 
WindowManagerBasedockModeMenuManager () const
 
WindowManagerBasedockModeManager () const
 
virtual WindowManagerBasewindowManagerForWindow (Window *wm) const
 
virtual bool okToResizeUi (bool ignorePendingRequests=false)
 
void resizeWindowManagers (int width, int height)
 
virtual QDeclarativeEngine * declarativeEngine ()
 
virtual QRectF mapRectToRoot (const QGraphicsItem *item, const QRectF &rect) const
 
- Public Member Functions inherited from WindowServer
virtual ~WindowServer ()
 
void bootupFinished ()
 
void startProgressAnimation (ProgressAnimation::Type type=ProgressAnimation::TypeHp)
 
void stopProgressAnimation ()
 
bool progressRunning () const
 
DisplayManagerdisplayManager () const
 
MetaKeyManagermetaKeyManager () const
 
CoreNaviManagercoreNaviManager () const
 
bool takeScreenShot (const char *path)
 
OrientationEvent::Orientation getOrientation () const
 
OrientationEvent::Orientation getUiOrientation () const
 
void setPaintingDisabled (bool val)
 
virtual void cancelVibrations ()
 
void shutdown ()
 
void setWindowProperties (Window *win, const WindowProperties &props)
 
WindowManagerBaseinputWindowManager () const
 
virtual WindowManagerBasegetWindowManagerByClassName (const QString &undecoratedClassName) const
 
bool deviceIsPortraitType () const
 
virtual bool enqueueWindowForFlip (Window *window, QRect &windowScreenBoundaries, bool sync)
 
virtual bool removeWindowFromFlipQueue (Window *window)
 
void setUiRotationMode (RotationMode uiRotationMode, bool cardMaximizing=false, bool skipAnimation=false)
 
bool touchOnScreen () const
 

Additional Inherited Members

- Public Types inherited from WindowServer
enum  RotationMode {
  RotationMode_FreeRotation = 0, RotationMode_NoRotation = 1, RotationMode_LimitedLandscape = 2, RotationMode_LimitedPortrait = 3,
  RotationMode_FixedPortrait = 4, RotationMode_FixedLandscape = 5, RotationMode_FixedPortraitInverted = 6, RotationMode_FixedLandscapeInverted = 7
}
 
- Static Public Member Functions inherited from WindowServer
static WindowServerinstance ()
 
static void registerWindow (Window *win)
 
static void unregisterWindow (Window *win)
 
static bool windowIsRegistered (Window *win)
 
static void markBootStart ()
 
static void markBootFinish ()
 
static void enableFpsCounter (bool enable)
 
static void dumpFpsHistory ()
 
static void resetFpsBuffer (int newBufSize)
 
static void enableTouchPlotOption (TouchPlot::TouchPlotOption_t type, bool enable)
 
static SharedGlobalPropertiesglobalProperties ()
 
- Protected Types inherited from WindowServer
enum  UiRotationAnimationType { Rotation_NoAnimation = 0, Rotation_RotateAndCrossFade, Rotation_CrossFadeOnly }
 
typedef QMap< QString,
QPointer< WindowManagerBase >
>::const_iterator 
WindowManagerMapConstIter
 
typedef QMap< QString,
QPointer< WindowManagerBase >
>::iterator 
WindowManagerMapIter
 
- Protected Member Functions inherited from WindowServer
 WindowServer ()
 
virtual bool handleEvent (QEvent *event)
 
virtual bool viewportEvent (QEvent *event)
 
virtual bool eventFilter (QObject *, QEvent *)
 
void setOrientation (OrientationEvent::Orientation newOrient)
 
int angleForOrientation (OrientationEvent::Orientation orient)
 
virtual bool isOrientationAllowed (OrientationEvent::Orientation newOrient)
 
void setUiOrientation (OrientationEvent::Orientation newOrient, UiRotationAnimationType animation=Rotation_RotateAndCrossFade)
 
void rotateUi (OrientationEvent::Orientation newOrientation, UiRotationAnimationType animation=Rotation_RotateAndCrossFade, bool forceResize=false)
 
virtual void rotatePendingWindows ()
 
virtual void cancelPendingWindowRotations ()
 
void cacheFocusedItem ()
 
void restoreCachedFocusItem ()
 
- Protected Attributes inherited from WindowServer
DisplayManagerm_displayMgr
 
InputManagerm_inputMgr
 
MetaKeyManagerm_metaKeyMgr
 
CoreNaviManagerm_coreNaviMgr
 
WindowManagerBasem_inputWindowMgr
 
uint32_t m_screenWidth
 
uint32_t m_screenHeight
 
bool m_deviceIsPortraitType
 
QGraphicsItemGroupm_uiElementsGroup
 
ReticleItemm_reticle
 
bool m_bootingUp
 
bool m_fingerDownOnScreen
 
bool m_runningProgress
 
ProgressAnimationm_progressAnim
 
UiRootItem m_uiRootItem
 
UiRotationAnimationType m_inRotationAnimation
 
RotationMode m_uiRotationMode
 
OrientationEvent::Orientation m_orientation
 
OrientationEvent::Orientation m_currentUiOrientation
 
OrientationEvent::Orientation m_pendingOrientation
 
UiRotationAnimationType m_pendingRotationType
 
int m_animationTargetRotationAngle
 
QQueue< t_cardFlipRequestm_pendingFlipRequests
 
QMultiMap< QString, QPointer
< WindowManagerBase > > 
m_windowManagerMap
 

Constructor & Destructor Documentation

WindowServerLuna::WindowServerLuna ( )
WindowServerLuna::~WindowServerLuna ( )
virtual

Member Function Documentation

void WindowServerLuna::addWindow ( Window win)
virtual

Reimplemented from WindowServer.

void WindowServerLuna::addWindowTimedOut ( Window win)
virtual

Reimplemented from WindowServer.

void WindowServerLuna::appLaunchPreventedUnderLowMemory ( )
virtual

Reimplemented from WindowServer.

void WindowServerLuna::applyLaunchFeedback ( int  centerX,
int  centerY 
)
virtual

Reimplemented from WindowServer.

WindowManagerBase* WindowServerLuna::cardWindowManager ( ) const
inline
WindowManagerBase* WindowServerLuna::dashboardWindowManager ( ) const
inline
virtual QDeclarativeEngine* WindowServerLuna::declarativeEngine ( )
inlinevirtual

Reimplemented from WindowServer.

WindowManagerBase* WindowServerLuna::dockModeManager ( ) const
inline
WindowManagerBase* WindowServerLuna::dockModeMenuManager ( ) const
inline
WindowManagerBase* WindowServerLuna::emergencyModeWindowManager ( ) const
inline
void WindowServerLuna::endDrag ( int  x,
int  y,
const std::string &  lpid,
bool  handled 
)
virtual

Reimplemented from WindowServer.

void WindowServerLuna::focusWindow ( Window win)
virtual

Reimplemented from WindowServer.

WindowManagerBase* WindowServerLuna::inputWindowManager ( ) const
inline
QRectF WindowServerLuna::mapRectToRoot ( const QGraphicsItem item,
const QRectF &  rect 
) const
virtual

Reimplemented from WindowServer.

WindowManagerBase* WindowServerLuna::menuWindowManager ( ) const
inline
bool WindowServerLuna::okToResizeUi ( bool  ignorePendingRequests = false)
virtual

Reimplemented from WindowServer.

WindowManagerBase* WindowServerLuna::overlayWindowManager ( ) const
inline
void WindowServerLuna::prepareAddWindow ( Window win)
virtual

Reimplemented from WindowServer.

void WindowServerLuna::removeWindow ( Window win)
virtual

Reimplemented from WindowServer.

void WindowServerLuna::resizeWindowManagers ( int  width,
int  height 
)
virtual

Reimplemented from WindowServer.

void WindowServerLuna::signalDockModeAnimationComplete ( )
signal
void WindowServerLuna::signalDockModeAnimationStarted ( )
signal
void WindowServerLuna::signalWallpaperImageChanged ( QPixmap *  wallpaper,
bool  fullScreen,
int  rotationAngle 
)
signal
void WindowServerLuna::startDrag ( int  x,
int  y,
void *  imgRef,
const std::string &  lpid 
)
virtual

Reimplemented from WindowServer.

WindowManagerBase* WindowServerLuna::topLevelWindowManager ( ) const
inline
void WindowServerLuna::unfocusWindow ( Window win)
virtual

Reimplemented from WindowServer.

WindowManagerBase * WindowServerLuna::windowManagerForWindow ( Window wm) const
virtual

Implements WindowServer.

void WindowServerLuna::windowUpdated ( Window win)
virtual

Reimplemented from WindowServer.


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