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

#include <DockModeWindow.h>

Inheritance diagram for DockModeWindow:
Collaboration diagram for DockModeWindow:

Public Member Functions

 DockModeWindow (WindowType::Type type, HostWindowData *data, IpcClientHost *clientHost=0)
 DockModeWindow (WindowType::Type type, const QPixmap &pixmap)
virtual ~DockModeWindow ()
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void setRotationAxis (bool x, bool y, bool z)
void setRotationAngle (double angle)
virtual void setMaximized (bool enable)
virtual void setPrepareAddedToWindowManager ()
virtual void setAddedToWindowManager ()
- Public Member Functions inherited from CardWindow
 CardWindow (WindowType::Type type, HostWindowData *data, IpcClientHost *clientHost=0)
virtual ~CardWindow ()
virtual QRectF boundingRect () const
void onMessageReceived (const PIpcMessage &msg)
bool fullScreen () const
bool isBlockScreenTimeout () const
bool isSubtleLightbar () const
bool activeTouchpanel () const
bool alsDisabled () const
bool gyroEvents () const
bool compassEvents () const
uint32_t overlayNotificationsPosition () const
bool suppressBannerMessages () const
bool suppressGestures () const
uint32_t dockBrightness () const
bool hasCustomStatusBarColor () const
unsigned int statusBarColor () const
virtual void inputEvent (Event *e)
virtual void resizeEvent (int w, int h)
virtual void resizeEventSync (int w, int h)
virtual void resizeWindowBufferEvent (int w, int h, QRect windowScreenBounds, bool forceSync=false, bool ignoreFixedOrient=false)
virtual void flipEventSync (bool fromQueue=false)
virtual void queueUpWindowForFlip (QRect windowScreenBounds, bool sync)
virtual void queuedFlipCanceled (QRect windowScreenBounds)
virtual void flipEventAsync (QRect windowScreenBounds, bool fromQueue=false)
virtual void asynchFlipCompleted (int newWidth, int newHeight, int newScreenWidth, int newScreenHeight)
void queueFocusAction (bool focused)
void performPendingFocusAction ()
virtual void focusEvent (bool enable)
virtual void aboutToFocusEvent (bool enable)
bool focused () const
void enableShadow ()
void disableShadow ()
bool prepareAddedToWindowManager () const
bool addedToWindowManager () const
virtual void setWindowProperties (const WindowProperties &props)
bool rotationLockMaximized () const
bool allowResizeOnPositiveSpaceChange () const
void adjustForPositiveSpaceSize (int width, int height) const
virtual Event::Orientation getCardFixedOrientation ()
virtual void displayOff ()
virtual void displayDimmed ()
virtual bool isHost () const
virtual bool supportsPause () const
virtual void pause ()
bool delayPrepare ()
void stopLoadingOverlay ()
void setModalParent (CardWindow *parent)
void setCardIsModalParent (bool isParent)
bool isCardModalParent () const
void setModalAcceptInputState (ModalAcceptInputState state)
void setModalChild (CardWindow *w)
CardWindowgetModalChild () const
void setAppLaunchOptions (const AppLaunchOptionsEventWrapper &options)
const std::string & splashBackgroundName () const
void setLaunchInNewGroup (bool launchInNewGroup)
bool launchInNewGroup ()
void setPaintCompositionMode (QPainter::CompositionMode mode)
QPainterPath paintPath () const
CardWindow::Position position () const
void setPosition (const CardWindow::Position &pos)
CardGroupcardGroup () const
void setCardGroup (CardGroup *group)
bool attachedToGroup () const
void setAttachedToGroup (bool attached)
virtual bool isMaximized () const
virtual void positiveSpaceAboutToChange (const QRect &r, bool fullScreen)
virtual void positiveSpaceChanged (const QRect &r)
virtual void positiveSpaceChangeFinished (const QRect &r)
virtual void setMaxAndLoading (bool enable)
virtual bool isMaxAndLoading () const
void setBoundingRect (int width, int height)
void computeModalWindowPlacementInf (int newPosSpace)
virtual QRectF transitionBoundingRect ()
GhostCardcreateGhost ()
void allowUpdates (bool allow)
void setDimm (bool dimm)
float dimming () const
void setDimming (float dimming)
- Public Member Functions inherited from HostWindow
 HostWindow (WindowType::Type type, int width, int height, bool hasAlpha)
 HostWindow (WindowType::Type type, HostWindowData *data, IpcClientHost *clientHost=0)
