1
/* Copyright (C) 2014 Dan Chapman <dpniel@ubuntu.com>
3
This file is part of Dekko email client for Ubuntu Devices/
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License or (at your option) version 3
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
import Ubuntu.Components 1.1
20
import Ubuntu.Components.Popups 1.0
21
import "../Components"
35
text: i18n.tr("Drafts")
49
iconSource: Qt.resolvedUrl("../../icons/email.svg")
53
id: addAttachmentAction
54
text: i18n.tr("Add attachment")
55
iconName: "attachment"
57
var contentDialog = PopupUtils.open(Qt.resolvedUrl("../Dialogs/ContentPickerDialog.qml"), dekko, {
60
contentDialog.filesImported.connect(
62
for (var i in files) {
63
submissionManager.attachmentsModel.addAttachment(files[i].url.toString().replace("file://", ""));
72
text: i18n.tr("Cancel")
95
id: addAttachmentButton
96
action: addAttachmentAction