summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/CMakeLists.txt2
-rw-r--r--components/accounts/AccountWizard.qml9
-rw-r--r--components/accounts/CreateKolabNow.qml1
-rw-r--r--components/accounts/CreateMaildir.qml22
-rw-r--r--components/accounts/main.qml1
-rw-r--r--components/accounts/qmldir4
-rw-r--r--components/mail/contents/ui/main.qml12
7 files changed, 39 insertions, 12 deletions
diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt
index 30a9d09c..dd710975 100644
--- a/components/CMakeLists.txt
+++ b/components/CMakeLists.txt
@@ -26,6 +26,8 @@ install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kube/components)
26install(DIRECTORY package/contents/ui/ DESTINATION ${QML_INSTALL_DIR}/org/kube/components) 26install(DIRECTORY package/contents/ui/ DESTINATION ${QML_INSTALL_DIR}/org/kube/components)
27install(DIRECTORY mailviewer/qml/ DESTINATION ${QML_INSTALL_DIR}/org/kube/mailviewer) 27install(DIRECTORY mailviewer/qml/ DESTINATION ${QML_INSTALL_DIR}/org/kube/mailviewer)
28 28
29install(DIRECTORY accounts/ DESTINATION ${QML_INSTALL_DIR}/org/kube/accounts)
30
29include(${CMAKE_SOURCE_DIR}/KF5KirigamiMacros.cmake) 31include(${CMAKE_SOURCE_DIR}/KF5KirigamiMacros.cmake)
30kirigami_package_breeze_icons(ICONS applications-graphics view-list-icons folder-sync view-list-details configure document-edit dialog-cancel document-decrypt mail-reply-sender bookmarks folder) 32kirigami_package_breeze_icons(ICONS applications-graphics view-list-icons folder-sync view-list-details configure document-edit dialog-cancel document-decrypt mail-reply-sender bookmarks folder)
31 33
diff --git a/components/accounts/AccountWizard.qml b/components/accounts/AccountWizard.qml
index 44561ab8..16928eb9 100644
--- a/components/accounts/AccountWizard.qml
+++ b/components/accounts/AccountWizard.qml
@@ -25,18 +25,11 @@ import org.kde.kirigami 1.0 as Kirigami
25Controls2.Popup { 25Controls2.Popup {
26 id: popup 26 id: popup
27 27
28 height: app.height * 0.85
29 width: app.width * 0.85
30
31 x: app.width * 0.075
32 y: 50
33
34 visible: true
35
36 modal: true 28 modal: true
37 focus: true 29 focus: true
38 closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent 30 closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
39 31
32 clip: true
40 33
41 Controls2.StackView { 34 Controls2.StackView {
42 id: stack 35 id: stack
diff --git a/components/accounts/CreateKolabNow.qml b/components/accounts/CreateKolabNow.qml
index 3f23c20e..e86f4ec9 100644
--- a/components/accounts/CreateKolabNow.qml
+++ b/components/accounts/CreateKolabNow.qml
@@ -157,6 +157,7 @@ Item {
157 text: "Save" 157 text: "Save"
158 158
159 onClicked: { 159 onClicked: {
160 popup.close()
160 } 161 }
161 } 162 }
162 } 163 }
diff --git a/components/accounts/CreateMaildir.qml b/components/accounts/CreateMaildir.qml
index 63a63221..2b22d8b0 100644
--- a/components/accounts/CreateMaildir.qml
+++ b/components/accounts/CreateMaildir.qml
@@ -21,10 +21,19 @@ import QtQuick.Layouts 1.1
21import QtQuick.Controls 1.4 as Controls 21import QtQuick.Controls 1.4 as Controls
22import QtQuick.Controls 2.0 as Controls2 22import QtQuick.Controls 2.0 as Controls2
23import org.kde.kirigami 1.0 as Kirigami 23import org.kde.kirigami 1.0 as Kirigami
24import QtQuick.Dialogs 1.0 24import QtQuick.Dialogs 1.0 as Dialogs
25
26import org.kube.framework.domain 1.0 as KubeFramework
25 27
26Item { 28Item {
29 id: root
30
31 //Controller
32 KubeFramework.AccountsController {
33 id: accountsController
34 }
27 35
36 //Navigation
28 Controls.ToolButton { 37 Controls.ToolButton {
29 iconName: "go-previous" 38 iconName: "go-previous"
30 39
@@ -44,6 +53,7 @@ Item {
44 } 53 }
45 54
46 55
56 //BEGIN heading
47 Kirigami.Heading { 57 Kirigami.Heading {
48 id: heading 58 id: heading
49 text: "Add your Maildir archive" 59 text: "Add your Maildir archive"
@@ -66,7 +76,7 @@ Item {
66 color: Kirigami.Theme.disabledTextColor 76 color: Kirigami.Theme.disabledTextColor
67 wrapMode: Text.Wrap 77 wrapMode: Text.Wrap
68 } 78 }
69 79 //END heading
70 80
71 GridLayout { 81 GridLayout {
72 anchors { 82 anchors {
@@ -86,6 +96,7 @@ Item {
86 Layout.alignment: Qt.AlignRight 96 Layout.alignment: Qt.AlignRight
87 } 97 }
88 Controls.TextField { 98 Controls.TextField {
99 id: title
89 Layout.fillWidth: true 100 Layout.fillWidth: true
90 } 101 }
91 102
@@ -112,7 +123,7 @@ Item {
112 123
113 Component { 124 Component {
114 id: fileDialogComponent 125 id: fileDialogComponent
115 FileDialog { 126 Dialogs.FileDialog {
116 id: fileDialog 127 id: fileDialog
117 128
118 visible: true 129 visible: true
@@ -121,7 +132,7 @@ Item {
121 selectFolder: true 132 selectFolder: true
122 133
123 onAccepted: { 134 onAccepted: {
124 path.text = fileDialog.fileUrl 135 //root.path = fileDialog.fileUrl
125 } 136 }
126 } 137 }
127 } 138 }
@@ -132,6 +143,7 @@ Item {
132 text: "" 143 text: ""
133 } 144 }
134 Controls.CheckBox { 145 Controls.CheckBox {
146 id: readOnly
135 text: "Read only" 147 text: "Read only"
136 } 148 }
137 149
@@ -165,6 +177,8 @@ Item {
165 text: "Save" 177 text: "Save"
166 178
167 onClicked: { 179 onClicked: {
180 //accountsController.createMaildirAccount(root.name, root.path, root.readOnly)
181 popup.close()
168 } 182 }
169 } 183 }
170 } 184 }
diff --git a/components/accounts/main.qml b/components/accounts/main.qml
index 6b9fc86c..e15bca8f 100644
--- a/components/accounts/main.qml
+++ b/components/accounts/main.qml
@@ -25,5 +25,6 @@ Controls2.ApplicationWindow {
25 width: 1500 25 width: 1500
26 26
27 AccountWizard { 27 AccountWizard {
28 visible: true
28 } 29 }
29} 30}
diff --git a/components/accounts/qmldir b/components/accounts/qmldir
new file mode 100644
index 00000000..e563fec3
--- /dev/null
+++ b/components/accounts/qmldir
@@ -0,0 +1,4 @@
1module org.kube.accounts
2
3AccountWizard 1.0 AccountWizard.qml
4
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index c4340465..bd0e0f31 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -29,6 +29,7 @@ import org.kube.framework.actions 1.0 as KubeAction
29import org.kube.framework.settings 1.0 as KubeSettings 29import org.kube.framework.settings 1.0 as KubeSettings
30import org.kube.framework.domain 1.0 as KubeFramework 30import org.kube.framework.domain 1.0 as KubeFramework
31import org.kube.components 1.0 as KubeComponents 31import org.kube.components 1.0 as KubeComponents
32import org.kube.accounts 1.0 as KubeAccounts
32 33
33Controls2.ApplicationWindow { 34Controls2.ApplicationWindow {
34 id: app 35 id: app
@@ -315,4 +316,15 @@ Controls2.ApplicationWindow {
315 } 316 }
316 //END Composer 317 //END Composer
317 318
319 //BEGIN AccountWizard
320 KubeAccounts.AccountWizard {
321 id: accountWizard
322
323 height: app.height * 0.85
324 width: app.width * 0.85
325
326 x: app.width * 0.075
327 y: 50
328 }
329 //END AccountWizard
318} 330}