Merge lp:~ubuntu-calendar-dev/ubuntu-calendar-app/filesRestructure into lp:ubuntu-calendar-app
- filesRestructure
- Merge into trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp:~ubuntu-calendar-dev/ubuntu-calendar-app/filesRestructure |
Merge into: | lp:ubuntu-calendar-app |
Diff against target: |
780 lines (+123/-224) 28 files modified
CMakeLists.txt (+3/-2) Scroller.qml (+0/-147) app/CMakeLists.txt (+21/-0) app/EventActions.qml (+4/-2) app/calendar.qml (+13/-9) app/components/CMakeLists.txt (+6/-0) app/components/DayHeaderBackground.qml (+3/-2) app/events/CMakeLists.txt (+6/-0) app/events/NewEvent.qml (+1/-0) app/images/CMakeLists.txt (+6/-0) app/timelineComponents/AllDayEventComponent.qml (+6/-6) app/timelineComponents/CMakeLists.txt (+6/-0) app/timelineComponents/TimeLineBackground.qml (+1/-0) app/timelineComponents/TimeLineBase.qml (+5/-3) app/timelineComponents/TimeLineBaseComponent.qml (+4/-2) app/timelineComponents/TimeLineHeader.qml (+3/-1) app/timelineComponents/TimeLineHeaderComponent.qml (+4/-2) app/views/AgendaView.qml (+4/-2) app/views/CMakeLists.txt (+6/-0) app/views/DayView.qml (+6/-2) app/views/MonthComponent.qml (+4/-4) app/views/MonthView.qml (+3/-2) app/views/WeekView.qml (+4/-2) app/views/YearView.qml (+2/-1) calendar-app.in (+0/-3) calendarTests.qml (+0/-30) tests/autopilot/calendar_app/tests/__init__.py (+1/-1) tests/unittests/tst_date.qml (+1/-1) |
To merge this branch: | bzr merge lp:~ubuntu-calendar-dev/ubuntu-calendar-app/filesRestructure |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Needs Fixing | |
Nekhelesh Ramananthan | Needs Fixing | ||
Review via email: mp+234365@code.launchpad.net |
Commit message
Restructure of files.
Description of the change
Restructure of files.
1.Please suggest if any changes are required.
2.I have done bifurcation based on my understanding and files that are being used in project.
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:445
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:446
http://
Executed test runs:
FAILURE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Nekhelesh Ramananthan (nik90) wrote : | # |
On an brief look and testing, I feel that we can organize it even more by moving the following into a folder called "app",
- components
- events
- images
- timelineComponents
- views
- js
- calendar.qml
- calendar-app@30.png
- calendar-app@30.png
The following files are not required and can be removed,
- calendarTests.qml
- Scroller.qml
- calendar-app.in
This obviously will require further fixes in the cmake files. But we can get zbenjamin's help on that.
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:447
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:449
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:452
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 453. By Mihir Soni
-
Moved Recurrence.js to event directory
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:453
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 454. By Mihir Soni
-
added proper reference to autopilot & added new reference to new files
- 455. By Mihir Soni
-
merge with trunk
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:455
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 456. By Mihir Soni
-
reverted pot changes in cmake
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : | # |
FAILED: Continuous integration, rev:456
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Unmerged revisions
- 456. By Mihir Soni
-
reverted pot changes in cmake
- 455. By Mihir Soni
-
merge with trunk
- 454. By Mihir Soni
-
added proper reference to autopilot & added new reference to new files
- 453. By Mihir Soni
-
Moved Recurrence.js to event directory
- 452. By Mihir Soni
-
merged mzanetti cmake patch
- 451. By Mihir Soni
-
resolved merge issue
- 450. By Mihir Soni
-
Merge from trunk
- 449. By Nekhelesh Ramananthan
-
reverted manifest file change
- 448. By Nekhelesh Ramananthan
-
Some small cmake fixes
- 447. By Mihir Soni
-
Moved everything under app directory
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2014-09-25 21:34:16 +0000 | |||
3 | +++ CMakeLists.txt 2014-10-20 19:18:23 +0000 | |||
4 | @@ -14,7 +14,7 @@ | |||
5 | 14 | set(APPLICATION_FILE "${PROJECT_NAME}_${APP_NAME}.application") | 14 | set(APPLICATION_FILE "${PROJECT_NAME}_${APP_NAME}.application") |
6 | 15 | set(URLS_FILE "${PROJECT_NAME}_${APP_NAME}.url-dispatcher") | 15 | set(URLS_FILE "${PROJECT_NAME}_${APP_NAME}.url-dispatcher") |
7 | 16 | set(MAIN_QML calendar.qml) | 16 | set(MAIN_QML calendar.qml) |
9 | 17 | set(ICON_FILE calendar-app@30.png) | 17 | set(ICON_FILE "calendar-app@30.png") |
10 | 18 | set(AUTOPILOT_DIR calendar_app) | 18 | set(AUTOPILOT_DIR calendar_app) |
11 | 19 | set(APP_HARDCODE calendar-app) | 19 | set(APP_HARDCODE calendar-app) |
12 | 20 | set(UBUNTU_MANIFEST_PATH "click/manifest.json.in" CACHE INTERNAL "Relative path to the manifest file") | 20 | set(UBUNTU_MANIFEST_PATH "click/manifest.json.in" CACHE INTERNAL "Relative path to the manifest file") |
13 | @@ -60,7 +60,7 @@ | |||
14 | 60 | file(GLOB RESOURCE_FILES | 60 | file(GLOB RESOURCE_FILES |
15 | 61 | RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} | 61 | RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} |
16 | 62 | *.png *.svg) | 62 | *.png *.svg) |
18 | 63 | install(FILES ${SRC_FILES} ${RESOURCE_FILES} ${ICON_FILE} DESTINATION ${DATA_DIR}) | 63 | install(FILES ${SRC_FILES} ${RESOURCE_FILES} "app/${ICON_FILE}" DESTINATION ${DATA_DIR}) |
19 | 64 | 64 | ||
20 | 65 | configure_file(${DESKTOP_FILE}.in.in ${DESKTOP_FILE}.in) | 65 | configure_file(${DESKTOP_FILE}.in.in ${DESKTOP_FILE}.in) |
21 | 66 | 66 | ||
22 | @@ -81,3 +81,4 @@ | |||
23 | 81 | add_subdirectory(click) | 81 | add_subdirectory(click) |
24 | 82 | add_subdirectory(po) | 82 | add_subdirectory(po) |
25 | 83 | add_subdirectory(tests) | 83 | add_subdirectory(tests) |
26 | 84 | add_subdirectory(app) | ||
27 | 84 | 85 | ||
28 | === removed file 'Scroller.qml' | |||
29 | --- Scroller.qml 2014-09-20 10:45:35 +0000 | |||
30 | +++ Scroller.qml 1970-01-01 00:00:00 +0000 | |||
31 | @@ -1,147 +0,0 @@ | |||
32 | 1 | /* | ||
33 | 2 | * Copyright (C) 2013-2014 Canonical Ltd | ||
34 | 3 | * | ||
35 | 4 | * This file is part of Ubuntu Calendar App | ||
36 | 5 | * | ||
37 | 6 | * Ubuntu Calendar App is free software: you can redistribute it and/or modify | ||
38 | 7 | * it under the terms of the GNU General Public License version 3 as | ||
39 | 8 | * published by the Free Software Foundation. | ||
40 | 9 | * | ||
41 | 10 | * Ubuntu Calendar App is distributed in the hope that it will be useful, | ||
42 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
43 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
44 | 13 | * GNU General Public License for more details. | ||
45 | 14 | * | ||
46 | 15 | * You should have received a copy of the GNU General Public License | ||
47 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
48 | 17 | */ | ||
49 | 18 | |||
50 | 19 | import QtQuick 2.3 | ||
51 | 20 | import Ubuntu.Components 1.1 | ||
52 | 21 | import Ubuntu.Components.ListItems 1.0 as ListItems | ||
53 | 22 | |||
54 | 23 | Item { | ||
55 | 24 | id: root | ||
56 | 25 | property int min: 0 | ||
57 | 26 | property int max: 10 | ||
58 | 27 | property variant value: model.get(listView.currentIndex) !== undefined ? model.get(listView.currentIndex).modelData : "" | ||
59 | 28 | property alias model: listView.model | ||
60 | 29 | property alias labelText: label.text | ||
61 | 30 | property alias currentIndex: listView.currentIndex | ||
62 | 31 | |||
63 | 32 | ListModel { | ||
64 | 33 | id: defaultModel | ||
65 | 34 | } | ||
66 | 35 | |||
67 | 36 | Component.onCompleted: { | ||
68 | 37 | var oldIndex = currentIndex | ||
69 | 38 | for (var i = 0; i < (max+1)-min; ++i) { | ||
70 | 39 | defaultModel.append({modelData: root.min + i}) | ||
71 | 40 | } | ||
72 | 41 | listView.highlightMoveDuration = 0 | ||
73 | 42 | currentIndex = oldIndex | ||
74 | 43 | listView.highlightMoveDuration = 300 | ||
75 | 44 | } | ||
76 | 45 | |||
77 | 46 | onMinChanged: { | ||
78 | 47 | if (defaultModel.get(0) === undefined) { | ||
79 | 48 | return; | ||
80 | 49 | } | ||
81 | 50 | |||
82 | 51 | var oldMin = defaultModel.get(0).modelData | ||
83 | 52 | |||
84 | 53 | while (oldMin > min) { | ||
85 | 54 | defaultModel.insert(0, {modelData: --oldMin }) | ||
86 | 55 | } | ||
87 | 56 | while (oldMin < min) { | ||
88 | 57 | defaultModel.remove(0) | ||
89 | 58 | ++oldMin | ||
90 | 59 | } | ||
91 | 60 | } | ||
92 | 61 | |||
93 | 62 | onMaxChanged: { | ||
94 | 63 | if (defaultModel.get(defaultModel.count - 1) === undefined) { | ||
95 | 64 | return; | ||
96 | 65 | } | ||
97 | 66 | |||
98 | 67 | var oldMax = defaultModel.get(defaultModel.count - 1).modelData | ||
99 | 68 | |||
100 | 69 | while (max < oldMax) { | ||
101 | 70 | defaultModel.remove(defaultModel.count - 1); | ||
102 | 71 | --oldMax; | ||
103 | 72 | } | ||
104 | 73 | while (max > oldMax) { | ||
105 | 74 | defaultModel.insert(defaultModel.count, {modelData: ++oldMax}) | ||
106 | 75 | } | ||
107 | 76 | } | ||
108 | 77 | |||
109 | 78 | Item { | ||
110 | 79 | id: labelRect | ||
111 | 80 | anchors { | ||
112 | 81 | left: parent.left | ||
113 | 82 | top: parent.top | ||
114 | 83 | right: parent.right | ||
115 | 84 | } | ||
116 | 85 | height: units.gu(5) | ||
117 | 86 | |||
118 | 87 | Label { | ||
119 | 88 | id: label | ||
120 | 89 | anchors.centerIn: parent | ||
121 | 90 | } | ||
122 | 91 | ListItems.Divider { | ||
123 | 92 | anchors { | ||
124 | 93 | left: parent.left | ||
125 | 94 | bottom: parent.bottom | ||
126 | 95 | right: parent.right | ||
127 | 96 | } | ||
128 | 97 | } | ||
129 | 98 | } | ||
130 | 99 | |||
131 | 100 | PathView { | ||
132 | 101 | id: listView | ||
133 | 102 | model: defaultModel | ||
134 | 103 | anchors.fill: parent | ||
135 | 104 | anchors.topMargin: labelRect.height | ||
136 | 105 | pathItemCount: listView.height / highlightItem.height + 1 | ||
137 | 106 | preferredHighlightBegin: 0.5 | ||
138 | 107 | preferredHighlightEnd: 0.5 | ||
139 | 108 | clip: true | ||
140 | 109 | |||
141 | 110 | delegate: ListItems.Standard { | ||
142 | 111 | width: parent.width | ||
143 | 112 | highlightWhenPressed: false | ||
144 | 113 | Label { | ||
145 | 114 | anchors.centerIn: parent | ||
146 | 115 | text: modelData | ||
147 | 116 | } | ||
148 | 117 | onClicked: listView.currentIndex = index | ||
149 | 118 | } | ||
150 | 119 | property int contentHeight: pathItemCount * highlightItem.height | ||
151 | 120 | path: Path { | ||
152 | 121 | startX: listView.width / 2; startY: -(listView.contentHeight - listView.height) / 2 | ||
153 | 122 | PathLine { x: listView.width / 2; y: listView.height + (listView.contentHeight - listView.height) / 2 } | ||
154 | 123 | } | ||
155 | 124 | highlight: Rectangle { | ||
156 | 125 | width: parent.width | ||
157 | 126 | height: units.gu(6) | ||
158 | 127 | property color baseColor: "#dd4814" | ||
159 | 128 | gradient: Gradient { | ||
160 | 129 | GradientStop { | ||
161 | 130 | position: 0.00; | ||
162 | 131 | color: Qt.lighter(baseColor, 1.3); | ||
163 | 132 | } | ||
164 | 133 | GradientStop { | ||
165 | 134 | position: 1.0; | ||
166 | 135 | color: baseColor; | ||
167 | 136 | } | ||
168 | 137 | } | ||
169 | 138 | } | ||
170 | 139 | ListItems.Divider { | ||
171 | 140 | anchors { | ||
172 | 141 | left: parent.left | ||
173 | 142 | bottom: parent.bottom | ||
174 | 143 | right: parent.right | ||
175 | 144 | } | ||
176 | 145 | } | ||
177 | 146 | } | ||
178 | 147 | } | ||
179 | 148 | 0 | ||
180 | === added directory 'app' | |||
181 | === added file 'app/CMakeLists.txt' | |||
182 | --- app/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
183 | +++ app/CMakeLists.txt 2014-10-20 19:18:23 +0000 | |||
184 | @@ -0,0 +1,21 @@ | |||
185 | 1 | if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") | ||
186 | 2 | file(GLOB QML_JS_FILES *.qml *.js *.png) | ||
187 | 3 | add_custom_target(ubuntu-calendar-apps_QMlFiles ALL SOURCES ${QML_JS_FILES}) | ||
188 | 4 | endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") | ||
189 | 5 | |||
190 | 6 | if(CLICK_MODE) | ||
191 | 7 | set(ICON ${ICON}) | ||
192 | 8 | install(FILES ${ICON} DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
193 | 9 | endif(CLICK_MODE) | ||
194 | 10 | |||
195 | 11 | # substitute variables in the desktop file | ||
196 | 12 | |||
197 | 13 | install(FILES ${CMAKE_BINARY_DIR}/${DESKTOP_FILE} | ||
198 | 14 | DESTINATION ${CMAKE_INSTALL_DATADIR}/applications) | ||
199 | 15 | install(FILES ${MAIN_QML} DESTINATION ${MAIN_QML}) | ||
200 | 16 | |||
201 | 17 | add_subdirectory(events) | ||
202 | 18 | add_subdirectory(components) | ||
203 | 19 | add_subdirectory(timelineComponents) | ||
204 | 20 | add_subdirectory(views) | ||
205 | 21 | add_subdirectory(images) | ||
206 | 0 | 22 | ||
207 | === renamed file 'EventActions.qml' => 'app/EventActions.qml' | |||
208 | --- EventActions.qml 2014-09-19 08:52:19 +0000 | |||
209 | +++ app/EventActions.qml 2014-10-20 19:18:23 +0000 | |||
210 | @@ -18,6 +18,8 @@ | |||
211 | 18 | 18 | ||
212 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
213 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
214 | 21 | import "components" | ||
215 | 22 | import "views" | ||
216 | 21 | 23 | ||
217 | 22 | Item { | 24 | Item { |
218 | 23 | id: actionPool | 25 | id: actionPool |
219 | @@ -32,7 +34,7 @@ | |||
220 | 32 | iconName: "new-event" | 34 | iconName: "new-event" |
221 | 33 | text: i18n.tr("New Event") | 35 | text: i18n.tr("New Event") |
222 | 34 | onTriggered: { | 36 | onTriggered: { |
224 | 35 | pageStack.push(Qt.resolvedUrl("NewEvent.qml"),{"date":tabs.currentDay,"model":eventModel}); | 37 | pageStack.push(Qt.resolvedUrl("events/NewEvent.qml"),{"date":tabs.currentDay,"model":eventModel}); |
225 | 36 | } | 38 | } |
226 | 37 | } | 39 | } |
227 | 38 | 40 | ||
228 | @@ -41,7 +43,7 @@ | |||
229 | 41 | iconName: "new-event" | 43 | iconName: "new-event" |
230 | 42 | text: i18n.tr("Calendars") | 44 | text: i18n.tr("Calendars") |
231 | 43 | onTriggered: { | 45 | onTriggered: { |
233 | 44 | pageStack.push(Qt.resolvedUrl("CalendarChoicePopup.qml"),{"model":eventModel}); | 46 | pageStack.push(Qt.resolvedUrl("views/CalendarChoicePopup.qml"),{"model":eventModel}); |
234 | 45 | pageStack.currentPage.collectionUpdated.connect(eventModel.delayedApplyFilter); | 47 | pageStack.currentPage.collectionUpdated.connect(eventModel.delayedApplyFilter); |
235 | 46 | } | 48 | } |
236 | 47 | } | 49 | } |
237 | 48 | 50 | ||
238 | === renamed file 'calendar-app@30.png' => 'app/calendar-app@30.png' | |||
239 | === renamed file 'calendar.qml' => 'app/calendar.qml' | |||
240 | --- calendar.qml 2014-09-19 08:11:17 +0000 | |||
241 | +++ app/calendar.qml 2014-10-20 19:18:23 +0000 | |||
242 | @@ -20,8 +20,11 @@ | |||
243 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
244 | 21 | import QtOrganizer 5.0 | 21 | import QtOrganizer 5.0 |
245 | 22 | import Ubuntu.SyncMonitor 0.1 | 22 | import Ubuntu.SyncMonitor 0.1 |
248 | 23 | 23 | import "components" | |
249 | 24 | import "dateExt.js" as DateExt | 24 | import "views" |
250 | 25 | |||
251 | 26 | import "components/dateExt.js" as DateExt | ||
252 | 27 | |||
253 | 25 | 28 | ||
254 | 26 | MainView { | 29 | MainView { |
255 | 27 | id: mainView | 30 | id: mainView |
256 | @@ -180,7 +183,7 @@ | |||
257 | 180 | eventModel.onItemsFetched.connect( function(id,fetchedItems) { | 183 | eventModel.onItemsFetched.connect( function(id,fetchedItems) { |
258 | 181 | if( requestId === id && fetchedItems.length > 0 ) { | 184 | if( requestId === id && fetchedItems.length > 0 ) { |
259 | 182 | var event = fetchedItems[0]; | 185 | var event = fetchedItems[0]; |
261 | 183 | pageStack.push(Qt.resolvedUrl("EventDetails.qml"),{"event":event,"model": eventModel}); | 186 | pageStack.push(Qt.resolvedUrl("../events/EventDetails.qml"),{"event":event,"model": eventModel}); |
262 | 184 | } | 187 | } |
263 | 185 | }); | 188 | }); |
264 | 186 | requestId = eventModel.fetchItems([args.values.eventid]); | 189 | requestId = eventModel.fetchItems([args.values.eventid]); |
265 | @@ -223,7 +226,7 @@ | |||
266 | 223 | endDate = new Date(endTime); | 226 | endDate = new Date(endTime); |
267 | 224 | } | 227 | } |
268 | 225 | } | 228 | } |
270 | 226 | //pageStack.push(Qt.resolvedUrl("NewEvent.qml"),{"startDate": startDate, "endDate": endDate, //"model":eventModel}); | 229 | //pageStack.push(Qt.resolvedUrl("events/NewEvent.qml"),{"startDate": startDate, "endDate": endDate, //"model":eventModel}); |
271 | 227 | } | 230 | } |
272 | 228 | 231 | ||
273 | 229 | // This function calculate the difference between --endtime and --starttime and choose the better view | 232 | // This function calculate the difference between --endtime and --starttime and choose the better view |
274 | @@ -296,6 +299,7 @@ | |||
275 | 296 | 299 | ||
276 | 297 | EventActions { | 300 | EventActions { |
277 | 298 | id: commonHeaderActions | 301 | id: commonHeaderActions |
278 | 302 | |||
279 | 299 | } | 303 | } |
280 | 300 | 304 | ||
281 | 301 | Keys.onTabPressed: { | 305 | Keys.onTabPressed: { |
282 | @@ -327,7 +331,7 @@ | |||
283 | 327 | page: Loader{ | 331 | page: Loader{ |
284 | 328 | id: yearViewLoader | 332 | id: yearViewLoader |
285 | 329 | objectName: "yearViewLoader" | 333 | objectName: "yearViewLoader" |
287 | 330 | source: tabs.selectedTab == yearTab ? Qt.resolvedUrl("YearView.qml"):"" | 334 | source: tabs.selectedTab == yearTab ? Qt.resolvedUrl("views/YearView.qml"):"" |
288 | 331 | onLoaded: { | 335 | onLoaded: { |
289 | 332 | item.currentYear = tabs.currentDay.getFullYear(); | 336 | item.currentYear = tabs.currentDay.getFullYear(); |
290 | 333 | } | 337 | } |
291 | @@ -361,7 +365,7 @@ | |||
292 | 361 | page: Loader{ | 365 | page: Loader{ |
293 | 362 | id: monthViewLoader | 366 | id: monthViewLoader |
294 | 363 | objectName: "monthViewLoader" | 367 | objectName: "monthViewLoader" |
296 | 364 | source: tabs.selectedTab == monthTab ? Qt.resolvedUrl("MonthView.qml"):"" | 368 | source: tabs.selectedTab == monthTab ? Qt.resolvedUrl("views/MonthView.qml"):"" |
297 | 365 | onLoaded: { | 369 | onLoaded: { |
298 | 366 | item.currentMonth = tabs.currentDay.midnight(); | 370 | item.currentMonth = tabs.currentDay.midnight(); |
299 | 367 | } | 371 | } |
300 | @@ -389,7 +393,7 @@ | |||
301 | 389 | page: Loader{ | 393 | page: Loader{ |
302 | 390 | id: weekViewLoader | 394 | id: weekViewLoader |
303 | 391 | objectName: "weekViewLoader" | 395 | objectName: "weekViewLoader" |
305 | 392 | source: tabs.selectedTab == weekTab ? Qt.resolvedUrl("WeekView.qml"):"" | 396 | source: tabs.selectedTab == weekTab ? Qt.resolvedUrl("views/WeekView.qml"):"" |
306 | 393 | onLoaded: { | 397 | onLoaded: { |
307 | 394 | item.isCurrentPage= Qt.binding(function() { return tabs.selectedTab == weekTab }) | 398 | item.isCurrentPage= Qt.binding(function() { return tabs.selectedTab == weekTab }) |
308 | 395 | item.dayStart = tabs.currentDay; | 399 | item.dayStart = tabs.currentDay; |
309 | @@ -422,7 +426,7 @@ | |||
310 | 422 | page: Loader{ | 426 | page: Loader{ |
311 | 423 | id: dayViewLoader | 427 | id: dayViewLoader |
312 | 424 | objectName: "dayViewLoader" | 428 | objectName: "dayViewLoader" |
314 | 425 | source: tabs.selectedTab == dayTab ? Qt.resolvedUrl("DayView.qml"):"" | 429 | source: tabs.selectedTab == dayTab ? Qt.resolvedUrl("views/DayView.qml"):"" |
315 | 426 | onLoaded: { | 430 | onLoaded: { |
316 | 427 | item.isCurrentPage= Qt.binding(function() { return tabs.selectedTab == dayTab }) | 431 | item.isCurrentPage= Qt.binding(function() { return tabs.selectedTab == dayTab }) |
317 | 428 | item.currentDay = tabs.currentDay; | 432 | item.currentDay = tabs.currentDay; |
318 | @@ -450,7 +454,7 @@ | |||
319 | 450 | page: Loader { | 454 | page: Loader { |
320 | 451 | id: agendaViewLoader | 455 | id: agendaViewLoader |
321 | 452 | objectName: "agendaViewLoader" | 456 | objectName: "agendaViewLoader" |
323 | 453 | source: tabs.selectedTab == agendaTab ? Qt.resolvedUrl("AgendaView.qml"):"" | 457 | source: tabs.selectedTab == agendaTab ? Qt.resolvedUrl("views/AgendaView.qml"):"" |
324 | 454 | 458 | ||
325 | 455 | onLoaded: { | 459 | onLoaded: { |
326 | 456 | item.currentDay = tabs.currentDay; | 460 | item.currentDay = tabs.currentDay; |
327 | 457 | 461 | ||
328 | === added directory 'app/components' | |||
329 | === added file 'app/components/CMakeLists.txt' | |||
330 | --- app/components/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
331 | +++ app/components/CMakeLists.txt 2014-10-20 19:18:23 +0000 | |||
332 | @@ -0,0 +1,6 @@ | |||
333 | 1 | file(GLOB COMPONENTS_QML_JS_FILES *.qml *.js) | ||
334 | 2 | |||
335 | 3 | # make the files visible in the qtcreator tree | ||
336 | 4 | add_custom_target(ubuntu-calendar-app_components_QMlFiles ALL SOURCES ${COMPONENTS_QML_JS_FILES}) | ||
337 | 5 | |||
338 | 6 | install(FILES ${COMPONENTS_QML_JS_FILES} DESTINATION ${UBUNTU-CALENDAR_APP_DIR}/components) | ||
339 | 0 | 7 | ||
340 | === renamed file 'ColorPickerDialog.qml' => 'app/components/ColorPickerDialog.qml' | |||
341 | === renamed file 'DayHeaderBackground.qml' => 'app/components/DayHeaderBackground.qml' | |||
342 | --- DayHeaderBackground.qml 2014-09-20 10:45:35 +0000 | |||
343 | +++ app/components/DayHeaderBackground.qml 2014-10-20 19:18:23 +0000 | |||
344 | @@ -16,13 +16,14 @@ | |||
345 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
346 | 17 | */ | 17 | */ |
347 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.3 |
348 | 19 | import "../images" | ||
349 | 19 | 20 | ||
350 | 20 | Item { | 21 | Item { |
351 | 21 | width: parent.width | 22 | width: parent.width |
352 | 22 | height:parent.height | 23 | height:parent.height |
353 | 23 | BorderImage { | 24 | BorderImage { |
354 | 24 | id: separator | 25 | id: separator |
356 | 25 | source: "PageHeaderBaseDividerLight.png" | 26 | source: "../images/PageHeaderBaseDividerLight.png" |
357 | 26 | width: parent.width; | 27 | width: parent.width; |
358 | 27 | height: parent.height | 28 | height: parent.height |
359 | 28 | } | 29 | } |
360 | @@ -33,6 +34,6 @@ | |||
361 | 33 | left: parent.left | 34 | left: parent.left |
362 | 34 | right: parent.right | 35 | right: parent.right |
363 | 35 | } | 36 | } |
365 | 36 | source: "PageHeaderBaseDividerBottom.png" | 37 | source: "../images/PageHeaderBaseDividerBottom.png" |
366 | 37 | } | 38 | } |
367 | 38 | } | 39 | } |
368 | 39 | 40 | ||
369 | === renamed file 'EventBubble.qml' => 'app/components/EventBubble.qml' | |||
370 | === renamed file 'EventListModel.qml' => 'app/components/EventListModel.qml' | |||
371 | === renamed file 'HeaderDateComponent.qml' => 'app/components/HeaderDateComponent.qml' | |||
372 | === renamed file 'PathViewBase.qml' => 'app/components/PathViewBase.qml' | |||
373 | === renamed file 'ViewType.js' => 'app/components/ViewType.js' | |||
374 | === renamed file 'colorUtils.js' => 'app/components/colorUtils.js' | |||
375 | === renamed file 'dateExt.js' => 'app/components/dateExt.js' | |||
376 | === added directory 'app/events' | |||
377 | === added file 'app/events/CMakeLists.txt' | |||
378 | --- app/events/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
379 | +++ app/events/CMakeLists.txt 2014-10-20 19:18:23 +0000 | |||
380 | @@ -0,0 +1,6 @@ | |||
381 | 1 | file(GLOB EVENTS_QML_JS_FILES *.qml *.js) | ||
382 | 2 | |||
383 | 3 | # make the files visible in the qtcreator tree | ||
384 | 4 | add_custom_target(ubuntu-calendar-app_events_QMlFiles ALL SOURCES ${EVENTS_QML_JS_FILES}) | ||
385 | 5 | |||
386 | 6 | install(FILES ${EVENTS_QML_JS_FILES} DESTINATION ${UBUNTU-CALENDAR_APP_DIR}/events) | ||
387 | 0 | 7 | ||
388 | === renamed file 'ContactChoicePopup.qml' => 'app/events/ContactChoicePopup.qml' | |||
389 | === renamed file 'Defines.js' => 'app/events/Defines.js' | |||
390 | === renamed file 'DeleteConfirmationDialog.qml' => 'app/events/DeleteConfirmationDialog.qml' | |||
391 | === renamed file 'EditEventConfirmationDialog.qml' => 'app/events/EditEventConfirmationDialog.qml' | |||
392 | === renamed file 'EventDetails.qml' => 'app/events/EventDetails.qml' | |||
393 | === renamed file 'EventReminder.qml' => 'app/events/EventReminder.qml' | |||
394 | === renamed file 'EventRepetition.qml' => 'app/events/EventRepetition.qml' | |||
395 | === renamed file 'EventUtils.qml' => 'app/events/EventUtils.qml' | |||
396 | === renamed file 'KeyboardRectangle.qml' => 'app/events/KeyboardRectangle.qml' | |||
397 | === renamed file 'LimitLabelDefines.qml' => 'app/events/LimitLabelDefines.qml' | |||
398 | === renamed file 'NewEvent.qml' => 'app/events/NewEvent.qml' | |||
399 | --- NewEvent.qml 2014-10-20 15:24:00 +0000 | |||
400 | +++ app/events/NewEvent.qml 2014-10-20 19:18:23 +0000 | |||
401 | @@ -24,6 +24,7 @@ | |||
402 | 24 | import Ubuntu.Components.Themes.Ambiance 1.0 | 24 | import Ubuntu.Components.Themes.Ambiance 1.0 |
403 | 25 | import Ubuntu.Components.Pickers 1.0 | 25 | import Ubuntu.Components.Pickers 1.0 |
404 | 26 | import QtOrganizer 5.0 | 26 | import QtOrganizer 5.0 |
405 | 27 | import "../components" | ||
406 | 27 | import "Defines.js" as Defines | 28 | import "Defines.js" as Defines |
407 | 28 | 29 | ||
408 | 29 | Page { | 30 | Page { |
409 | 30 | 31 | ||
410 | === renamed file 'NewEventEntryField.qml' => 'app/events/NewEventEntryField.qml' | |||
411 | === renamed file 'Recurrence.js' => 'app/events/Recurrence.js' | |||
412 | === renamed file 'RecurrenceLabelDefines.qml' => 'app/events/RecurrenceLabelDefines.qml' | |||
413 | === renamed file 'RemindersModel.qml' => 'app/events/RemindersModel.qml' | |||
414 | === renamed file 'ScrollAnimation.qml' => 'app/events/ScrollAnimation.qml' | |||
415 | === added directory 'app/images' | |||
416 | === added file 'app/images/CMakeLists.txt' | |||
417 | --- app/images/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
418 | +++ app/images/CMakeLists.txt 2014-10-20 19:18:23 +0000 | |||
419 | @@ -0,0 +1,6 @@ | |||
420 | 1 | file(GLOB IMAGES_FILES *.png *.jpg *.svg) | ||
421 | 2 | |||
422 | 3 | # make the files visible in the qtcreator tree | ||
423 | 4 | add_custom_target(ubuntu-calendar-app_images_QMlFiles ALL SOURCES ${IMAGES_FILES}) | ||
424 | 5 | |||
425 | 6 | install(FILES ${IMAGES_FILES} DESTINATION ${UBUNTU-CALENDAR_APP_DIR}/images) | ||
426 | 0 | 7 | ||
427 | === renamed file 'PageHeaderBaseDividerBottom@18.png' => 'app/images/PageHeaderBaseDividerBottom@18.png' | |||
428 | === renamed file 'PageHeaderBaseDividerLight@18.png' => 'app/images/PageHeaderBaseDividerLight@18.png' | |||
429 | === added directory 'app/timelineComponents' | |||
430 | === renamed file 'AllDayEventComponent.qml' => 'app/timelineComponents/AllDayEventComponent.qml' | |||
431 | --- AllDayEventComponent.qml 2014-10-20 15:20:21 +0000 | |||
432 | +++ app/timelineComponents/AllDayEventComponent.qml 2014-10-20 19:18:23 +0000 | |||
433 | @@ -19,8 +19,8 @@ | |||
434 | 19 | import Ubuntu.Components 1.1 | 19 | import Ubuntu.Components 1.1 |
435 | 20 | import Ubuntu.Components.Popups 1.0 | 20 | import Ubuntu.Components.Popups 1.0 |
436 | 21 | 21 | ||
439 | 22 | import "dateExt.js" as DateExt | 22 | import "../components/dateExt.js" as DateExt |
440 | 23 | import "ViewType.js" as ViewType | 23 | import "../components/ViewType.js" as ViewType |
441 | 24 | 24 | ||
442 | 25 | Item { | 25 | Item { |
443 | 26 | id: root | 26 | id: root |
444 | @@ -85,7 +85,7 @@ | |||
445 | 85 | if( allDayButton.events.length > 1 ) { | 85 | if( allDayButton.events.length > 1 ) { |
446 | 86 | PopupUtils.open(popoverComponent, root,{"events": allDayButton.events}) | 86 | PopupUtils.open(popoverComponent, root,{"events": allDayButton.events}) |
447 | 87 | } else { | 87 | } else { |
449 | 88 | pageStack.push(Qt.resolvedUrl("EventDetails.qml"),{"event":allDayButton.events[0],"model": root.model}); | 88 | pageStack.push(Qt.resolvedUrl("../events/EventDetails.qml"),{"event":allDayLabel.events[0],"model": root.model}); |
450 | 89 | } | 89 | } |
451 | 90 | } | 90 | } |
452 | 91 | } | 91 | } |
453 | @@ -111,8 +111,8 @@ | |||
454 | 111 | text = i18n.tr("%1 ev.").arg(events.length) | 111 | text = i18n.tr("%1 ev.").arg(events.length) |
455 | 112 | } else { | 112 | } else { |
456 | 113 | if( events.length > 1) { | 113 | if( events.length > 1) { |
459 | 114 | // TRANSLATORS: the argument refers to the number of all day events | 114 | // TRANSLATORS: the argument refers to the number of all day events |
460 | 115 | text = i18n.tr("%1 all day event", "%1 all day events", events.length).arg(events.length) | 115 | text = i18n.tr("%1 all day event", "%1 all day events", events.length).arg(events.length) |
461 | 116 | } else { | 116 | } else { |
462 | 117 | text = events[0].displayLabel; | 117 | text = events[0].displayLabel; |
463 | 118 | } | 118 | } |
464 | @@ -155,7 +155,7 @@ | |||
465 | 155 | anchors.fill: parent | 155 | anchors.fill: parent |
466 | 156 | onClicked: { | 156 | onClicked: { |
467 | 157 | popover.hide(); | 157 | popover.hide(); |
469 | 158 | pageStack.push(Qt.resolvedUrl("EventDetails.qml"),{"event":modelData,"model": root.model}); | 158 | pageStack.push(Qt.resolvedUrl("../events/EventDetails.qml"),{"event":modelData,"model": root.model}); |
470 | 159 | } | 159 | } |
471 | 160 | } | 160 | } |
472 | 161 | } | 161 | } |
473 | 162 | 162 | ||
474 | === added file 'app/timelineComponents/CMakeLists.txt' | |||
475 | --- app/timelineComponents/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
476 | +++ app/timelineComponents/CMakeLists.txt 2014-10-20 19:18:23 +0000 | |||
477 | @@ -0,0 +1,6 @@ | |||
478 | 1 | file(GLOB TIMELINE_COMPONENTS_QML_JS_FILES *.qml *.js) | ||
479 | 2 | |||
480 | 3 | # make the files visible in the qtcreator tree | ||
481 | 4 | add_custom_target(ubuntu-calendar-app_timeline_components_QMlFiles ALL SOURCES ${TIMELINE_COMPONENTS_QML_JS_FILES}) | ||
482 | 5 | |||
483 | 6 | install(FILES ${TIMELINE_COMPONENTS_QML_JS_FILES} DESTINATION ${UBUNTU-CALENDAR_APP_DIR}/timelineComponents) | ||
484 | 0 | 7 | ||
485 | === renamed file 'EventLayoutHelper.js' => 'app/timelineComponents/EventLayoutHelper.js' | |||
486 | === renamed file 'TimeLineBackground.qml' => 'app/timelineComponents/TimeLineBackground.qml' | |||
487 | --- TimeLineBackground.qml 2014-10-04 02:19:01 +0000 | |||
488 | +++ app/timelineComponents/TimeLineBackground.qml 2014-10-20 19:18:23 +0000 | |||
489 | @@ -18,6 +18,7 @@ | |||
490 | 18 | 18 | ||
491 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
492 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
493 | 21 | import "../components" | ||
494 | 21 | 22 | ||
495 | 22 | Column { | 23 | Column { |
496 | 23 | width: parent.width | 24 | width: parent.width |
497 | 24 | 25 | ||
498 | === renamed file 'TimeLineBase.qml' => 'app/timelineComponents/TimeLineBase.qml' | |||
499 | --- TimeLineBase.qml 2014-10-03 03:24:29 +0000 | |||
500 | +++ app/timelineComponents/TimeLineBase.qml 2014-10-20 19:18:23 +0000 | |||
501 | @@ -17,7 +17,9 @@ | |||
502 | 17 | */ | 17 | */ |
503 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.3 |
504 | 19 | import Ubuntu.Components 1.1 | 19 | import Ubuntu.Components 1.1 |
506 | 20 | import "dateExt.js" as DateExt | 20 | import "../components" |
507 | 21 | import "../components/dateExt.js" as DateExt | ||
508 | 22 | |||
509 | 21 | 23 | ||
510 | 22 | Item { | 24 | Item { |
511 | 23 | id: bubbleOverLay | 25 | id: bubbleOverLay |
512 | @@ -34,7 +36,7 @@ | |||
513 | 34 | var selectedDate = new Date(day); | 36 | var selectedDate = new Date(day); |
514 | 35 | var hour = parseInt(mouseY / hourHeight); | 37 | var hour = parseInt(mouseY / hourHeight); |
515 | 36 | selectedDate.setHours(hour) | 38 | selectedDate.setHours(hour) |
517 | 37 | pageStack.push(Qt.resolvedUrl("NewEvent.qml"), {"date":selectedDate, "model":eventModel}); | 39 | pageStack.push(Qt.resolvedUrl("..events/NewEvent.qml"), {"date":selectedDate, "model":eventModel}); |
518 | 38 | } | 40 | } |
519 | 39 | } | 41 | } |
520 | 40 | 42 | ||
521 | @@ -54,7 +56,7 @@ | |||
522 | 54 | } | 56 | } |
523 | 55 | 57 | ||
524 | 56 | function showEventDetails(event) { | 58 | function showEventDetails(event) { |
526 | 57 | pageStack.push(Qt.resolvedUrl("EventDetails.qml"), {"event":event,"model":model}); | 59 | pageStack.push(Qt.resolvedUrl("../events/EventDetails.qml"), {"event":event,"model":model}); |
527 | 58 | } | 60 | } |
528 | 59 | 61 | ||
529 | 60 | WorkerScript { | 62 | WorkerScript { |
530 | 61 | 63 | ||
531 | === renamed file 'TimeLineBaseComponent.qml' => 'app/timelineComponents/TimeLineBaseComponent.qml' | |||
532 | --- TimeLineBaseComponent.qml 2014-10-04 02:19:01 +0000 | |||
533 | +++ app/timelineComponents/TimeLineBaseComponent.qml 2014-10-20 19:18:23 +0000 | |||
534 | @@ -21,8 +21,10 @@ | |||
535 | 21 | import Ubuntu.Components 1.1 | 21 | import Ubuntu.Components 1.1 |
536 | 22 | import Ubuntu.Components.Popups 1.0 | 22 | import Ubuntu.Components.Popups 1.0 |
537 | 23 | import QtOrganizer 5.0 | 23 | import QtOrganizer 5.0 |
540 | 24 | import "dateExt.js" as DateExt | 24 | import "../components" |
541 | 25 | import "ViewType.js" as ViewType | 25 | import "../components/dateExt.js" as DateExt |
542 | 26 | import "../components/ViewType.js" as ViewType | ||
543 | 27 | |||
544 | 26 | 28 | ||
545 | 27 | Item { | 29 | Item { |
546 | 28 | id: root | 30 | id: root |
547 | 29 | 31 | ||
548 | === renamed file 'TimeLineHeader.qml' => 'app/timelineComponents/TimeLineHeader.qml' | |||
549 | --- TimeLineHeader.qml 2014-10-03 04:15:55 +0000 | |||
550 | +++ app/timelineComponents/TimeLineHeader.qml 2014-10-20 19:18:23 +0000 | |||
551 | @@ -18,7 +18,9 @@ | |||
552 | 18 | 18 | ||
553 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
554 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
556 | 21 | import "ViewType.js" as ViewType | 21 | import "../components" |
557 | 22 | import "../components/dateExt.js" as DateExt | ||
558 | 23 | import "../components/ViewType.js" as ViewType | ||
559 | 22 | 24 | ||
560 | 23 | PathViewBase { | 25 | PathViewBase { |
561 | 24 | id: header | 26 | id: header |
562 | 25 | 27 | ||
563 | === renamed file 'TimeLineHeaderComponent.qml' => 'app/timelineComponents/TimeLineHeaderComponent.qml' | |||
564 | --- TimeLineHeaderComponent.qml 2014-10-03 04:15:55 +0000 | |||
565 | +++ app/timelineComponents/TimeLineHeaderComponent.qml 2014-10-20 19:18:23 +0000 | |||
566 | @@ -18,8 +18,10 @@ | |||
567 | 18 | 18 | ||
568 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
569 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
572 | 21 | import "dateExt.js" as DateExt | 21 | import "../components" |
573 | 22 | import "ViewType.js" as ViewType | 22 | import "../components/dateExt.js" as DateExt |
574 | 23 | import "../components/ViewType.js" as ViewType | ||
575 | 24 | |||
576 | 23 | 25 | ||
577 | 24 | Row{ | 26 | Row{ |
578 | 25 | id: header | 27 | id: header |
579 | 26 | 28 | ||
580 | === renamed file 'TimeSeparator.qml' => 'app/timelineComponents/TimeSeparator.qml' | |||
581 | === added directory 'app/views' | |||
582 | === renamed file 'AgendaView.qml' => 'app/views/AgendaView.qml' | |||
583 | --- AgendaView.qml 2014-09-20 14:08:18 +0000 | |||
584 | +++ app/views/AgendaView.qml 2014-10-20 19:18:23 +0000 | |||
585 | @@ -19,7 +19,9 @@ | |||
586 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
587 | 20 | import QtOrganizer 5.0 | 20 | import QtOrganizer 5.0 |
588 | 21 | import Ubuntu.Components 1.1 | 21 | import Ubuntu.Components 1.1 |
590 | 22 | import "dateExt.js" as DateExt | 22 | import "../components" |
591 | 23 | import "../components/dateExt.js" as DateExt | ||
592 | 24 | |||
593 | 23 | 25 | ||
594 | 24 | Page{ | 26 | Page{ |
595 | 25 | id: root | 27 | id: root |
596 | @@ -278,7 +280,7 @@ | |||
597 | 278 | id: mouseArea | 280 | id: mouseArea |
598 | 279 | anchors.fill: parent | 281 | anchors.fill: parent |
599 | 280 | onClicked: { | 282 | onClicked: { |
601 | 281 | pageStack.push(Qt.resolvedUrl("EventDetails.qml"), {"event":event,"model":eventListModel}); | 283 | pageStack.push(Qt.resolvedUrl("../events/EventDetails.qml"), {"event":event,"model":eventListModel}); |
602 | 282 | } | 284 | } |
603 | 283 | } | 285 | } |
604 | 284 | } | 286 | } |
605 | 285 | 287 | ||
606 | === added file 'app/views/CMakeLists.txt' | |||
607 | --- app/views/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
608 | +++ app/views/CMakeLists.txt 2014-10-20 19:18:23 +0000 | |||
609 | @@ -0,0 +1,6 @@ | |||
610 | 1 | file(GLOB VIEWS_QML_JS_FILES *.qml *.js) | ||
611 | 2 | |||
612 | 3 | # make the files visible in the qtcreator tree | ||
613 | 4 | add_custom_target(ubuntu-calendar-app_views_QMlFiles ALL SOURCES ${VIEWS_QML_JS_FILES}) | ||
614 | 5 | |||
615 | 6 | install(FILES ${VIEWS_QML_JS_FILES} DESTINATION ${UBUNTU-CALENDAR_APP_DIR}/views) | ||
616 | 0 | 7 | ||
617 | === renamed file 'CalendarChoicePopup.qml' => 'app/views/CalendarChoicePopup.qml' | |||
618 | === renamed file 'DayView.qml' => 'app/views/DayView.qml' | |||
619 | --- DayView.qml 2014-10-20 13:55:14 +0000 | |||
620 | +++ app/views/DayView.qml 2014-10-20 19:18:23 +0000 | |||
621 | @@ -18,8 +18,12 @@ | |||
622 | 18 | 18 | ||
623 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
624 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
627 | 21 | import "dateExt.js" as DateExt | 21 | import "../timelineComponents" |
628 | 22 | import "ViewType.js" as ViewType | 22 | import "../components" |
629 | 23 | import "../events" | ||
630 | 24 | import "../components/dateExt.js" as DateExt | ||
631 | 25 | import "../components/ViewType.js" as ViewType | ||
632 | 26 | |||
633 | 23 | 27 | ||
634 | 24 | Page{ | 28 | Page{ |
635 | 25 | id: dayViewPage | 29 | id: dayViewPage |
636 | 26 | 30 | ||
637 | === renamed file 'MonthComponent.qml' => 'app/views/MonthComponent.qml' | |||
638 | --- MonthComponent.qml 2014-10-02 13:44:25 +0000 | |||
639 | +++ app/views/MonthComponent.qml 2014-10-20 19:18:23 +0000 | |||
640 | @@ -17,9 +17,9 @@ | |||
641 | 17 | */ | 17 | */ |
642 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.3 |
643 | 19 | import Ubuntu.Components 1.1 | 19 | import Ubuntu.Components 1.1 |
647 | 20 | import "dateExt.js" as DateExt | 20 | import "../components/dateExt.js" as DateExt |
648 | 21 | import "colorUtils.js" as Color | 21 | import "../components/colorUtils.js" as Color |
649 | 22 | 22 | import "../components" | |
650 | 23 | Item{ | 23 | Item{ |
651 | 24 | id: root | 24 | id: root |
652 | 25 | objectName: "MonthComponent" | 25 | objectName: "MonthComponent" |
653 | @@ -254,7 +254,7 @@ | |||
654 | 254 | selectedDate.setMonth(intern.monthStartMonth + 1) | 254 | selectedDate.setMonth(intern.monthStartMonth + 1) |
655 | 255 | selectedDate.setDate(date) | 255 | selectedDate.setDate(date) |
656 | 256 | selectedDate.setMinutes(60, 0, 0) | 256 | selectedDate.setMinutes(60, 0, 0) |
658 | 257 | pageStack.push(Qt.resolvedUrl("NewEvent.qml"), {"date":selectedDate, "model":eventModel}); | 257 | pageStack.push(Qt.resolvedUrl("../events/NewEvent.qml"), {"date":selectedDate, "model":eventModel}); |
659 | 258 | } | 258 | } |
660 | 259 | onClicked: { | 259 | onClicked: { |
661 | 260 | var selectedDate = new Date(intern.monthStartYear, | 260 | var selectedDate = new Date(intern.monthStartYear, |
662 | 261 | 261 | ||
663 | === renamed file 'MonthView.qml' => 'app/views/MonthView.qml' | |||
664 | --- MonthView.qml 2014-10-02 13:44:25 +0000 | |||
665 | +++ app/views/MonthView.qml 2014-10-20 19:18:23 +0000 | |||
666 | @@ -17,8 +17,9 @@ | |||
667 | 17 | */ | 17 | */ |
668 | 18 | import QtQuick 2.3 | 18 | import QtQuick 2.3 |
669 | 19 | import Ubuntu.Components 1.1 | 19 | import Ubuntu.Components 1.1 |
672 | 20 | import "dateExt.js" as DateExt | 20 | import "../components" |
673 | 21 | import "colorUtils.js" as Color | 21 | import "../components/dateExt.js" as DateExt |
674 | 22 | import "../components/colorUtils.js" as Color | ||
675 | 22 | 23 | ||
676 | 23 | Page { | 24 | Page { |
677 | 24 | id: monthViewPage | 25 | id: monthViewPage |
678 | 25 | 26 | ||
679 | === renamed file 'ViewHeader.qml' => 'app/views/ViewHeader.qml' | |||
680 | === renamed file 'WeekView.qml' => 'app/views/WeekView.qml' | |||
681 | --- WeekView.qml 2014-09-21 09:39:21 +0000 | |||
682 | +++ app/views/WeekView.qml 2014-10-20 19:18:23 +0000 | |||
683 | @@ -18,8 +18,10 @@ | |||
684 | 18 | 18 | ||
685 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
686 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
689 | 21 | import "dateExt.js" as DateExt | 21 | import "../components" |
690 | 22 | import "ViewType.js" as ViewType | 22 | import "../timelineComponents" |
691 | 23 | import "../components/dateExt.js" as DateExt | ||
692 | 24 | import "../components/ViewType.js" as ViewType | ||
693 | 23 | 25 | ||
694 | 24 | Page{ | 26 | Page{ |
695 | 25 | id: weekViewPage | 27 | id: weekViewPage |
696 | 26 | 28 | ||
697 | === renamed file 'YearView.qml' => 'app/views/YearView.qml' | |||
698 | --- YearView.qml 2014-10-02 13:44:25 +0000 | |||
699 | +++ app/views/YearView.qml 2014-10-20 19:18:23 +0000 | |||
700 | @@ -18,8 +18,9 @@ | |||
701 | 18 | 18 | ||
702 | 19 | import QtQuick 2.3 | 19 | import QtQuick 2.3 |
703 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
704 | 21 | import "../components" | ||
705 | 21 | 22 | ||
707 | 22 | import "dateExt.js" as DateExt | 23 | import "../components/dateExt.js" as DateExt |
708 | 23 | Page { | 24 | Page { |
709 | 24 | id: yearViewPage | 25 | id: yearViewPage |
710 | 25 | objectName: "yearViewPage" | 26 | objectName: "yearViewPage" |
711 | 26 | 27 | ||
712 | === removed file 'calendar-app.in' | |||
713 | --- calendar-app.in 2014-04-16 17:10:31 +0000 | |||
714 | +++ calendar-app.in 1970-01-01 00:00:00 +0000 | |||
715 | @@ -1,3 +0,0 @@ | |||
716 | 1 | #!/bin/sh | ||
717 | 2 | export QT_SELECT=qt5 | ||
718 | 3 | exec qmlscene @CMAKE_INSTALL_PREFIX@/@DATA_DIR@/@MAIN_QML@ | ||
719 | 4 | 0 | ||
720 | === removed file 'calendarTests.qml' | |||
721 | --- calendarTests.qml 2014-09-20 10:45:35 +0000 | |||
722 | +++ calendarTests.qml 1970-01-01 00:00:00 +0000 | |||
723 | @@ -1,30 +0,0 @@ | |||
724 | 1 | /* | ||
725 | 2 | * Copyright (C) 2013-2014 Canonical Ltd | ||
726 | 3 | * | ||
727 | 4 | * This file is part of Ubuntu Calendar App | ||
728 | 5 | * | ||
729 | 6 | * Ubuntu Calendar App is free software: you can redistribute it and/or modify | ||
730 | 7 | * it under the terms of the GNU General Public License version 3 as | ||
731 | 8 | * published by the Free Software Foundation. | ||
732 | 9 | * | ||
733 | 10 | * Ubuntu Calendar App is distributed in the hope that it will be useful, | ||
734 | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
735 | 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
736 | 13 | * GNU General Public License for more details. | ||
737 | 14 | * | ||
738 | 15 | * You should have received a copy of the GNU General Public License | ||
739 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
740 | 17 | */ | ||
741 | 18 | import QtQuick 2.3 | ||
742 | 19 | import Ubuntu.Components 1.1 | ||
743 | 20 | |||
744 | 21 | MainView { | ||
745 | 22 | width: units.gu(20) | ||
746 | 23 | height: units.gu(20) | ||
747 | 24 | Button { | ||
748 | 25 | anchors.fill: parent | ||
749 | 26 | anchors.margins: units.gu(5) | ||
750 | 27 | text: "Close" | ||
751 | 28 | onClicked: Qt.quit() | ||
752 | 29 | } | ||
753 | 30 | } | ||
754 | 31 | 0 | ||
755 | === added directory 'js' | |||
756 | === modified file 'tests/autopilot/calendar_app/tests/__init__.py' | |||
757 | --- tests/autopilot/calendar_app/tests/__init__.py 2014-09-30 00:38:14 +0000 | |||
758 | +++ tests/autopilot/calendar_app/tests/__init__.py 2014-10-20 19:18:23 +0000 | |||
759 | @@ -44,7 +44,7 @@ | |||
760 | 44 | """ | 44 | """ |
761 | 45 | 45 | ||
762 | 46 | local_location = os.path.dirname(os.path.dirname(os.getcwd())) | 46 | local_location = os.path.dirname(os.path.dirname(os.getcwd())) |
764 | 47 | local_location_qml = os.path.join(local_location, 'calendar.qml') | 47 | local_location_qml = os.path.join(local_location+'/app', 'calendar.qml') |
765 | 48 | installed_location_qml = "/usr/share/calendar-app/calendar.qml" | 48 | installed_location_qml = "/usr/share/calendar-app/calendar.qml" |
766 | 49 | 49 | ||
767 | 50 | def get_launcher_and_type(self): | 50 | def get_launcher_and_type(self): |
768 | 51 | 51 | ||
769 | === modified file 'tests/unittests/tst_date.qml' | |||
770 | --- tests/unittests/tst_date.qml 2014-08-18 16:48:54 +0000 | |||
771 | +++ tests/unittests/tst_date.qml 2014-10-20 19:18:23 +0000 | |||
772 | @@ -17,7 +17,7 @@ | |||
773 | 17 | */ | 17 | */ |
774 | 18 | import QtQuick 2.0 | 18 | import QtQuick 2.0 |
775 | 19 | import QtTest 1.0 | 19 | import QtTest 1.0 |
777 | 20 | import "../../dateExt.js" as DATE | 20 | import "../../components/dateExt.js" as DATE |
778 | 21 | 21 | ||
779 | 22 | TestCase{ | 22 | TestCase{ |
780 | 23 | name: "Date tests" | 23 | name: "Date tests" |
FAILED: Continuous integration, rev:443 91.189. 93.70:8080/ job/ubuntu- calendar- app-ci/ 786/ 91.189. 93.70:8080/ job/generic- mediumtests- utopic- python3/ 291/console 91.189. 93.70:8080/ job/ubuntu- calendar- app-utopic- amd64-ci/ 344/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/ubuntu- calendar- app-ci/ 786/rebuild
http://