diff options
Diffstat (limited to 'components/accounts')
-rw-r--r-- | components/accounts/AccountWizard.qml | 9 | ||||
-rw-r--r-- | components/accounts/CreateKolabNow.qml | 1 | ||||
-rw-r--r-- | components/accounts/CreateMaildir.qml | 22 | ||||
-rw-r--r-- | components/accounts/main.qml | 1 | ||||
-rw-r--r-- | components/accounts/qmldir | 4 |
5 files changed, 25 insertions, 12 deletions
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 | |||
25 | Controls2.Popup { | 25 | Controls2.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 | |||
21 | import QtQuick.Controls 1.4 as Controls | 21 | import QtQuick.Controls 1.4 as Controls |
22 | import QtQuick.Controls 2.0 as Controls2 | 22 | import QtQuick.Controls 2.0 as Controls2 |
23 | import org.kde.kirigami 1.0 as Kirigami | 23 | import org.kde.kirigami 1.0 as Kirigami |
24 | import QtQuick.Dialogs 1.0 | 24 | import QtQuick.Dialogs 1.0 as Dialogs |
25 | |||
26 | import org.kube.framework.domain 1.0 as KubeFramework | ||
25 | 27 | ||
26 | Item { | 28 | Item { |
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 @@ | |||
1 | module org.kube.accounts | ||
2 | |||
3 | AccountWizard 1.0 AccountWizard.qml | ||
4 | |||