summaryrefslogtreecommitdiffstats
path: root/components/accounts/AccountWizard.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/accounts/AccountWizard.qml')
-rw-r--r--components/accounts/AccountWizard.qml118
1 files changed, 118 insertions, 0 deletions
diff --git a/components/accounts/AccountWizard.qml b/components/accounts/AccountWizard.qml
new file mode 100644
index 00000000..44561ab8
--- /dev/null
+++ b/components/accounts/AccountWizard.qml
@@ -0,0 +1,118 @@
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 1.4 as Controls
22import QtQuick.Controls 2.0 as Controls2
23import org.kde.kirigami 1.0 as Kirigami
24
25Controls2.Popup {
26 id: popup
27
28 height: app.height * 0.85
29 width: app.width * 0.85
30
31 x: app.width * 0.075
32 y: 50
33
34 visible: true
35
36 modal: true
37 focus: true
38 closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
39
40
41 Controls2.StackView {
42 id: stack
43
44 anchors.fill: parent
45
46 initialItem: mainView
47 }
48
49 Component {
50 id: mainView
51
52 Item {
53
54 ColumnLayout {
55
56 anchors.centerIn: parent
57
58 width: parent.width * 0.4
59
60 spacing: Kirigami.Units.largeSpacing
61
62 Controls.Button {
63
64 Layout.fillWidth: true
65
66 text: "kolabnow account"
67
68 onClicked: {
69 stack.push(kolabnow)
70 }
71 }
72
73 Controls.Button {
74
75 Layout.fillWidth: true
76
77 text: "imap account"
78
79 onClicked: {
80 stack.push(imap)
81 }
82 }
83
84 Controls.Button {
85
86 Layout.fillWidth: true
87
88 text: "maildir archive"
89
90 onClicked: {
91 stack.push(maildir)
92 }
93 }
94 }
95 }
96 }
97
98 Component {
99 id: kolabnow
100
101 CreateKolabNow {
102 }
103 }
104
105 Component {
106 id: imap
107
108 CreateImap {
109 }
110 }
111
112 Component {
113 id: maildir
114
115 CreateMaildir {
116 }
117 }
118}