-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
125 lines (104 loc) · 2.53 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
125
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.2
import QtGraphicalEffects 1.0
import QtQml.Models 2.3
import com.nubeucab.srmanager 1.0
import "components" as UIObjects
ApplicationWindow
{
id: mainWindow
objectName: "WindowUserManager"
width: 700
height: 500
title: qsTr('NubeUCAB')
flags: Qt.Window | Qt.FramelessWindowHint
x: screen.width / 2 - 700 / 2
y: screen.height / 2 - 500 / 2
property int previousX
property int previousY
property bool isMaximized: false
visible: true
Material.accent: Material.LightBlue
MouseArea {
anchors.fill: parent
onClicked: {
focus = true
}
}
UIObjects.Header
{
}
UIObjects.HeaderBar
{
}
Component.onCompleted:
{
}
ListView
{
id: listData
highlightRangeMode: ListView.NoHighlightRange
anchors.horizontalCenter: parent.horizontalCenter
anchors.left: parent.left
anchors.bottom: parent.bottom
anchors.top: parent.top
spacing: 25
property string route: headerItem.route
header: Rectangle
{
id: rectHed
property string route: generalData.route
anchors.horizontalCenter: parent.horizontalCenter
width: generalData.width
height: 350
color: "transparent"
UIObjects.CreateUserForm
{
anchors.verticalCenter: parent.verticalCenter
id: generalData
}
}
anchors.topMargin: 125
clip: true
model: ListModel{
id: listModel
}
delegate: UIObjects.UserCard
{
name: thename
password: thepass
route: theroute
labelColor: thecolor
anchors.horizontalCenter: parent.horizontalCenter
}
footer: Rectangle
{
height: 25
Layout.fillWidth: true
color: "transparent"
}
}
UIObjects.PopupModal
{
id:popupadd
}
UIObjects.RadiusButton
{
icon: "\uf07b"
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.rightMargin: 20
anchors.bottomMargin: 20
function select()
{
serverRoute.setRoute(listData.route);
serverRoute.goToFileManager();
}
}
ServerRouteManager
{
id: serverRoute
}
}