-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainViewForm.qml
More file actions
95 lines (87 loc) · 2.61 KB
/
MainViewForm.qml
File metadata and controls
95 lines (87 loc) · 2.61 KB
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
import QtQuick 2.12
import QtQuick.Controls 2.12
import MainViewModel 1.0
Item {
property bool _is_prj_started: false
Resource
{
id:rsc
}
property CodeWindow codeWindow: myCodeWindow
// MFrame{
// anchors.fill: parent
// }
Component.onCompleted: {
mainview1.IsPowerOn ? poweron._isActive = true:poweron._isActive = false
}
Grid{
anchors.fill: parent
rows: 2
spacing: 5
leftPadding: 5
topPadding: 5
Grid{
//anchors.fill: parent
height: parent.height*0.15
width: parent.width - 10
columns: 3
spacing: 5
MButton {
id : poweron
_text: "Power On / Off"
_width:parent.width * 0.33
onBtnClick: {
mainview1.PowerOnClicked()
mainview1.IsPowerOn ? poweron._isActive = true:poweron._isActive = false
//poweron._isActive = true
}
}
MButton {
id : run
_text: "Run / Ready"
_width:parent.width * 0.33
onBtnClick: {
mainview1.RunClicked()
//run._isActive = true
}
}
MButton {
id : home
_text: "Home Position"
_width:parent.width * 0.33
onBtnClick: {
mainview1.HomePositionClicked()
//home._isActive = true
}
}
}
MFrame
{
width: parent.width - 9
height: parent.height*0.85 - 10
CodeWindow{
id: myCodeWindow
}
// Label{
// width: parent.width
// height: parent.height
// horizontalAlignment: Text.AlignHCenter
// verticalAlignment: Text.AlignVCenter
// text: "<b>" + "CODES" + "</b>"
// color: "#EFECCA"
// }
}
}
MainViewModel {
id: mainview1
onStartedPrj:
{
console.log("hiiiiiiiiiiiiiiihihiihihi")
_is_prj_started=true
}
onEndedPrj:
{
_is_prj_started=false
}
}
}