virtual ~HostWindow ()
int routingId () const
bool isIpcWindow () const
void channelRemoved ()
void setClientHost (IpcClientHost *clientHost)
virtual void close ()
virtual void resizeEventSync (int w, int h, bool forceSync=false)
virtual void onDisconnected ()
virtual void onUpdateWindowRegion (int x, int y, int w, int h)
virtual void onUpdateFullWindow ()
virtual void onUpdateWindowRequest ()
void onAsynchFlipCompleted (int newWidth, int newHeight, int newScreenWidth, int newScreenHeight)
virtual const QPixmap * acquireScreenPixmap ()
virtual void setComposingText (const std::string &text)
virtual void commitComposingText ()
virtual void commitText (const std::string &text)
virtual void performEditorAction (PalmIME::FieldAction action)
virtual void removeInputFocus ()
virtual const HostWindowDatahostWindowData () const
- Public Member Functions inherited from Window
 Window (WindowType::Type type, const uint32_t bufWidth, const uint32_t bufHeight, bool hasAlpha=false)
 Window (WindowType::Type type, const QPixmap &pix)
virtual ~Window ()
virtual int type () const
virtual bool mouseGrabbed () const
virtual void setMouseGrabbed (bool grabbed)
void setName (const std::string &name)
std::string name () const
virtual void setAppId (const std::string &id)
std::string appId () const
void setProcessId (const std::string &id)
std::string processId () const
void setLaunchingAppId (const std::string &id)
std::string launchingAppId () const
void setLaunchingProcessId (const std::string &id)
std::string launchingProcessId () const
ApplicationDescriptionappDescription () const
void setRemoved ()
bool removed () const
void setDisableKeepAlive ()
bool disableKeepAlive () const
virtual void setVisibleDimensions (uint32_t width, uint32_t height)
virtual QSize getVisibleDimensions () const
virtual void resize (int w, int h)
int initialWidth () const
int initialHeight () const
- Public Member Functions inherited from InputClient
 InputClient ()
virtual bool inputFocus () const
virtual const
PalmIME::EditorState & 
inputState () const
void setInputFocus (bool focus)

Protected Member Functions

qreal pulseOpacity () const
void setPulseOpacity (qreal opacity)
- Protected Member Functions inherited from CardWindow
 CardWindow (WindowType::Type type, const QPixmap &pixmap)
void init ()
virtual void setVisibleDimensions (int width, int height)
virtual void paintBase (QPainter *painter, bool maximized)
virtual void paintOverlay (QPainter *painter, bool maximized)
virtual void keyPressEvent (QKeyEvent *event)
virtual void keyReleaseEvent (QKeyEvent *event)
virtual bool sceneEvent (QEvent *event)
virtual bool touchEvent (QTouchEvent *event)
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
bool mouseFlickEvent (QGestureEvent *event)
bool pinchEvent (QGestureEvent *event)
bool mouseSingleClickEvent (QGestureEvent *singleClick)
bool coversScreenFully () const
void enableFullScreen ()
void disableFullScreen ()
virtual void fullScreenEnabled (bool val)
void updateDirectRenderingPosition ()
void startLoadingOverlay ()
bool loadingAnimTimerTicked ()
void startLoadingTimer (int duration)
void stopLoadingTimer ()
bool hasLoadingTimer () const
virtual void onEnableTouchEvents (bool enableTouchEvents)
virtual void mapCoordinates (qreal &x, qreal &y)
virtual void mapFlickVelocities (qreal &x, qreal &y)
virtual void onSetAppFixedOrientation (int orientation, bool isPortrait)
virtual void onSetAppOrientation (int orientation)
virtual void onSetAppFreeOrientation (bool free)
virtual void refreshAdjustmentAngle ()
virtual void initializeRoundedCornerStage ()
bool isInValidOrientation ()
virtual void customEvent (QEvent *event)
- Protected Member Functions inherited from HostWindow
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
virtual void onEditorFocusChanged (bool focus, const PalmIME::EditorState &state)
void onAutoCapChanged (bool enabled)
- Protected Member Functions inherited from Window
virtual void lock ()
virtual void unlock ()
 Window (const Window &)
Windowoperator= (const Window &)
- Protected Member Functions inherited from InputClient
void setInputState (const PalmIME::EditorState &state)

Protected Attributes

