-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.qml
More file actions
114 lines (101 loc) · 2.59 KB
/
main.qml
File metadata and controls
114 lines (101 loc) · 2.59 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
107
108
109
110
111
112
113
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.3
import QtQuick.Dialogs 1.2
import My 1.0
ApplicationWindow {
id: root
visible: true
width: 1280
height: 720
minimumWidth: 300
minimumHeight: 250
visibility: "Maximized"
title: qsTr("Binbar")
FileDialog {
id: fileDialog
title: "Выберите файл, пожалуйста"
selectMultiple: false
selectExisting: true
selectFolder: false
onAccepted: {
backend.loadImage(fileDialog.fileUrl.toString(
).substring(8))
}
onRejected: {
console.log("Canceled")
}
Component.onCompleted: visible = false
}
FileDialog {
id: fileDialog2
title: "Выберите файл, пожалуйста"
selectMultiple: false
selectExisting: true
selectFolder: true
onAccepted: {
backend.setTempDir(folder.toString(
).substring(8))
}
onRejected: {
console.log("Canceled")
}
Component.onCompleted: visible = false
}
menuBar: MenuBar {
Menu {
title: qsTr("&Файл")
Action {
text: qsTr("&Открыть изображение...")
onTriggered:{
fileDialog.visible = true
}
}
Action {
text: qsTr("&Выбрать каталог для времнных файлов...")
onTriggered: {
fileDialog2.visible = true
}
}
}
Menu {
title: qsTr("&Help")
Action { text: qsTr("&1. Выберите изображение\n2. Выберите методпостроения баркодов\n3. Обработайте изображение\n4. Нажмите кнопку \"Show all\" и добавляйте объекты в классификатор") }
}
}
Topmenu {
id: menu
objectName: "menu"
height: 50
x: 10
y: 5
// width: parent.width
}
MainZone {
id: mainZone
objectName: "mainZone"
// anchors.fill: parent
anchors.top: menu.bottom
height: parent.height - menu.height - menu.y
width: parent.width
// anchors.bottom: root.bottom
// anchors.left: root.left
// anchors.right: root.right
// Button {
// id: button
// x: 112
// y: 56
// text: qsTr("Button")
// onClicked: backend.run2(mainZone)
// }
}
Component.onCompleted: {
backend.setup(mainZone.image, mainZone.preprocessedImage, mainZone.slides)
}
}
/*##^##
Designer {
D{i:0;formeditorZoom:0.5}
}
##^##*/