diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-11-17 12:13:58 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-11-17 12:13:58 +0100 |
commit | 55a8383f159be85471c5e31a3c0b572503ebb8b0 (patch) | |
tree | ca07870e229f1ef9a04992626a030cd4b51052d1 /components/accounts/AccountWizard.qml | |
parent | cbbb5c0c1dba6b8e49c64849f08ac015d1f57592 (diff) | |
download | kube-55a8383f159be85471c5e31a3c0b572503ebb8b0.tar.gz kube-55a8383f159be85471c5e31a3c0b572503ebb8b0.zip |
initial revamped create account wizzard
Diffstat (limited to 'components/accounts/AccountWizard.qml')
-rw-r--r-- | components/accounts/AccountWizard.qml | 118 |
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 | |||
19 | import QtQuick 2.7 | ||
20 | import QtQuick.Layouts 1.1 | ||
21 | import QtQuick.Controls 1.4 as Controls | ||
22 | import QtQuick.Controls 2.0 as Controls2 | ||
23 | import org.kde.kirigami 1.0 as Kirigami | ||
24 | |||
25 | Controls2.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 | } | ||