summaryrefslogtreecommitdiffstats
path: root/components/package/contents/ui/FocusComposer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/package/contents/ui/FocusComposer.qml')
-rw-r--r--components/package/contents/ui/FocusComposer.qml143
1 files changed, 49 insertions, 94 deletions
diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml
index b5bb5c35..8b7c2db9 100644
--- a/components/package/contents/ui/FocusComposer.qml
+++ b/components/package/contents/ui/FocusComposer.qml
@@ -1,20 +1,20 @@
1/* 1/*
2 Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net> 2 * Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net>
3 3 *
4 This program is free software; you can redistribute it and/or modify 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 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 6 * the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version. 7 * (at your option) any later version.
8 8 *
9 This program is distributed in the hope that it will be useful, 9 * This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details. 12 * GNU General Public License for more details.
13 13 *
14 You should have received a copy of the GNU General Public License along 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., 15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/ 17 */
18 18
19import QtQuick 2.4 19import QtQuick 2.4
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
@@ -70,25 +70,12 @@ Controls2.Popup {
70 70
71 anchors.fill: parent 71 anchors.fill: parent
72 72
73 Controls2.TextField {
74 id: subject
75
76 Layout.fillWidth: true
77
78 placeholderText: "Enter Subject..."
79
80 text: composer.subject
81
82 onTextChanged: {
83 composer.subject = text;
84 }
85 }
86
87 GridLayout { 73 GridLayout {
88 74
89 columns: 2 75 columns: 2
90 76
91 Controls2.Label { 77 Controls2.Label {
78 Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
92 text: "To" 79 text: "To"
93 } 80 }
94 81
@@ -110,8 +97,8 @@ Controls2.Popup {
110 97
111 98
112 Controls2.Label { 99 Controls2.Label {
100 Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
113 text: "Cc" 101 text: "Cc"
114
115 visible: cc.visible 102 visible: cc.visible
116 } 103 }
117 104
@@ -135,8 +122,8 @@ Controls2.Popup {
135 } 122 }
136 123
137 Controls2.Label { 124 Controls2.Label {
125 Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
138 text: "Bcc" 126 text: "Bcc"
139
140 visible: bcc.visible 127 visible: bcc.visible
141 } 128 }
142 129
@@ -158,93 +145,61 @@ Controls2.Popup {
158 composer.recepientSearchString = searchTerm 145 composer.recepientSearchString = searchTerm
159 } 146 }
160 } 147 }
161 }
162 148
163 RowLayout {
164 Controls2.Label { 149 Controls2.Label {
165 text: "Sending as" 150 text: "From"
166 } 151 }
167 152
168 Controls2.ComboBox { 153 RowLayout {
169 id: identityCombo
170 model: composer.identityModel
171 textRole: "displayName"
172 154
173 Layout.fillWidth: true 155 Controls2.ComboBox {
156 id: identityCombo
157 model: composer.identityModel
158 textRole: "displayName"
174 159
175 onCurrentIndexChanged: { 160 Layout.fillWidth: true
176 composer.currentIdentityIndex = currentIndex
177 }
178 }
179
180 Controls2.Button {
181 id: ccButton
182 161
183 text: "Cc" 162 onCurrentIndexChanged: {
184 163 composer.currentIdentityIndex = currentIndex
185 onClicked: { 164 }
186 cc.visible = true
187 ccButton.visible = false
188 } 165 }
189 }
190
191 Controls2.Button {
192 id: bccButton
193 166
194 text: "Bcc" 167 Controls2.Button {
168 id: ccButton
195 169
196 onClicked: { 170 text: "Cc"
197 bcc.visible = true 171 onClicked: {
198 bccButton.visible = false 172 cc.visible = true
173 ccButton.visible = false
174 }
199 } 175 }
200 }
201 }
202 176
203 /* 177 Controls2.Button {
204 Item { 178 id: bccButton
205
206 Layout.fillWidth: true
207
208 height: subject.height * 1.5
209
210 Controls2.Button {
211
212 anchors {
213 bottom: parent.bottom
214 right: parent.right
215 }
216 179
217 text: "Attach" 180 text: "Bcc"
218 181
219 onClicked: { 182 onClicked: {
220 fileDialog.open(); 183 bcc.visible = true
184 bccButton.visible = false
185 }
221 } 186 }
222 } 187 }
223 } 188 }
224 189
225 RowLayout { 190 Controls2.TextField {
191 id: subject
226 192
227 Layout.fillWidth: true 193 Layout.fillWidth: true
228 194
229 Repeater { 195 placeholderText: "Enter Subject..."
230
231 model: composer.attachments
232
233 delegate: Controls2.Label {
234 id: name
235
236 text: modelData
237
238 Rectangle {
239 196
240 anchors.fill: parent 197 text: composer.subject
241 198
242 color: "lightsteelblue" 199 onTextChanged: {
243 } 200 composer.subject = text;
244 }
245 } 201 }
246 } 202 }
247 */
248 203
249 Controls2.TextArea { 204 Controls2.TextArea {
250 id: content 205 id: content