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 |