diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-01 15:06:41 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-01 15:06:41 +0100 |
commit | 6220a14fa325aa5141adc78898f0063a72881972 (patch) | |
tree | dec54452f21c41cae575a133e8bf5c6fac8a2c93 /views/calendar/main.qml | |
parent | 48627975b967254c8fb2646716d2682a525a73f4 (diff) | |
download | kube-6220a14fa325aa5141adc78898f0063a72881972.tar.gz kube-6220a14fa325aa5141adc78898f0063a72881972.zip |
initial calendar - week view
Diffstat (limited to 'views/calendar/main.qml')
-rw-r--r-- | views/calendar/main.qml | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/views/calendar/main.qml b/views/calendar/main.qml new file mode 100644 index 00000000..4065b876 --- /dev/null +++ b/views/calendar/main.qml | |||
@@ -0,0 +1,92 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2018 Christian Mollekopf, <mollekopf@kolabsys.com> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along | ||
15 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | */ | ||
18 | |||
19 | import QtQuick 2.7 | ||
20 | import QtQuick.Controls 2.0 | ||
21 | import QtQuick.Window 2.0 | ||
22 | |||
23 | import org.kube.framework 1.0 as Kube | ||
24 | import org.kube.test 1.0 | ||
25 | import "qml" | ||
26 | |||
27 | ApplicationWindow { | ||
28 | id: app | ||
29 | height: Screen.desktopAvailableHeight * 0.8 | ||
30 | width: Screen.desktopAvailableWidth * 0.8 | ||
31 | |||
32 | Component.onCompleted: { | ||
33 | var initialState = { | ||
34 | accounts: [{ | ||
35 | id: "account1", | ||
36 | name: "Test Account" | ||
37 | }], | ||
38 | identities: [{ | ||
39 | account: "account1", | ||
40 | name: "Test Identity", | ||
41 | address: "identity@example.org" | ||
42 | }], | ||
43 | resources: [{ | ||
44 | id: "resource1", | ||
45 | account: "account1", | ||
46 | type: "dummy" | ||
47 | }, | ||
48 | { | ||
49 | id: "resource2", | ||
50 | account: "account1", | ||
51 | type: "mailtransport" | ||
52 | }], | ||
53 | folders: [{ | ||
54 | id: "folder1", | ||
55 | resource: "resource1", | ||
56 | name: "Folder 1", | ||
57 | specialpurpose: ["inbox"], | ||
58 | mails: [{ | ||
59 | resource: "resource1", | ||
60 | messageId: "<msg1@test.com>", | ||
61 | date: "2017-07-24T15:46:29", | ||
62 | subject: "subject1", | ||
63 | body: "body", | ||
64 | to: ["to@example.org"], | ||
65 | cc: ["cc@example.org"], | ||
66 | bcc: ["bcc@example.org"], | ||
67 | }, | ||
68 | { | ||
69 | resource: "resource1", | ||
70 | inReplyTo: "<msg1@test.com>", | ||
71 | date: "2017-07-24T16:46:29", | ||
72 | subject: "subject2", | ||
73 | body: "body2", | ||
74 | to: ["to@example.org"], | ||
75 | }, | ||
76 | { | ||
77 | resource: "resource1", | ||
78 | date: "2017-07-24T18:46:29", | ||
79 | subject: "subject4", | ||
80 | body: "body4", | ||
81 | to: ["to@example.org"], | ||
82 | }, | ||
83 | ] | ||
84 | }], | ||
85 | } | ||
86 | TestStore.setup(initialState) | ||
87 | } | ||
88 | |||
89 | View { | ||
90 | anchors.fill: parent | ||
91 | } | ||
92 | } | ||