equal
deleted
inserted
replaced
53 void event_widgetInteraction(); |
53 void event_widgetInteraction(); |
54 void event_sceneInteraction(); |
54 void event_sceneInteraction(); |
55 void event_moveWidget(); |
55 void event_moveWidget(); |
56 void event_moveScene(); |
56 void event_moveScene(); |
57 void event_sceneMenu(); |
57 void event_sceneMenu(); |
58 void event_selectSceneWallpaper(); |
58 void event_selectWallpaper(); |
59 void event_addPage(); |
59 void event_addPage(); |
60 void event_removePage(); |
60 void event_removePage(); |
61 void event_toggleConnection(); |
61 void event_toggleConnection(); |
62 |
62 |
63 protected: |
63 protected: |
70 void startPageChangeAnimation(int targetPageIndex, int duration); |
70 void startPageChangeAnimation(int targetPageIndex, int duration); |
71 void startPageChangeZoneAnimation(int duration); |
71 void startPageChangeZoneAnimation(int duration); |
72 bool isInPageChangeZone(); |
72 bool isInPageChangeZone(); |
73 bool isInLeftPageChangeZone(); |
73 bool isInLeftPageChangeZone(); |
74 bool isInRightPageChangeZone(); |
74 bool isInRightPageChangeZone(); |
75 void addPageToScene(int pageIndex); |
75 void addPageToScene(int pageIndex); |
76 qreal parallaxFactor() const; |
|
77 void updateZoneAnimation(); |
76 void updateZoneAnimation(); |
78 void showTrashBin(); |
77 void showTrashBin(); |
79 void removeActivePage(); |
78 void removeActivePage(); |
|
79 void deleteZoneAnimation(); |
80 |
80 |
81 private slots: |
81 private slots: |
82 void action_disableUserInteraction(); |
82 void action_disableUserInteraction(); |
83 void action_enableUserInteraction(); |
83 void action_enableUserInteraction(); |
84 void action_idle_setupView(); |
84 void action_idle_setupView(); |
91 void action_idle_uninstallEventFilter(); |
91 void action_idle_uninstallEventFilter(); |
92 void action_waitInput_updateOptionsMenu(); |
92 void action_waitInput_updateOptionsMenu(); |
93 void action_waitInput_connectMouseEventHandlers(); |
93 void action_waitInput_connectMouseEventHandlers(); |
94 void action_waitInput_publishIdleKey(); |
94 void action_waitInput_publishIdleKey(); |
95 void action_waitInput_disconnectMouseEventHandlers(); |
95 void action_waitInput_disconnectMouseEventHandlers(); |
|
96 void action_waitInput_resetNewWidgets(); |
96 void action_widgetInteraction_connectMouseEventHandlers(); |
97 void action_widgetInteraction_connectMouseEventHandlers(); |
97 void action_widgetInteraction_connectGestureTimers(); |
98 void action_widgetInteraction_connectGestureTimers(); |
98 void action_widgetInteraction_disconnectMouseEventHandlers(); |
99 void action_widgetInteraction_disconnectMouseEventHandlers(); |
99 void action_widgetInteraction_disconnectGestureTimers(); |
100 void action_widgetInteraction_disconnectGestureTimers(); |
100 void action_sceneInteraction_connectMouseEventHandlers(); |
101 void action_sceneInteraction_connectMouseEventHandlers(); |
105 void action_moveWidget_startWidgetDragEffect(); |
106 void action_moveWidget_startWidgetDragEffect(); |
106 void action_moveWidget_connectMouseEventHandlers(); |
107 void action_moveWidget_connectMouseEventHandlers(); |
107 void action_moveWidget_reparentToPage(); |
108 void action_moveWidget_reparentToPage(); |
108 void action_moveWidget_startWidgetDropEffect(); |
109 void action_moveWidget_startWidgetDropEffect(); |
109 void action_moveWidget_disconnectMouseEventHandlers(); |
110 void action_moveWidget_disconnectMouseEventHandlers(); |
|
111 void action_moveWidget_preventZoneAnimation(); |
110 void action_moveScene_connectMouseEventHandlers(); |
112 void action_moveScene_connectMouseEventHandlers(); |
111 void action_moveScene_moveToNearestPage(); |
113 void action_moveScene_moveToNearestPage(); |
112 void action_moveScene_disconnectMouseEventHandlers(); |
114 void action_moveScene_disconnectMouseEventHandlers(); |
113 void action_sceneMenu_showMenu(); |
115 void action_sceneMenu_showMenu(); |
114 void action_addPage_addPage(); |
116 void action_addPage_addPage(); |
140 void sceneInteraction_onTapAndHoldTimeout(); |
142 void sceneInteraction_onTapAndHoldTimeout(); |
141 void onTitleChanged(QString title); |
143 void onTitleChanged(QString title); |
142 void onAddContentActionTriggered(); |
144 void onAddContentActionTriggered(); |
143 bool openTaskSwitcher(); |
145 bool openTaskSwitcher(); |
144 void zoneAnimationFinished(); |
146 void zoneAnimationFinished(); |
|
147 void pageChangeAnimationFinished(); |
145 void onSceneMenuTriggered(HbAction *action); |
148 void onSceneMenuTriggered(HbAction *action); |
146 void onRemovePageConfirmationOk(); |
149 void onRemovePageConfirmationOk(); |
147 void onSceneMenuAboutToClose(); |
150 void onSceneMenuAboutToClose(); |
148 |
151 |
149 private: |
152 private: |
153 QTimer mTimer; |
156 QTimer mTimer; |
154 |
157 |
155 QPointF mTouchScenePos; |
158 QPointF mTouchScenePos; |
156 HsTitleResolver *mTitleResolver; |
159 HsTitleResolver *mTitleResolver; |
157 QPropertyAnimation *mZoneAnimation; |
160 QPropertyAnimation *mZoneAnimation; |
158 bool mPageChanged; |
|
159 bool mAllowZoneAnimation; |
161 bool mAllowZoneAnimation; |
160 QParallelAnimationGroup *mPageChangeAnimation; |
162 QPropertyAnimation *mPageChangeAnimation; |
161 HbContinuousFeedback *mContinuousFeedback; |
163 HbContinuousFeedback *mContinuousFeedback; |
162 bool mTrashBinFeedbackAlreadyPlayed; |
164 bool mTrashBinFeedbackAlreadyPlayed; |
|
165 // TODO: remove |
|
166 bool mParallaxEnabled; |
|
167 bool mPageWallpaperEnabled; |
163 |
168 |
164 qreal mDeltaX; |
169 qreal mDeltaX; |
165 QPointer<HbMenu> mSceneMenu; |
170 QPointer<HbMenu> mSceneMenu; |
166 #ifdef Q_OS_SYMBIAN |
171 #ifdef Q_OS_SYMBIAN |
167 XQSettingsManager *mSettingsMgr; |
172 XQSettingsManager *mSettingsMgr; |