1 |
1 |
# -*- coding: utf-8 -*-
|
2 |
2 |
|
3 |
|
# Form implementation generated from reading ui file '.\UI\SymbolEditor.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/SymbolEditor.ui'
|
4 |
4 |
#
|
5 |
|
# Created by: PyQt5 UI code generator 5.13.1
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
6 |
6 |
#
|
7 |
7 |
# WARNING! All changes made in this file will be lost!
|
8 |
8 |
|
9 |
|
|
10 |
9 |
from PyQt5 import QtCore, QtGui, QtWidgets
|
11 |
10 |
|
12 |
|
|
13 |
11 |
class Ui_Dialog(object):
|
14 |
12 |
def setupUi(self, Dialog):
|
15 |
13 |
Dialog.setObjectName("Dialog")
|
... | ... | |
194 |
192 |
self.removeTextButton.setIconSize(QtCore.QSize(32, 32))
|
195 |
193 |
self.removeTextButton.setObjectName("removeTextButton")
|
196 |
194 |
self.gridLayout_5.addWidget(self.removeTextButton, 1, 8, 1, 1, QtCore.Qt.AlignHCenter)
|
|
195 |
self.toolButtonExpand = QtWidgets.QToolButton(self.toolWidget)
|
|
196 |
icon15 = QtGui.QIcon()
|
|
197 |
icon15.addPixmap(QtGui.QPixmap(":/newPrefix/Language.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
198 |
self.toolButtonExpand.setIcon(icon15)
|
|
199 |
self.toolButtonExpand.setIconSize(QtCore.QSize(32, 32))
|
|
200 |
self.toolButtonExpand.setObjectName("toolButtonExpand")
|
|
201 |
self.gridLayout_5.addWidget(self.toolButtonExpand, 0, 13, 1, 1)
|
197 |
202 |
self.horizontalLayout.addLayout(self.gridLayout_5)
|
198 |
203 |
self.gridLayout_6 = QtWidgets.QGridLayout()
|
199 |
204 |
self.gridLayout_6.setObjectName("gridLayout_6")
|
... | ... | |
289 |
294 |
self.addTextAreaButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
|
290 |
295 |
self.addTextAreaButton.setMaximumSize(QtCore.QSize(40, 16777215))
|
291 |
296 |
self.addTextAreaButton.setText("")
|
292 |
|
icon15 = QtGui.QIcon()
|
293 |
|
icon15.addPixmap(QtGui.QPixmap(":/newPrefix/Add.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
294 |
|
self.addTextAreaButton.setIcon(icon15)
|
|
297 |
icon16 = QtGui.QIcon()
|
|
298 |
icon16.addPixmap(QtGui.QPixmap(":/newPrefix/Add.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
299 |
self.addTextAreaButton.setIcon(icon16)
|
295 |
300 |
self.addTextAreaButton.setObjectName("addTextAreaButton")
|
296 |
301 |
self.gridLayout_7.addWidget(self.addTextAreaButton, 6, 2, 1, 1)
|
297 |
302 |
self.textAreaLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
|
... | ... | |
300 |
305 |
self.delTextAreaButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
|
301 |
306 |
self.delTextAreaButton.setMaximumSize(QtCore.QSize(40, 16777215))
|
302 |
307 |
self.delTextAreaButton.setText("")
|
303 |
|
icon16 = QtGui.QIcon()
|
304 |
|
icon16.addPixmap(QtGui.QPixmap(":/newPrefix/Remove.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
305 |
|
self.delTextAreaButton.setIcon(icon16)
|
|
308 |
icon17 = QtGui.QIcon()
|
|
309 |
icon17.addPixmap(QtGui.QPixmap(":/newPrefix/Remove.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
310 |
self.delTextAreaButton.setIcon(icon17)
|
306 |
311 |
self.delTextAreaButton.setObjectName("delTextAreaButton")
|
307 |
312 |
self.gridLayout_7.addWidget(self.delTextAreaButton, 6, 3, 1, 1)
|
308 |
313 |
self.thresholdLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
|
... | ... | |
330 |
335 |
self.pushButtonDelConnPt.setMinimumSize(QtCore.QSize(40, 0))
|
331 |
336 |
self.pushButtonDelConnPt.setMaximumSize(QtCore.QSize(40, 16777215))
|
332 |
337 |
self.pushButtonDelConnPt.setText("")
|
333 |
|
self.pushButtonDelConnPt.setIcon(icon16)
|
|
338 |
self.pushButtonDelConnPt.setIcon(icon17)
|
334 |
339 |
self.pushButtonDelConnPt.setObjectName("pushButtonDelConnPt")
|
335 |
340 |
self.gridLayout_7.addWidget(self.pushButtonDelConnPt, 11, 3, 1, 1)
|
336 |
341 |
self.addConnectionPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
|
337 |
342 |
self.addConnectionPointButton.setMinimumSize(QtCore.QSize(40, 0))
|
338 |
343 |
self.addConnectionPointButton.setMaximumSize(QtCore.QSize(40, 16777215))
|
339 |
344 |
self.addConnectionPointButton.setText("")
|
340 |
|
self.addConnectionPointButton.setIcon(icon15)
|
|
345 |
self.addConnectionPointButton.setIcon(icon16)
|
341 |
346 |
self.addConnectionPointButton.setObjectName("addConnectionPointButton")
|
342 |
347 |
self.gridLayout_7.addWidget(self.addConnectionPointButton, 11, 2, 1, 1)
|
343 |
348 |
self.addOriginalPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
|
344 |
349 |
self.addOriginalPointButton.setMaximumSize(QtCore.QSize(40, 16777215))
|
345 |
350 |
self.addOriginalPointButton.setText("")
|
346 |
|
self.addOriginalPointButton.setIcon(icon15)
|
|
351 |
self.addOriginalPointButton.setIcon(icon16)
|
347 |
352 |
self.addOriginalPointButton.setObjectName("addOriginalPointButton")
|
348 |
353 |
self.gridLayout_7.addWidget(self.addOriginalPointButton, 10, 2, 1, 1)
|
349 |
354 |
self.connectionPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
|
... | ... | |
482 |
487 |
self.addAdditionalSymbolButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
|
483 |
488 |
self.addAdditionalSymbolButton.setMaximumSize(QtCore.QSize(40, 16777215))
|
484 |
489 |
self.addAdditionalSymbolButton.setText("")
|
485 |
|
self.addAdditionalSymbolButton.setIcon(icon15)
|
|
490 |
self.addAdditionalSymbolButton.setIcon(icon16)
|
486 |
491 |
self.addAdditionalSymbolButton.setObjectName("addAdditionalSymbolButton")
|
487 |
492 |
self.horizontalLayout_3.addWidget(self.addAdditionalSymbolButton)
|
488 |
493 |
self.gridLayout_7.addLayout(self.horizontalLayout_3, 8, 1, 1, 3)
|
... | ... | |
538 |
543 |
_translate = QtCore.QCoreApplication.translate
|
539 |
544 |
Dialog.setWindowTitle(_translate("Dialog", "Symbol Editor"))
|
540 |
545 |
self.guidelineCheckbox.setText(_translate("Dialog", "Show Guideline"))
|
|
546 |
self.toolButtonExpand.setText(_translate("Dialog", "..."))
|
541 |
547 |
self.label.setText(_translate("Dialog", "Normal Color :"))
|
542 |
548 |
self.label_2.setText(_translate("Dialog", "Highlight Color :"))
|
543 |
549 |
self.groupBox.setTitle(_translate("Dialog", "Base Symbol"))
|
... | ... | |
558 |
564 |
self.minMatchPointLabel.setText(_translate("Dialog", "Min Feature Count"))
|
559 |
565 |
self.isExceptDetectLabel.setText(_translate("Dialog", "Exclude"))
|
560 |
566 |
self.label_5.setText(_translate("Dialog", "Text Area"))
|
|
567 |
|
561 |
568 |
import MainWindow_rc
|
|
569 |
|
|
570 |
if __name__ == "__main__":
|
|
571 |
import sys
|
|
572 |
app = QtWidgets.QApplication(sys.argv)
|
|
573 |
Dialog = QtWidgets.QDialog()
|
|
574 |
ui = Ui_Dialog()
|
|
575 |
ui.setupUi(Dialog)
|
|
576 |
Dialog.show()
|
|
577 |
sys.exit(app.exec_())
|
|
578 |
|