From fc1f6b2f4276f67008010e1f12e2eb1bf79da4a9 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 4 Feb 2016 13:59:30 +0100 Subject: Compoer + FocusComposer UI --- .../package/contents/ui/FocusComposer.qml | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 applications/kube-mail/package/contents/ui/FocusComposer.qml (limited to 'applications/kube-mail/package/contents/ui/FocusComposer.qml') diff --git a/applications/kube-mail/package/contents/ui/FocusComposer.qml b/applications/kube-mail/package/contents/ui/FocusComposer.qml new file mode 100644 index 00000000..20899817 --- /dev/null +++ b/applications/kube-mail/package/contents/ui/FocusComposer.qml @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2016 Michael Bohlender + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * +//import org.kde.kube.mail 1.0 as Mail + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +import QtQuick 2.4 +import QtQuick.Controls 1.4 +import QtQuick.Layouts 1.1 + +Rectangle { + id: root + + visible: false + + color: colorPalette.border + + opacity: 0.9 + + MouseArea { + anchors.fill: parent + + onClicked: { + root.visible = false + } + } + + Rectangle { + anchors.centerIn: parent + + height: root.height * 0.8 + width: root.width * 0.8 + + color: colorPalette.background + + MouseArea { + anchors.fill: parent + } + + ColumnLayout { + + anchors { + fill: parent + margins: unit.size * 3 + } + + Composer { + id: composer + + Layout.fillWidth: true + Layout.fillHeight: true + + } + + RowLayout { + Layout.fillWidth: true + + Button { + text: "Send" + + onClicked: { + composer.send() + root.visible = false + } + } + + Button { + text: "Save Draft" + + onClicked: { + composer.saveAsDraft() + root.visible = false + } + } + + Button { + text: "Discard" + + onClicked: { + composer.clear() + root.visible = false + } + } + } + } + } +} \ No newline at end of file -- cgit v1.2.3