-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsedigopro_dialog_base.py
214 lines (208 loc) · 12.7 KB
/
sedigopro_dialog_base.py
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'sedigopro_dialog_base.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_sediGoProDialogBase(object):
def setupUi(self, sediGoProDialogBase):
sediGoProDialogBase.setObjectName("sediGoProDialogBase")
sediGoProDialogBase.resize(603, 500)
self.button_box = QtWidgets.QDialogButtonBox(sediGoProDialogBase)
self.button_box.setGeometry(QtCore.QRect(510, 460, 81, 32))
self.button_box.setOrientation(QtCore.Qt.Horizontal)
self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Ok)
self.button_box.setObjectName("button_box")
self.imageGoProViewer = QtWidgets.QGraphicsView(sediGoProDialogBase)
self.imageGoProViewer.setGeometry(QtCore.QRect(10, 10, 410, 310))
self.imageGoProViewer.setObjectName("imageGoProViewer")
self.connectionStatusLabel = QtWidgets.QLabel(sediGoProDialogBase)
self.connectionStatusLabel.setGeometry(QtCore.QRect(450, 20, 108, 19))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(204, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(204, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
brush = QtGui.QBrush(QtGui.QColor(190, 190, 190))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
self.connectionStatusLabel.setPalette(palette)
font = QtGui.QFont()
font.setPointSize(12)
self.connectionStatusLabel.setFont(font)
self.connectionStatusLabel.setObjectName("connectionStatusLabel")
self.connectGoProCameraButton = QtWidgets.QPushButton(sediGoProDialogBase)
self.connectGoProCameraButton.setGeometry(QtCore.QRect(450, 50, 111, 24))
self.connectGoProCameraButton.setObjectName("connectGoProCameraButton")
self.setWorkingDirectoryButton = QtWidgets.QPushButton(sediGoProDialogBase)
self.setWorkingDirectoryButton.setGeometry(QtCore.QRect(450, 120, 145, 24))
self.setWorkingDirectoryButton.setObjectName("setWorkingDirectoryButton")
self.label = QtWidgets.QLabel(sediGoProDialogBase)
self.label.setGeometry(QtCore.QRect(450, 160, 76, 16))
self.label.setObjectName("label")
self.groupBox = QtWidgets.QGroupBox(sediGoProDialogBase)
self.groupBox.setGeometry(QtCore.QRect(10, 330, 301, 161))
self.groupBox.setObjectName("groupBox")
self.prefixTextTagLineEdit = QtWidgets.QLineEdit(self.groupBox)
self.prefixTextTagLineEdit.setGeometry(QtCore.QRect(10, 130, 201, 24))
self.prefixTextTagLineEdit.setMaxLength(30)
self.prefixTextTagLineEdit.setObjectName("prefixTextTagLineEdit")
self.tagImageButton = QtWidgets.QPushButton(self.groupBox)
self.tagImageButton.setGeometry(QtCore.QRect(10, 30, 81, 24))
self.tagImageButton.setObjectName("tagImageButton")
self.llRadioButton = QtWidgets.QRadioButton(self.groupBox)
self.llRadioButton.setGeometry(QtCore.QRect(110, 30, 39, 22))
self.llRadioButton.setChecked(True)
self.llRadioButton.setObjectName("llRadioButton")
self.lrRadioButton = QtWidgets.QRadioButton(self.groupBox)
self.lrRadioButton.setGeometry(QtCore.QRect(150, 30, 40, 22))
self.lrRadioButton.setObjectName("lrRadioButton")
self.ulRadioButton = QtWidgets.QRadioButton(self.groupBox)
self.ulRadioButton.setGeometry(QtCore.QRect(200, 30, 41, 22))
self.ulRadioButton.setObjectName("ulRadioButton")
self.urRadioButton = QtWidgets.QRadioButton(self.groupBox)
self.urRadioButton.setGeometry(QtCore.QRect(250, 30, 43, 22))
self.urRadioButton.setObjectName("urRadioButton")
self.numImageSPinBox = QtWidgets.QSpinBox(self.groupBox)
self.numImageSPinBox.setGeometry(QtCore.QRect(230, 130, 61, 25))
font = QtGui.QFont()
font.setPointSize(12)
self.numImageSPinBox.setFont(font)
self.numImageSPinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.numImageSPinBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
self.numImageSPinBox.setObjectName("numImageSPinBox")
self.label_3 = QtWidgets.QLabel(self.groupBox)
self.label_3.setGeometry(QtCore.QRect(214, 132, 15, 20))
font = QtGui.QFont()
font.setPointSize(18)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.splitter_2 = QtWidgets.QSplitter(self.groupBox)
self.splitter_2.setGeometry(QtCore.QRect(10, 94, 281, 24))
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setObjectName("splitter_2")
self.label_4 = QtWidgets.QLabel(self.splitter_2)
font = QtGui.QFont()
font.setPointSize(12)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.defaultPrefixLineEdit = QtWidgets.QLineEdit(self.splitter_2)
self.defaultPrefixLineEdit.setObjectName("defaultPrefixLineEdit")
self.otherColorButton = QtWidgets.QPushButton(self.groupBox)
self.otherColorButton.setGeometry(QtCore.QRect(240, 60, 51, 24))
self.otherColorButton.setObjectName("otherColorButton")
self.currentColorButton = QtWidgets.QPushButton(self.groupBox)
self.currentColorButton.setGeometry(QtCore.QRect(150, 60, 21, 24))
self.currentColorButton.setText("")
self.currentColorButton.setObjectName("currentColorButton")
self.label_5 = QtWidgets.QLabel(self.groupBox)
self.label_5.setGeometry(QtCore.QRect(175, 60, 6, 22))
font = QtGui.QFont()
font.setPointSize(14)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.whiteTagTextButton = QtWidgets.QPushButton(self.groupBox)
self.whiteTagTextButton.setGeometry(QtCore.QRect(185, 60, 21, 24))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
self.whiteTagTextButton.setPalette(palette)
self.whiteTagTextButton.setAutoFillBackground(False)
self.whiteTagTextButton.setText("")
self.whiteTagTextButton.setObjectName("whiteTagTextButton")
self.blackTagTextButton = QtWidgets.QPushButton(self.groupBox)
self.blackTagTextButton.setGeometry(QtCore.QRect(212, 60, 21, 24))
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
brush.setStyle(QtCore.Qt.SolidPattern)
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
self.blackTagTextButton.setPalette(palette)
self.blackTagTextButton.setText("")
self.blackTagTextButton.setObjectName("blackTagTextButton")
self.textTagColorLabel = QtWidgets.QLabel(self.groupBox)
self.textTagColorLabel.setGeometry(QtCore.QRect(10, 60, 131, 24))
font = QtGui.QFont()
font.setPointSize(12)
self.textTagColorLabel.setFont(font)
self.textTagColorLabel.setObjectName("textTagColorLabel")
self.getGoProImageButton = QtWidgets.QPushButton(sediGoProDialogBase)
self.getGoProImageButton.setGeometry(QtCore.QRect(450, 260, 141, 61))
self.getGoProImageButton.setObjectName("getGoProImageButton")
self.groupBox_2 = QtWidgets.QGroupBox(sediGoProDialogBase)
self.groupBox_2.setGeometry(QtCore.QRect(320, 330, 271, 121))
self.groupBox_2.setObjectName("groupBox_2")
self.saveImageButton = QtWidgets.QPushButton(self.groupBox_2)
self.saveImageButton.setGeometry(QtCore.QRect(10, 30, 80, 24))
self.saveImageButton.setObjectName("saveImageButton")
self.imageNameLineEdit = QtWidgets.QLineEdit(self.groupBox_2)
self.imageNameLineEdit.setGeometry(QtCore.QRect(10, 80, 191, 24))
self.imageNameLineEdit.setObjectName("imageNameLineEdit")
self.label_2 = QtWidgets.QLabel(self.groupBox_2)
self.label_2.setGeometry(QtCore.QRect(210, 82, 33, 19))
font = QtGui.QFont()
font.setPointSize(12)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.currentDirectoryLabel = QtWidgets.QLabel(self.groupBox_2)
self.currentDirectoryLabel.setGeometry(QtCore.QRect(10, 60, 251, 16))
self.currentDirectoryLabel.setText("")
self.currentDirectoryLabel.setObjectName("currentDirectoryLabel")
self.setGoProOffButton = QtWidgets.QPushButton(sediGoProDialogBase)
self.setGoProOffButton.setGeometry(QtCore.QRect(450, 80, 51, 24))
self.setGoProOffButton.setObjectName("setGoProOffButton")
self.setGoProOnButton = QtWidgets.QPushButton(sediGoProDialogBase)
self.setGoProOnButton.setEnabled(False)
self.setGoProOnButton.setGeometry(QtCore.QRect(510, 80, 51, 24))
self.setGoProOnButton.setObjectName("setGoProOnButton")
self.currentPositionButton = QtWidgets.QPushButton(sediGoProDialogBase)
self.currentPositionButton.setGeometry(QtCore.QRect(450, 220, 127, 24))
self.currentPositionButton.setObjectName("currentPositionButton")
self.batteryProgressBar = QtWidgets.QProgressBar(sediGoProDialogBase)
self.batteryProgressBar.setGeometry(QtCore.QRect(450, 180, 141, 23))
self.batteryProgressBar.setProperty("value", 24)
self.batteryProgressBar.setObjectName("batteryProgressBar")
self.retranslateUi(sediGoProDialogBase)
self.button_box.accepted.connect(sediGoProDialogBase.accept)
self.button_box.rejected.connect(sediGoProDialogBase.reject)
QtCore.QMetaObject.connectSlotsByName(sediGoProDialogBase)
def retranslateUi(self, sediGoProDialogBase):
_translate = QtCore.QCoreApplication.translate
sediGoProDialogBase.setWindowTitle(_translate("sediGoProDialogBase", "Sediment image capture with GoPro camera"))
self.connectionStatusLabel.setText(_translate("sediGoProDialogBase", "Not connected"))
self.connectGoProCameraButton.setText(_translate("sediGoProDialogBase", "Connect GoPro"))
self.setWorkingDirectoryButton.setText(_translate("sediGoProDialogBase", "Set working directory..."))
self.label.setText(_translate("sediGoProDialogBase", "Battery level"))
self.groupBox.setTitle(_translate("sediGoProDialogBase", "Tag image"))
self.tagImageButton.setText(_translate("sediGoProDialogBase", "Tag image"))
self.llRadioButton.setText(_translate("sediGoProDialogBase", "LL"))
self.lrRadioButton.setText(_translate("sediGoProDialogBase", "LR"))
self.ulRadioButton.setText(_translate("sediGoProDialogBase", "UL"))
self.urRadioButton.setText(_translate("sediGoProDialogBase", "UR"))
self.label_3.setText(_translate("sediGoProDialogBase", "+"))
self.label_4.setText(_translate("sediGoProDialogBase", "Default prefix:"))
self.otherColorButton.setText(_translate("sediGoProDialogBase", "Other"))
self.label_5.setText(_translate("sediGoProDialogBase", "-"))
self.textTagColorLabel.setText(_translate("sediGoProDialogBase", "Current text color"))
self.getGoProImageButton.setText(_translate("sediGoProDialogBase", "Take image"))
self.groupBox_2.setTitle(_translate("sediGoProDialogBase", "Save image"))
self.saveImageButton.setText(_translate("sediGoProDialogBase", "Save image"))
self.label_2.setText(_translate("sediGoProDialogBase", ".JPG"))
self.setGoProOffButton.setText(_translate("sediGoProDialogBase", "Off"))
self.setGoProOnButton.setText(_translate("sediGoProDialogBase", "On"))
self.currentPositionButton.setText(_translate("sediGoProDialogBase", "Get current position"))