bool m_loadingOverlayEnabled
qreal m_pulseOpacity
QPixmap m_icon
QSequentialAnimationGroup m_pulseAnimation
QPropertyAnimation m_fadeAnimation
QGraphicsRotation m_rotation
QList< QGraphicsTransform * > m_transformList
bool m_nativeApp
- Protected Attributes inherited from CardWindow
bool m_prepareAddedToWm
bool m_addedToWm
uint32_t m_capturedEvents
bool m_fullScreenEnabled
bool m_fullScreenModeSuppressed
bool m_maximized
bool m_maxAndLoading
Event::Orientation m_appFixedOrientation
Event::Orientation m_appPendingFixedOrientation
qreal m_adjustmentAngle
bool m_focusPendingRotation
bool m_keyboardShownMessageSent
bool m_isResizing
int m_flipsQueuedUp
bool m_pendingDirectRenderingEnable
int m_pendingRotationRequests
int m_ignorePendingRotationRequests
QBrush m_tempRotatedBrush
QRectF m_preFlipBoundingRect
bool m_forceFocus
bool m_focused
bool m_touchEventsEnabled
QRectF m_boundingRect
PendingFocus m_pendingFocus
WindowProperties m_winProps
guint m_loadingTimerId
std::string m_splashBackgroundName
QPainterPath m_paintPath
QPainter::CompositionMode m_compMode
Position m_position
QPointer< CardGroupm_group
bool m_attachedToGroup
bool m_launchInNewGroup
CardRoundedCornerShaderStage * m_roundedCornerShaderStage
QPropertyAnimation * m_activeAnimation
float m_dimming
ModalAcceptInputState m_modalAcceptInputState
ModalWindowPlacementInfo m_initMWindPlacementInf
PositiveSpaceChangeNotificationState m_posSpChangeNotificationState
int m_ModalWindowEndY
int m_modalWindowShrinkHeight
int m_maxEndingPositionForOrientation
bool m_fRecomputeInitPositionsValues
bool m_isCardModalParent
QPropertyAnimation * m_ModalPositionAnimation
- Protected Attributes inherited from HostWindow
bool m_isIpcWindow
- Protected Attributes inherited from Window
WindowType::Type m_type
std::string m_name
std::string m_appId
std::string m_processId
std::string m_launchingAppId
std::string m_launchingProcId
bool m_removed
bool m_disableKeepAlive
uint32_t m_bufWidth
uint32_t m_bufHeight
int m_initialWidth
int m_initialHeight
QRectF m_visibleBounds
QPixmap m_screenPixmap

Static Protected Attributes

static unsigned int s_dockGlowRefCount = 0
static QPixmap * s_dockGlow = 0
- Static Protected Attributes inherited from CardWindow
static int sStartSpaceChangeValue = -1
static int sLastKnownPositiveSpace = 0
static float sBoundingRectYBeforeResize = 0
static QPointF sModalWindowYBeforeResize


qreal pulseOpacity
- Properties inherited from CardWindow
CardWindow::Position position
float dimming

Additional Inherited Members

- Public Types inherited from CardWindow
enum  ModalAcceptInputState { NoModalWindow = 0, ModalLaunchedNotAcceptingInput, ModalLaunchedAcceptingInput }
- Protected Types inherited from CardWindow
enum  PendingFocus { PendingFocusNone = 0, PendingFocusTrue, PendingFocusFalse }
enum  CapturedEvents { CapturedNone = 0, CapturedPen = 1 << 0, CapturedGesture = 1 << 1, CapturedInvalid = 1 << 31 }
enum  ModalCardResizeState {
  Invalid =0, CardHeightNotChanged, HeightAndPositionUnchanged, HeightUnchangedAnimatedUp,
  HeightUnchangedAnimatedDown, ReduceCardHeight, IncreaseCardHeight
enum  ParentWindowHandleEvent { ParentHandleEvent =0, ForwardEventToChild, WaitForChildToAcceptEvents }
enum  PositiveSpaceChangeNotificationState { Unknown = 0, GotPositiveSpaceAboutToChangeNotification, GotPositiveSpaceChangeNotification }
- Protected Slots inherited from CardWindow
void slotLoadingFinished ()
void slotDisplayStateChanged (int state)
virtual void slotUiRotated ()
void slotShowIME ()
void slotHideIME ()
- Static Protected Member Functions inherited from CardWindow
static gboolean loadingTimeout (gpointer data)

Constructor & Destructor Documentation

DockModeWindow::DockModeWindow ( WindowType::Type  type,
HostWindowData data,
IpcClientHost clientHost = 0 
DockModeWindow::DockModeWindow ( WindowType::Type  type,
const QPixmap &  pixmap 
DockModeWindow::~DockModeWindow ( )

Member Function Documentation

void DockModeWindow::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 

Reimplemented from CardWindow.

Reimplemented in DockModeClockWindow.

qreal DockModeWindow::pulseOpacity ( ) const
void DockModeWindow::setAddedToWindowManager ( )

Reimplemented from CardWindow.

void DockModeWindow::setMaximized ( bool  enable)

Reimplemented from CardWindow.

Reimplemented in DockModeClockWindow.

void DockModeWindow::setPrepareAddedToWindowManager ( )

Reimplemented from CardWindow.

void DockModeWindow::setPulseOpacity ( qreal  opacity)
void DockModeWindow::setRotationAngle ( double  angle)
void DockModeWindow::setRotationAxis ( bool  x,
bool  y,
bool  z 

Member Data Documentation

QPropertyAnimation DockModeWindow::m_fadeAnimation
QPixmap DockModeWindow::m_icon
bool DockModeWindow::m_loadingOverlayEnabled
bool DockModeWindow::m_nativeApp
QSequentialAnimationGroup DockModeWindow::m_pulseAnimation
qreal DockModeWindow::m_pulseOpacity
QGraphicsRotation DockModeWindow::m_rotation
QList<QGraphicsTransform *> DockModeWindow::m_transformList
QPixmap * DockModeWindow::s_dockGlow = 0
unsigned int DockModeWindow::s_dockGlowRefCount = 0

Property Documentation

qreal DockModeWindow::pulseOpacity

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