summaryrefslogtreecommitdiffstats
path: root/components/accounts/contents/ui/AccountWizard.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-02-20 16:52:00 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-02-20 16:52:00 +0100
commita0c48081516f8fd6adae16c57a4f851bb139e36d (patch)
tree04528b7ccd2191a17f36f59b1aaaa9804c8cec9a /components/accounts/contents/ui/AccountWizard.qml
parenteb5dd31512b26d3240e2d07b29e976270f028297 (diff)
downloadkube-a0c48081516f8fd6adae16c57a4f851bb139e36d.tar.gz
kube-a0c48081516f8fd6adae16c57a4f851bb139e36d.zip
Normalize the component package structure
Diffstat (limited to 'components/accounts/contents/ui/AccountWizard.qml')
-rw-r--r--components/accounts/contents/ui/AccountWizard.qml128
1 files changed, 128 insertions, 0 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml
new file mode 100644
index 00000000..8cc90acb
--- /dev/null
+++ b/components/accounts/contents/ui/AccountWizard.qml
@@ -0,0 +1,128 @@
1/*
2 * Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net>
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
19import QtQuick 2.7
20import QtQuick.Layouts 1.1
21import QtQuick.Controls 2.0 as Controls2
22import org.kde.kirigami 1.0 as Kirigami
23
24Controls2.Popup {
25 id: popup
26
27 modal: true
28 focus: true
29 closePolicy: Controls2.Popup.CloseOnEscape | Controls2.Popup.CloseOnPressOutsideParent
30
31 clip: true
32
33 Controls2.StackView {
34 id: stack
35
36 anchors.fill: parent
37
38 initialItem: mainView
39 }
40
41 Component {
42 id: mainView
43
44 Item {
45
46 ColumnLayout {
47
48 anchors.centerIn: parent
49
50 width: parent.width * 0.4
51
52 spacing: Kirigami.Units.largeSpacing
53
54 Controls2.Button {
55
56 Layout.fillWidth: true
57
58 text: "kolabnow account"
59
60 onClicked: {
61 stack.push(kolabnow)
62 }
63 }
64
65 Controls2.Button {
66
67 Layout.fillWidth: true
68
69 text: "gmail account"
70
71 onClicked: {
72 stack.push(gmail)
73 }
74 }
75
76 Controls2.Button {
77
78 Layout.fillWidth: true
79
80 text: "imap account"
81
82 onClicked: {
83 stack.push(imap)
84 }
85 }
86
87 Controls2.Button {
88
89 Layout.fillWidth: true
90
91 text: "maildir archive"
92
93 onClicked: {
94 stack.push(maildir)
95 }
96 }
97 }
98 }
99 }
100
101 Component {
102 id: kolabnow
103
104 CreateKolabNow {
105 }
106 }
107
108 Component {
109 id: gmail
110
111 CreateGmail {
112 }
113 }
114
115 Component {
116 id: imap
117
118 CreateImap {
119 }
120 }
121
122 Component {
123 id: maildir
124
125 CreateMaildir {
126 }
127 }
128}