1 /*********************************************************************/
3 /* Copyright (C) 2009 Adenilson Cavalcanti <> */
5 /* This program is free software; you can redistribute it and/or */
6 /* modify it under the terms of the GNU General Public License */
7 /* as published by the Free Software Foundation; either version 2 */
8 /* of the License, or (at your option) any later version. */
10 /* This program is distributed in the hope that it will be useful, */
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
13 /* GNU General Public License for more details. */
15 /* You should have received a copy of the GNU General Public License */
16 /* along with this program; if not, write to the Free Software */
17 /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA */
18 /* 02110-1301, USA. */
19 /*********************************************************************/
24 #include <QGraphicsWidget>
25 #include <QGraphicsLinearLayout>
32 class QPropertyAnimation
;
33 class QSequentialAnimationGroup
;
35 class QtKineticListController
;
37 class AppUI
: public QGraphicsWidget
/*, public KineticScrolling */{
41 AppUI(QGraphicsItem
*parent
= 0);
45 void buildWorld( QString background
);
48 void rotateAnimation();
49 void resetRotateAnimation();
53 QGraphicsWidget
*mGraphicsWidget
;
54 QGraphicsLinearLayout
*mLayout
;
55 QGraphicsLinearLayout
*mGraphicsLayout
;
56 OmniWidget
*mOmniWidget
;
57 OmniAnimation
*mOmniAnimation
;
58 ContactButton
*mOmniButton
;
59 ContactButton
*mHomeButton
;
60 QtKineticListController
*controller
;
61 ContactWidget
*mContactWidget
;
62 QPropertyAnimation
*yRotationAnim
;
63 QPropertyAnimation
*omniButtonAnim
;
64 QPropertyAnimation
*homeButtonAnim
;
65 QPropertyAnimation
*yWidgetRotationAnim
;
66 QSequentialAnimationGroup
*seqAnimation
;
71 void backwardAnimation();
72 void forwardAnimation();
76 QSizeF
sizeHint( Qt::SizeHint which
, const QSizeF
& constraint
= QSizeF() ) const;
77 void resizeEvent( QGraphicsSceneResizeEvent
* event
);