diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-05 13:03:57 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-05 13:03:57 +0200 |
commit | d7e3a79c0f3692031c4f039077faa7667bc5d696 (patch) | |
tree | d4befc0c54f0dc7fc700393ff8bc3c824404bd91 | |
parent | 7c94d55f866794b2f1bb33b1f241552496b59b31 (diff) | |
download | kube-d7e3a79c0f3692031c4f039077faa7667bc5d696.tar.gz kube-d7e3a79c0f3692031c4f039077faa7667bc5d696.zip |
Unused file
-rw-r--r-- | components/accounts/contents/ui/CreateGmail.qml | 207 |
1 files changed, 0 insertions, 207 deletions
diff --git a/components/accounts/contents/ui/CreateGmail.qml b/components/accounts/contents/ui/CreateGmail.qml deleted file mode 100644 index f16cd027..00000000 --- a/components/accounts/contents/ui/CreateGmail.qml +++ /dev/null | |||
@@ -1,207 +0,0 @@ | |||
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 | |||
26 | Item { | ||
27 | |||
28 | Kube.GmailController { | ||
29 | id: account | ||
30 | } | ||
31 | |||
32 | Controls.ToolButton { | ||
33 | iconName: Kube.Icons.goBack | ||
34 | |||
35 | tooltip: "go back" | ||
36 | |||
37 | onClicked: { | ||
38 | stack.pop() | ||
39 | } | ||
40 | } | ||
41 | |||
42 | //Item to avoid anchors conflict with stack | ||
43 | Item { | ||
44 | |||
45 | anchors { | ||
46 | fill: parent | ||
47 | margins: Kube.Units.largeSpacing * 2 | ||
48 | } | ||
49 | |||
50 | Kirigami.Heading { | ||
51 | id: heading | ||
52 | text: "Connect your Gmail account" | ||
53 | |||
54 | color: Kube.Colors.highlightColor | ||
55 | } | ||
56 | |||
57 | Kirigami.Label { | ||
58 | id: subHeadline | ||
59 | |||
60 | anchors { | ||
61 | left: heading.left | ||
62 | top: heading.bottom | ||
63 | } | ||
64 | |||
65 | width: parent.width | ||
66 | |||
67 | text: "To let Kube access your account, fill in email address, username, password and give the account a title that will be displayed inside Kube." | ||
68 | |||
69 | color: Kube.Colors.disabledTextColor | ||
70 | |||
71 | wrapMode: Text.Wrap | ||
72 | } | ||
73 | |||
74 | GridLayout { | ||
75 | anchors { | ||
76 | top:subHeadline.bottom | ||
77 | bottom: parent.bottom | ||
78 | left: parent.left | ||
79 | right: parent.right | ||
80 | topMargin: Kube.Units.largeSpacing * 2 | ||
81 | } | ||
82 | |||
83 | columns: 2 | ||
84 | columnSpacing: Kube.Units.largeSpacing | ||
85 | rowSpacing: Kube.Units.largeSpacing | ||
86 | |||
87 | Controls.Label { | ||
88 | text: "Title of Account" | ||
89 | Layout.alignment: Qt.AlignRight | ||
90 | } | ||
91 | Controls.TextField { | ||
92 | Layout.fillWidth: true | ||
93 | |||
94 | placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name" | ||
95 | |||
96 | text: account.name | ||
97 | |||
98 | onTextChanged: { | ||
99 | account.name = text | ||
100 | } | ||
101 | } | ||
102 | |||
103 | Controls.Label { | ||
104 | text: "Email address" | ||
105 | Layout.alignment: Qt.AlignRight | ||
106 | } | ||
107 | |||
108 | Controls.TextField { | ||
109 | Layout.fillWidth: true | ||
110 | |||
111 | text: account.emailAddress | ||
112 | |||
113 | onTextChanged: { | ||
114 | account.emailAddress = text | ||
115 | } | ||
116 | |||
117 | placeholderText: "Your email address" | ||
118 | } | ||
119 | |||
120 | Controls.Label { | ||
121 | text: "Name" | ||
122 | Layout.alignment: Qt.AlignRight | ||
123 | } | ||
124 | Controls.TextField { | ||
125 | Layout.fillWidth: true | ||
126 | |||
127 | placeholderText: "Your name" | ||
128 | |||
129 | text: account.identityName | ||
130 | |||
131 | onTextChanged: { | ||
132 | account.identityName = text | ||
133 | } | ||
134 | } | ||
135 | |||
136 | Kirigami.Label { | ||
137 | text: "Password" | ||
138 | Layout.alignment: Qt.AlignRight | ||
139 | } | ||
140 | |||
141 | RowLayout { | ||
142 | Layout.fillWidth: true | ||
143 | |||
144 | Controls.TextField { | ||
145 | id: pwField | ||
146 | Layout.fillWidth: true | ||
147 | |||
148 | placeholderText: "Password of your email account" | ||
149 | |||
150 | text: account.password | ||
151 | |||
152 | onTextChanged: { | ||
153 | account.password = text | ||
154 | } | ||
155 | |||
156 | echoMode: TextInput.Password | ||
157 | } | ||
158 | |||
159 | Controls.CheckBox { | ||
160 | text: "Show Password" | ||
161 | onClicked: { | ||
162 | if(pwField.echoMode == TextInput.Password) { | ||
163 | pwField.echoMode = TextInput.Normal; | ||
164 | } else { | ||
165 | pwField.echoMode = TextInput.Password; | ||
166 | } | ||
167 | } | ||
168 | } | ||
169 | } | ||
170 | |||
171 | Item { | ||
172 | Layout.fillHeight: true | ||
173 | } | ||
174 | |||
175 | Kirigami.Label { | ||
176 | text: "" | ||
177 | } | ||
178 | |||
179 | Kirigami.Label { | ||
180 | text: "" | ||
181 | } | ||
182 | |||
183 | Item { | ||
184 | Layout.fillWidth: true | ||
185 | |||
186 | Controls.Button { | ||
187 | text: "Discard" | ||
188 | |||
189 | onClicked: { | ||
190 | popup.close() | ||
191 | } | ||
192 | } | ||
193 | |||
194 | Controls.Button { | ||
195 | anchors.right: parent.right | ||
196 | |||
197 | text: "Save" | ||
198 | |||
199 | onClicked: { | ||
200 | account.createAction.execute() | ||
201 | popup.close() | ||
202 | } | ||
203 | } | ||
204 | } | ||
205 | } | ||
206 | } | ||
207 | } | ||