~josephjamesmills/u2t/trunk

« back to all changes in this revision

Viewing changes to shell/3rdparty/confluence/r720/weather/forecasts/Storm.qml

  • Committer: josephjamesmills at gmail
  • Date: 2012-12-17 20:10:44 UTC
  • Revision ID: josephjamesmills@gmail.com-20121217201044-n5y9o203r1a5brjv
* /shell/3rdparty: rmemoved qtmediahub stuff and old binary for qmltemplets
* debian/contol: adding deps for testing and also chaning version of libnux
* Removed all Build git and bzr folders 
* shell/launcher/* changed locations and styling of pips and showMenu
* Fixing debian control file
* Fixed some of the shortcuts stuff
* reworte and gave keyboard to metalens and systemsettings dash pages
* addded 3rd party folder to place all thrid party code in to try to keep u2d clean
* Pluged in the Hud for Unity2dconfigurations.formFactor == "TV"
* made a simple mockup of how to change gsettings from the dash
* Added dependencys to (almost all) to debian control
* added a option for fomrFactor == "Tablet"
* Need to add more desktop files to install with package or make into metapackage
modified:
  data/com.canonical.Unity2d.gschema.xml
  debian/changelog
  debian/control
  debian/unity-2d-common.postinst
  debian/unity-2d-common.postrm
  debian/unity-2d-common.triggers
  debian/unity-2d-shell.install.in
  libunity-2d-private/src/unity-2d-private.pc.cmake
  po/unity-2d.pot
  shell/3rdparty/ITV/ITV.qml
  shell/3rdparty/softwarefake/FlicableWebView.qml
  shell/3rdparty/softwarefake/Softwarecenter.qml
  shell/3rdparty/webbrowser/webbrowser.qml
  shell/DashLoader.qml
  shell/HudLoader.qml
  shell/Shell.qml
  shell/app/shelldeclarativeview.cpp
  shell/app/shellmanager.cpp
  shell/common/VideoInfo.qml
  shell/common/utils.js
  shell/dash/Dash.qml
  shell/dash/FilterRatings.qml
  shell/dash/ListViewWithScrollbar.qml
  shell/dash/RendererCoverFlow.qml
  shell/dash/previews/FanArtBackgroundMovie.qml
  shell/dash/previews/FlipableTvBanner.qml
  shell/dash/previews/Previews.qml
  shell/hud/Hud.qml
  shell/hud/ResultItem.qml
  shell/indicators/DashIndicators.qml
  shell/indicators/DashSystemIndicator.qml
  shell/indicators/DashWifiIndicator.qml
  shell/indicators/SystemIndicator.qml
  shell/indicators/Systemdropdown.qml
  shell/indicators/WifiIndicator.qml
  shell/launcher/GridLauncher.qml
  shell/launcher/Launcher.qml
  shell/launcher/LauncherItem.qml
  shell/launcher/LauncherList.qml
  shell/launcher/LauncherLoader.qml
  shell/launcher/ListViewDragAndDrop.qml
  shell/launcher/SimpleLauncher.qml
  shell/launcher/SimpleLauncherItem.qml
  shell/systeminfo/SettingsMangerParser.qml
  shell/systeminfo/Systemsettings.qml
  shell/systeminfo/UserSettings.qml
  spread/Window.qml
  spread/Workspaces.qml

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/** This file is part of Qt Media Hub**
2
 
 
3
 
Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).*
4
 
All rights reserved.
5
 
 
6
 
Contact:  Nokia Corporation qmh-development@qt-project.org
7
 
 
8
 
You may use this file under the terms of the BSD license
9
 
as follows:
10
 
 
11
 
Redistribution and use in source and binary forms, with or
12
 
without modification, are permitted provided that the following
13
 
conditions are met:
14
 
* Redistributions of source code must retain the above copyright
15
 
notice, this list of conditions and the following disclaimer.
16
 
 
17
 
* Redistributions in binary form must reproduce the above copyright
18
 
notice, this list of conditions and the following disclaimer in the
19
 
documentation and/or other materials provided with the distribution.
20
 
 
21
 
* Neither the name of Nokia Corporation and its Subsidiary(-ies)
22
 
nor the names of its contributors may be used to endorse or promote
23
 
products derived from this software without specific prior
24
 
written permission.
25
 
 
26
 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27
 
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
 
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29
 
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30
 
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31
 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
 
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33
 
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34
 
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35
 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36
 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37
 
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/
38
 
 
39
 
import Qt 4.7
40
 
import "elements"
41
 
import "../"
42
 
 
43
 
ForecastView {
44
 
    id: root
45
 
    isClear: false
46
 
 
47
 
    RainItem {
48
 
        id: rain
49
 
        x: translateX(30)
50
 
        y: translateY(300)// - yOffset
51
 
        visible: false
52
 
        rainType: "storm"
53
 
    }
54
 
 
55
 
    SmallCloud {
56
 
        id: cloud5
57
 
        x: translateX(280)
58
 
        y: translateY(-800)
59
 
        finalY: translateY(-480)
60
 
        type: "cloud_storm"
61
 
    }
62
 
 
63
 
    SmallCloud {
64
 
        id: cloud4
65
 
        x: translateX(36)
66
 
        y: translateY(-800)
67
 
        finalY: translateY(-494)
68
 
        type: "cloud_storm"
69
 
    }
70
 
 
71
 
    HungItem {
72
 
        id: sun
73
 
        x: isDay ? translateX(198) : translateX(220)
74
 
        y: translateY(-800)
75
 
        itemX: 0
76
 
        itemY:  isDay ? 176 : 180
77
 
        height:  isDay ? 460 : 440
78
 
        finalY: isDay ? translateY(-255) : translateY(-205)
79
 
        itemImage: isDay ? folder + "cold_sun.png" : folder + "moon.png"
80
 
        lineImage: isDay ? folder + "cold_sun_line.png" : folder + "moon_line.png"
81
 
    }
82
 
 
83
 
    MediumCloud {
84
 
        id: cloud2
85
 
        x: translateX(340)
86
 
        y: translateY(-800)
87
 
        finalY: translateY(-350)
88
 
        type: "cloud_storm"
89
 
    }
90
 
 
91
 
    LargeCloud {
92
 
        id: cloud3
93
 
        x: translateX(-30)
94
 
        y: translateY(-800)
95
 
        finalY: translateY(-345)
96
 
        type: "cloud_storm"
97
 
    }
98
 
 
99
 
    LargeCloud {
100
 
        id: cloud1
101
 
        x: translateX(202)
102
 
        y: translateY(-800)
103
 
        finalY: translateY(-310)
104
 
        type: "cloud_storm"
105
 
    }
106
 
 
107
 
    states : State {
108
 
        name: "final"
109
 
        PropertyChanges { target: sun; y: sun.finalY; }
110
 
        PropertyChanges { target: cloud1; y: cloud1.finalY; }
111
 
        PropertyChanges { target: cloud2; y: cloud2.finalY; }
112
 
        PropertyChanges { target: cloud3; y: cloud3.finalY; }
113
 
        PropertyChanges { target: cloud4; y: cloud4.finalY; }
114
 
        PropertyChanges { target: cloud5; y: cloud5.finalY; }
115
 
        PropertyChanges { target: rain; visible: true; }
116
 
    }
117
 
 
118
 
    transitions: Transition {
119
 
        SequentialAnimation {
120
 
            ParallelAnimation {
121
 
               NumberAnimation { target: cloud1; properties: "y";
122
 
                                 easing.type: "OutBack"; duration: 500 }
123
 
 
124
 
               SequentialAnimation {
125
 
                   PauseAnimation { duration: 200 }
126
 
                   NumberAnimation { target: cloud3; properties: "y";
127
 
                                     easing.type: "OutBack"; duration: 500 }
128
 
               }
129
 
 
130
 
               SequentialAnimation {
131
 
                   PauseAnimation { duration: 400 }
132
 
                   NumberAnimation { target: cloud2; properties: "y";
133
 
                                     easing.type: "OutBack"; duration: 500 }
134
 
               }
135
 
 
136
 
               SequentialAnimation {
137
 
                   PauseAnimation { duration: 600 }
138
 
                   NumberAnimation { target: cloud4; properties: "y";
139
 
                                     easing.type: "OutBack"; duration: 500 }
140
 
               }
141
 
 
142
 
               SequentialAnimation {
143
 
                   PauseAnimation { duration: 800 }
144
 
                   NumberAnimation { target: cloud5; properties: "y";
145
 
                                     easing.type: "OutBack"; duration: 500 }
146
 
               }
147
 
            }
148
 
 
149
 
            NumberAnimation { target: sun; properties: "y";
150
 
                              easing.type: "OutBack"; duration: 500 }
151
 
 
152
 
            PauseAnimation { duration: 100 }
153
 
 
154
 
            NumberAnimation { target: rain; properties: "visible"; duration: 0 }
155
 
        }
156
 
    }
157
 
 
158
 
    onPresent: { root.state = "final"; }
159
 
}