src/hbcore/gui/hbmainwindow_p.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
--- a/src/hbcore/gui/hbmainwindow_p.h	Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbcore/gui/hbmainwindow_p.h	Mon May 03 12:48:33 2010 +0300
@@ -63,6 +63,12 @@
 
 public:
 
+    enum Element {
+        RootItem,
+        ViewportItem,
+        BackgroundItem
+    };
+
     HbMainWindowPrivate();
     virtual ~HbMainWindowPrivate();
 
@@ -90,7 +96,6 @@
     void updateRotationEffects();
     void addBackgroundItem();
     void removeBackgroundItem();
-    void initGestures();
 
     void postIdleEvent(int eventId);
 
@@ -98,6 +103,8 @@
     void unfadeScreen();
 
     void _q_viewReady();
+        
+    QGraphicsWidget *element(HbMainWindowPrivate::Element element) const;
 
     HbGraphicsScene *mScene;
     HbBackgroundItem *mBgItem;
@@ -115,10 +122,12 @@
     QList<QGraphicsItem*> mOrientationChangeEffectItems;
 
     bool mAutomaticOrientationSwitch;
+    bool mUserOrientationSwitch;
     bool mOrientationChangeOngoing;
     bool mAnimateOrientationSwitch;
     bool mGVOrientationChangeEffectEnabled;
     Qt::Orientation mOrientation;
+    Qt::Orientation mRequestedOrientation;
 
     HbToolBar *mCurrentToolbar;
     HbDockWidget *mCurrentDockWidget;
@@ -141,17 +150,20 @@
     HbGVWrapperItem mGVWrapperItem;
 
     bool mIdleEventHandled;
+	QRectF mLayoutRect;
     
     mutable HbDeviceProfile mAlternateProfile;
+	
 
 #ifdef Q_OS_SYMBIAN
     HbNativeWindow *mNativeWindow;
 #endif
+    QPointer<HbView> mMenuView;
 
     void rootItemFirstPhaseDone(const HbEffect::EffectStatus& status);
     void rootItemFinalPhaseDone(const HbEffect::EffectStatus& status);
     void orientationEffectFinished(const HbEffect::EffectStatus& status);
-        
+
     void addOrientationChangeEffects();
     void addViewEffects();
     void _q_viewChanged(int);
@@ -177,6 +189,9 @@
 signals:
     void idleEventDispatched();
 
+public slots:
+    void menuClosed();
+
 private:
     static HbMainWindowPrivate *d_ptr(HbMainWindow *mainWindow) {
         Q_ASSERT(mainWindow);