Files
SerialVisualizer/MainWindow_ui.py
2022-07-12 07:25:44 +02:00

1481 lines
65 KiB
Python

# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'SerialVizualizerMainWindow.ui'
##
## Created by: Qt User Interface Compiler version 6.2.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QFormLayout, QFrame, QGroupBox,
QHBoxLayout, QLabel, QLineEdit, QListWidget,
QListWidgetItem, QMainWindow, QPushButton, QScrollArea,
QSizePolicy, QSpacerItem, QStatusBar, QTextEdit,
QVBoxLayout, QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1024, 480)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
font = QFont()
font.setPointSize(10)
self.centralwidget.setFont(font)
self.verticalLayout_5 = QVBoxLayout(self.centralwidget)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.btn_connect = QPushButton(self.centralwidget)
self.btn_connect.setObjectName(u"btn_connect")
self.btn_connect.setEnabled(False)
self.btn_connect.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_connect)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout.addItem(self.horizontalSpacer)
self.btn_settings = QPushButton(self.centralwidget)
self.btn_settings.setObjectName(u"btn_settings")
self.btn_settings.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_settings)
self.verticalLayout_5.addLayout(self.horizontalLayout)
self.line = QFrame(self.centralwidget)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.HLine)
self.line.setFrameShadow(QFrame.Sunken)
self.verticalLayout_5.addWidget(self.line)
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setSpacing(6)
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.btn_addPattern = QPushButton(self.centralwidget)
self.btn_addPattern.setObjectName(u"btn_addPattern")
self.horizontalLayout_4.addWidget(self.btn_addPattern)
self.btn_removePattern = QPushButton(self.centralwidget)
self.btn_removePattern.setObjectName(u"btn_removePattern")
self.horizontalLayout_4.addWidget(self.btn_removePattern)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.listWidget = QListWidget(self.centralwidget)
self.listWidget.setObjectName(u"listWidget")
sizePolicy = QSizePolicy(QSizePolicy.Ignored, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
self.listWidget.setSizePolicy(sizePolicy)
self.verticalLayout_2.addWidget(self.listWidget)
self.groupBox = QGroupBox(self.centralwidget)
self.groupBox.setObjectName(u"groupBox")
self.formLayout = QFormLayout(self.groupBox)
self.formLayout.setObjectName(u"formLayout")
self.formLayout.setHorizontalSpacing(20)
self.label = QLabel(self.groupBox)
self.label.setObjectName(u"label")
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
self.lbl_namePattern = QLabel(self.groupBox)
self.lbl_namePattern.setObjectName(u"lbl_namePattern")
self.formLayout.setWidget(0, QFormLayout.FieldRole, self.lbl_namePattern)
self.label_3 = QLabel(self.groupBox)
self.label_3.setObjectName(u"label_3")
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_3)
self.lbl_patternPattern = QLabel(self.groupBox)
self.lbl_patternPattern.setObjectName(u"lbl_patternPattern")
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.lbl_patternPattern)
self.label_5 = QLabel(self.groupBox)
self.label_5.setObjectName(u"label_5")
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_5)
self.lbl_isValidPattern = QLabel(self.groupBox)
self.lbl_isValidPattern.setObjectName(u"lbl_isValidPattern")
self.formLayout.setWidget(2, QFormLayout.FieldRole, self.lbl_isValidPattern)
self.label_7 = QLabel(self.groupBox)
self.label_7.setObjectName(u"label_7")
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_7)
self.lbl_matchesCountPattern = QLabel(self.groupBox)
self.lbl_matchesCountPattern.setObjectName(u"lbl_matchesCountPattern")
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.lbl_matchesCountPattern)
self.label_9 = QLabel(self.groupBox)
self.label_9.setObjectName(u"label_9")
self.formLayout.setWidget(4, QFormLayout.LabelRole, self.label_9)
self.lbl_examplePattern = QLabel(self.groupBox)
self.lbl_examplePattern.setObjectName(u"lbl_examplePattern")
self.lbl_examplePattern.setStyleSheet(u"background-color: rgb(35, 35, 35);\n"
"color: rgb(244, 244, 244);")
self.formLayout.setWidget(4, QFormLayout.FieldRole, self.lbl_examplePattern)
self.btn_editPattern = QPushButton(self.groupBox)
self.btn_editPattern.setObjectName(u"btn_editPattern")
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.btn_editPattern.sizePolicy().hasHeightForWidth())
self.btn_editPattern.setSizePolicy(sizePolicy1)
self.formLayout.setWidget(5, QFormLayout.SpanningRole, self.btn_editPattern)
self.verticalLayout_2.addWidget(self.groupBox)
self.horizontalLayout_5.addLayout(self.verticalLayout_2)
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setObjectName(u"verticalLayout")
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.btn_timestamp = QPushButton(self.centralwidget)
self.btn_timestamp.setObjectName(u"btn_timestamp")
self.btn_timestamp.setCheckable(True)
self.btn_timestamp.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_timestamp)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(self.horizontalSpacer_2)
self.btn_clearMainTerminal = QPushButton(self.centralwidget)
self.btn_clearMainTerminal.setObjectName(u"btn_clearMainTerminal")
self.horizontalLayout_3.addWidget(self.btn_clearMainTerminal)
self.btn_autoScrollMainTermianl = QPushButton(self.centralwidget)
self.btn_autoScrollMainTermianl.setObjectName(u"btn_autoScrollMainTermianl")
self.btn_autoScrollMainTermianl.setCheckable(True)
self.btn_autoScrollMainTermianl.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_autoScrollMainTermianl)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.txtEdit_mainTerminal = QTextEdit(self.centralwidget)
self.txtEdit_mainTerminal.setObjectName(u"txtEdit_mainTerminal")
self.verticalLayout.addWidget(self.txtEdit_mainTerminal)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.lineEdit = QLineEdit(self.centralwidget)
self.lineEdit.setObjectName(u"lineEdit")
self.horizontalLayout_2.addWidget(self.lineEdit)
self.btn_endLine = QPushButton(self.centralwidget)
self.btn_endLine.setObjectName(u"btn_endLine")
self.btn_endLine.setCheckable(True)
self.btn_endLine.setChecked(True)
self.horizontalLayout_2.addWidget(self.btn_endLine)
self.btn_send = QPushButton(self.centralwidget)
self.btn_send.setObjectName(u"btn_send")
self.horizontalLayout_2.addWidget(self.btn_send)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_5.addLayout(self.verticalLayout)
self.verticalLayout_3 = QVBoxLayout()
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.pushButton_10 = QPushButton(self.centralwidget)
self.pushButton_10.setObjectName(u"pushButton_10")
self.verticalLayout_3.addWidget(self.pushButton_10)
self.scrollArea = QScrollArea(self.centralwidget)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setMinimumSize(QSize(120, 0))
self.scrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 101, 318))
self.verticalLayout_6 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.verticalLayout_6.setContentsMargins(-1, -1, 9, -1)
self.btn_command1 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command1.setObjectName(u"btn_command1")
self.verticalLayout_6.addWidget(self.btn_command1)
self.btn_command2 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command2.setObjectName(u"btn_command2")
self.verticalLayout_6.addWidget(self.btn_command2)
self.btn_command3 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command3.setObjectName(u"btn_command3")
self.verticalLayout_6.addWidget(self.btn_command3)
self.btn_command4 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command4.setObjectName(u"btn_command4")
self.verticalLayout_6.addWidget(self.btn_command4)
self.btn_command5 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command5.setObjectName(u"btn_command5")
self.verticalLayout_6.addWidget(self.btn_command5)
self.btn_command6 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command6.setObjectName(u"btn_command6")
self.verticalLayout_6.addWidget(self.btn_command6)
self.btn_command7 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command7.setObjectName(u"btn_command7")
self.verticalLayout_6.addWidget(self.btn_command7)
self.btn_command8 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command8.setObjectName(u"btn_command8")
self.verticalLayout_6.addWidget(self.btn_command8)
self.btn_command9 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command9.setObjectName(u"btn_command9")
self.verticalLayout_6.addWidget(self.btn_command9)
self.btn_command10 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command10.setObjectName(u"btn_command10")
self.verticalLayout_6.addWidget(self.btn_command10)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.verticalLayout_6.addItem(self.verticalSpacer)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.verticalLayout_3.addWidget(self.scrollArea)
self.horizontalLayout_5.addLayout(self.verticalLayout_3)
self.horizontalLayout_5.setStretch(1, 1)
self.verticalLayout_5.addLayout(self.horizontalLayout_5)
self.verticalLayout_4 = QVBoxLayout()
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.pushButton_9 = QPushButton(self.centralwidget)
self.pushButton_9.setObjectName(u"pushButton_9")
self.verticalLayout_4.addWidget(self.pushButton_9)
self.verticalLayout_5.addLayout(self.verticalLayout_4)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.btn_clearMainTerminal.clicked.connect(self.txtEdit_mainTerminal.clear)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"Serial Vizualizer", None))
self.btn_connect.setText(QCoreApplication.translate("MainWindow", u"Connect", None))
self.btn_settings.setText(QCoreApplication.translate("MainWindow", u"Settings", None))
self.btn_addPattern.setText(QCoreApplication.translate("MainWindow", u"Add", None))
self.btn_removePattern.setText(QCoreApplication.translate("MainWindow", u"Remove", None))
self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"Pattern info", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"Name:", None))
self.lbl_namePattern.setText(QCoreApplication.translate("MainWindow", u"Regex1", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"Pattern:", None))
self.lbl_patternPattern.setText(QCoreApplication.translate("MainWindow", u"\"/d/d/d\"", None))
self.label_5.setText(QCoreApplication.translate("MainWindow", u"isValid:", None))
self.lbl_isValidPattern.setText(QCoreApplication.translate("MainWindow", u"True", None))
self.label_7.setText(QCoreApplication.translate("MainWindow", u"Matches:", None))
self.lbl_matchesCountPattern.setText(QCoreApplication.translate("MainWindow", u"120", None))
self.label_9.setText(QCoreApplication.translate("MainWindow", u"Example:", None))
self.lbl_examplePattern.setText(QCoreApplication.translate("MainWindow", u"__example text__", None))
self.btn_editPattern.setText(QCoreApplication.translate("MainWindow", u"Edit", None))
self.btn_timestamp.setText(QCoreApplication.translate("MainWindow", u"Timestamp", None))
self.btn_clearMainTerminal.setText(QCoreApplication.translate("MainWindow", u"Clear", None))
self.btn_autoScrollMainTermianl.setText(QCoreApplication.translate("MainWindow", u"AutoScroll", None))
self.btn_endLine.setText(QCoreApplication.translate("MainWindow", u"EndLine", None))
self.btn_send.setText(QCoreApplication.translate("MainWindow", u"Send", None))
self.pushButton_10.setText(QCoreApplication.translate("MainWindow", u"Edit Commands", None))
self.btn_command1.setText(QCoreApplication.translate("MainWindow", u"Command1", None))
self.btn_command2.setText(QCoreApplication.translate("MainWindow", u"Command2", None))
self.btn_command3.setText(QCoreApplication.translate("MainWindow", u"Command3", None))
self.btn_command4.setText(QCoreApplication.translate("MainWindow", u"Command4", None))
self.btn_command5.setText(QCoreApplication.translate("MainWindow", u"Command5", None))
self.btn_command6.setText(QCoreApplication.translate("MainWindow", u"Command6", None))
self.btn_command7.setText(QCoreApplication.translate("MainWindow", u"Command7", None))
self.btn_command8.setText(QCoreApplication.translate("MainWindow", u"Command8", None))
self.btn_command9.setText(QCoreApplication.translate("MainWindow", u"Command9", None))
self.btn_command10.setText(QCoreApplication.translate("MainWindow", u"Command10", None))
self.pushButton_9.setText(QCoreApplication.translate("MainWindow", u"PushButton", None))
# retranslateUi
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'MainWindow.ui'
##
## Created by: Qt User Interface Compiler version 6.2.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QFormLayout, QFrame,
QGroupBox, QHBoxLayout, QLabel, QLineEdit,
QListView, QListWidget, QListWidgetItem, QMainWindow,
QPlainTextEdit, QPushButton, QScrollArea, QSizePolicy,
QSpacerItem, QStatusBar, QVBoxLayout, QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1024, 480)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
font = QFont()
font.setPointSize(10)
self.centralwidget.setFont(font)
self.verticalLayout_5 = QVBoxLayout(self.centralwidget)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.btn_connect = QPushButton(self.centralwidget)
self.btn_connect.setObjectName(u"btn_connect")
self.btn_connect.setEnabled(False)
self.btn_connect.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_connect)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout.addItem(self.horizontalSpacer)
self.btn_settings = QPushButton(self.centralwidget)
self.btn_settings.setObjectName(u"btn_settings")
self.btn_settings.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_settings)
self.verticalLayout_5.addLayout(self.horizontalLayout)
self.line = QFrame(self.centralwidget)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.HLine)
self.line.setFrameShadow(QFrame.Sunken)
self.verticalLayout_5.addWidget(self.line)
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setSpacing(6)
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.btn_addPattern = QPushButton(self.centralwidget)
self.btn_addPattern.setObjectName(u"btn_addPattern")
self.horizontalLayout_4.addWidget(self.btn_addPattern)
self.btn_removePattern = QPushButton(self.centralwidget)
self.btn_removePattern.setObjectName(u"btn_removePattern")
self.horizontalLayout_4.addWidget(self.btn_removePattern)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.lst_regex = QListWidget(self.centralwidget)
self.lst_regex.setObjectName(u"lst_regex")
sizePolicy = QSizePolicy(QSizePolicy.Ignored, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lst_regex.sizePolicy().hasHeightForWidth())
self.lst_regex.setSizePolicy(sizePolicy)
self.lst_regex.setDragDropMode(QAbstractItemView.InternalMove)
self.lst_regex.setDefaultDropAction(Qt.MoveAction)
self.lst_regex.setMovement(QListView.Snap)
self.verticalLayout_2.addWidget(self.lst_regex)
self.groupBox = QGroupBox(self.centralwidget)
self.groupBox.setObjectName(u"groupBox")
self.formLayout = QFormLayout(self.groupBox)
self.formLayout.setObjectName(u"formLayout")
self.formLayout.setHorizontalSpacing(20)
self.label = QLabel(self.groupBox)
self.label.setObjectName(u"label")
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
self.lbl_namePattern = QLabel(self.groupBox)
self.lbl_namePattern.setObjectName(u"lbl_namePattern")
self.formLayout.setWidget(0, QFormLayout.FieldRole, self.lbl_namePattern)
self.label_3 = QLabel(self.groupBox)
self.label_3.setObjectName(u"label_3")
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_3)
self.lbl_patternPattern = QLabel(self.groupBox)
self.lbl_patternPattern.setObjectName(u"lbl_patternPattern")
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.lbl_patternPattern)
self.label_5 = QLabel(self.groupBox)
self.label_5.setObjectName(u"label_5")
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_5)
self.lbl_isValidPattern = QLabel(self.groupBox)
self.lbl_isValidPattern.setObjectName(u"lbl_isValidPattern")
self.formLayout.setWidget(2, QFormLayout.FieldRole, self.lbl_isValidPattern)
self.label_7 = QLabel(self.groupBox)
self.label_7.setObjectName(u"label_7")
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_7)
self.lbl_matchesCountPattern = QLabel(self.groupBox)
self.lbl_matchesCountPattern.setObjectName(u"lbl_matchesCountPattern")
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.lbl_matchesCountPattern)
self.label_9 = QLabel(self.groupBox)
self.label_9.setObjectName(u"label_9")
self.formLayout.setWidget(4, QFormLayout.LabelRole, self.label_9)
self.lbl_examplePattern = QLabel(self.groupBox)
self.lbl_examplePattern.setObjectName(u"lbl_examplePattern")
self.lbl_examplePattern.setStyleSheet(u"background-color: rgb(35, 35, 35);\n"
"color: rgb(244, 244, 244);")
self.formLayout.setWidget(4, QFormLayout.FieldRole, self.lbl_examplePattern)
self.btn_editPattern = QPushButton(self.groupBox)
self.btn_editPattern.setObjectName(u"btn_editPattern")
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.btn_editPattern.sizePolicy().hasHeightForWidth())
self.btn_editPattern.setSizePolicy(sizePolicy1)
self.formLayout.setWidget(5, QFormLayout.SpanningRole, self.btn_editPattern)
self.verticalLayout_2.addWidget(self.groupBox)
self.horizontalLayout_5.addLayout(self.verticalLayout_2)
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setObjectName(u"verticalLayout")
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.btn_timestamp = QPushButton(self.centralwidget)
self.btn_timestamp.setObjectName(u"btn_timestamp")
self.btn_timestamp.setCheckable(True)
self.btn_timestamp.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_timestamp)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(self.horizontalSpacer_2)
self.btn_clearMainTerminal = QPushButton(self.centralwidget)
self.btn_clearMainTerminal.setObjectName(u"btn_clearMainTerminal")
self.horizontalLayout_3.addWidget(self.btn_clearMainTerminal)
self.btn_autoScrollMainTermianl = QPushButton(self.centralwidget)
self.btn_autoScrollMainTermianl.setObjectName(u"btn_autoScrollMainTermianl")
self.btn_autoScrollMainTermianl.setCheckable(True)
self.btn_autoScrollMainTermianl.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_autoScrollMainTermianl)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.txtEdit_mainTerminal = QPlainTextEdit(self.centralwidget)
self.txtEdit_mainTerminal.setObjectName(u"txtEdit_mainTerminal")
self.verticalLayout.addWidget(self.txtEdit_mainTerminal)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.lineEdit = QLineEdit(self.centralwidget)
self.lineEdit.setObjectName(u"lineEdit")
self.horizontalLayout_2.addWidget(self.lineEdit)
self.btn_endLine = QPushButton(self.centralwidget)
self.btn_endLine.setObjectName(u"btn_endLine")
self.btn_endLine.setCheckable(True)
self.btn_endLine.setChecked(True)
self.horizontalLayout_2.addWidget(self.btn_endLine)
self.btn_send = QPushButton(self.centralwidget)
self.btn_send.setObjectName(u"btn_send")
self.horizontalLayout_2.addWidget(self.btn_send)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_5.addLayout(self.verticalLayout)
self.verticalLayout_3 = QVBoxLayout()
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.pushButton_10 = QPushButton(self.centralwidget)
self.pushButton_10.setObjectName(u"pushButton_10")
self.verticalLayout_3.addWidget(self.pushButton_10)
self.scrollArea = QScrollArea(self.centralwidget)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setMinimumSize(QSize(120, 0))
self.scrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 101, 318))
self.verticalLayout_6 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.verticalLayout_6.setContentsMargins(-1, -1, 9, -1)
self.btn_command1 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command1.setObjectName(u"btn_command1")
self.verticalLayout_6.addWidget(self.btn_command1)
self.btn_command2 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command2.setObjectName(u"btn_command2")
self.verticalLayout_6.addWidget(self.btn_command2)
self.btn_command3 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command3.setObjectName(u"btn_command3")
self.verticalLayout_6.addWidget(self.btn_command3)
self.btn_command4 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command4.setObjectName(u"btn_command4")
self.verticalLayout_6.addWidget(self.btn_command4)
self.btn_command5 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command5.setObjectName(u"btn_command5")
self.verticalLayout_6.addWidget(self.btn_command5)
self.btn_command6 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command6.setObjectName(u"btn_command6")
self.verticalLayout_6.addWidget(self.btn_command6)
self.btn_command7 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command7.setObjectName(u"btn_command7")
self.verticalLayout_6.addWidget(self.btn_command7)
self.btn_command8 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command8.setObjectName(u"btn_command8")
self.verticalLayout_6.addWidget(self.btn_command8)
self.btn_command9 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command9.setObjectName(u"btn_command9")
self.verticalLayout_6.addWidget(self.btn_command9)
self.btn_command10 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command10.setObjectName(u"btn_command10")
self.verticalLayout_6.addWidget(self.btn_command10)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.verticalLayout_6.addItem(self.verticalSpacer)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.verticalLayout_3.addWidget(self.scrollArea)
self.horizontalLayout_5.addLayout(self.verticalLayout_3)
self.horizontalLayout_5.setStretch(1, 1)
self.verticalLayout_5.addLayout(self.horizontalLayout_5)
self.verticalLayout_4 = QVBoxLayout()
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.pushButton_9 = QPushButton(self.centralwidget)
self.pushButton_9.setObjectName(u"pushButton_9")
self.verticalLayout_4.addWidget(self.pushButton_9)
self.verticalLayout_5.addLayout(self.verticalLayout_4)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"Serial Vizualizer", None))
self.btn_connect.setText(QCoreApplication.translate("MainWindow", u"Connect", None))
self.btn_settings.setText(QCoreApplication.translate("MainWindow", u"Settings", None))
self.btn_addPattern.setText(QCoreApplication.translate("MainWindow", u"Add", None))
self.btn_removePattern.setText(QCoreApplication.translate("MainWindow", u"Remove", None))
self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"Pattern info", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"Name:", None))
self.lbl_namePattern.setText(QCoreApplication.translate("MainWindow", u"Regex1", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"Pattern:", None))
self.lbl_patternPattern.setText(QCoreApplication.translate("MainWindow", u"\"/d/d/d\"", None))
self.label_5.setText(QCoreApplication.translate("MainWindow", u"isValid:", None))
self.lbl_isValidPattern.setText(QCoreApplication.translate("MainWindow", u"True", None))
self.label_7.setText(QCoreApplication.translate("MainWindow", u"Matches:", None))
self.lbl_matchesCountPattern.setText(QCoreApplication.translate("MainWindow", u"120", None))
self.label_9.setText(QCoreApplication.translate("MainWindow", u"Example:", None))
self.lbl_examplePattern.setText(QCoreApplication.translate("MainWindow", u"__example text__", None))
self.btn_editPattern.setText(QCoreApplication.translate("MainWindow", u"Edit", None))
self.btn_timestamp.setText(QCoreApplication.translate("MainWindow", u"Timestamp", None))
self.btn_clearMainTerminal.setText(QCoreApplication.translate("MainWindow", u"Clear", None))
self.btn_autoScrollMainTermianl.setText(QCoreApplication.translate("MainWindow", u"AutoScroll", None))
self.btn_endLine.setText(QCoreApplication.translate("MainWindow", u"EndLine", None))
self.btn_send.setText(QCoreApplication.translate("MainWindow", u"Send", None))
self.pushButton_10.setText(QCoreApplication.translate("MainWindow", u"Edit Commands", None))
self.btn_command1.setText(QCoreApplication.translate("MainWindow", u"Command1", None))
self.btn_command2.setText(QCoreApplication.translate("MainWindow", u"Command2", None))
self.btn_command3.setText(QCoreApplication.translate("MainWindow", u"Command3", None))
self.btn_command4.setText(QCoreApplication.translate("MainWindow", u"Command4", None))
self.btn_command5.setText(QCoreApplication.translate("MainWindow", u"Command5", None))
self.btn_command6.setText(QCoreApplication.translate("MainWindow", u"Command6", None))
self.btn_command7.setText(QCoreApplication.translate("MainWindow", u"Command7", None))
self.btn_command8.setText(QCoreApplication.translate("MainWindow", u"Command8", None))
self.btn_command9.setText(QCoreApplication.translate("MainWindow", u"Command9", None))
self.btn_command10.setText(QCoreApplication.translate("MainWindow", u"Command10", None))
self.pushButton_9.setText(QCoreApplication.translate("MainWindow", u"PushButton", None))
# retranslateUi
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'MainWindow.ui'
##
## Created by: Qt User Interface Compiler version 6.2.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QFormLayout, QFrame,
QGroupBox, QHBoxLayout, QLabel, QLineEdit,
QListView, QListWidget, QListWidgetItem, QMainWindow,
QPlainTextEdit, QPushButton, QScrollArea, QSizePolicy,
QSpacerItem, QStatusBar, QVBoxLayout, QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1024, 480)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
font = QFont()
font.setPointSize(10)
self.centralwidget.setFont(font)
self.verticalLayout_5 = QVBoxLayout(self.centralwidget)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.btn_connect = QPushButton(self.centralwidget)
self.btn_connect.setObjectName(u"btn_connect")
self.btn_connect.setEnabled(False)
self.btn_connect.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_connect)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout.addItem(self.horizontalSpacer)
self.btn_settings = QPushButton(self.centralwidget)
self.btn_settings.setObjectName(u"btn_settings")
self.btn_settings.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_settings)
self.verticalLayout_5.addLayout(self.horizontalLayout)
self.line = QFrame(self.centralwidget)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.HLine)
self.line.setFrameShadow(QFrame.Sunken)
self.verticalLayout_5.addWidget(self.line)
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setSpacing(6)
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.btn_addPattern = QPushButton(self.centralwidget)
self.btn_addPattern.setObjectName(u"btn_addPattern")
self.horizontalLayout_4.addWidget(self.btn_addPattern)
self.btn_removePattern = QPushButton(self.centralwidget)
self.btn_removePattern.setObjectName(u"btn_removePattern")
self.horizontalLayout_4.addWidget(self.btn_removePattern)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.lst_regex = QListWidget(self.centralwidget)
self.lst_regex.setObjectName(u"lst_regex")
sizePolicy = QSizePolicy(QSizePolicy.Ignored, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lst_regex.sizePolicy().hasHeightForWidth())
self.lst_regex.setSizePolicy(sizePolicy)
self.lst_regex.setDragDropMode(QAbstractItemView.InternalMove)
self.lst_regex.setDefaultDropAction(Qt.MoveAction)
self.lst_regex.setMovement(QListView.Snap)
self.verticalLayout_2.addWidget(self.lst_regex)
self.groupBox = QGroupBox(self.centralwidget)
self.groupBox.setObjectName(u"groupBox")
self.formLayout = QFormLayout(self.groupBox)
self.formLayout.setObjectName(u"formLayout")
self.formLayout.setHorizontalSpacing(20)
self.label = QLabel(self.groupBox)
self.label.setObjectName(u"label")
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
self.lbl_namePattern = QLabel(self.groupBox)
self.lbl_namePattern.setObjectName(u"lbl_namePattern")
self.formLayout.setWidget(0, QFormLayout.FieldRole, self.lbl_namePattern)
self.label_3 = QLabel(self.groupBox)
self.label_3.setObjectName(u"label_3")
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_3)
self.lbl_patternPattern = QLabel(self.groupBox)
self.lbl_patternPattern.setObjectName(u"lbl_patternPattern")
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.lbl_patternPattern)
self.label_5 = QLabel(self.groupBox)
self.label_5.setObjectName(u"label_5")
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_5)
self.lbl_isValidPattern = QLabel(self.groupBox)
self.lbl_isValidPattern.setObjectName(u"lbl_isValidPattern")
self.formLayout.setWidget(2, QFormLayout.FieldRole, self.lbl_isValidPattern)
self.label_7 = QLabel(self.groupBox)
self.label_7.setObjectName(u"label_7")
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_7)
self.lbl_matchesCountPattern = QLabel(self.groupBox)
self.lbl_matchesCountPattern.setObjectName(u"lbl_matchesCountPattern")
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.lbl_matchesCountPattern)
self.label_9 = QLabel(self.groupBox)
self.label_9.setObjectName(u"label_9")
self.formLayout.setWidget(4, QFormLayout.LabelRole, self.label_9)
self.btn_editPattern = QPushButton(self.groupBox)
self.btn_editPattern.setObjectName(u"btn_editPattern")
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.btn_editPattern.sizePolicy().hasHeightForWidth())
self.btn_editPattern.setSizePolicy(sizePolicy1)
self.formLayout.setWidget(6, QFormLayout.SpanningRole, self.btn_editPattern)
self.lbl_examplePattern = QLabel(self.groupBox)
self.lbl_examplePattern.setObjectName(u"lbl_examplePattern")
self.lbl_examplePattern.setStyleSheet(u"background-color: rgb(35, 35, 35);\n"
"color: rgb(244, 244, 244);")
self.formLayout.setWidget(5, QFormLayout.SpanningRole, self.lbl_examplePattern)
self.verticalLayout_2.addWidget(self.groupBox)
self.horizontalLayout_5.addLayout(self.verticalLayout_2)
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setObjectName(u"verticalLayout")
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.btn_timestamp = QPushButton(self.centralwidget)
self.btn_timestamp.setObjectName(u"btn_timestamp")
self.btn_timestamp.setCheckable(True)
self.btn_timestamp.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_timestamp)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(self.horizontalSpacer_2)
self.btn_clearMainTerminal = QPushButton(self.centralwidget)
self.btn_clearMainTerminal.setObjectName(u"btn_clearMainTerminal")
self.horizontalLayout_3.addWidget(self.btn_clearMainTerminal)
self.btn_autoScrollMainTermianl = QPushButton(self.centralwidget)
self.btn_autoScrollMainTermianl.setObjectName(u"btn_autoScrollMainTermianl")
self.btn_autoScrollMainTermianl.setCheckable(True)
self.btn_autoScrollMainTermianl.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_autoScrollMainTermianl)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.txtEdit_mainTerminal = QPlainTextEdit(self.centralwidget)
self.txtEdit_mainTerminal.setObjectName(u"txtEdit_mainTerminal")
self.verticalLayout.addWidget(self.txtEdit_mainTerminal)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.lineEdit = QLineEdit(self.centralwidget)
self.lineEdit.setObjectName(u"lineEdit")
self.horizontalLayout_2.addWidget(self.lineEdit)
self.btn_endLine = QPushButton(self.centralwidget)
self.btn_endLine.setObjectName(u"btn_endLine")
self.btn_endLine.setCheckable(True)
self.btn_endLine.setChecked(True)
self.horizontalLayout_2.addWidget(self.btn_endLine)
self.btn_send = QPushButton(self.centralwidget)
self.btn_send.setObjectName(u"btn_send")
self.horizontalLayout_2.addWidget(self.btn_send)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_5.addLayout(self.verticalLayout)
self.verticalLayout_3 = QVBoxLayout()
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.pushButton_10 = QPushButton(self.centralwidget)
self.pushButton_10.setObjectName(u"pushButton_10")
self.verticalLayout_3.addWidget(self.pushButton_10)
self.scrollArea = QScrollArea(self.centralwidget)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setMinimumSize(QSize(120, 0))
self.scrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 101, 318))
self.verticalLayout_6 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.verticalLayout_6.setContentsMargins(-1, -1, 9, -1)
self.btn_command1 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command1.setObjectName(u"btn_command1")
self.verticalLayout_6.addWidget(self.btn_command1)
self.btn_command2 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command2.setObjectName(u"btn_command2")
self.verticalLayout_6.addWidget(self.btn_command2)
self.btn_command3 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command3.setObjectName(u"btn_command3")
self.verticalLayout_6.addWidget(self.btn_command3)
self.btn_command4 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command4.setObjectName(u"btn_command4")
self.verticalLayout_6.addWidget(self.btn_command4)
self.btn_command5 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command5.setObjectName(u"btn_command5")
self.verticalLayout_6.addWidget(self.btn_command5)
self.btn_command6 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command6.setObjectName(u"btn_command6")
self.verticalLayout_6.addWidget(self.btn_command6)
self.btn_command7 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command7.setObjectName(u"btn_command7")
self.verticalLayout_6.addWidget(self.btn_command7)
self.btn_command8 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command8.setObjectName(u"btn_command8")
self.verticalLayout_6.addWidget(self.btn_command8)
self.btn_command9 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command9.setObjectName(u"btn_command9")
self.verticalLayout_6.addWidget(self.btn_command9)
self.btn_command10 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command10.setObjectName(u"btn_command10")
self.verticalLayout_6.addWidget(self.btn_command10)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.verticalLayout_6.addItem(self.verticalSpacer)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.verticalLayout_3.addWidget(self.scrollArea)
self.horizontalLayout_5.addLayout(self.verticalLayout_3)
self.horizontalLayout_5.setStretch(1, 1)
self.verticalLayout_5.addLayout(self.horizontalLayout_5)
self.verticalLayout_4 = QVBoxLayout()
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.pushButton_9 = QPushButton(self.centralwidget)
self.pushButton_9.setObjectName(u"pushButton_9")
self.verticalLayout_4.addWidget(self.pushButton_9)
self.verticalLayout_5.addLayout(self.verticalLayout_4)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"Serial Vizualizer", None))
self.btn_connect.setText(QCoreApplication.translate("MainWindow", u"Connect", None))
self.btn_settings.setText(QCoreApplication.translate("MainWindow", u"Settings", None))
self.btn_addPattern.setText(QCoreApplication.translate("MainWindow", u"Add", None))
self.btn_removePattern.setText(QCoreApplication.translate("MainWindow", u"Remove", None))
self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"Pattern info", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"Name:", None))
self.lbl_namePattern.setText(QCoreApplication.translate("MainWindow", u"Regex1", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"Pattern:", None))
self.lbl_patternPattern.setText(QCoreApplication.translate("MainWindow", u"\"/d/d/d\"", None))
self.label_5.setText(QCoreApplication.translate("MainWindow", u"isValid:", None))
self.lbl_isValidPattern.setText(QCoreApplication.translate("MainWindow", u"True", None))
self.label_7.setText(QCoreApplication.translate("MainWindow", u"Matches:", None))
self.lbl_matchesCountPattern.setText(QCoreApplication.translate("MainWindow", u"120", None))
self.label_9.setText(QCoreApplication.translate("MainWindow", u"Example:", None))
self.btn_editPattern.setText(QCoreApplication.translate("MainWindow", u"Edit", None))
self.lbl_examplePattern.setText(QCoreApplication.translate("MainWindow", u"__example text__", None))
self.btn_timestamp.setText(QCoreApplication.translate("MainWindow", u"Timestamp", None))
self.btn_clearMainTerminal.setText(QCoreApplication.translate("MainWindow", u"Clear", None))
self.btn_autoScrollMainTermianl.setText(QCoreApplication.translate("MainWindow", u"AutoScroll", None))
self.btn_endLine.setText(QCoreApplication.translate("MainWindow", u"EndLine", None))
self.btn_send.setText(QCoreApplication.translate("MainWindow", u"Send", None))
self.pushButton_10.setText(QCoreApplication.translate("MainWindow", u"Edit Commands", None))
self.btn_command1.setText(QCoreApplication.translate("MainWindow", u"Command1", None))
self.btn_command2.setText(QCoreApplication.translate("MainWindow", u"Command2", None))
self.btn_command3.setText(QCoreApplication.translate("MainWindow", u"Command3", None))
self.btn_command4.setText(QCoreApplication.translate("MainWindow", u"Command4", None))
self.btn_command5.setText(QCoreApplication.translate("MainWindow", u"Command5", None))
self.btn_command6.setText(QCoreApplication.translate("MainWindow", u"Command6", None))
self.btn_command7.setText(QCoreApplication.translate("MainWindow", u"Command7", None))
self.btn_command8.setText(QCoreApplication.translate("MainWindow", u"Command8", None))
self.btn_command9.setText(QCoreApplication.translate("MainWindow", u"Command9", None))
self.btn_command10.setText(QCoreApplication.translate("MainWindow", u"Command10", None))
self.pushButton_9.setText(QCoreApplication.translate("MainWindow", u"PushButton", None))
# retranslateUi
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'MainWindow.ui'
##
## Created by: Qt User Interface Compiler version 6.2.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QFormLayout, QFrame,
QGroupBox, QHBoxLayout, QLabel, QLineEdit,
QListView, QListWidget, QListWidgetItem, QMainWindow,
QPlainTextEdit, QPushButton, QScrollArea, QSizePolicy,
QSpacerItem, QStatusBar, QVBoxLayout, QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1024, 480)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
font = QFont()
font.setPointSize(10)
self.centralwidget.setFont(font)
self.verticalLayout_5 = QVBoxLayout(self.centralwidget)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.btn_connect = QPushButton(self.centralwidget)
self.btn_connect.setObjectName(u"btn_connect")
self.btn_connect.setEnabled(False)
self.btn_connect.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_connect)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout.addItem(self.horizontalSpacer)
self.btn_settings = QPushButton(self.centralwidget)
self.btn_settings.setObjectName(u"btn_settings")
self.btn_settings.setMinimumSize(QSize(0, 50))
self.horizontalLayout.addWidget(self.btn_settings)
self.verticalLayout_5.addLayout(self.horizontalLayout)
self.line = QFrame(self.centralwidget)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.HLine)
self.line.setFrameShadow(QFrame.Sunken)
self.verticalLayout_5.addWidget(self.line)
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setSpacing(6)
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.btn_addPattern = QPushButton(self.centralwidget)
self.btn_addPattern.setObjectName(u"btn_addPattern")
self.horizontalLayout_4.addWidget(self.btn_addPattern)
self.btn_removePattern = QPushButton(self.centralwidget)
self.btn_removePattern.setObjectName(u"btn_removePattern")
self.horizontalLayout_4.addWidget(self.btn_removePattern)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.lst_regex = QListWidget(self.centralwidget)
self.lst_regex.setObjectName(u"lst_regex")
sizePolicy = QSizePolicy(QSizePolicy.Ignored, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lst_regex.sizePolicy().hasHeightForWidth())
self.lst_regex.setSizePolicy(sizePolicy)
self.lst_regex.setDragDropMode(QAbstractItemView.InternalMove)
self.lst_regex.setDefaultDropAction(Qt.MoveAction)
self.lst_regex.setMovement(QListView.Snap)
self.verticalLayout_2.addWidget(self.lst_regex)
self.groupBox = QGroupBox(self.centralwidget)
self.groupBox.setObjectName(u"groupBox")
self.formLayout = QFormLayout(self.groupBox)
self.formLayout.setObjectName(u"formLayout")
self.formLayout.setHorizontalSpacing(20)
self.label = QLabel(self.groupBox)
self.label.setObjectName(u"label")
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
self.lbl_namePattern = QLabel(self.groupBox)
self.lbl_namePattern.setObjectName(u"lbl_namePattern")
self.formLayout.setWidget(0, QFormLayout.FieldRole, self.lbl_namePattern)
self.label_3 = QLabel(self.groupBox)
self.label_3.setObjectName(u"label_3")
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_3)
self.lbl_patternPattern = QLabel(self.groupBox)
self.lbl_patternPattern.setObjectName(u"lbl_patternPattern")
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.lbl_patternPattern)
self.label_5 = QLabel(self.groupBox)
self.label_5.setObjectName(u"label_5")
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_5)
self.lbl_isValidPattern = QLabel(self.groupBox)
self.lbl_isValidPattern.setObjectName(u"lbl_isValidPattern")
self.formLayout.setWidget(2, QFormLayout.FieldRole, self.lbl_isValidPattern)
self.label_7 = QLabel(self.groupBox)
self.label_7.setObjectName(u"label_7")
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_7)
self.lbl_matchesCountPattern = QLabel(self.groupBox)
self.lbl_matchesCountPattern.setObjectName(u"lbl_matchesCountPattern")
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.lbl_matchesCountPattern)
self.label_9 = QLabel(self.groupBox)
self.label_9.setObjectName(u"label_9")
self.formLayout.setWidget(4, QFormLayout.LabelRole, self.label_9)
self.btn_editPattern = QPushButton(self.groupBox)
self.btn_editPattern.setObjectName(u"btn_editPattern")
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.btn_editPattern.sizePolicy().hasHeightForWidth())
self.btn_editPattern.setSizePolicy(sizePolicy1)
self.formLayout.setWidget(6, QFormLayout.SpanningRole, self.btn_editPattern)
self.lbl_examplePattern = QLabel(self.groupBox)
self.lbl_examplePattern.setObjectName(u"lbl_examplePattern")
self.lbl_examplePattern.setLayoutDirection(Qt.LeftToRight)
self.lbl_examplePattern.setStyleSheet(u"background-color: rgb(35, 35, 35);\n"
"color: rgb(244, 244, 244);")
self.lbl_examplePattern.setAlignment(Qt.AlignCenter)
self.formLayout.setWidget(5, QFormLayout.SpanningRole, self.lbl_examplePattern)
self.verticalLayout_2.addWidget(self.groupBox)
self.horizontalLayout_5.addLayout(self.verticalLayout_2)
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setObjectName(u"verticalLayout")
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.btn_timestamp = QPushButton(self.centralwidget)
self.btn_timestamp.setObjectName(u"btn_timestamp")
self.btn_timestamp.setCheckable(True)
self.btn_timestamp.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_timestamp)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(self.horizontalSpacer_2)
self.btn_clearMainTerminal = QPushButton(self.centralwidget)
self.btn_clearMainTerminal.setObjectName(u"btn_clearMainTerminal")
self.horizontalLayout_3.addWidget(self.btn_clearMainTerminal)
self.btn_autoScrollMainTermianl = QPushButton(self.centralwidget)
self.btn_autoScrollMainTermianl.setObjectName(u"btn_autoScrollMainTermianl")
self.btn_autoScrollMainTermianl.setCheckable(True)
self.btn_autoScrollMainTermianl.setChecked(True)
self.horizontalLayout_3.addWidget(self.btn_autoScrollMainTermianl)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.txtEdit_mainTerminal = QPlainTextEdit(self.centralwidget)
self.txtEdit_mainTerminal.setObjectName(u"txtEdit_mainTerminal")
self.verticalLayout.addWidget(self.txtEdit_mainTerminal)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.lineEdit = QLineEdit(self.centralwidget)
self.lineEdit.setObjectName(u"lineEdit")
self.horizontalLayout_2.addWidget(self.lineEdit)
self.btn_endLine = QPushButton(self.centralwidget)
self.btn_endLine.setObjectName(u"btn_endLine")
self.btn_endLine.setCheckable(True)
self.btn_endLine.setChecked(True)
self.horizontalLayout_2.addWidget(self.btn_endLine)
self.btn_send = QPushButton(self.centralwidget)
self.btn_send.setObjectName(u"btn_send")
self.horizontalLayout_2.addWidget(self.btn_send)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_5.addLayout(self.verticalLayout)
self.verticalLayout_3 = QVBoxLayout()
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.pushButton_10 = QPushButton(self.centralwidget)
self.pushButton_10.setObjectName(u"pushButton_10")
self.verticalLayout_3.addWidget(self.pushButton_10)
self.scrollArea = QScrollArea(self.centralwidget)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setMinimumSize(QSize(120, 0))
self.scrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.scrollArea.setWidgetResizable(True)
self.scrollAreaWidgetContents = QWidget()
self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 101, 318))
self.verticalLayout_6 = QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.verticalLayout_6.setContentsMargins(-1, -1, 9, -1)
self.btn_command1 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command1.setObjectName(u"btn_command1")
self.verticalLayout_6.addWidget(self.btn_command1)
self.btn_command2 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command2.setObjectName(u"btn_command2")
self.verticalLayout_6.addWidget(self.btn_command2)
self.btn_command3 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command3.setObjectName(u"btn_command3")
self.verticalLayout_6.addWidget(self.btn_command3)
self.btn_command4 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command4.setObjectName(u"btn_command4")
self.verticalLayout_6.addWidget(self.btn_command4)
self.btn_command5 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command5.setObjectName(u"btn_command5")
self.verticalLayout_6.addWidget(self.btn_command5)
self.btn_command6 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command6.setObjectName(u"btn_command6")
self.verticalLayout_6.addWidget(self.btn_command6)
self.btn_command7 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command7.setObjectName(u"btn_command7")
self.verticalLayout_6.addWidget(self.btn_command7)
self.btn_command8 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command8.setObjectName(u"btn_command8")
self.verticalLayout_6.addWidget(self.btn_command8)
self.btn_command9 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command9.setObjectName(u"btn_command9")
self.verticalLayout_6.addWidget(self.btn_command9)
self.btn_command10 = QPushButton(self.scrollAreaWidgetContents)
self.btn_command10.setObjectName(u"btn_command10")
self.verticalLayout_6.addWidget(self.btn_command10)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.verticalLayout_6.addItem(self.verticalSpacer)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.verticalLayout_3.addWidget(self.scrollArea)
self.horizontalLayout_5.addLayout(self.verticalLayout_3)
self.horizontalLayout_5.setStretch(1, 1)
self.verticalLayout_5.addLayout(self.horizontalLayout_5)
self.verticalLayout_4 = QVBoxLayout()
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.pushButton_9 = QPushButton(self.centralwidget)
self.pushButton_9.setObjectName(u"pushButton_9")
self.verticalLayout_4.addWidget(self.pushButton_9)
self.verticalLayout_5.addLayout(self.verticalLayout_4)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"Serial Vizualizer", None))
self.btn_connect.setText(QCoreApplication.translate("MainWindow", u"Connect", None))
self.btn_settings.setText(QCoreApplication.translate("MainWindow", u"Settings", None))
self.btn_addPattern.setText(QCoreApplication.translate("MainWindow", u"Add", None))
self.btn_removePattern.setText(QCoreApplication.translate("MainWindow", u"Remove", None))
self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"Pattern info", None))
self.label.setText(QCoreApplication.translate("MainWindow", u"Name:", None))
self.lbl_namePattern.setText(QCoreApplication.translate("MainWindow", u"Regex1", None))
self.label_3.setText(QCoreApplication.translate("MainWindow", u"Pattern:", None))
self.lbl_patternPattern.setText(QCoreApplication.translate("MainWindow", u"\"/d/d/d\"", None))
self.label_5.setText(QCoreApplication.translate("MainWindow", u"isValid:", None))
self.lbl_isValidPattern.setText(QCoreApplication.translate("MainWindow", u"True", None))
self.label_7.setText(QCoreApplication.translate("MainWindow", u"Matches:", None))
self.lbl_matchesCountPattern.setText(QCoreApplication.translate("MainWindow", u"120", None))
self.label_9.setText(QCoreApplication.translate("MainWindow", u"Example:", None))
self.btn_editPattern.setText(QCoreApplication.translate("MainWindow", u"Edit", None))
self.lbl_examplePattern.setText(QCoreApplication.translate("MainWindow", u"__example text__", None))
self.btn_timestamp.setText(QCoreApplication.translate("MainWindow", u"Timestamp", None))
self.btn_clearMainTerminal.setText(QCoreApplication.translate("MainWindow", u"Clear", None))
self.btn_autoScrollMainTermianl.setText(QCoreApplication.translate("MainWindow", u"AutoScroll", None))
self.btn_endLine.setText(QCoreApplication.translate("MainWindow", u"EndLine", None))
self.btn_send.setText(QCoreApplication.translate("MainWindow", u"Send", None))
self.pushButton_10.setText(QCoreApplication.translate("MainWindow", u"Edit Commands", None))
self.btn_command1.setText(QCoreApplication.translate("MainWindow", u"Command1", None))
self.btn_command2.setText(QCoreApplication.translate("MainWindow", u"Command2", None))
self.btn_command3.setText(QCoreApplication.translate("MainWindow", u"Command3", None))
self.btn_command4.setText(QCoreApplication.translate("MainWindow", u"Command4", None))
self.btn_command5.setText(QCoreApplication.translate("MainWindow", u"Command5", None))
self.btn_command6.setText(QCoreApplication.translate("MainWindow", u"Command6", None))
self.btn_command7.setText(QCoreApplication.translate("MainWindow", u"Command7", None))
self.btn_command8.setText(QCoreApplication.translate("MainWindow", u"Command8", None))
self.btn_command9.setText(QCoreApplication.translate("MainWindow", u"Command9", None))
self.btn_command10.setText(QCoreApplication.translate("MainWindow", u"Command10", None))
self.pushButton_9.setText(QCoreApplication.translate("MainWindow", u"PushButton", None))
# retranslateUi