-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
124 lines (92 loc) · 2.26 KB
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import QtQuick 2.2
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.12
import QtCharts 2.3
import org.kde.kirigami 2.7 as Kirigami
import org.kde.mauikit 1.0 as Maui
import "src"
import "src/views/start"
import "src/views"
Maui.ApplicationWindow
{
id: root
title: "Nebula"
Maui.App.description: qsTr("Nebula is a end user app framework")
Maui.App.iconName: "qrc:/brain(1).svg"
property string mainPath: ""
property int firstLoad: 0
property int firstRealGraph: 0
property bool secondChart: false
/**** BRANDING COLORS ****/
/***** PROPS *****/
Timer {
id: popupClose
interval: 2000
onTriggered: mDialogPopup.close()
}
Maui.Dialog
{
id: mDialogPopup
title: "Warning"
message: "Sorry, But this project has no file available, try again"
defaultButtons: false
onOpened: popupClose.start()
}
Maui.FileDialog
{
id: fmDialog
}
Maui.Dialog
{
id: mDialog
title: "Project name"
message: ""
//confirmationDialog: true
entryField: true
acceptButton.text: qsTr("Create")
onAccepted:
{
console.log(textEntry.text)
console.log(loadProject.create(textEntry.text))
loadProject.create(textEntry.text)
loadFile.assign_project(textEntry.text)
mainPath = textEntry.text
close()
firstLoad = 0
}
rejectButton.text: qsTr("Cancel")
onRejected:
{
console.log("The creation of the project has been canceled")
close()
}
}
headBar.middleContent: [
ToolButton
{
icon.name: "love"
onClicked: currentView = views.start
}
]
sideBar: ActionsSideBar
{
// For modifications see src/views/ActionsSideBar.qml
}
Maui.Page
{
id: swipeView
anchors.fill: parent
Maui.ListBrowser
{
anchors.fill: parent
model: 30
delegate: Maui.ListBrowserDelegate
{
height: 80
width: parent.width
padding: 10
Kirigami.Theme.backgroundColor: "red"
}
}
}
}