|
LunaSysMgr
|
#include <CardWindow.h>
Classes | |
| struct | ModalWindowPlacementInfo |
| struct | Position |
Public Types | |
| enum | ModalAcceptInputState { NoModalWindow = 0, ModalLaunchedNotAcceptingInput, ModalLaunchedAcceptingInput } |
Public Member Functions | |
| 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 () |
| virtual void | setPrepareAddedToWindowManager () |
| bool | prepareAddedToWindowManager () const |
| virtual void | setAddedToWindowManager () |
| 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) |
| CardWindow * | getModalChild () 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) |
| CardGroup * | cardGroup () const |
| void | setCardGroup (CardGroup *group) |
| bool | attachedToGroup () const |
| void | setAttachedToGroup (bool attached) |
| virtual void | setMaximized (bool enable) |
| 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 () |
| GhostCard * | createGhost () |
| 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 HostWindowData * | hostWindowData () 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 |
| ApplicationDescription * | appDescription () 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 Types | |
| 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 | |
| void | slotLoadingFinished () |
| void | slotDisplayStateChanged (int state) |
| virtual void | slotUiRotated () |
| void | slotShowIME () |
| void | slotHideIME () |
Protected Member Functions | |
| CardWindow (WindowType::Type type, const QPixmap &pixmap) | |
| void | init () |
| virtual void | setVisibleDimensions (int width, int height) |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| 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 &) | |
| Window & | operator= (const Window &) |
Protected Member Functions inherited from InputClient | |
| void | setInputState (const PalmIME::EditorState &state) |
Static Protected Member Functions | |
| static gboolean | loadingTimeout (gpointer data) |
Static Protected Attributes | |
| static int | sStartSpaceChangeValue = -1 |
| static int | sLastKnownPositiveSpace = 0 |
| static float | sBoundingRectYBeforeResize = 0 |
| static QPointF | sModalWindowYBeforeResize |
Properties | |
| CardWindow::Position | position |
| float | dimming |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| CardWindow::CardWindow | ( | WindowType::Type | type, |
| HostWindowData * | data, | ||
| IpcClientHost * | clientHost = 0 |
||
| ) |
|
virtual |
|
protected |
|
inlinevirtual |
Reimplemented in CardHostWindow.
|
inline |
|
inline |
| bool CardWindow::allowResizeOnPositiveSpaceChange | ( | ) | const |
| void CardWindow::allowUpdates | ( | bool | allow | ) |
|
inline |
|
virtual |
Reimplemented from HostWindow.
| bool CardWindow::attachedToGroup | ( | ) | const |
|
inlinevirtual |
Reimplemented from Window.
| CardGroup * CardWindow::cardGroup | ( | ) | const |
|
inline |
| void CardWindow::computeModalWindowPlacementInf | ( | int | newPosSpace | ) |
|
protected |
| GhostCard * CardWindow::createGhost | ( | ) |
|
protectedvirtual |
| bool CardWindow::delayPrepare | ( | ) |
|
inline |
|
protected |
| void CardWindow::disableShadow | ( | ) |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
protected |
| void CardWindow::enableShadow | ( | ) |
|
virtual |
Reimplemented from HostWindow.
|
virtual |
Reimplemented from HostWindow.
|
inline |
|
virtual |
Reimplemented in DockModeClockWindow, and CardHostWindow.
|
inline |
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
protected |
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
virtual |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in CardHostWindow.
|
protected |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
protectedvirtual |
|
protectedvirtual |
|
inline |
|
protected |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
protected |
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
protected |
|
protectedvirtual |
Reimplemented from HostWindow.
|
virtual |
Reimplemented from HostWindow.
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inline |
|
protectedvirtual |
Reimplemented from Window.
Reimplemented in CardHostWindow, DockModeWindow, and DockModeClockWindow.
|
protectedvirtual |
Reimplemented in CardHostWindow.
|
inlineprotectedvirtual |
Reimplemented in CardHostWindow.
|
inline |
|
inlinevirtual |
Reimplemented in CardHostWindow.
| void CardWindow::performPendingFocusAction | ( | ) |
|
protected |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
virtual |
Reimplemented from HostWindow.
| void CardWindow::queueFocusAction | ( | bool | focused | ) |
|
virtual |
|
protectedvirtual |
Reimplemented in CardHostWindow.
Reimplemented in DockModeClockWindow, and CardHostWindow.
Reimplemented in DockModeClockWindow, and CardHostWindow.
|
virtual |
| bool CardWindow::rotationLockMaximized | ( | ) | const |
|
protectedvirtual |
Reimplemented in DockModeClockWindow.
|
inlinevirtual |
Reimplemented in DockModeWindow.
| void CardWindow::setAppLaunchOptions | ( | const AppLaunchOptionsEventWrapper & | options | ) |
| void CardWindow::setAttachedToGroup | ( | bool | attached | ) |
| void CardWindow::setCardGroup | ( | CardGroup * | group | ) |
|
inline |
| void CardWindow::setDimm | ( | bool | dimm | ) |
|
inline |
|
inline |
|
virtual |
|
virtual |
Reimplemented in DockModeWindow, and DockModeClockWindow.
|
inline |
| void CardWindow::setModalChild | ( | CardWindow * | w | ) |
| void CardWindow::setModalParent | ( | CardWindow * | parent | ) |
| void CardWindow::setPaintCompositionMode | ( | QPainter::CompositionMode | mode | ) |
| void CardWindow::setPosition | ( | const CardWindow::Position & | pos | ) |
|
inlinevirtual |
Reimplemented in DockModeWindow.
Reimplemented from HostWindow.
|
virtual |
Reimplemented from Window.
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedvirtualslot |
|
inline |
|
protected |
|
protected |
|
inline |
| void CardWindow::stopLoadingOverlay | ( | ) |
|
protected |
|
inlinevirtual |
Reimplemented in CardHostWindow.
|
inline |
|
inline |
|
protectedvirtual |
Reimplemented in QtHostWindow.
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
readwrite |
|
readwrite |