From 5f71193631ed4d83c3f780b4e0e6b5ab45db3bc4 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sun, 20 Dec 2015 16:36:29 +0100 Subject: ui for maildir creation --- applications/CMakeLists.txt | 1 + applications/kube-accounts/CMakeLists.txt | 0 applications/kube-accounts/Maildir.qml | 100 ++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 applications/kube-accounts/CMakeLists.txt create mode 100644 applications/kube-accounts/Maildir.qml (limited to 'applications') diff --git a/applications/CMakeLists.txt b/applications/CMakeLists.txt index 0c12f3df..1db5ed2b 100644 --- a/applications/CMakeLists.txt +++ b/applications/CMakeLists.txt @@ -1 +1,2 @@ add_subdirectory(kmail-quick) +add_subdirectory(kube-accounts) \ No newline at end of file diff --git a/applications/kube-accounts/CMakeLists.txt b/applications/kube-accounts/CMakeLists.txt new file mode 100644 index 00000000..e69de29b diff --git a/applications/kube-accounts/Maildir.qml b/applications/kube-accounts/Maildir.qml new file mode 100644 index 00000000..0c7cadb2 --- /dev/null +++ b/applications/kube-accounts/Maildir.qml @@ -0,0 +1,100 @@ +import QtQuick 2.4 +import QtQuick.Controls 1.3 +import QtQuick.Layouts 1.1 +import QtQuick.Dialogs 1.0 + +import org.kde.akonadi2.settings 1.0 as Settings + +Item { + id: root + + height: 150 + width: 600 + + Settings.Maildir { + id: maildir + } + + ColumnLayout { + anchors { + fill: parent + margins: 10 + } + + GridLayout { + id: mainContent + + Layout.fillWidth: true + + rows: 2 + columns: 3 + + Label { + text: "Name:" + } + + TextField { + + Layout.fillWidth: true + + placeholderText: "Enter a name to identify the resource" + text: maildir.name + } + + Label { + + } + + Label { + text: "Location:" + } + + TextField { + + Layout.fillWidth: true + + placeholderText: "Click on the folder button to enter the location" + text: maildir.folderUrl + + enabled: false + } + + Button { + iconName: "folder" + + onClicked: { + fileDialog.visible = true + } + + FileDialog { + id: fileDialog + title: "Please choose the maildir folder" + folder: shortcuts.home + + selectFolder: true + + onAccepted: { + maildir.folderUrl = fileDialog.fileUrl + visible: false + } + onRejected: { + visible: false + } + } + } + } + + RowLayout { + id: buttons + + Layout.alignment: Qt.AlignRight + + Button { + text: "Create Resource" + } + Button { + text: "Cancel" + } + } + } +} \ No newline at end of file -- cgit v1.2.3