-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlidePanel.qml
More file actions
106 lines (96 loc) · 2.64 KB
/
Copy pathSlidePanel.qml
File metadata and controls
106 lines (96 loc) · 2.64 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
95
96
97
98
99
100
101
102
103
104
105
106
import QtQml 2.12
import QtQuick 2.12
import QtQuick.Controls 2.12
Rectangle{
id: slidePanel
property bool opened: false
onOpenedChanged: {slideAnim.start(); isPanelOpened = opened}
anchors.bottomMargin: bar.height / 2
width: parent.width/3.5
color: secColor
radius: width / 15
Text {
anchors.top: parent.top
anchors.topMargin: 20
id: title
text: qsTr("Действия")
anchors.horizontalCenter: parent.horizontalCenter
color: textColor
font.family: helThin.font
font.pointSize: 20
}
Column{
id: coll
width: parent.width * 0.8
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 60
spacing: 10
Rectangle{
width: parent.width
implicitHeight: 1
color: "grey"
}
DoubleBottomButton {
id: firButton
buttonText: "Cохранить"
function buttonClicked(){
needToSaveTable()
}
}
DoubleBottomButton {
id: secButton
buttonText: "Экспорт"
function buttonClicked(){
// printer.chooseSavePath()
conveyInfoToPrinterAndPrint()
}
}
DoubleBottomButton {
id: thiButton
buttonText: "Экспорт препод."
function buttonClicked(){
conveyInfoToPrinterAndPrintTeachers()
}
}
Rectangle{
width: parent.width
implicitHeight: 1
color: "grey"
}
DoubleBottomButton {
buttonText: "Генерировать"
function buttonClicked(){
if(isLoading){
tableMixerClass.stopThread()
isLoading = false
}else{
isLoading = true
conveyInfoToMixer(false)
progressAnim.start()
}
}
}
DoubleBottomButton {
buttonText: "Проверить"
function buttonClicked(){}
}
DoubleBottomButton {
buttonText: "Очистить"
function buttonClicked(){}
}
}
NumberAnimation{
id: slideAnim
property int aim: 0
target: slidePanel
property: "anchors.leftMargin"
to: aim
duration: 150
function start(){
running = false
aim = aim == 0? - slidePanel.width * 1.05 : 0
running = true
}
}
}