OSDN Git Service

Update license.
[qt-creator-jp/qt-creator-jp.git] / share / qtcreator / qml / qmlobserver / startup / startup.qml
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Contact: Nokia Corporation (info@qt.nokia.com)
8 **
9 ** GNU Lesser General Public License Usage
10 **
11 ** This file may be used under the terms of the GNU Lesser General Public
12 ** License version 2.1 as published by the Free Software Foundation and
13 ** appearing in the file LICENSE.LGPL included in the packaging of this file.
14 ** Please review the following information to ensure the GNU Lesser General
15 ** Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
17 **
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21 **
22 ** Other Usage
23 **
24 ** Alternatively, this file may be used in accordance with the terms and
25 ** conditions contained in a signed written agreement between you and Nokia.
26 **
27 ** If you have questions regarding the use of this file, please contact
28 ** Nokia at qt-info@nokia.com.
29 **
30 **************************************************************************/
31
32 import QtQuick 1.0
33
34 Rectangle {
35     id: treatsApp
36     width: 800
37     height: 480
38     color: "darkgrey"
39     Component.onCompleted: treatsApp.state = "part1"
40     signal animationFinished
41
42     Item {
43         width: 800
44         height: 480
45         anchors.centerIn: parent
46         clip: true
47
48         Logo {
49             id: logo
50             x: 165
51             y: 35
52             rotation: -15
53             scale: 0.6
54             opacity: 0
55             onAnimationFinished: treatsApp.animationFinished();
56         }
57
58         Item {
59             id: quickblur
60             x: 800//325
61             y: 344
62             Image {
63                 id: blurText
64                 source: "quick-blur.png"
65             }
66             Image {
67                 id: quickregular
68                 x: -1
69                 y: 0
70                 opacity: 0
71                 source: "quick-regular.png"
72             }
73             Image {
74                 id: star
75                 x: -1
76                 y: 0
77                 opacity: 0
78                 source: "white-star.png"
79                 smooth: true
80                 NumberAnimation on rotation {
81                     from: 0
82                     to: 360
83                     loops: NumberAnimation.Infinite
84                     running: true
85                     duration: 2000
86                 }
87             }
88         }
89     }
90
91     states: [
92         State {
93             name: "part1"
94             PropertyChanges {
95                 target: logo
96                 scale: 0.8
97                 opacity: 1
98                 rotation: 0
99             }
100             PropertyChanges {
101                 target: treatsApp
102                 color: "black"
103             }
104             PropertyChanges {
105                 target: logo
106                 y: 10
107             }
108             PropertyChanges {
109                 target: quickblur
110                 x: logo.x + 145
111             }
112             PropertyChanges {
113                 target: blurText
114                 opacity: 0
115             }
116             PropertyChanges {
117                 target: quickregular
118                 opacity: 1
119             }
120             PropertyChanges {
121                 target: star
122                 x: -7
123                 y: -37
124             }
125         }
126     ]
127
128     transitions: [
129         Transition {
130             ParallelAnimation {
131                 NumberAnimation { target: logo; property: "opacity"; duration: 500 }
132                 NumberAnimation { target: logo; property: "scale"; duration: 4000; }
133                 NumberAnimation { target: logo; property: "rotation"; duration: 2000; easing.type: "OutBack"}
134                 ColorAnimation { duration: 3000}
135                 SequentialAnimation {
136                     PauseAnimation { duration: 1000 }
137                     ScriptAction { script: logo.logoState = "showBlueprint" }
138                     PauseAnimation { duration: 800 }
139                     ScriptAction { script: logo.logoState = "finale" }
140                     PauseAnimation { duration: 800 }
141                     ParallelAnimation {
142                         NumberAnimation { target: quickblur; property: "x"; duration: 200;}
143                         SequentialAnimation {
144                             PauseAnimation { duration: 200}
145                             ParallelAnimation {
146                                 NumberAnimation { target: blurText; property: "opacity"; duration: 300;}
147                                 NumberAnimation { target: quickregular; property: "opacity"; duration: 300;}
148                             }
149                             NumberAnimation { target: star; property: "opacity"; from: 0; to: 1; duration: 500 }
150                             PauseAnimation { duration: 200 }
151                             NumberAnimation { target: star; property: "opacity"; from: 1; to: 0; duration: 500 }
152                         }
153                         SequentialAnimation {
154                             PauseAnimation { duration: 150}
155                             NumberAnimation { target: logo; property: "y"; duration: 300; easing.type: "OutBounce" }
156                         }
157                     }
158                 }
159             }
160         }
161     ]
162
163 } // treatsApp