-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspecifyMapDialog_ui.py
262 lines (255 loc) · 15.1 KB
/
specifyMapDialog_ui.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
252
253
254
255
256
257
258
259
260
261
262
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\caver\Documents\GitHub\plans_console\specifyMapDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# 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_SpecifyMapDialog(object):
def setupUi(self, SpecifyMapDialog):
SpecifyMapDialog.setObjectName("SpecifyMapDialog")
SpecifyMapDialog.setWindowModality(QtCore.Qt.ApplicationModal)
SpecifyMapDialog.resize(475, 421)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(SpecifyMapDialog.sizePolicy().hasHeightForWidth())
SpecifyMapDialog.setSizePolicy(sizePolicy)
self.topLayout = QtWidgets.QVBoxLayout(SpecifyMapDialog)
self.topLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.topLayout.setObjectName("topLayout")
self.headerLabel = QtWidgets.QLabel(SpecifyMapDialog)
font = QtGui.QFont()
font.setPointSize(11)
self.headerLabel.setFont(font)
self.headerLabel.setAlignment(QtCore.Qt.AlignCenter)
self.headerLabel.setWordWrap(True)
self.headerLabel.setObjectName("headerLabel")
self.topLayout.addWidget(self.headerLabel)
self.verticalLayout_7 = QtWidgets.QVBoxLayout()
self.verticalLayout_7.setContentsMargins(-1, 5, -1, -1)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.newOrExistingLine1 = QtWidgets.QFrame(SpecifyMapDialog)
self.newOrExistingLine1.setFrameShape(QtWidgets.QFrame.HLine)
self.newOrExistingLine1.setFrameShadow(QtWidgets.QFrame.Sunken)
self.newOrExistingLine1.setObjectName("newOrExistingLine1")
self.verticalLayout_7.addWidget(self.newOrExistingLine1)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem)
self.verticalLayout_6 = QtWidgets.QVBoxLayout()
self.verticalLayout_6.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.newMapRadioButton = QtWidgets.QRadioButton(SpecifyMapDialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.newMapRadioButton.sizePolicy().hasHeightForWidth())
self.newMapRadioButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(14)
self.newMapRadioButton.setFont(font)
self.newMapRadioButton.setObjectName("newMapRadioButton")
self.mapSourceButtonGroup = QtWidgets.QButtonGroup(SpecifyMapDialog)
self.mapSourceButtonGroup.setObjectName("mapSourceButtonGroup")
self.mapSourceButtonGroup.addButton(self.newMapRadioButton)
self.verticalLayout_6.addWidget(self.newMapRadioButton)
self.existingMapRadioButton = QtWidgets.QRadioButton(SpecifyMapDialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.existingMapRadioButton.sizePolicy().hasHeightForWidth())
self.existingMapRadioButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(14)
self.existingMapRadioButton.setFont(font)
self.existingMapRadioButton.setObjectName("existingMapRadioButton")
self.mapSourceButtonGroup.addButton(self.existingMapRadioButton)
self.verticalLayout_6.addWidget(self.existingMapRadioButton)
self.horizontalLayout_3.addLayout(self.verticalLayout_6)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.verticalLayout_7.addLayout(self.horizontalLayout_3)
self.newOrExistingLine2 = QtWidgets.QFrame(SpecifyMapDialog)
self.newOrExistingLine2.setFrameShape(QtWidgets.QFrame.HLine)
self.newOrExistingLine2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.newOrExistingLine2.setObjectName("newOrExistingLine2")
self.verticalLayout_7.addWidget(self.newOrExistingLine2)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalLayout_8 = QtWidgets.QVBoxLayout()
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.dapGroupBox = QtWidgets.QGroupBox(SpecifyMapDialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dapGroupBox.sizePolicy().hasHeightForWidth())
self.dapGroupBox.setSizePolicy(sizePolicy)
self.dapGroupBox.setMinimumSize(QtCore.QSize(250, 0))
font = QtGui.QFont()
font.setPointSize(9)
self.dapGroupBox.setFont(font)
self.dapGroupBox.setObjectName("dapGroupBox")
self.domainAndPortVerticalLayout = QtWidgets.QVBoxLayout(self.dapGroupBox)
self.domainAndPortVerticalLayout.setObjectName("domainAndPortVerticalLayout")
self.radioButton = QtWidgets.QRadioButton(self.dapGroupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.radioButton.sizePolicy().hasHeightForWidth())
self.radioButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton.setFont(font)
self.radioButton.setChecked(True)
self.radioButton.setObjectName("radioButton")
self.domainAndPortButtonGroup = QtWidgets.QButtonGroup(SpecifyMapDialog)
self.domainAndPortButtonGroup.setObjectName("domainAndPortButtonGroup")
self.domainAndPortButtonGroup.addButton(self.radioButton)
self.domainAndPortVerticalLayout.addWidget(self.radioButton)
self.radioButton_2 = QtWidgets.QRadioButton(self.dapGroupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.radioButton_2.sizePolicy().hasHeightForWidth())
self.radioButton_2.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.radioButton_2.setFont(font)
self.radioButton_2.setObjectName("radioButton_2")
self.domainAndPortButtonGroup.addButton(self.radioButton_2)
self.domainAndPortVerticalLayout.addWidget(self.radioButton_2)
self.otherButton = QtWidgets.QRadioButton(self.dapGroupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.otherButton.sizePolicy().hasHeightForWidth())
self.otherButton.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.otherButton.setFont(font)
self.otherButton.setObjectName("otherButton")
self.domainAndPortButtonGroup.addButton(self.otherButton)
self.domainAndPortVerticalLayout.addWidget(self.otherButton)
self.domainAndPortOtherField = QtWidgets.QLineEdit(self.dapGroupBox)
self.domainAndPortOtherField.setEnabled(False)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.domainAndPortOtherField.sizePolicy().hasHeightForWidth())
self.domainAndPortOtherField.setSizePolicy(sizePolicy)
self.domainAndPortOtherField.setObjectName("domainAndPortOtherField")
self.domainAndPortVerticalLayout.addWidget(self.domainAndPortOtherField)
self.verticalLayout_8.addWidget(self.dapGroupBox)
spacerItem2 = QtWidgets.QSpacerItem(20, 0, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_8.addItem(spacerItem2)
self.horizontalLayout.addLayout(self.verticalLayout_8)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.mapIDGroupBox = QtWidgets.QGroupBox(SpecifyMapDialog)
font = QtGui.QFont()
font.setPointSize(9)
self.mapIDGroupBox.setFont(font)
self.mapIDGroupBox.setObjectName("mapIDGroupBox")
self.verticalLayout = QtWidgets.QVBoxLayout(self.mapIDGroupBox)
self.verticalLayout.setObjectName("verticalLayout")
self.mapIDField = QtWidgets.QLineEdit(self.mapIDGroupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mapIDField.sizePolicy().hasHeightForWidth())
self.mapIDField.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Liberation Mono")
font.setPointSize(18)
font.setBold(False)
font.setWeight(50)
self.mapIDField.setFont(font)
self.mapIDField.setText("")
self.mapIDField.setObjectName("mapIDField")
self.verticalLayout.addWidget(self.mapIDField)
self.label_4 = QtWidgets.QLabel(self.mapIDGroupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(8)
self.label_4.setFont(font)
self.label_4.setIndent(10)
self.label_4.setObjectName("label_4")
self.verticalLayout.addWidget(self.label_4)
self.verticalLayout_2.addWidget(self.mapIDGroupBox)
spacerItem3 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem3)
self.verticalLayout_2.setStretch(1, 1)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.horizontalLayout.setStretch(0, 2)
self.horizontalLayout.setStretch(1, 1)
self.verticalLayout_7.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setContentsMargins(-1, 10, -1, 5)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.mapURLLabel = QtWidgets.QLabel(SpecifyMapDialog)
font = QtGui.QFont()
font.setPointSize(10)
self.mapURLLabel.setFont(font)
self.mapURLLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.mapURLLabel.setObjectName("mapURLLabel")
self.horizontalLayout_2.addWidget(self.mapURLLabel)
self.urlField = QtWidgets.QLineEdit(SpecifyMapDialog)
self.urlField.setEnabled(False)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.urlField.sizePolicy().hasHeightForWidth())
self.urlField.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(10)
self.urlField.setFont(font)
self.urlField.setObjectName("urlField")
self.horizontalLayout_2.addWidget(self.urlField)
self.verticalLayout_7.addLayout(self.horizontalLayout_2)
self.buttonBox = QtWidgets.QDialogButtonBox(SpecifyMapDialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())
self.buttonBox.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.buttonBox.setFont(font)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.verticalLayout_7.addWidget(self.buttonBox)
self.verticalLayout_7.setStretch(3, 1)
self.verticalLayout_7.setStretch(4, 1)
self.topLayout.addLayout(self.verticalLayout_7)
self.retranslateUi(SpecifyMapDialog)
self.buttonBox.accepted.connect(SpecifyMapDialog.accept) # type: ignore
self.buttonBox.rejected.connect(SpecifyMapDialog.reject) # type: ignore
self.mapIDField.textChanged['QString'].connect(SpecifyMapDialog.urlChanged) # type: ignore
self.domainAndPortOtherField.textChanged['QString'].connect(SpecifyMapDialog.urlChanged) # type: ignore
QtCore.QMetaObject.connectSlotsByName(SpecifyMapDialog)
def retranslateUi(self, SpecifyMapDialog):
_translate = QtCore.QCoreApplication.translate
SpecifyMapDialog.setWindowTitle(_translate("SpecifyMapDialog", "Specify Map"))
self.headerLabel.setText(_translate("SpecifyMapDialog", "Specify Map."))
self.newMapRadioButton.setText(_translate("SpecifyMapDialog", "New Map"))
self.existingMapRadioButton.setText(_translate("SpecifyMapDialog", "Existing Map"))
self.dapGroupBox.setTitle(_translate("SpecifyMapDialog", "Domain and Port"))
self.radioButton.setText(_translate("SpecifyMapDialog", "localhost:8080"))
self.radioButton_2.setText(_translate("SpecifyMapDialog", "sartopo.com"))
self.otherButton.setText(_translate("SpecifyMapDialog", "Other"))
self.domainAndPortOtherField.setPlaceholderText(_translate("SpecifyMapDialog", "myServer:8080"))
self.mapIDGroupBox.setTitle(_translate("SpecifyMapDialog", "Existing Map ID"))
self.mapIDField.setPlaceholderText(_translate("SpecifyMapDialog", "A1B2C"))
self.label_4.setText(_translate("SpecifyMapDialog", "(3-5 characters)"))
self.mapURLLabel.setText(_translate("SpecifyMapDialog", "Map URL:"))