src/hbcore/gui/hbmainwindow_p.h
changeset 34 ed14f46c0e55
parent 7 923ff622b8b9
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    51 class HbTitleBar;
    51 class HbTitleBar;
    52 class HbStatusBar;
    52 class HbStatusBar;
    53 class HbToolBar;
    53 class HbToolBar;
    54 class HbView;
    54 class HbView;
    55 class HbScreen;
    55 class HbScreen;
       
    56 class HbScreenshotItem;
    56 class HbDockWidget;
    57 class HbDockWidget;
    57 class HbContentWidget;
    58 class HbContentWidget;
    58 class HbTheTestUtility;
    59 class HbTheTestUtility;
    59 class CssInspectorModel;
    60 class CssInspectorModel;
    60 
    61 
   103     void changeSceneSize();
   104     void changeSceneSize();
   104     void updateRotationEffects();
   105     void updateRotationEffects();
   105     void addBackgroundItem();
   106     void addBackgroundItem();
   106     void removeBackgroundItem();
   107     void removeBackgroundItem();
   107     void initFadeItem();
   108     void initFadeItem();
       
   109     void initScreenshotItem();
       
   110     HbScreenshotItem *screenshotItem();
   108 
   111 
   109     void postIdleEvent(int eventId);
   112     void postIdleEvent(int eventId);
   110 
   113 
   111     void fadeScreen(qreal zValue);
   114     void fadeScreen(qreal zValue);
   112     void unfadeScreen();
   115     void unfadeScreen();
   117 
   120 
   118     void setObscuredState(bool state);
   121     void setObscuredState(bool state);
   119 #if defined(Q_WS_X11)
   122 #if defined(Q_WS_X11)
   120     bool x11HandleShowEvent(QShowEvent *event);
   123     bool x11HandleShowEvent(QShowEvent *event);
   121 #endif
   124 #endif
       
   125 
   122     HbGraphicsScene *mScene;
   126     HbGraphicsScene *mScene;
   123     HbBackgroundItem *mBgItem;
   127     HbBackgroundItem *mBgItem;
   124     HbScreen *mClippingItem;
   128     HbScreen *mClippingItem;
       
   129     HbScreenshotItem *mScreenshotItem;
   125     HbContentWidget *mViewStackWidget;
   130     HbContentWidget *mViewStackWidget;
   126     HbTitleBar *mTitleBar;
   131     HbTitleBar *mTitleBar;
   127     HbStatusBar *mStatusBar;
   132     HbStatusBar *mStatusBar;
   128     HbWidget *mFadeItem;
   133     HbWidget *mFadeItem;
   129     QGraphicsWidget *mRootItem;
   134     QGraphicsWidget *mRootItem;
   164     mutable HbDeviceProfile mAlternateProfile;
   169     mutable HbDeviceProfile mAlternateProfile;
   165     QPointer<HbView> mMenuView;
   170     QPointer<HbView> mMenuView;
   166     bool mToolbarWasAdded;
   171     bool mToolbarWasAdded;
   167     bool mAutomaticOrientationChangeAnimation;
   172     bool mAutomaticOrientationChangeAnimation;
   168     QTranslator mCommonTranslator;
   173     QTranslator mCommonTranslator;
       
   174 #ifdef Q_OS_SYMBIAN
       
   175     QTranslator mQtTranslator;
       
   176 #endif
   169     bool mObscuredState;
   177     bool mObscuredState;
   170 #ifdef Q_OS_SYMBIAN
   178 #ifdef Q_OS_SYMBIAN
   171     HbNativeWindow *mNativeWindow;
   179     HbNativeWindow *mNativeWindow;
   172     RHbDeviceDialogClientSession *mDevDlgClientSession;
   180     RHbDeviceDialogClientSession *mDevDlgClientSession;
   173     HbDeviceDialogConnectHelper *mDevDlgConnectHelper;
   181     HbDeviceDialogConnectHelper *mDevDlgConnectHelper;
   200     static const int IdleOrientationFinalEvent;
   208     static const int IdleOrientationFinalEvent;
   201 
   209 
   202     void setViewportSize(const QSizeF &newSize);
   210     void setViewportSize(const QSizeF &newSize);
   203     QSizeF viewPortSize() const;
   211     QSizeF viewPortSize() const;
   204 
   212 
       
   213     static bool shouldStopEvent(void *message, long *result);
       
   214 
   205     static HbMainWindowPrivate *d_ptr(HbMainWindow *mainWindow) {
   215     static HbMainWindowPrivate *d_ptr(HbMainWindow *mainWindow) {
   206         Q_ASSERT(mainWindow);
   216         Q_ASSERT(mainWindow);
   207         return mainWindow->d_func();
   217         return mainWindow->d_func();
   208     }
   218     }
   209 
   219 
   210 signals:
   220 signals:
   211     void idleEventDispatched();
   221     void idleEventDispatched();
   212 
   222 
   213 public slots:
   223 public slots:
   214     void menuClosed();
   224     void menuClosed();
       
   225     void fadeItemEffectFinished(const HbEffect::EffectStatus &status);
   215 #ifdef Q_OS_SYMBIAN
   226 #ifdef Q_OS_SYMBIAN
   216     void updateForegroundOrientationPSKey();
   227     void updateForegroundOrientationPSKey();
   217     void deviceDialogConnectionReady(RHbDeviceDialogClientSession *clientSession);
   228     void deviceDialogConnectionReady(RHbDeviceDialogClientSession *clientSession);
   218 #endif
   229 #endif
   219 
   230 
   220     friend class HbShrinkingVkbHostPrivate;
   231     friend class HbShrinkingVkbHostPrivate;
       
   232     friend class HbVkbHostContainerWidget;
   221     friend class HbForegroundWatcher;
   233     friend class HbForegroundWatcher;
   222     friend class HbDeviceDialogConnectHelperPrivate;
   234     friend class HbDeviceDialogConnectHelperPrivate;
   223     friend class CssInspectorModel;
   235     friend class CssInspectorModel;
   224 };
   236 };
   225 
   237