Dekko
Loading...
Searching...
No Matches
SettingsWindow.qml
1import QtQuick 2.4
2import QtQuick.Window 2.1
3import Lomiri.Components 1.3
4import Lomiri.Components.Popups 1.3
5import MazDB 1.0
6import PlugMan 1.0
7import QuickFlux 1.0
8import Dekko.Controls 1.0
9import Dekko.Mail.API 1.0
10import Dekko.Mail.Stores.Composer 1.0
11import Dekko.Mail.Workers 1.0
12import Dekko.Lomiri.Constants 1.0
13import Dekko.Lomiri.Components 1.0
14import Dekko.Lomiri.Dialogs 1.0
16Window {
17 id: window
18 visible: true
19 minimumWidth: units.gu(30)
20 minimumHeight: units.gu(30)
21 width: units.gu(60)
22 height: units.gu(60)
23 flags: Qt.Window
24 modality: Qt.ApplicationModal
25
26 title: qsTr("Dekko Settings")
27
28 onClosing: {
29 ViewActions.closeSettings()
30 }
31
32 MazDBSettings {
33 category: "settings-property-cache"
34 property alias windowWidth: window.width
35 property alias windowHeight: window.height
36// property alias windowX: window.x
37// property alias windowY: window.y
38 }
39
40
41 Item {
42 id: rootSettings
43 anchors.fill: parent
44 StackView {
45 id: rootPageStack
46 anchors {
47 left: parent.left
48 top: parent.top
49 right: parent.right
50 bottom: kbdRect.top
51 }
52 delegate: DekkoAnimation.customStackViewDelegate2
53 initialItem: Item {
54 id: container
55 width: parent.width
56 height: parent.height
58 target: container
59 location: "Dekko::Stage::Settings"
60 loadMode: ItemRegistry.LoadFirstEnabled
61 }
62 }
63 }
64
65 DialogWorker {
66 name: PopupKeys.popupSettings
67 dlgTarget: rootSettings
68 noticePopup: Component {
70 }
71 confirmationPopup: Component {
73 }
74 }
75
77 id: kbdRect
78 anchors {
79 left: parent.left
80 bottom: parent.bottom
81 right: parent.right
82 }
83 }
84 }
85}