-
Notifications
You must be signed in to change notification settings - Fork 0
/
settingsdialog.py
251 lines (244 loc) · 15.1 KB
/
settingsdialog.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'settingsdialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(475, 518)
self.deviceSection = QtWidgets.QGroupBox(Dialog)
self.deviceSection.setGeometry(QtCore.QRect(20, 20, 431, 121))
self.deviceSection.setTitle("")
self.deviceSection.setObjectName("deviceSection")
self.horizontalLayoutWidget = QtWidgets.QWidget(self.deviceSection)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 40, 411, 35))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = QtWidgets.QLabel(self.horizontalLayoutWidget)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
spacerItem = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.lineHost = QtWidgets.QLineEdit(self.horizontalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(70)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineHost.sizePolicy().hasHeightForWidth())
self.lineHost.setSizePolicy(sizePolicy)
self.lineHost.setMinimumSize(QtCore.QSize(235, 0))
self.lineHost.setMaximumSize(QtCore.QSize(235, 16777215))
self.lineHost.setObjectName("lineHost")
self.horizontalLayout.addWidget(self.lineHost)
self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.deviceSection)
self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(10, 80, 411, 35))
self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_2 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
self.label_2.setObjectName("label_2")
self.horizontalLayout_2.addWidget(self.label_2)
spacerItem1 = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.linePrinter = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(70)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.linePrinter.sizePolicy().hasHeightForWidth())
self.linePrinter.setSizePolicy(sizePolicy)
self.linePrinter.setMinimumSize(QtCore.QSize(235, 0))
self.linePrinter.setMaximumSize(QtCore.QSize(235, 16777215))
self.linePrinter.setObjectName("linePrinter")
self.horizontalLayout_2.addWidget(self.linePrinter)
self.verticalLayoutWidget = QtWidgets.QWidget(self.deviceSection)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(9, 10, 411, 36))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.label_11 = QtWidgets.QLabel(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_11.setFont(font)
self.label_11.setObjectName("label_11")
self.verticalLayout.addWidget(self.label_11)
self.line = QtWidgets.QFrame(self.verticalLayoutWidget)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.verticalLayout.addWidget(self.line)
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem2)
self.labelSection = QtWidgets.QGroupBox(Dialog)
self.labelSection.setGeometry(QtCore.QRect(20, 150, 431, 201))
self.labelSection.setTitle("")
self.labelSection.setObjectName("labelSection")
self.horizontalLayoutWidget_3 = QtWidgets.QWidget(self.labelSection)
self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(10, 40, 411, 37))
self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_3)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.label_3 = QtWidgets.QLabel(self.horizontalLayoutWidget_3)
self.label_3.setObjectName("label_3")
self.horizontalLayout_5.addWidget(self.label_3)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem3)
self.spinLabelWidth = QtWidgets.QSpinBox(self.horizontalLayoutWidget_3)
self.spinLabelWidth.setMinimumSize(QtCore.QSize(50, 0))
self.spinLabelWidth.setMaximumSize(QtCore.QSize(50, 16777215))
self.spinLabelWidth.setObjectName("spinLabelWidth")
self.horizontalLayout_5.addWidget(self.spinLabelWidth)
self.label_4 = QtWidgets.QLabel(self.horizontalLayoutWidget_3)
self.label_4.setObjectName("label_4")
self.horizontalLayout_5.addWidget(self.label_4)
self.horizontalLayout_3.addLayout(self.horizontalLayout_5)
self.horizontalLayoutWidget_4 = QtWidgets.QWidget(self.labelSection)
self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(10, 80, 411, 35))
self.horizontalLayoutWidget_4.setObjectName("horizontalLayoutWidget_4")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_4)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_5 = QtWidgets.QLabel(self.horizontalLayoutWidget_4)
self.label_5.setObjectName("label_5")
self.horizontalLayout_4.addWidget(self.label_5)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem4)
self.spinLabelHeight = QtWidgets.QSpinBox(self.horizontalLayoutWidget_4)
self.spinLabelHeight.setMinimumSize(QtCore.QSize(50, 0))
self.spinLabelHeight.setMaximumSize(QtCore.QSize(50, 16777215))
self.spinLabelHeight.setObjectName("spinLabelHeight")
self.horizontalLayout_4.addWidget(self.spinLabelHeight)
self.label_6 = QtWidgets.QLabel(self.horizontalLayoutWidget_4)
self.label_6.setObjectName("label_6")
self.horizontalLayout_4.addWidget(self.label_6)
self.horizontalLayoutWidget_6 = QtWidgets.QWidget(self.labelSection)
self.horizontalLayoutWidget_6.setGeometry(QtCore.QRect(10, 120, 411, 35))
self.horizontalLayoutWidget_6.setObjectName("horizontalLayoutWidget_6")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_6)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_7 = QtWidgets.QLabel(self.horizontalLayoutWidget_6)
self.label_7.setObjectName("label_7")
self.horizontalLayout_6.addWidget(self.label_7)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem5)
self.spinVerticalAdj = QtWidgets.QSpinBox(self.horizontalLayoutWidget_6)
self.spinVerticalAdj.setMinimumSize(QtCore.QSize(50, 0))
self.spinVerticalAdj.setMaximumSize(QtCore.QSize(50, 16777215))
self.spinVerticalAdj.setMinimum(-99)
self.spinVerticalAdj.setMaximum(99)
self.spinVerticalAdj.setObjectName("spinVerticalAdj")
self.horizontalLayout_6.addWidget(self.spinVerticalAdj)
self.label_9 = QtWidgets.QLabel(self.horizontalLayoutWidget_6)
self.label_9.setObjectName("label_9")
self.horizontalLayout_6.addWidget(self.label_9)
self.horizontalLayoutWidget_7 = QtWidgets.QWidget(self.labelSection)
self.horizontalLayoutWidget_7.setGeometry(QtCore.QRect(10, 160, 411, 35))
self.horizontalLayoutWidget_7.setObjectName("horizontalLayoutWidget_7")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_7)
self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.label_8 = QtWidgets.QLabel(self.horizontalLayoutWidget_7)
self.label_8.setObjectName("label_8")
self.horizontalLayout_7.addWidget(self.label_8)
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_7.addItem(spacerItem6)
self.spinHorizontalAdj = QtWidgets.QSpinBox(self.horizontalLayoutWidget_7)
self.spinHorizontalAdj.setMinimumSize(QtCore.QSize(50, 0))
self.spinHorizontalAdj.setMaximumSize(QtCore.QSize(50, 16777215))
self.spinHorizontalAdj.setMinimum(-99)
self.spinHorizontalAdj.setMaximum(99)
self.spinHorizontalAdj.setObjectName("spinHorizontalAdj")
self.horizontalLayout_7.addWidget(self.spinHorizontalAdj)
self.label_10 = QtWidgets.QLabel(self.horizontalLayoutWidget_7)
self.label_10.setObjectName("label_10")
self.horizontalLayout_7.addWidget(self.label_10)
self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.labelSection)
self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(9, 10, 411, 36))
self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.label_12 = QtWidgets.QLabel(self.verticalLayoutWidget_2)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_12.setFont(font)
self.label_12.setObjectName("label_12")
self.verticalLayout_2.addWidget(self.label_12)
self.line_2 = QtWidgets.QFrame(self.verticalLayoutWidget_2)
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.verticalLayout_2.addWidget(self.line_2)
spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem7)
self.groupBox = QtWidgets.QGroupBox(Dialog)
self.groupBox.setGeometry(QtCore.QRect(20, 360, 431, 101))
self.groupBox.setTitle("")
self.groupBox.setObjectName("groupBox")
self.verticalLayoutWidget_3 = QtWidgets.QWidget(self.groupBox)
self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 10, 411, 36))
self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.label_13 = QtWidgets.QLabel(self.verticalLayoutWidget_3)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_13.setFont(font)
self.label_13.setObjectName("label_13")
self.verticalLayout_3.addWidget(self.label_13)
self.horizontalLayoutWidget_5 = QtWidgets.QWidget(self.groupBox)
self.horizontalLayoutWidget_5.setGeometry(QtCore.QRect(10, 50, 411, 37))
self.horizontalLayoutWidget_5.setObjectName("horizontalLayoutWidget_5")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_5)
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.lePastaZPL = QtWidgets.QLineEdit(self.horizontalLayoutWidget_5)
self.lePastaZPL.setObjectName("lePastaZPL")
self.horizontalLayout_8.addWidget(self.lePastaZPL)
self.btnSelecPastaZPL = QtWidgets.QPushButton(self.horizontalLayoutWidget_5)
self.btnSelecPastaZPL.setObjectName("btnSelecPastaZPL")
self.horizontalLayout_8.addWidget(self.btnSelecPastaZPL)
self.horizontalLayoutWidget_8 = QtWidgets.QWidget(Dialog)
self.horizontalLayoutWidget_8.setGeometry(QtCore.QRect(20, 470, 431, 37))
self.horizontalLayoutWidget_8.setObjectName("horizontalLayoutWidget_8")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_8)
self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.btnSave = QtWidgets.QDialogButtonBox(self.horizontalLayoutWidget_8)
self.btnSave.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Save)
self.btnSave.setCenterButtons(False)
self.btnSave.setObjectName("btnSave")
self.horizontalLayout_9.addWidget(self.btnSave)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.label.setText(_translate("Dialog", "Host:"))
self.label_2.setText(_translate("Dialog", "Impressora:"))
self.label_11.setText(_translate("Dialog", "Configurações da impressora"))
self.label_3.setText(_translate("Dialog", "Largura da etiqueta:"))
self.label_4.setText(_translate("Dialog", "mm"))
self.label_5.setText(_translate("Dialog", "Altura da etiqueta:"))
self.label_6.setText(_translate("Dialog", "mm"))
self.label_7.setText(_translate("Dialog", "Ajuste vertical"))
self.label_9.setText(_translate("Dialog", "mm"))
self.label_8.setText(_translate("Dialog", "Ajuste horizontal"))
self.label_10.setText(_translate("Dialog", "mm"))
self.label_12.setText(_translate("Dialog", "Configurações da etiqueta"))
self.label_13.setText(_translate("Dialog", "Pasta padrão para arquivos ZPL"))
self.btnSelecPastaZPL.setText(_translate("Dialog", "Selecionar pasta"))