diff --git a/.gitignore b/.gitignore index e28c54e..001c426 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.pyc cmdUtil -.DS_Store \ No newline at end of file +.DS_Store +Subsystems/cmdGui/CHeaderParser.py +Subsystems/cmdGui/CHeaderParser.py \ No newline at end of file diff --git a/GroundSystem.py b/GroundSystem.py index 5137fe4..29fe5cd 100644 --- a/GroundSystem.py +++ b/GroundSystem.py @@ -19,80 +19,89 @@ # #cFS Ground System Version 2.0.0 # -#!/usr/bin/env python +#!/usr/bin/env python3 # +import shlex +import subprocess import sys -import os -import socket -import zmq +from pathlib import Path + +from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox -from PyQt4 import QtGui, QtNetwork, QtCore from MainWindow import Ui_MainWindow from RoutingService import RoutingService +ROOTDIR = Path(sys.argv[0]).resolve().parent + + # # CFS Ground System: Setup and manage the main window # -class GroundSystem(QtGui.QMainWindow): +class GroundSystem(QMainWindow, Ui_MainWindow): # # Init the class # - def __init__(self, parent=None): - QtGui.QMainWindow.__init__(self) + def __init__(self): + super().__init__() + self.setupUi((self)) + + self.RoutingService = None + self.alert = QMessageBox() + self.pushButtonStartTlm.clicked.connect(self.startTlmSystem) + self.pushButtonStartCmd.clicked.connect(self.startCmdSystem) # Init lists self.ipAddressesList = ['All'] self.spacecraftNames = ['All'] - # Init GUI and set callback methods for buttons - self.ui = Ui_MainWindow() - self.ui.setupUi(self) - self.ui.pushButtonStartTlm.clicked.connect(self.startTlmSystem) - self.ui.pushButtonStartCmd.clicked.connect(self.startCmdSystem) - def closeEvent(self, evnt): if self.RoutingService: self.RoutingService.stop() - print ("Stopped routing service") + print("Stopped routing service") - super(GroundSystem, self).closeEvent(evnt) + super().closeEvent(evnt) # Read the selected spacecraft from combo box on GUI def getSelectedSpacecraftAddress(self): - return str(self.ui.comboBoxIpAddresses.currentText()) + return self.comboBoxIpAddresses.currentText().strip() # Returns the name of the selected spacecraft def getSelectedSpacecraftName(self): - return self.spacecraftNames[self.ipAddressesList.index(self.getSelectedSpacecraftAddress())] + return self.spacecraftNames[self.ipAddressesList.index( + self.getSelectedSpacecraftAddress())].strip() # # Display popup with error # def DisplayErrorMessage(self, message): - print (message) - alert = QtGui.QMessageBox() - alert.setText(message) - alert.setIcon(QtGui.QMessageBox.Warning) - alert.exec_() + print(message) + # alert = QMessageBox() + self.alert.setText(message) + self.alert.setIcon(QMessageBox.Warning) + self.alert.exec_() # Start the telemetry system for the selected spacecraft def startTlmSystem(self): selectedSpacecraft = self.getSelectedSpacecraftName() - # Setup the subscription (to let know the telemetry system the messages it will be receiving) + # Setup the subscription (to let know the + # telemetry system the messages it will be receiving) if selectedSpacecraft == 'All': subscription = '--sub=GroundSystem' else: - subscription = '--sub=GroundSystem.' + selectedSpacecraft + '.TelemetryPackets' + subscription = f'--sub=GroundSystem.{selectedSpacecraft}.TelemetryPackets' # Open Telemetry System - system_call = '( cd Subsystems/tlmGUI/ && python3 TelemetrySystem.py ' + subscription + ' ) & ' - os.system(system_call) + system_call = f'python3 {ROOTDIR}/Subsystems/tlmGUI/TelemetrySystem.py {subscription}' + args = shlex.split(system_call) + subprocess.Popen(args) # Start command system - def startCmdSystem(self): - os.system('( cd Subsystems/cmdGui/ && python3 CommandSystem.py ) & ') + @staticmethod + def startCmdSystem(): + subprocess.Popen( + ['python3', f'{ROOTDIR}/Subsystems/cmdGui/CommandSystem.py']) # Start FDL-FUL gui system #def startFDLSystem(self): @@ -108,21 +117,22 @@ def startCmdSystem(self): def updateIpList(self, ip, name): self.ipAddressesList.append(ip) self.spacecraftNames.append(name) - self.ui.comboBoxIpAddresses.addItem(ip) + self.comboBoxIpAddresses.addItem(ip) # Start the routing service (see RoutingService.py) def initRoutingService(self): - self.RoutingService = RoutingService(self) - self.connect(self.RoutingService, self.RoutingService.signalUpdateIpList, self.updateIpList) + self.RoutingService = RoutingService() + self.RoutingService.signalUpdateIpList.connect(self.updateIpList) self.RoutingService.start() + # # Main # if __name__ == "__main__": # Init app - app = QtGui.QApplication(sys.argv) + app = QApplication(sys.argv) # Init main window MainWindow = GroundSystem() @@ -136,4 +146,3 @@ def initRoutingService(self): # Execute the app sys.exit(app.exec_()) - diff --git a/Guide-GroundSystem.txt b/Guide-GroundSystem.txt index 98f0d28..d0fd74a 100644 --- a/Guide-GroundSystem.txt +++ b/Guide-GroundSystem.txt @@ -18,20 +18,20 @@ Future enhancements: Before launching the Ground System make sure that: - -> PyQt4 is installed. + -> PyQt5 is installed. -> PyZMQ is installed. -> cmdUtil is compiled. Installing and running cFS Ground System on Ubuntu: - $ sudo apt-get install python3-pyqt4 + $ sudo apt-get install python3-pyqt5 $ sudo apt-get install python3-zmq $ sudo apt-get install libcanberra-gtk-module $ ( cd Subsystems/cmdUtil/ && make ) $ python3 GroundSystem.py -The historically included instructions for running on Mac or CentOS are inluded at the bottom of this document for referance. +The historically included instructions for running on Mac or CentOS are inluded at the bottom of this document for reference. Please note that instructions have not been maintained. Welcoming instruction contributions if any of these are your platform of choice. @@ -160,8 +160,8 @@ Installing and running cFS Ground System on CentOS 6: $ ldconfig $ pip install pyzmq - #### Install pyQT4 #### - $ yum install -y PyQt4 + #### Install pyQT5 #### + $ yum install -y PyQt5 $ yum install -y qt qt-demos qt-designer qt4 qt4-designer diff --git a/MainWindow.py b/MainWindow.py index 432dcca..dea718d 100644 --- a/MainWindow.py +++ b/MainWindow.py @@ -1,144 +1,121 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'MainWindow.ui' +# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/MainWindow.ui' # -# Created: Wed Jun 24 09:56:47 2015 -# by: PyQt4 UI code generator 4.11.3 +# Created by: PyQt5 UI code generator 5.12.3 # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s +from PyQt5 import QtCore, QtGui, QtWidgets -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) class Ui_MainWindow(object): def setupUi(self, MainWindow): - MainWindow.setObjectName(_fromUtf8("MainWindow")) + MainWindow.setObjectName("MainWindow") MainWindow.setEnabled(True) MainWindow.resize(420, 217) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(24) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) MainWindow.setSizePolicy(sizePolicy) - self.centralwidget = QtGui.QWidget(MainWindow) - self.centralwidget.setObjectName(_fromUtf8("centralwidget")) - self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.labelHomeTittle = QtGui.QLabel(self.centralwidget) + self.centralwidget = QtWidgets.QWidget(MainWindow) + self.centralwidget.setObjectName("centralwidget") + self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) + self.verticalLayout.setObjectName("verticalLayout") + self.labelHomeTittle = QtWidgets.QLabel(self.centralwidget) font = QtGui.QFont() font.setPointSize(22) font.setBold(False) font.setWeight(50) self.labelHomeTittle.setFont(font) self.labelHomeTittle.setAlignment(QtCore.Qt.AlignCenter) - self.labelHomeTittle.setObjectName(_fromUtf8("labelHomeTittle")) + self.labelHomeTittle.setObjectName("labelHomeTittle") self.verticalLayout.addWidget(self.labelHomeTittle) - self.line_2 = QtGui.QFrame(self.centralwidget) - self.line_2.setFrameShape(QtGui.QFrame.HLine) - self.line_2.setFrameShadow(QtGui.QFrame.Sunken) - self.line_2.setObjectName(_fromUtf8("line_2")) + self.line_2 = QtWidgets.QFrame(self.centralwidget) + self.line_2.setFrameShape(QtWidgets.QFrame.HLine) + self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) + self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) - self.label_3 = QtGui.QLabel(self.centralwidget) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) + self.label_3 = QtWidgets.QLabel(self.centralwidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setMinimumSize(QtCore.QSize(141, 0)) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) - self.label_3.setObjectName(_fromUtf8("label_3")) + self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) - self.comboBoxIpAddresses = QtGui.QComboBox(self.centralwidget) + self.comboBoxIpAddresses = QtWidgets.QComboBox(self.centralwidget) self.comboBoxIpAddresses.setMinimumSize(QtCore.QSize(132, 0)) self.comboBoxIpAddresses.setMaximumSize(QtCore.QSize(132, 16777215)) - self.comboBoxIpAddresses.setObjectName(_fromUtf8("comboBoxIpAddresses")) - self.comboBoxIpAddresses.addItem(_fromUtf8("")) + self.comboBoxIpAddresses.setObjectName("comboBoxIpAddresses") + self.comboBoxIpAddresses.addItem("") self.horizontalLayout.addWidget(self.comboBoxIpAddresses) - spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) - self.horizontalLayout_2 = QtGui.QHBoxLayout() + self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setSpacing(32) - self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) - self.pushButtonStartTlm = QtGui.QPushButton(self.centralwidget) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + self.pushButtonStartTlm = QtWidgets.QPushButton(self.centralwidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButtonStartTlm.sizePolicy().hasHeightForWidth()) self.pushButtonStartTlm.setSizePolicy(sizePolicy) - self.pushButtonStartTlm.setObjectName(_fromUtf8("pushButtonStartTlm")) + self.pushButtonStartTlm.setObjectName("pushButtonStartTlm") self.horizontalLayout_2.addWidget(self.pushButtonStartTlm) - self.pushButtonStartCmd = QtGui.QPushButton(self.centralwidget) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) + self.pushButtonStartCmd = QtWidgets.QPushButton(self.centralwidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButtonStartCmd.sizePolicy().hasHeightForWidth()) self.pushButtonStartCmd.setSizePolicy(sizePolicy) - self.pushButtonStartCmd.setObjectName(_fromUtf8("pushButtonStartCmd")) + self.pushButtonStartCmd.setObjectName("pushButtonStartCmd") self.horizontalLayout_2.addWidget(self.pushButtonStartCmd) self.verticalLayout.addLayout(self.horizontalLayout_2) - self.line = QtGui.QFrame(self.centralwidget) - self.line.setFrameShape(QtGui.QFrame.HLine) - self.line.setFrameShadow(QtGui.QFrame.Sunken) - self.line.setObjectName(_fromUtf8("line")) + self.line = QtWidgets.QFrame(self.centralwidget) + self.line.setFrameShape(QtWidgets.QFrame.HLine) + self.line.setFrameShadow(QtWidgets.QFrame.Sunken) + self.line.setObjectName("line") self.verticalLayout.addWidget(self.line) - self.horizontalLayout_4 = QtGui.QHBoxLayout() - self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) - self.label_5 = QtGui.QLabel(self.centralwidget) + self.horizontalLayout_4 = QtWidgets.QHBoxLayout() + self.horizontalLayout_4.setObjectName("horizontalLayout_4") + self.label_5 = QtWidgets.QLabel(self.centralwidget) font = QtGui.QFont() font.setPointSize(11) self.label_5.setFont(font) - self.label_5.setObjectName(_fromUtf8("label_5")) + self.label_5.setObjectName("label_5") self.horizontalLayout_4.addWidget(self.label_5) - self.pushButton = QtGui.QPushButton(self.centralwidget) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton = QtWidgets.QPushButton(self.centralwidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth()) self.pushButton.setSizePolicy(sizePolicy) - self.pushButton.setObjectName(_fromUtf8("pushButton")) + self.pushButton.setObjectName("pushButton") self.horizontalLayout_4.addWidget(self.pushButton) self.verticalLayout.addLayout(self.horizontalLayout_4) MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) - QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.close) + self.pushButton.clicked.connect(MainWindow.close) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): - MainWindow.setWindowTitle(_translate("MainWindow", "Main Window", None)) - self.labelHomeTittle.setText(_translate("MainWindow", "cFS Ground System", None)) - self.label_3.setText(_translate("MainWindow", "Selected IP Address: ", None)) - self.comboBoxIpAddresses.setItemText(0, _translate("MainWindow", "All", None)) - self.pushButtonStartTlm.setText(_translate("MainWindow", "Start Telemetry System", None)) - self.pushButtonStartCmd.setText(_translate("MainWindow", "Start Command System", None)) - self.label_5.setText(_translate("MainWindow", "*Read Guide-GroundSystem.txt for help", None)) - self.pushButton.setText(_translate("MainWindow", "Close", None)) - - -if __name__ == "__main__": - import sys - app = QtGui.QApplication(sys.argv) - MainWindow = QtGui.QMainWindow() - ui = Ui_MainWindow() - ui.setupUi(MainWindow) - MainWindow.show() - sys.exit(app.exec_()) - + _translate = QtCore.QCoreApplication.translate + MainWindow.setWindowTitle(_translate("MainWindow", "Main Window")) + self.labelHomeTittle.setText(_translate("MainWindow", "CFS Ground System")) + self.label_3.setText(_translate("MainWindow", "Selected IP Address: ")) + self.comboBoxIpAddresses.setItemText(0, _translate("MainWindow", "All")) + self.pushButtonStartTlm.setText(_translate("MainWindow", "Start Telemetry System")) + self.pushButtonStartCmd.setText(_translate("MainWindow", "Start Command System")) + self.label_5.setText(_translate("MainWindow", "*Read Guide-GroundSystem.txt for help")) + self.pushButton.setText(_translate("MainWindow", "Close")) diff --git a/RoutingService.py b/RoutingService.py index eaad8f5..66b9e7d 100644 --- a/RoutingService.py +++ b/RoutingService.py @@ -17,31 +17,30 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python +#!/usr/bin/env python3 # -import sys -import os import socket -import zmq - -from PyQt4 import QtGui, QtNetwork, QtCore -from struct import * +from struct import unpack from time import sleep +import zmq +from PyQt5.QtCore import QThread, pyqtSignal + # Receive port where the CFS TO_Lab app sends the telemetry packets udpRecvPort = 1235 + # # Receive telemetry packets, apply the appropriate header # and publish the message with zeroMQ # -class RoutingService(QtCore.QThread): +class RoutingService(QThread): + # Signal to update the spacecraft combo box (list) on main window GUI + signalUpdateIpList = pyqtSignal(str, bytes) - def __init__(self, mainWindow): - QtCore.QThread.__init__(self) - # Signal to update the spacecraft combo box (list) on main window GUI - self.signalUpdateIpList = QtCore.SIGNAL("changeIpList") + def __init__(self): + super().__init__() # Init lists self.ipAddressesList = ["All"] @@ -49,18 +48,19 @@ def __init__(self, mainWindow): self.specialPktId = [] self.specialPktName = [] + self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + # Init zeroMQ - self.context = zmq.Context() + self.context = zmq.Context() self.publisher = self.context.socket(zmq.PUB) self.publisher.bind("ipc:///tmp/GroundSystem") # Run thread def run(self): # Init udp socket - self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.sock.bind(('', udpRecvPort)) - print ('Attempting to wait for UDP messages') + print('Attempting to wait for UDP messages') socketErrorCount = 0 while socketErrorCount < 5: @@ -69,7 +69,8 @@ def run(self): while True: try: # Receive message - datagram, host = self.sock.recvfrom(4096) # buffer size is 1024 bytes + datagram, host = self.sock.recvfrom( + 4096) # buffer size is 1024 bytes # Ignore datagram if it is not long enough (doesnt contain tlm header?) if len(datagram) < 6: @@ -81,22 +82,27 @@ def run(self): # # Add Host to the list if not already in list # - if not any(hostIpAddress in s for s in self.ipAddressesList): - hostName = 'Spacecraft' + str(len(self.spacecraftNames)) - my_hostName_as_bytes = str.encode(hostName) - print ("Detected " + hostName + " at " + hostIpAddress) - self.ipAddressesList.append(hostIpAddress); + if hostIpAddress not in self.ipAddressesList: + ## MAKE SURE THERE'S NO SPACE BETWEEN "Spacecraft" + ## AND THE FIRST CURLY BRACE!!! + hostName = f'Spacecraft{len(self.spacecraftNames)}' + my_hostName_as_bytes = hostName.encode() + print("Detected", hostName, "at", hostIpAddress) + self.ipAddressesList.append(hostIpAddress) self.spacecraftNames.append(my_hostName_as_bytes) - self.emit(self.signalUpdateIpList, hostIpAddress, my_hostName_as_bytes) + self.signalUpdateIpList.emit(hostIpAddress, + my_hostName_as_bytes) # Forward the message using zeroMQ - name = self.spacecraftNames[self.ipAddressesList.index(hostIpAddress)] + name = self.spacecraftNames[self.ipAddressesList.index( + hostIpAddress)] self.forwardMessage(datagram, name) # Handle errors - except socket.error as v: - print ('Ignored socket error for attempt %s' % socketErrorCount) - socketErrorCount = socketErrorCount + 1 + except socket.error: + print( + f'Ignored socket error for attempt {socketErrorCount}') + socketErrorCount += 1 sleep(1) # Apply header using hostname and packet id and send msg using zeroMQ @@ -104,23 +110,21 @@ def forwardMessage(self, datagram, hostName): # Forward message to channel GroundSystem.. pktId = self.getPktId(datagram) my_decoded_hostName = hostName.decode() - header = "GroundSystem." + my_decoded_hostName + ".TelemetryPackets." + pktId - my_header_as_bytes = str.encode(header) + header = f"GroundSystem.{my_decoded_hostName}.TelemetryPackets.{pktId}" + my_header_as_bytes = header.encode() self.publisher.send_multipart([my_header_as_bytes, datagram]) - #print header - + # print(header) # Read the packet id from the telemetry packet - def getPktId(self, datagram): + @staticmethod + def getPktId(datagram): # Read the telemetry header - streamId, Sequence, Length = unpack(">HHH",datagram[:6]) + streamId = unpack(">H", datagram[:2]) # Uncomment the next line to debug - # print "Packet ID = " , hex(streamId) - return hex(streamId) + # print("Packet ID =", hex(streamId)) + return hex(streamId[0]) # Close ZMQ vars def stop(self): self.sock.close() self.context.destroy() - - diff --git a/Subsystems/Commands-Telemetry.txt b/Subsystems/Commands-Telemetry.txt index 50faca2..e8a6548 100644 --- a/Subsystems/Commands-Telemetry.txt +++ b/Subsystems/Commands-Telemetry.txt @@ -65,10 +65,10 @@ It provides a list of "command pages" with a list of commands to send to a subsy Start the command system using the Ground System's main window. -The program is written in Python 2.x with the PyQT4 GUI. The dialogs were created -in the QT4 designer program, and converted to python classes using the "pyuic4" +The program is written in Python 3.x with the PyQT5 GUI. The dialogs were created +in the QT designer program, and converted to python classes using the "pyuic5" utility: - pyuic4 -o MyDialog.py MyDialog.ui + pyuic5 -o MyDialog.py MyDialog.ui The list of pages along with the AppID and address for each page is defined in the file "command-pages.txt" diff --git a/Subsystems/cmdGui/CHeaderParser.py b/Subsystems/cmdGui/CHeaderParser.py index 1f5b58d..fcd48bd 100644 --- a/Subsystems/cmdGui/CHeaderParser.py +++ b/Subsystems/cmdGui/CHeaderParser.py @@ -19,11 +19,11 @@ # ############################################################################## # Filename: CHeaderParser.py -# +# # Created in Winter 2014-15 # Created by Winter Intern for NASA GSFC Code 582 # -# Editted by: Keegan Moore +# Edited by: Keegan Moore # Summer Intern for NASA GSFC Code 582 # Note about edits: # findDataTypeNew() - kept the same @@ -37,12 +37,12 @@ ############################################################################## # Description: # CHeaderParser.py is designed to help automate the process of adding -# core Flight System (cFS) application commands and parameters to the -# python-based ground system that should come with this file. By prompting -# the user for necessary information, and parsing the cFS header files, this -# program will generate up to two different "pickle" files for the ground -# system to use (for information about pickle files and the pickle python -# library, see the link here: https://docs.python.org/2/library/pickle.html). +# core Flight System (cFS) application commands and parameters to the +# python-based ground system that should come with this file. By prompting +# the user for necessary information, and parsing the cFS header files, this +# program will generate up to two different "pickle" files for the ground +# system to use (for information about pickle files and the pickle python +# libary, see the link here: https://docs.python.org/3/library/pickle.html). # These files will be placed in CommandFiles/ or ParameterFiles/. # # Usage: @@ -55,499 +55,489 @@ # Examples: # ~$ python CHeaderParser.py # The above command would look in CHeaderParser-hdr-paths.txt for its list -# of header paths. +# of header paths. # ############################################################################### -import sys, os -import re -import string import pickle +import re +import sys +from pathlib import Path + +ROOTDIR = Path(sys.argv[0]).resolve().parent -from struct import * - -class CHeaderParser(): - - # - # Determines data type (--string, --byte, --half, --word, --double) - # - def findDataTypeNew(self, dataTypeOrig, paramName): - if '[' in paramName: - return '--string' - elif dataTypeOrig == 'uint8' or dataTypeOrig == 'boolean': - return '--byte' - elif dataTypeOrig == 'uint16': - return '--half' - elif dataTypeOrig == 'uint32': - return '--word' - elif dataTypeOrig == 'uint64': - return '--double' - else: - return '' - - # getFileList() - # Uses as a list of files to be parsed. - # Default filename is CHeaderParser-hdr-paths.txt - # This file is expected to be created by the user - # Returns list of paths to those files - # Added by Keegan Moore - def getFileList(self, filename='CHeaderParser-hdr-paths.txt'): - """ Gets the list of header files to be parsed from other file """ - - paths = [] - - # Try to open textfile list of header files - try: - textfile = open(filename, 'r') - for line in textfile: - # Remove whitespace before and after - line = line.strip() - # Don't worry about comment lines - if line.find('#') == -1: - # Don't worry about empty lines - if line != '': - # Add line to list of paths - paths.append(line) - print ("Using header files found in " + filename) - # Send paths back to caller function - return paths - except IOError as e: - print ("Couldn't find default file. Checking command line arguments.") - except: - print ("Unexpected error:", sys.exc_info()[0]) - - print ("No header files found. Please make sure to provide the ") - print ("default file for loading headers (CHeaderParser-hdr-paths.txt) ") - - # If we got to here, we couldn't find any header files, return empty list - return [] + +# +# Determines data type (--string, --byte, --half, --word, --double) +# +def findDataTypeNew(dataTypeOrig, paramName): + if '[' in paramName: + return '--string' + if dataTypeOrig in ['uint8', 'boolean']: + return '--byte' + if dataTypeOrig == 'uint16': + return '--half' + if dataTypeOrig == 'uint32': + return '--word' + if dataTypeOrig == 'uint64': + return '--double' + return None + + +# getFileList() +# Uses as a list of files to be parsed. +# Default filename is CHeaderParser-hdr-paths.txt +# This file is expected to be created by the user +# Returns list of paths to those files +# Added by Keegan Moore +def getFileList(filename='CHeaderParser-hdr-paths.txt'): + """ Gets the list of header files to be parsed from other file """ + + paths = [] + + # Try to open textfile list of header files + try: + with open(filename) as textfile: + for l in textfile: + # Remove whitespace before and after + l = l.strip() + if l and not l.startswith("#"): + paths.append(l) + # Don't worry about comment lines + # if line.find('#') == -1: + # Don't worry about empty lines + # if line != '': + # Add line to list of paths + # paths.append(line) + print(f"Using header files found in {filename}") + # Send paths back to caller function + return paths + except IOError: + print("Couldn't find default file. Check command line arguments.") + except: + print("Unexpected error:", sys.exc_info()[0]) + + print("No header files found. Please make sure to provide the\n" + "default file for loading headers (CHeaderParser-hdr-paths.txt)") + + # If we got here, we couldn't find any header files, return empty list + return [] if __name__ == '__main__': - # - # Initializes CHeaderParser class - # - parser = CHeaderParser() - - # Get list of files to parse - file_list = parser.getFileList() - - # If list is empty, exit now - if not file_list: - print ("ERROR: Empty file list. Nothing to be done. Exiting now.") - exit() - - # initialize command codes/descriptions lists as empty lists - cmdCodes = [] - cmdDesc = [] - - # create empty list for dumping header data - master_hdr = [] - - # Concatonate all headers into one variable for referencing - for hdr_file in file_list: - # open header file as single header - single_hdr = open(hdr_file, 'r') - # dump single header into master - for single_line in single_hdr: - master_hdr.append(single_line) - - #print "Master Header Length: " + str(len(master_hdr)) - - # Reads and saves command and parameter information - # Look through each line of the header file for command definitions - for single_line in master_hdr: - - # Strip newline character off of single_line for easier parsing - single_line = single_line.strip() - - if "#define" in single_line: - # We have found a possible definition - # What makes a valid definition is one that has the following: - # '#define' 'COMMAND_DESCRIPTION' 'VALUE' /* Maybe a comment too! */ - # but what we might see is a conditional compilation #define - # So the next step is to remove comments and check if the possible - # definition has the three parts of a definition like it should - - if (single_line.find('/*') != -1): - # There is a comment ('/*') somewhere in the definition - # This program assumes there is nothing important after - # So we get rid of it, before comparing it to the definition - # structure - single_line = single_line[:single_line.find('/*')] - - elif (single_line.find('//') != -1): - # There is a comment ('//') somewhere in the definition - # This program assumes there is nothing important after - # So we get rid of it, before comparing it to the definition - # structure - single_line = single_line[:single_line.find('//')] - - #else: - # print "Did not find any comments in definition." - - # Split single line into list for indexing - definition = single_line.split() - - # Check if definition meets expected structure - # Valid definitions should have following structure - # '#define' 'COMMAND_DESCRIPTION' 'VALUE' - # therefore a length of 3 - if len(definition) == 3: - # Add command descriptions/codes to respective lists - cmdDesc.append(definition[1]) - cmdCodes.append(definition[2]) - - #else: - # print "length not 3, see line below" - # print definition - - #print ("List of Command Descriptions Below:") - #print (cmdDesc) - #print ("--------------------------------------------------------------") - #print ("List of Command Codes Below:") - #print (cmdCodes) - #print ("--------------------------------------------------------------") - - print ("We need to save the command into to a pickle file in 'CommandFile/'. ") - print ("Please do not use any spaces/quotes in your filename. Ex: my_app_cmd_file") - cmd_file_name = input("What would you like the command file to be saved as? ") - - # starting from last index (-1) going backward - # (from example above) file_split[-2] = app_msg - # therefore picklefile = CommandFiles/app_msg - #pickle_file = 'CommandFiles/'+file_split[-2] - pickle_file = 'CommandFiles/' + cmd_file_name - - - # Open pickle file for storing command codes/descriptions - with open(pickle_file, 'wb') as pickle_obj: - # - # FIGURE OUT WHY SHE DID THIS \\\ - # vvv - pickle.dump([cmdDesc, cmdCodes, cmdDesc], pickle_obj) - - ##################################################################################################### - - # Create a copy of command descriptions to preserve the original - # unused_cmdDesc will be used to prompt user for parameters - unused_cmdDesc = list(cmdDesc) - - # Create an empty list of used commands to be populated - used_cmdDesc = [] - - # Initialize looping variable - cmd_index = 0 - - # Print a list of unused commands for the user to pick from. - print ("") - print ("Unused Commands") - print ("-----------------------------------------") - for cmd_index in range(0, len(unused_cmdDesc)): - print ("Command (" + str(cmd_index) + " of " + str(len(unused_cmdDesc)-1) + ") " + unused_cmdDesc[cmd_index]) - - # Get user input to see if any commands from this file require parameters - more_param_cmds = input('Do any commands in ' + cmd_file_name + ' require parameters? (yes/no): ') - - while str.lower(more_param_cmds) not in ['yes', 'y', 'no', 'n']: - print ("Your response was not valid. Please enter (yes, y, no, or n).") - more_param_cmds = input('Do any commands in ' + cmd_file_name + ' require parameters? (yes/no): ') - - # Check for exit condition - if str.lower(more_param_cmds) == 'no' or \ - str.lower(more_param_cmds) == 'n': - print ("You have chosen to exit. Exiting now.") - exit() - - # Continue onto creating parameter files if yes - elif str.lower(more_param_cmds) == 'yes' or \ - str.lower(more_param_cmds) == 'y': - - # Continue to ask user for commands with parameters until we get -1 to exit. - while True: - # Get user input - command_choice = int(input("Which command would you like to add parameters to (-1 to exit)? ")) - - # Check for exit condition - if command_choice == -1: - print ("You have chosen to exit early. Exiting now.") - break - - # Make sure the choice is within range - while command_choice not in range(0, len(unused_cmdDesc)): - print ("You entered " + str(command_choice) + ", but that isn't an option.") - print ("Choose from the list above or choose -1 to exit.") - - # Get user input - command_choice = int(input("Which command would you like to add parameters to? ")) - - # Check for exit condition - if command_choice == -1: - print ("You have chosen to exit early. Exiting now.") - exit() - - cmdName = unused_cmdDesc[command_choice] - - # Initialize Parameter variables to empty lists - paramNames = [] - paramDesc = [] - dataTypesOrig = [] - dataTypesNew = [] - paramLens = [] - stringLens = [] - - # This empty list will hold possibly multiple lists of line numbers - # each list representing where inside the App Header file the - # structure can be found - list_cmd_structs = [] - - print ("This program will now attempt to find the command structure for " + cmdName) - - # create a copy of file_lines for parsing structures - file_lines = list(master_hdr) - - # inside_struct will keep track of where the next for loop is while its scanning the file - # if it is between '{' and '}', it will assume it's inside of a struct - inside_struct = False - - # line_num will keep track of what line we are looking at in the header file - line_num = 0 - - # Look through each line of the header file for command structures - while line_num in range(0, len(file_lines)): - - # check for the start of a structure - if '{' in file_lines[line_num]: - inside_struct = True - - # if none is found, pass by and keep searching - else: - line_num += 1 - pass - - # This empty list will hold the line numbers containing structure data - lines_of_struct = [] - - while inside_struct: - # Check for the end of the structure - # We will still want to know what line this is - if '}' in file_lines[line_num]: - # Clear the flag, we found the end. - inside_struct = False - - # Add line number to list, even if it has a '}' - lines_of_struct.append(line_num) - - # Now that we know the struct is over, add list of lines - # to the sets of command structures - list_cmd_structs.append(lines_of_struct) - break - - # Add line number to list - lines_of_struct.append(line_num) - line_num += 1 - - # After exiting this while loop, cmdStruct should contain a list of lists - # The nested lists should contain line numbers to each structure in file - for line_list in list_cmd_structs: - print ("") - print ("Showing structure " + str(list_cmd_structs.index(line_list)) + " of " + str(len(list_cmd_structs)-1) + " below.") - print ("--------------------------------------------") - for line_num in line_list: - # Print the line from the file using the index from the list - print (file_lines[line_num].strip()) - print ("--------------------------------------------") - - # Give the user the option to exit too. - print ("Choose from the list above or choose -1 to exit.") - - # Get choice of structure from user. - struct_choice = int(input("Which of the above structures would you like to use? ")) - - # Check for exit condition - if struct_choice == -1: - print ("You have chosen to exit early. Exiting now.") - exit() - - # Make sure the choice is valid - while struct_choice not in range(0, len(list_cmd_structs)): - print ("You entered " + str(struct_choice) + ", but that isn't an option.") - print ("Choose from the list above or choose -1 to exit.") - - # Get user input - struct_choice = int(input("Which of the above structures would you like to use? ")) - - # Check for exit condition - if struct_choice == -1: - print ("You have chosen to exit early. Exiting now.") - exit() - - # After exiting the while loop, user's structure choice should be a valid assignment - # Take the appropriate list of lines from the list of command structures - cmd_struct_lines = list(list_cmd_structs[struct_choice]) - - # Initialize variable to get into loop - param_line = 0 - - # The following loop will iterate each time another parameter is added to a command - # After exiting the loop, the parameter variables should be updated with a list of - # parameters for the user's chosen command - while param_line in range(0, len(cmd_struct_lines)): - - # Display the command structure with indexed before each line - print ("\n\n") - for line_num in range(0, len(cmd_struct_lines)): - - # Dereference the index number in cmd_struct_lines to get the actual line number - actual_line = cmd_struct_lines[line_num] - - # print the line of the file with our "line number" next to it - print ("Line (" + str(line_num) + ") -> " + file_lines[actual_line].strip()) - - # Prompt the user for line number - param_line = int(input("Enter the line of the parameter from the above print-out (-1 to stop): ")) - - # Check exit condition - if param_line == -1: - print ("You have chosen to stop adding parameters.") - break - - # Dereference the index number in cmd_struct_lines to get the actual line number - actual_line = cmd_struct_lines[param_line] - - # Look at parameter line and split it into a list - line_split = file_lines[actual_line].split() - - # Add original data type (C data type) to list - dataTypesOrig.append(line_split[0]) - - # Get rid of any occurrence of ';' (at the end of the line) - paramNames.append(re.sub(';','',line_split[1])) - - # Not sure about why we are keeping track of this yet - # just fill it with null for now - paramDesc.append('') - - # Determines data type for us to use - # returns null if no type could match - dataTypeNew = parser.findDataTypeNew(dataTypesOrig[-1], paramNames[-1]) - - # If no type could match, ask user for data type - if dataTypeNew == '': - #typeNew = parser.findKeyword(dataTypesOrig[-1]) - dataTypeNew = input('Data type for '+paramNames[-1]+' not found. Please enter new data type by hand: ') - - dataTypesNew.append(dataTypeNew) - - # finds length if --string data type - if dataTypeNew == '--string': - - # Split parameter name into list, separating by '[' or ']' - # if paramNames[-1] == 'array[10]' then - # array_name_size == ['array', '10'] - array_name_size = re.split('\[|\]', paramNames[-1]) - - # Re-assign paramName to just the name of the array - # (before -> 'array[10]', after -> 'array') - paramNames[-1] = array_name_size[0] - - # set array size to the second element - array_size = array_name_size[1] - - # Add array size to the parameter list - paramLens.append(array_size) - - print ("Array size: " + str(array_size)) - - # Set flag initially to false in order to get into while loop - array_size_within_limit = False - - # Check conditions before loop to see if loop is even necessary - if str(array_size).isdigit(): - if (0 <= int(array_size)) and (int(array_size) <= 128): - # If we got to this point, we have valid data already - # We won't need to go into while loop. - array_size_within_limit = True - - # This while loop will make sure that the user input is both - # - a valid integer - # - between 0 and 128 (inclusively) - while (not str(array_size).isdigit()) or (not array_size_within_limit): - # User input is not an integer - if not str(array_size).isdigit(): - print ("Could not translate " + str(array_name_size[1]) + ".") - try: - # Try to translate user input to an integer - array_size = int(input("Please enter the defined value for " + str(array_name_size[1]) + " (0 - 128): ")) - # If we got an integer, we continue to testing if integer is within range - if (array_size < 0) or (128 < array_size): - print ("Array size out of bounds. It must be between 0 and 128.") - array_size_within_limit = False - # Restart the loop, array_size not within limit - else: - array_size_within_limit = True - # End of the loop. - except: - print ("Could not translate " + str(array_name_size[1]) + " into integer. ") - # Restart the loop, array_size not integer - - # Add string length argument to parameter list - stringLens.append(str(array_size)) - - else: - stringLens.append('') - paramLens.append('') - - # print the last element of list to see if it worked - print ("dataTypeOrig:", dataTypesOrig[-1]) - print ("dataTypeNew:", dataTypesNew[-1]) - print ("paramName:", paramNames[-1]) - print ("paramLen:", paramLens[-1]) - print ("stringLen:", stringLens[-1]) - - print ("Added: " + paramNames[-1] + " with type " + dataTypesNew[-1]) - - # Remove used parameter from command structure lines - # so that the user doesn't choose the same parameter twice - del cmd_struct_lines[param_line] - - # make sure param_line stays in bounds - # (If the user chose the last line in this iteration, - # param_line would be out of bounds after deleting a line) - param_line = 0 - - # Start the loop over to see if user has more parameters - - # Add command to used commands, to keep track of things - used_cmdDesc.append(unused_cmdDesc[command_choice]) - - # Take this command out of the list of unused commands before restarting the loop - del unused_cmdDesc[command_choice] - - # If we later want the list of structs to be updated, to remove - # previously selected structs, uncommend this line - #del list_cmd_structs[struct_choice] - - - # saves parameter information in pickle file for command - pickle_file = 'ParameterFiles/'+cmdName - with open(pickle_file, 'wb') as pickle_obj: - pickle.dump([dataTypesOrig, paramNames, paramLens, paramDesc, dataTypesNew, stringLens], pickle_obj) - - # Initialize looping variable - cmd_index = 0 - - # Print a list of unused commands for the user to pick from. - print ("") - print ("Unused Commands") - print ("-----------------------------------------") - for cmd_index in range(0, len(unused_cmdDesc)): - print ("Command (" + str(cmd_index) + " of " + str(len(unused_cmdDesc)-1) + ") " + unused_cmdDesc[cmd_index]) - - # End of 'while True:' - # We must have received a -1 when prompting user for the next command. - - print ("Thank you for using CHeaderParser.") - print ("The following commands have been added with parameters: ") - print (used_cmdDesc) + # Get list of files to parse + file_list = getFileList() + + # If list is empty, exit now + if not file_list: + print("ERROR: Empty file list. Nothing to be done. Exiting now.") + sys.exit() + + # initialize command codes/descriptions lists as empty lists + cmdCodes = [] + cmdDesc = [] + + # create empty list for dumping header data + master_hdr = [] + + # Concatonate all headers into one variable for referencing + for hdr_file in file_list: + # open header file as single header + with open(hdr_file) as single_hdr: + # dump single header into master + for single_line in single_hdr: + master_hdr.append(single_line) + + #print "Master Header Length: " + str(len(master_hdr)) + + # Reads and saves command and parameter information + # Look through each line of the header file for command definitions + for single_line in master_hdr: + + # Strip newline character off of single_line for easier parsing + single_line = single_line.strip() + + if single_line.startswith("#define"): + # We have found a possible definition + # What makes a valid definition is one that has the following: + # '#define' 'COMMAND_DESCRIPTION' 'VALUE' /* Maybe a comment too! */ + # but what we might see is a conditional compilation #define + # So the next step is to remove comments and check if the possible + # definition has the three parts of a definition like it should + + if '/*' in single_line: + # There is a comment ('/*') somewhere in the definition + # This program assumes there is nothing important after + # So we get rid of it, before comparing it to the definition + # structure + single_line = single_line[:single_line.rfind('/*')] + + elif '//' in single_line: + # There is a comment ('//') somewhere in the definition + # This program assumes there is nothing important after + # So we get rid of it, before comparing it to the definition + # structure + single_line = single_line[:single_line.rfind('//')] + + #else: + # print "Did not find any comments in definition." + + # Split single line into list for indexing + definition = single_line.split() + + # Check if definition meets expected structure + # Valid definitions should have following structure + # '#define' 'COMMAND_DESCRIPTION' 'VALUE' + # therefore a length of 3 + if len(definition) == 3: + # Add command descriptions/codes to respective lists + cmdDesc.append(definition[1]) + cmdCodes.append(definition[2]) + + #else: + # print "length not 3, see line below" + # print definition + + #print ("List of Command Descriptions Below:") + #print (cmdDesc) + #print ("--------------------------------------------------------------") + #print ("List of Command Codes Below:") + #print (cmdCodes) + #print ("--------------------------------------------------------------") + + print( + "We need to save the command into to a pickle file in 'CommandFile/'. " + ) + print( + "Please do not use any spaces/quotes in your filename. Ex: my_app_cmd_file" + ) + cmd_file_name = input( + "What would you like the command file to be saved as? ") + + # starting from last index (-1) going backward + # (from example above) file_split[-2] = app_msg + # therefore picklefile = CommandFiles/app_msg + #pickle_file = 'CommandFiles/'+file_split[-2] + pickle_file = f'{ROOTDIR}/CommandFiles/{cmd_file_name}' + + # Open pickle file for storing command codes/descriptions + with open(pickle_file, 'wb') as pickle_obj: + # + # FIGURE OUT WHY SHE DID THIS \\\ + # vvv + pickle.dump([cmdDesc, cmdCodes, cmdDesc], pickle_obj) + + # Create a copy of command descriptions to preserve the original + # unused_cmdDesc will be used to prompt user for parameters + unused_cmdDesc = list(cmdDesc) + + # Create an empty list of used commands to be populated + used_cmdDesc = [] + + # Initialize looping variable + cmd_index = 0 + + # Print a list of unused commands for the user to pick from. + print("\nUnused Commands") + print("-----------------------------------------") + for i, cmd in enumerate(unused_cmdDesc, start=1): + print(f"(Command {i} of {len(unused_cmdDesc)}) {cmd}") + + while True: + # Get user input to see if any commands from this file require parameters + more_param_cmds = input( + f'Do any commands in {cmd_file_name} require parameters? (yes/no): ' + ) + if more_param_cmds.lower() not in ['yes', 'y', 'no', 'n']: + print( + "Your response was not valid. Please enter (yes, y, no, or n)." + ) + else: + break + + # Check for exit condition + if str.lower(more_param_cmds) in ['no', 'n']: + print("You have chosen to exit. Exiting now.") + sys.exit() + + # Continue onto creating parameter files if yes + if str.lower(more_param_cmds) in ['yes', 'y']: + + # Continue to ask user for commands with parameters until we get -1 to exit. + while True: + # Get user input + command_choice = int( + input("Choose from the list above or choose -1 to exit.")) + + # Check for exit condition + if command_choice == -1: + print("Exiting.") + break + + # Make sure the choice is within range + if command_choice not in range(len(unused_cmdDesc)): + print( + f"You entered {command_choice}, but that isn't an option.") + else: + cmdName = unused_cmdDesc[command_choice] + + # Initialize Parameter variables to empty lists + paramNames, paramDesc, dataTypesOrig,\ + dataTypesNew, paramLens, stringLens = ([] for _ in range(6)) + + # This empty list will hold possibly multiple lists of line numbers + # each list representing where inside the App Header file the + # structure can be found + list_cmd_structs = [] + + print( + "This program will now attempt to find the command structure for", + cmdName) + + # create a copy of file_lines for parsing structures + file_lines = list(master_hdr) + + # inside_struct will keep track of where the next + # for loop is while it's scanning the file + # if it is between '{' and '}', it will assume + # it's inside of a struct + inside_struct = False + + # line_num will keep track of what line we are looking at in the header file + line_num = 0 + + # Look through each line of the header file for command structures + while line_num in range(len(file_lines)): + + # check for the start of a structure + if '{' in file_lines[line_num]: + inside_struct = True + + # if none is found, pass by and keep searching + else: + line_num += 1 + + # This empty list will hold the line numbers containing structure data + lines_of_struct = [] + + while inside_struct: + # Check for the end of the structure + # We will still want to know what line this is + if '}' in file_lines[line_num]: + # Clear the flag, we found the end. + inside_struct = False + + # Add line number to list, even if it has a '}' + lines_of_struct.append(line_num) + + # Now that we know the struct is over, add list of lines + # to the sets of command structures + list_cmd_structs.append(lines_of_struct) + break + + # Add line number to list + lines_of_struct.append(line_num) + line_num += 1 + + # After exiting this while loop, cmdStruct should contain a list of lists + # The nested lists should contain line numbers to each structure in file + for line_list in list_cmd_structs: + print("\nShowing structure", list_cmd_structs.index(line_list), + "of", + len(list_cmd_structs) - 1, "below") + print("--------------------------------------------") + for line_num in line_list: + # Print the line from the file using the index from the list + print(file_lines[line_num].strip()) + print("--------------------------------------------") + + while True: + # Give the user the option to exit too. + struct_choice = int( + input("Choose from the list above or choose -1 to exit.")) + + # Check for exit condition + if struct_choice == -1: + print("Exiting.") + sys.exit() + + # Make sure the choice is valid + if struct_choice not in range(len(list_cmd_structs)): + print( + f"You entered {struct_choice}, but that isn't an option." + ) + else: + break + + # After exiting the while loop, user's structure choice should be a valid assignment + # Take the appropriate list of lines from the list of command structures + cmd_struct_lines = list(list_cmd_structs[struct_choice]) + + # Initialize variable to get into loop + param_line = 0 + + # The following loop will iterate each time another + # parameter is added to a command + # After exiting the loop, the parameter variables + # should be updated with a list of parameters for + # the user's chosen command + while param_line in range(len(cmd_struct_lines)): + + # Display the command structure with indexed before each line + print("\n\n") + for line_num, line in enumerate(cmd_struct_lines): + + # Dereference the index number in cmd_struct_lines to get the actual line number + actual_line = line + + # print the line of the file with our "line number" next to it + print( + f"Line ({line_num}) -> {file_lines[actual_line].strip()}" + ) + + # Prompt the user for line number + param_line = int( + input( + "Enter the line of the parameter from the above print-out (-1 to stop): " + )) + + # Check exit condition + if param_line == -1: + print("You have chosen to stop adding parameters.") + break + + # Dereference the index number in cmd_struct_lines to get the actual line number + actual_line = cmd_struct_lines[param_line] + + # Look at parameter line and split it into a list + line_split = file_lines[actual_line].split() + + # Add original data type (C data type) to list + dataTypesOrig.append(line_split[0]) + + # Get rid of any occurance of ';' (at the end of the line) + paramNames.append(re.sub(';', '', line_split[1])) + + # Not sure about why we are keeping track of this yet + # just fill it with null for now + paramDesc.append('') + + # Determines data type for us to use + # returns null if no type could match + dataTypeNew = findDataTypeNew(dataTypesOrig[-1], + paramNames[-1]) + + # If no type could match, ask user for data type + if not dataTypeNew: + dataTypeNew = input( + (f'Data type for {paramNames[-1]} not found. ' + 'Please enter new data type by hand: ')) + + dataTypesNew.append(dataTypeNew.strip()) + + # finds length if --string data type + if 'string' in dataTypeNew: + + # Split parameter name into list, separating by '[' or ']' + # if paramNames[-1] == 'array[10]' then + # array_name_size == ['array', '10'] + array_name_size = re.split(r'\[|\]', paramNames[-1]) + + # Re-assign paramName to just the name of the array + # (before -> 'array[10]', after -> 'array') + paramNames[-1] = array_name_size[0] + + # set array size to the second element + array_size = array_name_size[1] + + # Add array size to the parameter list + paramLens.append(array_size) + + print("Array size:", array_size) + + # Set flag initially to false in order to get into while loop + # array_size_within_limit = False + + # Check conditions before loop to see if loop is even necessary + # array_size_within_limit = array_size.isdigit() and int( + # array_size) in range(129) + + # This while loop will make sure that the user input is both + # - a valid integer + # - between 0 and 128 (inclusively) + while not array_size.isdigit() or int( + array_size) not in range(129): + # User input is not an integer + if not array_size.isdigit(): + print("Could not translate", array_name_size[1]) + else: + print( + "Array size out of bounds. It must be between 0 and 128." + ) + try: + # Try to translate user input to an integer + array_size = int( + input((f"Please enter the defined value for " + f"{array_name_size[1]} (0 - 128): "))) + except ValueError: + pass + + # Add string length argument to parameter list + stringLens.append(array_size) + + else: + stringLens.append('') + paramLens.append('') + + # print the last element of list to see if it worked + print("dataTypeOrig:", dataTypesOrig[-1]) + print("dataTypeNew:", dataTypesNew[-1]) + print("paramName:", paramNames[-1]) + print("paramLen:", paramLens[-1]) + print("stringLen:", stringLens[-1]) + + print("Added:", paramNames[-1], "with type", dataTypesNew[-1]) + + # Remove used parameter from command structure lines + # so that the user doesn't choose the same parameter twice + del cmd_struct_lines[param_line] + + # make sure param_line stays in bounds + # (If the user chose the last line in this iteration, + # param_line would be out of bounds after deleting a line) + param_line = 0 + + # Start the loop over to see if user has more parameters + + # Add command to used commands, to keep track of things + used_cmdDesc.append(unused_cmdDesc[command_choice]) + + # Take this command out of the list of unused commands before restarting the loop + del unused_cmdDesc[command_choice] + + # If we later want the list of structs to be updated, to remove + # previously selected structs, uncomment this line + #del list_cmd_structs[struct_choice] + + # saves parameter information in pickle file for command + pickle_file = f'{ROOTDIR}/ParameterFiles/{cmdName}' + with open(pickle_file, 'wb') as pickle_obj: + pickle.dump([ + dataTypesOrig, paramNames, paramLens, paramDesc, + dataTypesNew, stringLens + ], pickle_obj) + + # Print a list of unused commands for the user to pick from. + print("") + print("Unused Commands") + print("-----------------------------------------") + for cmd_index, cmd in enumerate(unused_cmdDesc, start=1): + print(f"Command ({cmd_index} of {len(unused_cmdDesc)})", cmd) + + # End of 'while True:' + # We must have received a -1 when prompting user for the next command. + + print("Thank you for using CHeaderParser.") + print("The following commands have been added with parameters: ") + print(used_cmdDesc) diff --git a/Subsystems/cmdGui/CommandParser.py b/Subsystems/cmdGui/CommandParser.py index f92aba2..01af00d 100644 --- a/Subsystems/cmdGui/CommandParser.py +++ b/Subsystems/cmdGui/CommandParser.py @@ -17,90 +17,85 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import sys -import csv -import getopt -import subprocess -import shlex -import re import glob import pickle +import re +from html.parser import HTMLParser -from bs4 import BeautifulSoup -from HTMLParser import HTMLParser -from struct import * - -class CommandParser(HTMLParser): - - # - # Initializes allData variable - # - def reset(self): - self.allData = [] - self.allhref = [] - HTMLParser.reset(self) +from bs4 import BeautifulSoup - # - # Appends HTML file content to allData variable - # - def handle_data(self, text): - if text.strip() != '': # excludes new lines - self.allData.append(text.strip()) - # print self.allData[-1] - # - # Appends href tag contents to hrefTags variable - # - def handle_starttag(self, tag, attrs): - if tag == 'a': - for name, value in attrs: - if name == 'href': - val = re.split('#', value)[0] - self.allhref.append(val) - # print self.allhref[-1] +class CommandParser(HTMLParser): + # + # Initializes allData variable + # + def reset(self): + self.allData = [] + self.allhref = [] + HTMLParser.reset(self) + + # + # Appends HTML file content to allData variable + # + def handle_data(self, data): + if data.strip(): # excludes new lines + self.allData.append(data.strip()) + # print self.allData[-1] + + # + # Appends href tag contents to hrefTags variable + # + def handle_starttag(self, tag, attrs): + if tag == 'a': + for name, value in attrs: + if name == 'href': + val = re.split('#', value)[0] + self.allhref.append(val) + # print self.allhref[-1] if __name__ == '__main__': - # - # Searches for and reads HTML files - # - file_list = glob.glob('../../docs/cFE UsersGuide/Doxygen/cfe__*msg_8h.html') - - for html_file in file_list: - with open(html_file) as html_obj: - - # initializes variables - print '\n', 'FILE:', html_file - reader = html_obj.read() - soup = BeautifulSoup(reader) - cmdNames = [] # names of commands - cmdCodes = [] # command codes - htmlFiles = [] # HTML files with parameter information - - # gets HTML file names - for link in soup.findAll(text="Command Structure"): - htmlFile = link.find_next('a')['href'] # next element with 'a' tag - htmlFile = re.split('\.', htmlFile)[0] - htmlFiles.append(htmlFile.encode('ascii')) - - # gets command names and command codes - for names in soup.findAll(text="Name:"): # finds all 'Name:' text - pre_cmdCode = names.find_previous('td').get_text() - cmdCode = pre_cmdCode.split()[-1] - cmdCodes.append(cmdCode.encode('ascii')) - cmdName = names.next_element.get_text() # finds next text element - cmdNames.append(cmdName.encode('ascii')) - - # prints values after iterating through whole file - print 'CMD NAMES:', cmdNames - print 'CMD CODES:', cmdCodes - print 'HTML FILES:', htmlFiles - - # writes data to pickle file - pickle_file = 'CommandFiles/' + re.split('/|\.', html_file)[-2] - with open(pickle_file, 'wb') as pickle_obj: - pickle.dump([cmdNames, cmdCodes, htmlFiles], pickle_obj) - - + # + # Searches for and reads HTML files + # + file_list = glob.glob( + '../../docs/cFE UsersGuide/Doxygen/cfe__*msg_8h.html') + + for html_file in file_list: + with open(html_file) as html_obj: + + # initializes variables + print('\nFILE:', html_file) + reader = html_obj.read() + soup = BeautifulSoup(reader) + cmdNames = [] # names of commands + cmdCodes = [] # command codes + htmlFiles = [] # HTML files with parameter information + + # gets HTML file names + for link in soup.findAll(text="Command Structure"): + htmlFile = link.find_next('a')[ + 'href'] # next element with 'a' tag + htmlFile = re.split(r'\.', htmlFile)[0] + htmlFiles.append(htmlFile.encode('ascii')) + + # gets command names and command codes + for names in soup.findAll(text="Name:"): # finds all 'Name:' text + pre_cmdCode = names.find_previous('td').get_text() + cmdCode = pre_cmdCode.split()[-1] + cmdCodes.append(cmdCode.encode('ascii')) + cmdName = names.next_element.get_text( + ) # finds next text element + cmdNames.append(cmdName.encode('ascii')) + + # prints values after iterating through whole file + print('CMD NAMES:', cmdNames) + print('CMD CODES:', cmdCodes) + print('HTML FILES:', htmlFiles) + + # writes data to pickle file + pickle_file = 'CommandFiles/' + re.split(r'/|\.', html_file)[-2] + with open(pickle_file, 'wb') as pickle_obj: + pickle.dump([cmdNames, cmdCodes, htmlFiles], pickle_obj) diff --git a/Subsystems/cmdGui/CommandSystem.py b/Subsystems/cmdGui/CommandSystem.py index 6dac4e8..2f3430b 100644 --- a/Subsystems/cmdGui/CommandSystem.py +++ b/Subsystems/cmdGui/CommandSystem.py @@ -17,227 +17,104 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python -# -import sys +#!/usr/bin/env python3 +# import csv -import subprocess -import shlex import pickle +import shlex +import subprocess +import sys +from pathlib import Path + +from PyQt5.QtWidgets import QApplication, QDialog -from PyQt4 import QtGui from CommandSystemDialog import Ui_CommandSystemDialog -from struct import * + +ROOTDIR = Path(sys.argv[0]).resolve().parent -class CommandSystem(QtGui.QDialog): +class CommandSystem(QDialog, Ui_CommandSystemDialog): # # Init the class # def __init__(self): - QtGui.QDialog.__init__(self) - self.ui = Ui_CommandSystemDialog() - self.ui.setupUi(self) - self.setWindowTitle('Command System Main Page') - self.move(800,100) + super().__init__() + self.setupUi(self) + self.move(800, 100) - self.ui.pushButton_0.clicked.connect(self.ProcessButton_0) - self.ui.pushButton_1.clicked.connect(self.ProcessButton_1) - self.ui.pushButton_2.clicked.connect(self.ProcessButton_2) - self.ui.pushButton_3.clicked.connect(self.ProcessButton_3) - self.ui.pushButton_4.clicked.connect(self.ProcessButton_4) - self.ui.pushButton_5.clicked.connect(self.ProcessButton_5) - self.ui.pushButton_6.clicked.connect(self.ProcessButton_6) - self.ui.pushButton_7.clicked.connect(self.ProcessButton_7) - self.ui.pushButton_8.clicked.connect(self.ProcessButton_8) - self.ui.pushButton_9.clicked.connect(self.ProcessButton_9) - self.ui.pushButton_10.clicked.connect(self.ProcessButton_10) - self.ui.pushButton_11.clicked.connect(self.ProcessButton_11) - self.ui.pushButton_12.clicked.connect(self.ProcessButton_12) - self.ui.pushButton_13.clicked.connect(self.ProcessButton_13) - self.ui.pushButton_14.clicked.connect(self.ProcessButton_14) - self.ui.pushButton_15.clicked.connect(self.ProcessButton_15) - self.ui.pushButton_16.clicked.connect(self.ProcessButton_16) - self.ui.pushButton_17.clicked.connect(self.ProcessButton_17) - self.ui.pushButton_18.clicked.connect(self.ProcessButton_18) - self.ui.pushButton_19.clicked.connect(self.ProcessButton_19) - self.ui.pushButton_20.clicked.connect(self.ProcessButton_20) + for n in range(21): + btn = getattr(self, f"pushButton_{n}") + btn.clicked.connect(lambda _, x=n: self.ProcessButtonGeneric(x)) - self.ui.quickButton_1.clicked.connect(self.QuickButton_1) - self.ui.quickButton_2.clicked.connect(self.QuickButton_2) - self.ui.quickButton_3.clicked.connect(self.QuickButton_3) - self.ui.quickButton_4.clicked.connect(self.QuickButton_4) - self.ui.quickButton_5.clicked.connect(self.QuickButton_5) - self.ui.quickButton_6.clicked.connect(self.QuickButton_6) - self.ui.quickButton_7.clicked.connect(self.QuickButton_7) - self.ui.quickButton_8.clicked.connect(self.QuickButton_8) - self.ui.quickButton_9.clicked.connect(self.QuickButton_9) - self.ui.quickButton_10.clicked.connect(self.QuickButton_10) - self.ui.quickButton_11.clicked.connect(self.QuickButton_11) - self.ui.quickButton_12.clicked.connect(self.QuickButton_12) - self.ui.quickButton_13.clicked.connect(self.QuickButton_13) - self.ui.quickButton_14.clicked.connect(self.QuickButton_14) - self.ui.quickButton_15.clicked.connect(self.QuickButton_15) - self.ui.quickButton_16.clicked.connect(self.QuickButton_16) - self.ui.quickButton_17.clicked.connect(self.QuickButton_17) - self.ui.quickButton_18.clicked.connect(self.QuickButton_18) - self.ui.quickButton_19.clicked.connect(self.QuickButton_19) - self.ui.quickButton_20.clicked.connect(self.QuickButton_20) - self.ui.quickButton_21.clicked.connect(self.QuickButton_21) - self.ui.quickButton_22.clicked.connect(self.QuickButton_22) - - - - # - # Display button wrappers - # - def ProcessButton_0(self): - self.ProcessButtonGeneric(0) - def ProcessButton_1(self): - self.ProcessButtonGeneric(1) - def ProcessButton_2(self): - self.ProcessButtonGeneric(2) - def ProcessButton_3(self): - self.ProcessButtonGeneric(3) - def ProcessButton_4(self): - self.ProcessButtonGeneric(4) - def ProcessButton_5(self): - self.ProcessButtonGeneric(5) - def ProcessButton_6(self): - self.ProcessButtonGeneric(6) - def ProcessButton_7(self): - self.ProcessButtonGeneric(7) - def ProcessButton_8(self): - self.ProcessButtonGeneric(8) - def ProcessButton_9(self): - self.ProcessButtonGeneric(9) - def ProcessButton_10(self): - self.ProcessButtonGeneric(10) - def ProcessButton_11(self): - self.ProcessButtonGeneric(11) - def ProcessButton_12(self): - self.ProcessButtonGeneric(12) - def ProcessButton_13(self): - self.ProcessButtonGeneric(13) - def ProcessButton_14(self): - self.ProcessButtonGeneric(14) - def ProcessButton_15(self): - self.ProcessButtonGeneric(15) - def ProcessButton_16(self): - self.ProcessButtonGeneric(16) - def ProcessButton_17(self): - self.ProcessButtonGeneric(17) - def ProcessButton_18(self): - self.ProcessButtonGeneric(18) - def ProcessButton_19(self): - self.ProcessButtonGeneric(19) - def ProcessButton_20(self): - self.ProcessButtonGeneric(20) + for l in range(22): + btn = getattr(self, f"quickButton_{l+1}") + btn.clicked.connect(lambda _, x=l: self.ProcessQuickButton(x)) # # Processes 'Display Page' button # def ProcessButtonGeneric(self, idx): - if cmdPageIsValid[idx] == True: - lineEditPktId = getattr(Command.ui, 'lineEditPktId_'+str(idx)) - lineEditAddress = getattr(Command.ui, 'lineEdit_'+str(idx)) - pktId = str(lineEditPktId.text()) - address = str(lineEditAddress.text()) - launch_string = 'python3 ' + cmdClass[0] + ' --title=\"' + cmdPageDesc[idx] + '\" --pktid=' + pktId + ' --file=' + cmdPageDefFile[idx] + ' --address=\"' + address + '\"' + ' --port=' + str(cmdPagePort[idx]) + ' --endian=' + cmdPageEndian[idx] - cmd_args = shlex.split(launch_string) - subprocess.Popen(cmd_args) - - # - # Quick button wrappers - # - def QuickButton_1(self): - self.ProcessQuickButton(0) - def QuickButton_2(self): - self.ProcessQuickButton(1) - def QuickButton_3(self): - self.ProcessQuickButton(2) - def QuickButton_4(self): - self.ProcessQuickButton(3) - def QuickButton_5(self): - self.ProcessQuickButton(4) - def QuickButton_6(self): - self.ProcessQuickButton(5) - def QuickButton_7(self): - self.ProcessQuickButton(6) - def QuickButton_8(self): - self.ProcessQuickButton(7) - def QuickButton_9(self): - self.ProcessQuickButton(8) - def QuickButton_10(self): - self.ProcessQuickButton(9) - def QuickButton_11(self): - self.ProcessQuickButton(10) - def QuickButton_12(self): - self.ProcessQuickButton(11) - def QuickButton_13(self): - self.ProcessQuickButton(12) - def QuickButton_14(self): - self.ProcessQuickButton(13) - def QuickButton_15(self): - self.ProcessQuickButton(14) - def QuickButton_16(self): - self.ProcessQuickButton(15) - def QuickButton_17(self): - self.ProcessQuickButton(16) - def QuickButton_18(self): - self.ProcessQuickButton(17) - def QuickButton_19(self): - self.ProcessQuickButton(18) - def QuickButton_20(self): - self.ProcessQuickButton(19) - def QuickButton_21(self): - self.ProcessQuickButton(20) - def QuickButton_22(self): - self.ProcessQuickButton(21) - + if cmdPageIsValid[idx]: + lePID = getattr(self, f'lineEditPktId_{idx}') + leAddr = getattr(self, f'lineEdit_{idx}') + pktId = lePID.text() + address = leAddr.text() + launch_string = ( + f'python3 {ROOTDIR}/{cmdClass[0]} ' + f'--title=\"{cmdPageDesc[idx]}\" --pktid={pktId} ' + f'--file={cmdPageDefFile[idx]} --address=\"{address}\" ' + f'--port={cmdPagePort[idx]} --endian={cmdPageEndian[idx]}') + cmd_args = shlex.split(launch_string) + subprocess.Popen(cmd_args) # # Determines if command requires parameters # - def checkParams(self, idx): - pickle_file = 'ParameterFiles/' + quickParam[idx] + @staticmethod + def checkParams(idx): + pickle_file = f'{ROOTDIR}/ParameterFiles/{quickParam[idx]}' try: - with open(pickle_file,'rb') as pickle_obj: - dataTypesOrig, paramNames, paramLen, paramDesc, dataTypesNew, stringLen = pickle.load(pickle_obj) - if len(paramNames) > 0: # if has parameters - return True - else: - return False + with open(pickle_file, 'rb') as pickle_obj: + _, paramNames, _, _, _, _ = pickle.load(pickle_obj) + return len(paramNames) > 0 except IOError: return False - # # Processes quick button # def ProcessQuickButton(self, idx): - if cmdPageIsValid[idx] == True and quickIndices[idx] >= 0: - quickIdx = quickIndices[idx] - lineEditPktId = getattr(Command.ui, 'lineEditPktId_'+str(idx)) - lineEditAddress = getattr(Command.ui, 'lineEdit_'+str(idx)) - pktId = str(lineEditPktId.text()) - address = str(lineEditAddress.text()) - - # if requires parameters - if self.checkParams(quickIdx) == True: - prog = 'python3 Parameter.py' - launch_string = prog+' --title=\"'+subsys[quickIdx]+'\" --descrip=\"'+quickCmd[quickIdx]+'\" --idx='+str(idx)+' --host=\"'+address+'\" --port='+str(quickPort[quickIdx])+' --pktid='+pktId+' --endian='+quickEndian[quickIdx]+' --cmdcode='+quickCode[quickIdx]+' --file='+quickParam[quickIdx] - - # if doesn't require parameters - else: - launch_string = '../cmdUtil/cmdUtil' + ' --host=\"' + address + '\" --port=' + str(quickPort[quickIdx]) + ' --pktid=' + pktId + ' --endian=' + quickEndian[quickIdx] + ' --cmdcode=' + quickCode[quickIdx] - cmd_args = shlex.split(launch_string) - subprocess.Popen(cmd_args) + if cmdPageIsValid[idx] and quickIndices[idx] >= 0: + qIdx = quickIndices[idx] + lePID = getattr(self, f'lineEditPktId_{idx}') + leAddr = getattr(self, f'lineEdit_{idx}') + pktId = lePID.text() + address = leAddr.text() + + # if requires parameters + if self.checkParams(qIdx): + launch_string = ( + f'python3 {ROOTDIR}/Parameter.py ' + f'--title=\"{subsys[qIdx]}\" ' + f'--descrip=\"{quickCmd[qIdx]}\" ' + f'--idx={idx} --host=\"{address}\" ' + f'--port={quickPort[qIdx]} ' + f'--pktid={pktId} --endian={quickEndian[qIdx]} ' + f'--cmdcode={quickCode[qIdx]} --file={quickParam[qIdx]}') + # if doesn't require parameters + else: + launch_string = ( + f'{ROOTDIR}/../cmdUtil/cmdUtil ' + f'--host=\"{address}\" --port={quickPort[qIdx]} ' + f'--pktid={pktId} --endian={quickEndian[qIdx]} ' + f'--cmdcode={quickCode[qIdx]}') + cmd_args = shlex.split(launch_string) + subprocess.Popen(cmd_args) # -# Main +# Main # if __name__ == '__main__': @@ -249,398 +126,93 @@ def ProcessQuickButton(self, idx): # # Init the QT application and the telemetry dialog class # - app = QtGui.QApplication(sys.argv) + app = QApplication(sys.argv) Command = CommandSystem() # # Read in the contents of the telemetry packet definition # - cmdPageIsValid = [] - cmdPageDesc = [] - cmdPageDefFile = [] - cmdPageAppid = [] - cmdPageEndian = [] - cmdClass = [] - cmdPageAddress = [] - cmdPagePort = [] + cmdPageIsValid, cmdPageDesc, cmdPageDefFile, cmdPageAppid, \ + cmdPageEndian, cmdClass, cmdPageAddress, cmdPagePort = ([] for _ in range(8)) i = 0 - with open(cmdDefFile, 'r') as cmdfile: - reader = csv.reader(cmdfile, skipinitialspace = True) + with open(f"{ROOTDIR}/{cmdDefFile}") as cmdfile: + reader = csv.reader(cmdfile, skipinitialspace=True) for cmdRow in reader: try: if cmdRow[0][0] != '#': cmdPageIsValid.append(True) cmdPageDesc.append(cmdRow[0]) cmdPageDefFile.append(cmdRow[1]) - cmdPageAppid.append(int(cmdRow[2],16)) + cmdPageAppid.append(int(cmdRow[2], 16)) cmdPageEndian.append(cmdRow[3]) cmdClass.append(cmdRow[4]) cmdPageAddress.append(cmdRow[5]) cmdPagePort.append(int(cmdRow[6])) i += 1 - except IndexError: - print ("IndexError: list index out of range") - print ("This could be due to improper formatting in command-pages.txt.") - print ("This is a common error caused by blank lines in command-pages.txt") - - # + except IndexError as e: + fullErr = repr(e) + errName = fullErr[:fullErr.index('(')] + print(f"{errName}:", e) + print(("This could be due to improper formatting in " + "command-pages.txt.\nThis is a common error " + "caused by blank lines in command-pages.txt")) + # # Mark the remaining values as invalid # - for j in range (i, 22): - cmdPageAppid.append(0) - cmdPageIsValid.append(False) - + for j in range(i, 22): + cmdPageAppid.append(0) + cmdPageIsValid.append(False) - # + # # Read in contents of quick button definition file - # + # quickDefFile = 'quick-buttons.txt' - subsys = [] - subsysFile = [] - quickCmd = [] - quickCode = [] - quickPktId = [] - quickEndian = [] - quickAddress = [] - quickPort = [] - quickParam = [] - quickIndices = [] - - with open(quickDefFile,'r') as subFile: - reader = csv.reader(subFile) - i = 0 - for fileRow in reader: - if fileRow[0][0] != '#': - subsys.append(fileRow[0]) - subsysFile.append(fileRow[1]) - quickCmd.append(fileRow[2].strip()) - quickCode.append(fileRow[3].strip()) - quickPktId.append(fileRow[4].strip()) - quickEndian.append(fileRow[5].strip()) - quickAddress.append(fileRow[6].strip()) - quickPort.append(fileRow[7].strip()) - quickParam.append(fileRow[8].strip()) - i+=1 + subsys, subsysFile, quickCmd, quickCode, quickPktId,\ + quickEndian, quickAddress, quickPort, quickParam, \ + quickIndices = ([] for _ in range(10)) + + with open(f'{ROOTDIR}/{quickDefFile}') as subFile: + reader = csv.reader(subFile) + for fileRow in reader: + if fileRow[0][0] != '#': + subsys.append(fileRow[0]) + subsysFile.append(fileRow[1]) + quickCmd.append(fileRow[2].strip()) + quickCode.append(fileRow[3].strip()) + quickPktId.append(fileRow[4].strip()) + quickEndian.append(fileRow[5].strip()) + quickAddress.append(fileRow[6].strip()) + quickPort.append(fileRow[7].strip()) + quickParam.append(fileRow[8].strip()) # # fill the data fields on the page # - if cmdPageIsValid[0] == True: - Command.ui.SubsysBrowser_0.setText(cmdPageDesc[0]) - Command.ui.lineEditPktId_0.setText(hex(cmdPageAppid[0])) - Command.ui.lineEdit_0.setText(cmdPageAddress[0]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[0]) - Command.ui.quickButton_1.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_0.setText("(unused)") - - if cmdPageIsValid[1] == True: - Command.ui.SubsysBrowser_1.setText(cmdPageDesc[1]) - Command.ui.lineEditPktId_1.setText(hex(cmdPageAppid[1])) - Command.ui.lineEdit_1.setText(cmdPageAddress[1]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[1]) - Command.ui.quickButton_2.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_1.setText("(unused)") - - if cmdPageIsValid[2] == True: - Command.ui.SubsysBrowser_2.setText(cmdPageDesc[2]) - Command.ui.lineEditPktId_2.setText(hex(cmdPageAppid[2])) - Command.ui.lineEdit_2.setText(cmdPageAddress[2]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[2]) - Command.ui.quickButton_3.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_2.setText("(unused)") - - if cmdPageIsValid[3] == True: - Command.ui.SubsysBrowser_3.setText(cmdPageDesc[3]) - Command.ui.lineEditPktId_3.setText(hex(cmdPageAppid[3])) - Command.ui.lineEdit_3.setText(cmdPageAddress[3]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[3]) - Command.ui.quickButton_4.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_3.setText("(unused)") - - if cmdPageIsValid[4] == True: - Command.ui.SubsysBrowser_4.setText(cmdPageDesc[4]) - Command.ui.lineEditPktId_4.setText(hex(cmdPageAppid[4])) - Command.ui.lineEdit_4.setText(cmdPageAddress[4]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[4]) - Command.ui.quickButton_5.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_4.setText("(unused)") - - if cmdPageIsValid[5] == True: - Command.ui.SubsysBrowser_5.setText(cmdPageDesc[5]) - Command.ui.lineEditPktId_5.setText(hex(cmdPageAppid[5])) - Command.ui.lineEdit_5.setText(cmdPageAddress[5]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[5]) - Command.ui.quickButton_6.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_5.setText("(unused)") - - if cmdPageIsValid[6] == True: - Command.ui.SubsysBrowser_6.setText(cmdPageDesc[6]) - Command.ui.lineEditPktId_6.setText(hex(cmdPageAppid[6])) - Command.ui.lineEdit_6.setText(cmdPageAddress[6]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[6]) - Command.ui.quickButton_7.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_6.setText("(unused)") - - if cmdPageIsValid[7] == True: - Command.ui.SubsysBrowser_7.setText(cmdPageDesc[7]) - Command.ui.lineEditPktId_7.setText(hex(cmdPageAppid[7])) - Command.ui.lineEdit_7.setText(cmdPageAddress[7]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[7]) - Command.ui.quickButton_8.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_7.setText("(unused)") - - if cmdPageIsValid[8] == True: - Command.ui.SubsysBrowser_8.setText(cmdPageDesc[8]) - Command.ui.lineEditPktId_8.setText(hex(cmdPageAppid[8])) - Command.ui.lineEdit_8.setText(cmdPageAddress[8]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[8]) - Command.ui.quickButton_9.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_8.setText("(unused)") - - if cmdPageIsValid[9] == True: - Command.ui.SubsysBrowser_9.setText(cmdPageDesc[9]) - Command.ui.lineEditPktId_9.setText(hex(cmdPageAppid[9])) - Command.ui.lineEdit_9.setText(cmdPageAddress[9]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[9]) - Command.ui.quickButton_10.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_9.setText("(unused)") - - if cmdPageIsValid[10] == True: - Command.ui.SubsysBrowser_10.setText(cmdPageDesc[10]) - Command.ui.lineEditPktId_10.setText(hex(cmdPageAppid[10])) - Command.ui.lineEdit_10.setText(cmdPageAddress[10]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[10]) - Command.ui.quickButton_11.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_10.setText("(unused)") - - if cmdPageIsValid[11] == True: - Command.ui.SubsysBrowser_11.setText(cmdPageDesc[11]) - Command.ui.lineEditPktId_11.setText(hex(cmdPageAppid[11])) - Command.ui.lineEdit_11.setText(cmdPageAddress[11]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[11]) - Command.ui.quickButton_12.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_11.setText("(unused)") - - if cmdPageIsValid[12] == True: - Command.ui.SubsysBrowser_12.setText(cmdPageDesc[12]) - Command.ui.lineEditPktId_12.setText(hex(cmdPageAppid[12])) - Command.ui.lineEdit_12.setText(cmdPageAddress[12]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[12]) - Command.ui.quickButton_13.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_12.setText("(unused)") - - if cmdPageIsValid[13] == True: - Command.ui.SubsysBrowser_13.setText(cmdPageDesc[13]) - Command.ui.lineEditPktId_13.setText(hex(cmdPageAppid[13])) - Command.ui.lineEdit_13.setText(cmdPageAddress[13]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[13]) - Command.ui.quickButton_14.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_13.setText("(unused)") - - if cmdPageIsValid[14] == True: - Command.ui.SubsysBrowser_14.setText(cmdPageDesc[14]) - Command.ui.lineEditPktId_14.setText(hex(cmdPageAppid[14])) - Command.ui.lineEdit_14.setText(cmdPageAddress[14]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[14]) - Command.ui.quickButton_15.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_14.setText("(unused)") - - if cmdPageIsValid[15] == True: - Command.ui.SubsysBrowser_15.setText(cmdPageDesc[15]) - Command.ui.lineEditPktId_15.setText(hex(cmdPageAppid[15])) - Command.ui.lineEdit_15.setText(cmdPageAddress[15]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[15]) - Command.ui.quickButton_16.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_15.setText("(unused)") - - if cmdPageIsValid[16] == True: - Command.ui.SubsysBrowser_16.setText(cmdPageDesc[16]) - Command.ui.lineEditPktId_16.setText(hex(cmdPageAppid[16])) - Command.ui.lineEdit_16.setText(cmdPageAddress[16]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[16]) - Command.ui.quickButton_17.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_16.setText("(unused)") - - if cmdPageIsValid[17] == True: - Command.ui.SubsysBrowser_17.setText(cmdPageDesc[17]) - Command.ui.lineEditPktId_17.setText(hex(cmdPageAppid[17])) - Command.ui.lineEdit_17.setText(cmdPageAddress[17]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[17]) - Command.ui.quickButton_18.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_17.setText("(unused)") - - if cmdPageIsValid[18] == True: - Command.ui.SubsysBrowser_18.setText(cmdPageDesc[18]) - Command.ui.lineEditPktId_18.setText(hex(cmdPageAppid[18])) - Command.ui.lineEdit_18.setText(cmdPageAddress[18]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[18]) - Command.ui.quickButton_19.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_18.setText("(unused)") - - if cmdPageIsValid[19] == True: - Command.ui.SubsysBrowser_19.setText(cmdPageDesc[19]) - Command.ui.lineEditPktId_19.setText(hex(cmdPageAppid[19])) - Command.ui.lineEdit_19.setText(cmdPageAddress[19]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[19]) - Command.ui.quickButton_20.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_19.setText("(unused)") - - if cmdPageIsValid[20] == True: - Command.ui.SubsysBrowser_20.setText(cmdPageDesc[20]) - Command.ui.lineEditPktId_20.setText(hex(cmdPageAppid[20])) - Command.ui.lineEdit_20.setText(cmdPageAddress[20]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[20]) - Command.ui.quickButton_21.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_20.setText("(unused)") - - if cmdPageIsValid[21] == True: - Command.ui.SubsysBrowser_21.setText(cmdPageDesc[21]) - Command.ui.lineEditPktId_21.setText(hex(cmdPageAppid[21])) - Command.ui.lineEdit_21.setText(cmdPageAddress[21]) - quickIdx = -1 - try: - quickIdx = subsys.index(cmdPageDesc[21]) - Command.ui.quickButton_22.setText(quickCmd[quickIdx]) - except ValueError: - pass - quickIndices.append(quickIdx) - else: - Command.ui.SubsysBrowser_21.setText("(unused)") - + for k in range(22): + subsysBrowser = getattr(Command, f'SubsysBrowser_{k}') + if cmdPageIsValid[k]: + lineEditPktId = getattr(Command, f'lineEditPktId_{k}') + lineEditAddress = getattr(Command, f'lineEdit_{k}') + quickButton = getattr(Command, f'quickButton_{k+1}') + subsysBrowser.setText(cmdPageDesc[k]) + lineEditPktId.setText(hex(cmdPageAppid[k])) + lineEditAddress.setText(cmdPageAddress[k]) + quickIdx = -1 + try: + quickIdx = subsys.index(cmdPageDesc[k]) + quickButton.setText(quickCmd[quickIdx]) + except ValueError: + pass + quickIndices.append(quickIdx) + else: + subsysBrowser.setText("(unused)") - # - # Display the page + # + # Display the page # Command.show() Command.raise_() - print ('Command System started.') + print('Command System started.') sys.exit(app.exec_()) - diff --git a/Subsystems/cmdGui/CommandSystemDialog.py b/Subsystems/cmdGui/CommandSystemDialog.py index c9490c4..0445337 100644 --- a/Subsystems/cmdGui/CommandSystemDialog.py +++ b/Subsystems/cmdGui/CommandSystemDialog.py @@ -1,543 +1,498 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'CommandSystemDialog.ui' +# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/CommandSystemDialog.ui' # -# Created: Fri Jun 19 20:08:08 2015 -# by: PyQt4 UI code generator 4.11.3 +# Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) +from PyQt5 import QtCore, QtGui, QtWidgets class Ui_CommandSystemDialog(object): def setupUi(self, CommandSystemDialog): - CommandSystemDialog.setObjectName(_fromUtf8("CommandSystemDialog")) - CommandSystemDialog.setWindowModality(QtCore.Qt.NonModal) - CommandSystemDialog.setEnabled(True) - CommandSystemDialog.resize(709, 581) - self.verticalLayout = QtGui.QVBoxLayout(CommandSystemDialog) - self.verticalLayout.setSpacing(0) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + CommandSystemDialog.setObjectName("CommandSystemDialog") + CommandSystemDialog.resize(772, 1020) + self.layoutWidget_2 = QtWidgets.QWidget(CommandSystemDialog) + self.layoutWidget_2.setGeometry(QtCore.QRect(80, 20, 621, 25)) + self.layoutWidget_2.setObjectName("layoutWidget_2") + self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget_2) + self.horizontalLayout.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout.setObjectName("horizontalLayout") + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) - self.label = QtGui.QLabel(CommandSystemDialog) - self.label.setObjectName(_fromUtf8("label")) + self.label = QtWidgets.QLabel(self.layoutWidget_2) + self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) - spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) - self.verticalLayout.addLayout(self.horizontalLayout) - self.horizontalLayout_2 = QtGui.QHBoxLayout() - self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) - spacerItem2 = QtGui.QSpacerItem(90, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.layoutWidget_3 = QtWidgets.QWidget(CommandSystemDialog) + self.layoutWidget_3.setGeometry(QtCore.QRect(80, 60, 621, 33)) + self.layoutWidget_3.setObjectName("layoutWidget_3") + self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget_3) + self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + spacerItem2 = QtWidgets.QSpacerItem(90, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) - spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) - self.label_2 = QtGui.QLabel(CommandSystemDialog) - self.label_2.setObjectName(_fromUtf8("label_2")) + self.label_2 = QtWidgets.QLabel(self.layoutWidget_3) + self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) - spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem4) - self.buttonBox = QtGui.QDialogButtonBox(CommandSystemDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth()) - self.buttonBox.setSizePolicy(sizePolicy) - self.buttonBox.setMinimumSize(QtCore.QSize(90, 0)) - self.buttonBox.setMaximumSize(QtCore.QSize(90, 16777215)) - self.buttonBox.setFocusPolicy(QtCore.Qt.NoFocus) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) + self.buttonBox = QtWidgets.QDialogButtonBox(self.layoutWidget_3) + self.buttonBox.setOrientation(QtCore.Qt.Vertical) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) + self.buttonBox.setCenterButtons(True) + self.buttonBox.setObjectName("buttonBox") self.horizontalLayout_2.addWidget(self.buttonBox) - self.verticalLayout.addLayout(self.horizontalLayout_2) - self.scrollArea = QtGui.QScrollArea(CommandSystemDialog) - self.scrollArea.setMinimumSize(QtCore.QSize(0, 0)) - self.scrollArea.setBaseSize(QtCore.QSize(0, 800)) - self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) - self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded) - self.scrollArea.setWidgetResizable(True) - self.scrollArea.setObjectName(_fromUtf8("scrollArea")) - self.scrollAreaWidgetContents = QtGui.QWidget() - self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 668, 1000)) - self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(0, 1000)) - self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) - self.verticalLayout_2 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) - self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) - self.verticalLayout_4 = QtGui.QVBoxLayout() - self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) - self.horizontalLayout_6 = QtGui.QHBoxLayout() - self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) - self.label_3 = QtGui.QLabel(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) - self.label_3.setSizePolicy(sizePolicy) - self.label_3.setMinimumSize(QtCore.QSize(201, 31)) - self.label_3.setMaximumSize(QtCore.QSize(201, 31)) - self.label_3.setObjectName(_fromUtf8("label_3")) - self.horizontalLayout_6.addWidget(self.label_3) - self.label_4 = QtGui.QLabel(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.layoutWidget = QtWidgets.QWidget(CommandSystemDialog) + self.layoutWidget.setGeometry(QtCore.QRect(70, 120, 630, 857)) + self.layoutWidget.setObjectName("layoutWidget") + self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget) + self.gridLayout.setContentsMargins(0, 0, 0, 0) + self.gridLayout.setObjectName("gridLayout") + self.quickButton_3 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) - self.label_4.setSizePolicy(sizePolicy) - self.label_4.setMinimumSize(QtCore.QSize(81, 31)) - self.label_4.setMaximumSize(QtCore.QSize(81, 31)) - self.label_4.setObjectName(_fromUtf8("label_4")) - self.horizontalLayout_6.addWidget(self.label_4) - self.label_5 = QtGui.QLabel(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_3.sizePolicy().hasHeightForWidth()) + self.quickButton_3.setSizePolicy(sizePolicy) + self.quickButton_3.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_3.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_3.setText("") + self.quickButton_3.setObjectName("quickButton_3") + self.gridLayout.addWidget(self.quickButton_3, 3, 4, 1, 1) + self.SubsysBrowser_6 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_6.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_6.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_6.setReadOnly(True) + self.SubsysBrowser_6.setObjectName("SubsysBrowser_6") + self.gridLayout.addWidget(self.SubsysBrowser_6, 7, 0, 1, 1) + self.quickButton_4 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) - self.label_5.setSizePolicy(sizePolicy) - self.label_5.setMinimumSize(QtCore.QSize(81, 31)) - self.label_5.setMaximumSize(QtCore.QSize(81, 31)) - self.label_5.setObjectName(_fromUtf8("label_5")) - self.horizontalLayout_6.addWidget(self.label_5) - spacerItem5 = QtGui.QSpacerItem(101, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_6.addItem(spacerItem5) - spacerItem6 = QtGui.QSpacerItem(121, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_6.addItem(spacerItem6) - self.verticalLayout_4.addLayout(self.horizontalLayout_6) - self.horizontalLayout_3 = QtGui.QHBoxLayout() - self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) - self.SubsysBrowser_0 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_0.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_0.setSizePolicy(sizePolicy) - self.SubsysBrowser_0.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_0.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_0.setObjectName(_fromUtf8("SubsysBrowser_0")) - self.horizontalLayout_3.addWidget(self.SubsysBrowser_0) - self.lineEditPktId_0 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_4.sizePolicy().hasHeightForWidth()) + self.quickButton_4.setSizePolicy(sizePolicy) + self.quickButton_4.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_4.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_4.setText("") + self.quickButton_4.setObjectName("quickButton_4") + self.gridLayout.addWidget(self.quickButton_4, 4, 4, 1, 1) + self.SubsysBrowser_18 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_18.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_18.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_18.setReadOnly(True) + self.SubsysBrowser_18.setObjectName("SubsysBrowser_18") + self.gridLayout.addWidget(self.SubsysBrowser_18, 19, 0, 1, 1) + self.lineEditPktId_18 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_0.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_0.setSizePolicy(sizePolicy) - self.lineEditPktId_0.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_0.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_0.setObjectName(_fromUtf8("lineEditPktId_0")) - self.horizontalLayout_3.addWidget(self.lineEditPktId_0) - self.lineEdit_0 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_18.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_18.setSizePolicy(sizePolicy) + self.lineEditPktId_18.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_18.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_18.setObjectName("lineEditPktId_18") + self.gridLayout.addWidget(self.lineEditPktId_18, 19, 1, 1, 1) + self.lineEdit_18 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_0.sizePolicy().hasHeightForWidth()) - self.lineEdit_0.setSizePolicy(sizePolicy) - self.lineEdit_0.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_0.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_0.setObjectName(_fromUtf8("lineEdit_0")) - self.horizontalLayout_3.addWidget(self.lineEdit_0) - self.pushButton_0 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_18.sizePolicy().hasHeightForWidth()) + self.lineEdit_18.setSizePolicy(sizePolicy) + self.lineEdit_18.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_18.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_18.setObjectName("lineEdit_18") + self.gridLayout.addWidget(self.lineEdit_18, 19, 2, 1, 1) + self.pushButton_18 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_0.sizePolicy().hasHeightForWidth()) - self.pushButton_0.setSizePolicy(sizePolicy) - self.pushButton_0.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_0.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_0.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_0.setObjectName(_fromUtf8("pushButton_0")) - self.horizontalLayout_3.addWidget(self.pushButton_0) - self.quickButton_1 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_18.sizePolicy().hasHeightForWidth()) + self.pushButton_18.setSizePolicy(sizePolicy) + self.pushButton_18.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_18.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_18.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_18.setObjectName("pushButton_18") + self.gridLayout.addWidget(self.pushButton_18, 19, 3, 1, 1) + self.quickButton_19 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_1.sizePolicy().hasHeightForWidth()) - self.quickButton_1.setSizePolicy(sizePolicy) - self.quickButton_1.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_1.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_1.setText(_fromUtf8("")) - self.quickButton_1.setObjectName(_fromUtf8("quickButton_1")) - self.horizontalLayout_3.addWidget(self.quickButton_1) - self.verticalLayout_4.addLayout(self.horizontalLayout_3) - self.horizontalLayout_4 = QtGui.QHBoxLayout() - self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) - self.SubsysBrowser_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_1.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_1.setSizePolicy(sizePolicy) - self.SubsysBrowser_1.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_1.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_1.setObjectName(_fromUtf8("SubsysBrowser_1")) - self.horizontalLayout_4.addWidget(self.SubsysBrowser_1) - self.lineEditPktId_1 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_19.sizePolicy().hasHeightForWidth()) + self.quickButton_19.setSizePolicy(sizePolicy) + self.quickButton_19.setMinimumSize(QtCore.QSize(121, 32)) + self.quickButton_19.setMaximumSize(QtCore.QSize(121, 32)) + self.quickButton_19.setText("") + self.quickButton_19.setObjectName("quickButton_19") + self.gridLayout.addWidget(self.quickButton_19, 19, 4, 1, 1) + self.SubsysBrowser_19 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_19.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_19.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_19.setReadOnly(True) + self.SubsysBrowser_19.setObjectName("SubsysBrowser_19") + self.gridLayout.addWidget(self.SubsysBrowser_19, 20, 0, 1, 1) + self.lineEditPktId_19 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_1.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_1.setSizePolicy(sizePolicy) - self.lineEditPktId_1.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_1.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_1.setObjectName(_fromUtf8("lineEditPktId_1")) - self.horizontalLayout_4.addWidget(self.lineEditPktId_1) - self.lineEdit_1 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_19.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_19.setSizePolicy(sizePolicy) + self.lineEditPktId_19.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_19.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_19.setObjectName("lineEditPktId_19") + self.gridLayout.addWidget(self.lineEditPktId_19, 20, 1, 1, 1) + self.lineEdit_19 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_1.sizePolicy().hasHeightForWidth()) - self.lineEdit_1.setSizePolicy(sizePolicy) - self.lineEdit_1.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_1.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_1.setObjectName(_fromUtf8("lineEdit_1")) - self.horizontalLayout_4.addWidget(self.lineEdit_1) - self.pushButton_1 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_19.sizePolicy().hasHeightForWidth()) + self.lineEdit_19.setSizePolicy(sizePolicy) + self.lineEdit_19.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_19.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_19.setObjectName("lineEdit_19") + self.gridLayout.addWidget(self.lineEdit_19, 20, 2, 1, 1) + self.pushButton_19 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_1.sizePolicy().hasHeightForWidth()) - self.pushButton_1.setSizePolicy(sizePolicy) - self.pushButton_1.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_1.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_1.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_1.setObjectName(_fromUtf8("pushButton_1")) - self.horizontalLayout_4.addWidget(self.pushButton_1) - self.quickButton_2 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_19.sizePolicy().hasHeightForWidth()) + self.pushButton_19.setSizePolicy(sizePolicy) + self.pushButton_19.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_19.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_19.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_19.setObjectName("pushButton_19") + self.gridLayout.addWidget(self.pushButton_19, 20, 3, 1, 1) + self.SubsysBrowser_16 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_16.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_16.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_16.setReadOnly(True) + self.SubsysBrowser_16.setObjectName("SubsysBrowser_16") + self.gridLayout.addWidget(self.SubsysBrowser_16, 17, 0, 1, 1) + self.lineEditPktId_16 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_2.sizePolicy().hasHeightForWidth()) - self.quickButton_2.setSizePolicy(sizePolicy) - self.quickButton_2.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_2.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_2.setText(_fromUtf8("")) - self.quickButton_2.setObjectName(_fromUtf8("quickButton_2")) - self.horizontalLayout_4.addWidget(self.quickButton_2) - self.verticalLayout_4.addLayout(self.horizontalLayout_4) - self.horizontalLayout_5 = QtGui.QHBoxLayout() - self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) - self.SubsysBrowser_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_2.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_2.setSizePolicy(sizePolicy) - self.SubsysBrowser_2.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_2.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_2.setObjectName(_fromUtf8("SubsysBrowser_2")) - self.horizontalLayout_5.addWidget(self.SubsysBrowser_2) - self.lineEditPktId_2 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_16.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_16.setSizePolicy(sizePolicy) + self.lineEditPktId_16.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_16.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_16.setObjectName("lineEditPktId_16") + self.gridLayout.addWidget(self.lineEditPktId_16, 17, 1, 1, 1) + self.lineEdit_16 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_2.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_2.setSizePolicy(sizePolicy) - self.lineEditPktId_2.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_2.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_2.setObjectName(_fromUtf8("lineEditPktId_2")) - self.horizontalLayout_5.addWidget(self.lineEditPktId_2) - self.lineEdit_2 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_16.sizePolicy().hasHeightForWidth()) + self.lineEdit_16.setSizePolicy(sizePolicy) + self.lineEdit_16.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_16.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_16.setObjectName("lineEdit_16") + self.gridLayout.addWidget(self.lineEdit_16, 17, 2, 1, 1) + self.pushButton_16 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_2.sizePolicy().hasHeightForWidth()) - self.lineEdit_2.setSizePolicy(sizePolicy) - self.lineEdit_2.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_2.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2")) - self.horizontalLayout_5.addWidget(self.lineEdit_2) - self.pushButton_2 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_16.sizePolicy().hasHeightForWidth()) + self.pushButton_16.setSizePolicy(sizePolicy) + self.pushButton_16.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_16.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_16.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_16.setObjectName("pushButton_16") + self.gridLayout.addWidget(self.pushButton_16, 17, 3, 1, 1) + self.quickButton_17 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth()) - self.pushButton_2.setSizePolicy(sizePolicy) - self.pushButton_2.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_2.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_2.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) - self.horizontalLayout_5.addWidget(self.pushButton_2) - self.quickButton_3 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_17.sizePolicy().hasHeightForWidth()) + self.quickButton_17.setSizePolicy(sizePolicy) + self.quickButton_17.setMinimumSize(QtCore.QSize(121, 32)) + self.quickButton_17.setMaximumSize(QtCore.QSize(121, 32)) + self.quickButton_17.setText("") + self.quickButton_17.setObjectName("quickButton_17") + self.gridLayout.addWidget(self.quickButton_17, 17, 4, 1, 1) + self.quickButton_9 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_3.sizePolicy().hasHeightForWidth()) - self.quickButton_3.setSizePolicy(sizePolicy) - self.quickButton_3.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_3.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_3.setText(_fromUtf8("")) - self.quickButton_3.setObjectName(_fromUtf8("quickButton_3")) - self.horizontalLayout_5.addWidget(self.quickButton_3) - self.verticalLayout_4.addLayout(self.horizontalLayout_5) - self.horizontalLayout_7 = QtGui.QHBoxLayout() - self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) - self.SubsysBrowser_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_3.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_3.setSizePolicy(sizePolicy) + sizePolicy.setHeightForWidth(self.quickButton_9.sizePolicy().hasHeightForWidth()) + self.quickButton_9.setSizePolicy(sizePolicy) + self.quickButton_9.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_9.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_9.setText("") + self.quickButton_9.setObjectName("quickButton_9") + self.gridLayout.addWidget(self.quickButton_9, 9, 4, 1, 1) + self.SubsysBrowser_9 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_9.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_9.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_9.setReadOnly(True) + self.SubsysBrowser_9.setObjectName("SubsysBrowser_9") + self.gridLayout.addWidget(self.SubsysBrowser_9, 10, 0, 1, 1) + self.SubsysBrowser_3 = QtWidgets.QLineEdit(self.layoutWidget) self.SubsysBrowser_3.setMinimumSize(QtCore.QSize(201, 31)) self.SubsysBrowser_3.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_3.setObjectName(_fromUtf8("SubsysBrowser_3")) - self.horizontalLayout_7.addWidget(self.SubsysBrowser_3) - self.lineEditPktId_3 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_3.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_3.setSizePolicy(sizePolicy) - self.lineEditPktId_3.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_3.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_3.setObjectName(_fromUtf8("lineEditPktId_3")) - self.horizontalLayout_7.addWidget(self.lineEditPktId_3) - self.lineEdit_3 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SubsysBrowser_3.setReadOnly(True) + self.SubsysBrowser_3.setObjectName("SubsysBrowser_3") + self.gridLayout.addWidget(self.SubsysBrowser_3, 4, 0, 1, 1) + self.pushButton_5 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_3.sizePolicy().hasHeightForWidth()) - self.lineEdit_3.setSizePolicy(sizePolicy) - self.lineEdit_3.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_3.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3")) - self.horizontalLayout_7.addWidget(self.lineEdit_3) - self.pushButton_3 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_5.sizePolicy().hasHeightForWidth()) + self.pushButton_5.setSizePolicy(sizePolicy) + self.pushButton_5.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_5.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_5.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_5.setObjectName("pushButton_5") + self.gridLayout.addWidget(self.pushButton_5, 6, 3, 1, 1) + self.lineEditPktId_4 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth()) - self.pushButton_3.setSizePolicy(sizePolicy) - self.pushButton_3.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_3.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_3.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_3.setObjectName(_fromUtf8("pushButton_3")) - self.horizontalLayout_7.addWidget(self.pushButton_3) - self.quickButton_4 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_4.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_4.setSizePolicy(sizePolicy) + self.lineEditPktId_4.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_4.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_4.setObjectName("lineEditPktId_4") + self.gridLayout.addWidget(self.lineEditPktId_4, 5, 1, 1, 1) + self.label_4 = QtWidgets.QLabel(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_4.sizePolicy().hasHeightForWidth()) - self.quickButton_4.setSizePolicy(sizePolicy) - self.quickButton_4.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_4.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_4.setText(_fromUtf8("")) - self.quickButton_4.setObjectName(_fromUtf8("quickButton_4")) - self.horizontalLayout_7.addWidget(self.quickButton_4) - self.verticalLayout_4.addLayout(self.horizontalLayout_7) - self.horizontalLayout_8 = QtGui.QHBoxLayout() - self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) - self.SubsysBrowser_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_4.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_4.setSizePolicy(sizePolicy) + sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) + self.label_4.setSizePolicy(sizePolicy) + self.label_4.setMinimumSize(QtCore.QSize(81, 31)) + self.label_4.setMaximumSize(QtCore.QSize(81, 31)) + self.label_4.setObjectName("label_4") + self.gridLayout.addWidget(self.label_4, 0, 1, 1, 1) + self.SubsysBrowser_4 = QtWidgets.QLineEdit(self.layoutWidget) self.SubsysBrowser_4.setMinimumSize(QtCore.QSize(201, 31)) self.SubsysBrowser_4.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_4.setObjectName(_fromUtf8("SubsysBrowser_4")) - self.horizontalLayout_8.addWidget(self.SubsysBrowser_4) - self.lineEditPktId_4 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SubsysBrowser_4.setReadOnly(True) + self.SubsysBrowser_4.setObjectName("SubsysBrowser_4") + self.gridLayout.addWidget(self.SubsysBrowser_4, 5, 0, 1, 1) + self.lineEdit_5 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_4.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_4.setSizePolicy(sizePolicy) - self.lineEditPktId_4.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_4.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_4.setObjectName(_fromUtf8("lineEditPktId_4")) - self.horizontalLayout_8.addWidget(self.lineEditPktId_4) - self.lineEdit_4 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_5.sizePolicy().hasHeightForWidth()) + self.lineEdit_5.setSizePolicy(sizePolicy) + self.lineEdit_5.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_5.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_5.setObjectName("lineEdit_5") + self.gridLayout.addWidget(self.lineEdit_5, 6, 2, 1, 1) + self.lineEdit_4 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_4.sizePolicy().hasHeightForWidth()) self.lineEdit_4.setSizePolicy(sizePolicy) self.lineEdit_4.setMinimumSize(QtCore.QSize(100, 31)) self.lineEdit_4.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4")) - self.horizontalLayout_8.addWidget(self.lineEdit_4) - self.pushButton_4 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEdit_4.setObjectName("lineEdit_4") + self.gridLayout.addWidget(self.lineEdit_4, 5, 2, 1, 1) + self.pushButton_3 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_4.sizePolicy().hasHeightForWidth()) - self.pushButton_4.setSizePolicy(sizePolicy) - self.pushButton_4.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_4.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_4.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_4.setObjectName(_fromUtf8("pushButton_4")) - self.horizontalLayout_8.addWidget(self.pushButton_4) - self.quickButton_5 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth()) + self.pushButton_3.setSizePolicy(sizePolicy) + self.pushButton_3.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_3.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_3.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_3.setObjectName("pushButton_3") + self.gridLayout.addWidget(self.pushButton_3, 4, 3, 1, 1) + self.lineEdit_11 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_5.sizePolicy().hasHeightForWidth()) - self.quickButton_5.setSizePolicy(sizePolicy) - self.quickButton_5.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_5.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_5.setText(_fromUtf8("")) - self.quickButton_5.setObjectName(_fromUtf8("quickButton_5")) - self.horizontalLayout_8.addWidget(self.quickButton_5) - self.verticalLayout_4.addLayout(self.horizontalLayout_8) - self.horizontalLayout_9 = QtGui.QHBoxLayout() - self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) - self.SubsysBrowser_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_5.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_5.setSizePolicy(sizePolicy) - self.SubsysBrowser_5.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_5.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_5.setObjectName(_fromUtf8("SubsysBrowser_5")) - self.horizontalLayout_9.addWidget(self.SubsysBrowser_5) - self.lineEditPktId_5 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_11.sizePolicy().hasHeightForWidth()) + self.lineEdit_11.setSizePolicy(sizePolicy) + self.lineEdit_11.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_11.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_11.setObjectName("lineEdit_11") + self.gridLayout.addWidget(self.lineEdit_11, 12, 2, 1, 1) + self.pushButton_11 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_5.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_5.setSizePolicy(sizePolicy) - self.lineEditPktId_5.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_5.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_5.setObjectName(_fromUtf8("lineEditPktId_5")) - self.horizontalLayout_9.addWidget(self.lineEditPktId_5) - self.lineEdit_5 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_11.sizePolicy().hasHeightForWidth()) + self.pushButton_11.setSizePolicy(sizePolicy) + self.pushButton_11.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_11.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_11.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_11.setObjectName("pushButton_11") + self.gridLayout.addWidget(self.pushButton_11, 12, 3, 1, 1) + self.quickButton_12 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_5.sizePolicy().hasHeightForWidth()) - self.lineEdit_5.setSizePolicy(sizePolicy) - self.lineEdit_5.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_5.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5")) - self.horizontalLayout_9.addWidget(self.lineEdit_5) - self.pushButton_5 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_12.sizePolicy().hasHeightForWidth()) + self.quickButton_12.setSizePolicy(sizePolicy) + self.quickButton_12.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_12.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_12.setText("") + self.quickButton_12.setObjectName("quickButton_12") + self.gridLayout.addWidget(self.quickButton_12, 12, 4, 1, 1) + self.SubsysBrowser_12 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_12.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_12.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_12.setReadOnly(True) + self.SubsysBrowser_12.setObjectName("SubsysBrowser_12") + self.gridLayout.addWidget(self.SubsysBrowser_12, 13, 0, 1, 1) + self.quickButton_2 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_5.sizePolicy().hasHeightForWidth()) - self.pushButton_5.setSizePolicy(sizePolicy) - self.pushButton_5.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_5.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_5.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_5.setObjectName(_fromUtf8("pushButton_5")) - self.horizontalLayout_9.addWidget(self.pushButton_5) - self.quickButton_6 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_2.sizePolicy().hasHeightForWidth()) + self.quickButton_2.setSizePolicy(sizePolicy) + self.quickButton_2.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_2.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_2.setText("") + self.quickButton_2.setObjectName("quickButton_2") + self.gridLayout.addWidget(self.quickButton_2, 2, 4, 1, 1) + self.SubsysBrowser_2 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_2.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_2.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_2.setReadOnly(True) + self.SubsysBrowser_2.setObjectName("SubsysBrowser_2") + self.gridLayout.addWidget(self.SubsysBrowser_2, 3, 0, 1, 1) + self.SubsysBrowser_0 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_0.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_0.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_0.setReadOnly(True) + self.SubsysBrowser_0.setObjectName("SubsysBrowser_0") + self.gridLayout.addWidget(self.SubsysBrowser_0, 1, 0, 1, 1) + self.pushButton_10 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_6.sizePolicy().hasHeightForWidth()) - self.quickButton_6.setSizePolicy(sizePolicy) - self.quickButton_6.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_6.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_6.setText(_fromUtf8("")) - self.quickButton_6.setObjectName(_fromUtf8("quickButton_6")) - self.horizontalLayout_9.addWidget(self.quickButton_6) - self.verticalLayout_4.addLayout(self.horizontalLayout_9) - self.horizontalLayout_10 = QtGui.QHBoxLayout() - self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) - self.SubsysBrowser_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_6.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_6.setSizePolicy(sizePolicy) - self.SubsysBrowser_6.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_6.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_6.setObjectName(_fromUtf8("SubsysBrowser_6")) - self.horizontalLayout_10.addWidget(self.SubsysBrowser_6) - self.lineEditPktId_6 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_10.sizePolicy().hasHeightForWidth()) + self.pushButton_10.setSizePolicy(sizePolicy) + self.pushButton_10.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_10.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_10.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_10.setObjectName("pushButton_10") + self.gridLayout.addWidget(self.pushButton_10, 11, 3, 1, 1) + self.quickButton_11 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_6.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_6.setSizePolicy(sizePolicy) - self.lineEditPktId_6.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_6.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_6.setObjectName(_fromUtf8("lineEditPktId_6")) - self.horizontalLayout_10.addWidget(self.lineEditPktId_6) - self.lineEdit_6 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_11.sizePolicy().hasHeightForWidth()) + self.quickButton_11.setSizePolicy(sizePolicy) + self.quickButton_11.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_11.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_11.setText("") + self.quickButton_11.setObjectName("quickButton_11") + self.gridLayout.addWidget(self.quickButton_11, 11, 4, 1, 1) + self.SubsysBrowser_11 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_11.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_11.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_11.setReadOnly(True) + self.SubsysBrowser_11.setObjectName("SubsysBrowser_11") + self.gridLayout.addWidget(self.SubsysBrowser_11, 12, 0, 1, 1) + self.lineEditPktId_11 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_6.sizePolicy().hasHeightForWidth()) - self.lineEdit_6.setSizePolicy(sizePolicy) - self.lineEdit_6.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_6.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_6.setObjectName(_fromUtf8("lineEdit_6")) - self.horizontalLayout_10.addWidget(self.lineEdit_6) - self.pushButton_6 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_11.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_11.setSizePolicy(sizePolicy) + self.lineEditPktId_11.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_11.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_11.setObjectName("lineEditPktId_11") + self.gridLayout.addWidget(self.lineEditPktId_11, 12, 1, 1, 1) + self.lineEditPktId_12 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_6.sizePolicy().hasHeightForWidth()) - self.pushButton_6.setSizePolicy(sizePolicy) - self.pushButton_6.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_6.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_6.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_6.setObjectName(_fromUtf8("pushButton_6")) - self.horizontalLayout_10.addWidget(self.pushButton_6) - self.quickButton_7 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_12.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_12.setSizePolicy(sizePolicy) + self.lineEditPktId_12.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_12.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_12.setObjectName("lineEditPktId_12") + self.gridLayout.addWidget(self.lineEditPktId_12, 13, 1, 1, 1) + self.lineEdit_0 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_7.sizePolicy().hasHeightForWidth()) - self.quickButton_7.setSizePolicy(sizePolicy) - self.quickButton_7.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_7.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_7.setText(_fromUtf8("")) - self.quickButton_7.setObjectName(_fromUtf8("quickButton_7")) - self.horizontalLayout_10.addWidget(self.quickButton_7) - self.verticalLayout_4.addLayout(self.horizontalLayout_10) - self.horizontalLayout_11 = QtGui.QHBoxLayout() - self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11")) - self.SubsysBrowser_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_7.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_7.setSizePolicy(sizePolicy) - self.SubsysBrowser_7.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_7.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_7.setObjectName(_fromUtf8("SubsysBrowser_7")) - self.horizontalLayout_11.addWidget(self.SubsysBrowser_7) - self.lineEditPktId_7 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_0.sizePolicy().hasHeightForWidth()) + self.lineEdit_0.setSizePolicy(sizePolicy) + self.lineEdit_0.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_0.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_0.setObjectName("lineEdit_0") + self.gridLayout.addWidget(self.lineEdit_0, 1, 2, 1, 1) + self.lineEditPktId_7 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditPktId_7.sizePolicy().hasHeightForWidth()) self.lineEditPktId_7.setSizePolicy(sizePolicy) self.lineEditPktId_7.setMinimumSize(QtCore.QSize(81, 31)) self.lineEditPktId_7.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_7.setObjectName(_fromUtf8("lineEditPktId_7")) - self.horizontalLayout_11.addWidget(self.lineEditPktId_7) - self.lineEdit_7 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEditPktId_7.setObjectName("lineEditPktId_7") + self.gridLayout.addWidget(self.lineEditPktId_7, 8, 1, 1, 1) + self.lineEdit_7 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_7.sizePolicy().hasHeightForWidth()) self.lineEdit_7.setSizePolicy(sizePolicy) self.lineEdit_7.setMinimumSize(QtCore.QSize(100, 31)) self.lineEdit_7.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_7.setObjectName(_fromUtf8("lineEdit_7")) - self.horizontalLayout_11.addWidget(self.lineEdit_7) - self.pushButton_7 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEdit_7.setObjectName("lineEdit_7") + self.gridLayout.addWidget(self.lineEdit_7, 8, 2, 1, 1) + self.lineEditPktId_0 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lineEditPktId_0.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_0.setSizePolicy(sizePolicy) + self.lineEditPktId_0.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_0.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_0.setObjectName("lineEditPktId_0") + self.gridLayout.addWidget(self.lineEditPktId_0, 1, 1, 1, 1) + self.pushButton_2 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth()) + self.pushButton_2.setSizePolicy(sizePolicy) + self.pushButton_2.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_2.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_2.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_2.setObjectName("pushButton_2") + self.gridLayout.addWidget(self.pushButton_2, 3, 3, 1, 1) + self.label_5 = QtWidgets.QLabel(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) + self.label_5.setSizePolicy(sizePolicy) + self.label_5.setMinimumSize(QtCore.QSize(81, 31)) + self.label_5.setMaximumSize(QtCore.QSize(81, 31)) + self.label_5.setObjectName("label_5") + self.gridLayout.addWidget(self.label_5, 0, 2, 1, 1) + self.pushButton_1 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.pushButton_1.sizePolicy().hasHeightForWidth()) + self.pushButton_1.setSizePolicy(sizePolicy) + self.pushButton_1.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_1.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_1.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_1.setObjectName("pushButton_1") + self.gridLayout.addWidget(self.pushButton_1, 2, 3, 1, 1) + self.SubsysBrowser_1 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_1.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_1.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_1.setReadOnly(True) + self.SubsysBrowser_1.setObjectName("SubsysBrowser_1") + self.gridLayout.addWidget(self.SubsysBrowser_1, 2, 0, 1, 1) + self.pushButton_7 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_7.sizePolicy().hasHeightForWidth()) @@ -545,109 +500,52 @@ def setupUi(self, CommandSystemDialog): self.pushButton_7.setMinimumSize(QtCore.QSize(101, 31)) self.pushButton_7.setMaximumSize(QtCore.QSize(101, 31)) self.pushButton_7.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_7.setObjectName(_fromUtf8("pushButton_7")) - self.horizontalLayout_11.addWidget(self.pushButton_7) - self.quickButton_8 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_7.setObjectName("pushButton_7") + self.gridLayout.addWidget(self.pushButton_7, 8, 3, 1, 1) + self.quickButton_8 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_8.sizePolicy().hasHeightForWidth()) self.quickButton_8.setSizePolicy(sizePolicy) self.quickButton_8.setMinimumSize(QtCore.QSize(121, 0)) self.quickButton_8.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_8.setText(_fromUtf8("")) - self.quickButton_8.setObjectName(_fromUtf8("quickButton_8")) - self.horizontalLayout_11.addWidget(self.quickButton_8) - self.verticalLayout_4.addLayout(self.horizontalLayout_11) - self.horizontalLayout_12 = QtGui.QHBoxLayout() - self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) - self.SubsysBrowser_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_8.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_8.setSizePolicy(sizePolicy) - self.SubsysBrowser_8.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_8.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_8.setObjectName(_fromUtf8("SubsysBrowser_8")) - self.horizontalLayout_12.addWidget(self.SubsysBrowser_8) - self.lineEditPktId_8 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.quickButton_8.setText("") + self.quickButton_8.setObjectName("quickButton_8") + self.gridLayout.addWidget(self.quickButton_8, 8, 4, 1, 1) + self.lineEditPktId_2 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_8.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_8.setSizePolicy(sizePolicy) - self.lineEditPktId_8.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_8.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_8.setObjectName(_fromUtf8("lineEditPktId_8")) - self.horizontalLayout_12.addWidget(self.lineEditPktId_8) - self.lineEdit_8 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_8.sizePolicy().hasHeightForWidth()) - self.lineEdit_8.setSizePolicy(sizePolicy) - self.lineEdit_8.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_8.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_8.setObjectName(_fromUtf8("lineEdit_8")) - self.horizontalLayout_12.addWidget(self.lineEdit_8) - self.pushButton_8 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_8.sizePolicy().hasHeightForWidth()) - self.pushButton_8.setSizePolicy(sizePolicy) - self.pushButton_8.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_8.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_8.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_8.setObjectName(_fromUtf8("pushButton_8")) - self.horizontalLayout_12.addWidget(self.pushButton_8) - self.quickButton_9 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_9.sizePolicy().hasHeightForWidth()) - self.quickButton_9.setSizePolicy(sizePolicy) - self.quickButton_9.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_9.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_9.setText(_fromUtf8("")) - self.quickButton_9.setObjectName(_fromUtf8("quickButton_9")) - self.horizontalLayout_12.addWidget(self.quickButton_9) - self.verticalLayout_4.addLayout(self.horizontalLayout_12) - self.horizontalLayout_13 = QtGui.QHBoxLayout() - self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) - self.SubsysBrowser_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_9.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_9.setSizePolicy(sizePolicy) - self.SubsysBrowser_9.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_9.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_9.setObjectName(_fromUtf8("SubsysBrowser_9")) - self.horizontalLayout_13.addWidget(self.SubsysBrowser_9) - self.lineEditPktId_9 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_2.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_2.setSizePolicy(sizePolicy) + self.lineEditPktId_2.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_2.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_2.setObjectName("lineEditPktId_2") + self.gridLayout.addWidget(self.lineEditPktId_2, 3, 1, 1, 1) + self.lineEditPktId_5 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_9.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_9.setSizePolicy(sizePolicy) - self.lineEditPktId_9.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_9.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_9.setObjectName(_fromUtf8("lineEditPktId_9")) - self.horizontalLayout_13.addWidget(self.lineEditPktId_9) - self.lineEdit_9 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_5.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_5.setSizePolicy(sizePolicy) + self.lineEditPktId_5.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_5.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_5.setObjectName("lineEditPktId_5") + self.gridLayout.addWidget(self.lineEditPktId_5, 6, 1, 1, 1) + self.pushButton_6 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_9.sizePolicy().hasHeightForWidth()) - self.lineEdit_9.setSizePolicy(sizePolicy) - self.lineEdit_9.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_9.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_9.setObjectName(_fromUtf8("lineEdit_9")) - self.horizontalLayout_13.addWidget(self.lineEdit_9) - self.pushButton_9 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_6.sizePolicy().hasHeightForWidth()) + self.pushButton_6.setSizePolicy(sizePolicy) + self.pushButton_6.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_6.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_6.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_6.setObjectName("pushButton_6") + self.gridLayout.addWidget(self.pushButton_6, 7, 3, 1, 1) + self.pushButton_9 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_9.sizePolicy().hasHeightForWidth()) @@ -655,164 +553,90 @@ def setupUi(self, CommandSystemDialog): self.pushButton_9.setMinimumSize(QtCore.QSize(101, 31)) self.pushButton_9.setMaximumSize(QtCore.QSize(101, 31)) self.pushButton_9.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_9.setObjectName(_fromUtf8("pushButton_9")) - self.horizontalLayout_13.addWidget(self.pushButton_9) - self.quickButton_10 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_9.setObjectName("pushButton_9") + self.gridLayout.addWidget(self.pushButton_9, 10, 3, 1, 1) + self.quickButton_10 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_10.sizePolicy().hasHeightForWidth()) self.quickButton_10.setSizePolicy(sizePolicy) self.quickButton_10.setMinimumSize(QtCore.QSize(121, 0)) self.quickButton_10.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_10.setText(_fromUtf8("")) - self.quickButton_10.setObjectName(_fromUtf8("quickButton_10")) - self.horizontalLayout_13.addWidget(self.quickButton_10) - self.verticalLayout_4.addLayout(self.horizontalLayout_13) - self.horizontalLayout_14 = QtGui.QHBoxLayout() - self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14")) - self.SubsysBrowser_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_10.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_10.setSizePolicy(sizePolicy) - self.SubsysBrowser_10.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_10.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_10.setObjectName(_fromUtf8("SubsysBrowser_10")) - self.horizontalLayout_14.addWidget(self.SubsysBrowser_10) - self.lineEditPktId_10 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_10.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_10.setSizePolicy(sizePolicy) - self.lineEditPktId_10.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_10.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_10.setObjectName(_fromUtf8("lineEditPktId_10")) - self.horizontalLayout_14.addWidget(self.lineEditPktId_10) - self.lineEdit_10 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_10.sizePolicy().hasHeightForWidth()) - self.lineEdit_10.setSizePolicy(sizePolicy) - self.lineEdit_10.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_10.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_10.setObjectName(_fromUtf8("lineEdit_10")) - self.horizontalLayout_14.addWidget(self.lineEdit_10) - self.pushButton_10 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_10.sizePolicy().hasHeightForWidth()) - self.pushButton_10.setSizePolicy(sizePolicy) - self.pushButton_10.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_10.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_10.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_10.setObjectName(_fromUtf8("pushButton_10")) - self.horizontalLayout_14.addWidget(self.pushButton_10) - self.quickButton_11 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_11.sizePolicy().hasHeightForWidth()) - self.quickButton_11.setSizePolicy(sizePolicy) - self.quickButton_11.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_11.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_11.setText(_fromUtf8("")) - self.quickButton_11.setObjectName(_fromUtf8("quickButton_11")) - self.horizontalLayout_14.addWidget(self.quickButton_11) - self.verticalLayout_4.addLayout(self.horizontalLayout_14) - self.horizontalLayout_15 = QtGui.QHBoxLayout() - self.horizontalLayout_15.setObjectName(_fromUtf8("horizontalLayout_15")) - self.SubsysBrowser_11 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_11.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_11.setSizePolicy(sizePolicy) - self.SubsysBrowser_11.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_11.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_11.setObjectName(_fromUtf8("SubsysBrowser_11")) - self.horizontalLayout_15.addWidget(self.SubsysBrowser_11) - self.lineEditPktId_11 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_11.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_11.setSizePolicy(sizePolicy) - self.lineEditPktId_11.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_11.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_11.setObjectName(_fromUtf8("lineEditPktId_11")) - self.horizontalLayout_15.addWidget(self.lineEditPktId_11) - self.lineEdit_11 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.quickButton_10.setText("") + self.quickButton_10.setObjectName("quickButton_10") + self.gridLayout.addWidget(self.quickButton_10, 10, 4, 1, 1) + self.SubsysBrowser_15 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_15.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_15.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_15.setReadOnly(True) + self.SubsysBrowser_15.setObjectName("SubsysBrowser_15") + self.gridLayout.addWidget(self.SubsysBrowser_15, 16, 0, 1, 1) + self.lineEditPktId_15 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_11.sizePolicy().hasHeightForWidth()) - self.lineEdit_11.setSizePolicy(sizePolicy) - self.lineEdit_11.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_11.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11")) - self.horizontalLayout_15.addWidget(self.lineEdit_11) - self.pushButton_11 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_15.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_15.setSizePolicy(sizePolicy) + self.lineEditPktId_15.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_15.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_15.setObjectName("lineEditPktId_15") + self.gridLayout.addWidget(self.lineEditPktId_15, 16, 1, 1, 1) + self.lineEdit_15 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_11.sizePolicy().hasHeightForWidth()) - self.pushButton_11.setSizePolicy(sizePolicy) - self.pushButton_11.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_11.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_11.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_11.setObjectName(_fromUtf8("pushButton_11")) - self.horizontalLayout_15.addWidget(self.pushButton_11) - self.quickButton_12 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_15.sizePolicy().hasHeightForWidth()) + self.lineEdit_15.setSizePolicy(sizePolicy) + self.lineEdit_15.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_15.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_15.setObjectName("lineEdit_15") + self.gridLayout.addWidget(self.lineEdit_15, 16, 2, 1, 1) + self.pushButton_15 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_12.sizePolicy().hasHeightForWidth()) - self.quickButton_12.setSizePolicy(sizePolicy) - self.quickButton_12.setMinimumSize(QtCore.QSize(121, 0)) - self.quickButton_12.setMaximumSize(QtCore.QSize(121, 16777215)) - self.quickButton_12.setText(_fromUtf8("")) - self.quickButton_12.setObjectName(_fromUtf8("quickButton_12")) - self.horizontalLayout_15.addWidget(self.quickButton_12) - self.verticalLayout_4.addLayout(self.horizontalLayout_15) - self.horizontalLayout_16 = QtGui.QHBoxLayout() - self.horizontalLayout_16.setObjectName(_fromUtf8("horizontalLayout_16")) - self.SubsysBrowser_12 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_12.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_12.setSizePolicy(sizePolicy) - self.SubsysBrowser_12.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_12.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_12.setObjectName(_fromUtf8("SubsysBrowser_12")) - self.horizontalLayout_16.addWidget(self.SubsysBrowser_12) - self.lineEditPktId_12 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_15.sizePolicy().hasHeightForWidth()) + self.pushButton_15.setSizePolicy(sizePolicy) + self.pushButton_15.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_15.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_15.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_15.setObjectName("pushButton_15") + self.gridLayout.addWidget(self.pushButton_15, 16, 3, 1, 1) + self.quickButton_16 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_12.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_12.setSizePolicy(sizePolicy) - self.lineEditPktId_12.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_12.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_12.setObjectName(_fromUtf8("lineEditPktId_12")) - self.horizontalLayout_16.addWidget(self.lineEditPktId_12) - self.lineEdit_12 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.quickButton_16.sizePolicy().hasHeightForWidth()) + self.quickButton_16.setSizePolicy(sizePolicy) + self.quickButton_16.setMinimumSize(QtCore.QSize(121, 32)) + self.quickButton_16.setMaximumSize(QtCore.QSize(121, 32)) + self.quickButton_16.setText("") + self.quickButton_16.setObjectName("quickButton_16") + self.gridLayout.addWidget(self.quickButton_16, 16, 4, 1, 1) + self.quickButton_6 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.quickButton_6.sizePolicy().hasHeightForWidth()) + self.quickButton_6.setSizePolicy(sizePolicy) + self.quickButton_6.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_6.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_6.setText("") + self.quickButton_6.setObjectName("quickButton_6") + self.gridLayout.addWidget(self.quickButton_6, 6, 4, 1, 1) + self.lineEdit_12 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_12.sizePolicy().hasHeightForWidth()) self.lineEdit_12.setSizePolicy(sizePolicy) self.lineEdit_12.setMinimumSize(QtCore.QSize(100, 31)) self.lineEdit_12.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12")) - self.horizontalLayout_16.addWidget(self.lineEdit_12) - self.pushButton_12 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEdit_12.setObjectName("lineEdit_12") + self.gridLayout.addWidget(self.lineEdit_12, 13, 2, 1, 1) + self.pushButton_12 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_12.sizePolicy().hasHeightForWidth()) @@ -820,54 +644,111 @@ def setupUi(self, CommandSystemDialog): self.pushButton_12.setMinimumSize(QtCore.QSize(101, 31)) self.pushButton_12.setMaximumSize(QtCore.QSize(101, 31)) self.pushButton_12.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_12.setObjectName(_fromUtf8("pushButton_12")) - self.horizontalLayout_16.addWidget(self.pushButton_12) - self.quickButton_13 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_12.setObjectName("pushButton_12") + self.gridLayout.addWidget(self.pushButton_12, 13, 3, 1, 1) + self.quickButton_13 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_13.sizePolicy().hasHeightForWidth()) self.quickButton_13.setSizePolicy(sizePolicy) self.quickButton_13.setMinimumSize(QtCore.QSize(121, 32)) self.quickButton_13.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_13.setText(_fromUtf8("")) - self.quickButton_13.setObjectName(_fromUtf8("quickButton_13")) - self.horizontalLayout_16.addWidget(self.quickButton_13) - self.verticalLayout_4.addLayout(self.horizontalLayout_16) - self.horizontalLayout_17 = QtGui.QHBoxLayout() - self.horizontalLayout_17.setObjectName(_fromUtf8("horizontalLayout_17")) - self.SubsysBrowser_13 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_13.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_13.setSizePolicy(sizePolicy) + self.quickButton_13.setText("") + self.quickButton_13.setObjectName("quickButton_13") + self.gridLayout.addWidget(self.quickButton_13, 13, 4, 1, 1) + self.SubsysBrowser_13 = QtWidgets.QLineEdit(self.layoutWidget) self.SubsysBrowser_13.setMinimumSize(QtCore.QSize(201, 31)) self.SubsysBrowser_13.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_13.setObjectName(_fromUtf8("SubsysBrowser_13")) - self.horizontalLayout_17.addWidget(self.SubsysBrowser_13) - self.lineEditPktId_13 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SubsysBrowser_13.setReadOnly(True) + self.SubsysBrowser_13.setObjectName("SubsysBrowser_13") + self.gridLayout.addWidget(self.SubsysBrowser_13, 14, 0, 1, 1) + self.SubsysBrowser_14 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_14.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_14.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_14.setReadOnly(True) + self.SubsysBrowser_14.setObjectName("SubsysBrowser_14") + self.gridLayout.addWidget(self.SubsysBrowser_14, 15, 0, 1, 1) + self.lineEditPktId_14 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lineEditPktId_14.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_14.setSizePolicy(sizePolicy) + self.lineEditPktId_14.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_14.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_14.setObjectName("lineEditPktId_14") + self.gridLayout.addWidget(self.lineEditPktId_14, 15, 1, 1, 1) + self.lineEdit_14 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lineEdit_14.sizePolicy().hasHeightForWidth()) + self.lineEdit_14.setSizePolicy(sizePolicy) + self.lineEdit_14.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_14.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_14.setObjectName("lineEdit_14") + self.gridLayout.addWidget(self.lineEdit_14, 15, 2, 1, 1) + self.pushButton_14 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.pushButton_14.sizePolicy().hasHeightForWidth()) + self.pushButton_14.setSizePolicy(sizePolicy) + self.pushButton_14.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_14.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_14.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_14.setObjectName("pushButton_14") + self.gridLayout.addWidget(self.pushButton_14, 15, 3, 1, 1) + self.quickButton_15 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.quickButton_15.sizePolicy().hasHeightForWidth()) + self.quickButton_15.setSizePolicy(sizePolicy) + self.quickButton_15.setMinimumSize(QtCore.QSize(121, 32)) + self.quickButton_15.setMaximumSize(QtCore.QSize(121, 32)) + self.quickButton_15.setText("") + self.quickButton_15.setObjectName("quickButton_15") + self.gridLayout.addWidget(self.quickButton_15, 15, 4, 1, 1) + self.SubsysBrowser_8 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_8.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_8.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_8.setReadOnly(True) + self.SubsysBrowser_8.setObjectName("SubsysBrowser_8") + self.gridLayout.addWidget(self.SubsysBrowser_8, 9, 0, 1, 1) + self.lineEditPktId_8 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lineEditPktId_8.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_8.setSizePolicy(sizePolicy) + self.lineEditPktId_8.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_8.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_8.setObjectName("lineEditPktId_8") + self.gridLayout.addWidget(self.lineEditPktId_8, 9, 1, 1, 1) + self.lineEditPktId_13 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditPktId_13.sizePolicy().hasHeightForWidth()) self.lineEditPktId_13.setSizePolicy(sizePolicy) self.lineEditPktId_13.setMinimumSize(QtCore.QSize(81, 31)) self.lineEditPktId_13.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_13.setObjectName(_fromUtf8("lineEditPktId_13")) - self.horizontalLayout_17.addWidget(self.lineEditPktId_13) - self.lineEdit_13 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEditPktId_13.setObjectName("lineEditPktId_13") + self.gridLayout.addWidget(self.lineEditPktId_13, 14, 1, 1, 1) + self.lineEdit_13 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_13.sizePolicy().hasHeightForWidth()) self.lineEdit_13.setSizePolicy(sizePolicy) self.lineEdit_13.setMinimumSize(QtCore.QSize(100, 31)) self.lineEdit_13.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_13.setObjectName(_fromUtf8("lineEdit_13")) - self.horizontalLayout_17.addWidget(self.lineEdit_13) - self.pushButton_13 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEdit_13.setObjectName("lineEdit_13") + self.gridLayout.addWidget(self.lineEdit_13, 14, 2, 1, 1) + self.pushButton_13 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_13.sizePolicy().hasHeightForWidth()) @@ -875,219 +756,240 @@ def setupUi(self, CommandSystemDialog): self.pushButton_13.setMinimumSize(QtCore.QSize(101, 31)) self.pushButton_13.setMaximumSize(QtCore.QSize(101, 31)) self.pushButton_13.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_13.setObjectName(_fromUtf8("pushButton_13")) - self.horizontalLayout_17.addWidget(self.pushButton_13) - self.quickButton_14 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_13.setObjectName("pushButton_13") + self.gridLayout.addWidget(self.pushButton_13, 14, 3, 1, 1) + self.quickButton_14 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_14.sizePolicy().hasHeightForWidth()) self.quickButton_14.setSizePolicy(sizePolicy) self.quickButton_14.setMinimumSize(QtCore.QSize(121, 32)) self.quickButton_14.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_14.setText(_fromUtf8("")) - self.quickButton_14.setObjectName(_fromUtf8("quickButton_14")) - self.horizontalLayout_17.addWidget(self.quickButton_14) - self.verticalLayout_4.addLayout(self.horizontalLayout_17) - self.horizontalLayout_18 = QtGui.QHBoxLayout() - self.horizontalLayout_18.setObjectName(_fromUtf8("horizontalLayout_18")) - self.SubsysBrowser_14 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_14.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_14.setSizePolicy(sizePolicy) - self.SubsysBrowser_14.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_14.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_14.setObjectName(_fromUtf8("SubsysBrowser_14")) - self.horizontalLayout_18.addWidget(self.SubsysBrowser_14) - self.lineEditPktId_14 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.quickButton_14.setText("") + self.quickButton_14.setObjectName("quickButton_14") + self.gridLayout.addWidget(self.quickButton_14, 14, 4, 1, 1) + self.pushButton_4 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_14.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_14.setSizePolicy(sizePolicy) - self.lineEditPktId_14.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_14.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_14.setObjectName(_fromUtf8("lineEditPktId_14")) - self.horizontalLayout_18.addWidget(self.lineEditPktId_14) - self.lineEdit_14 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_4.sizePolicy().hasHeightForWidth()) + self.pushButton_4.setSizePolicy(sizePolicy) + self.pushButton_4.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_4.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_4.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_4.setObjectName("pushButton_4") + self.gridLayout.addWidget(self.pushButton_4, 5, 3, 1, 1) + self.lineEdit_3 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_14.sizePolicy().hasHeightForWidth()) - self.lineEdit_14.setSizePolicy(sizePolicy) - self.lineEdit_14.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_14.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_14.setObjectName(_fromUtf8("lineEdit_14")) - self.horizontalLayout_18.addWidget(self.lineEdit_14) - self.pushButton_14 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_3.sizePolicy().hasHeightForWidth()) + self.lineEdit_3.setSizePolicy(sizePolicy) + self.lineEdit_3.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_3.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_3.setObjectName("lineEdit_3") + self.gridLayout.addWidget(self.lineEdit_3, 4, 2, 1, 1) + self.SubsysBrowser_7 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_7.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_7.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_7.setReadOnly(True) + self.SubsysBrowser_7.setObjectName("SubsysBrowser_7") + self.gridLayout.addWidget(self.SubsysBrowser_7, 8, 0, 1, 1) + self.pushButton_0 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_14.sizePolicy().hasHeightForWidth()) - self.pushButton_14.setSizePolicy(sizePolicy) - self.pushButton_14.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_14.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_14.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_14.setObjectName(_fromUtf8("pushButton_14")) - self.horizontalLayout_18.addWidget(self.pushButton_14) - self.quickButton_15 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_0.sizePolicy().hasHeightForWidth()) + self.pushButton_0.setSizePolicy(sizePolicy) + self.pushButton_0.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_0.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_0.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_0.setObjectName("pushButton_0") + self.gridLayout.addWidget(self.pushButton_0, 1, 3, 1, 1) + self.lineEditPktId_6 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_15.sizePolicy().hasHeightForWidth()) - self.quickButton_15.setSizePolicy(sizePolicy) - self.quickButton_15.setMinimumSize(QtCore.QSize(121, 32)) - self.quickButton_15.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_15.setText(_fromUtf8("")) - self.quickButton_15.setObjectName(_fromUtf8("quickButton_15")) - self.horizontalLayout_18.addWidget(self.quickButton_15) - self.verticalLayout_4.addLayout(self.horizontalLayout_18) - self.horizontalLayout_19 = QtGui.QHBoxLayout() - self.horizontalLayout_19.setObjectName(_fromUtf8("horizontalLayout_19")) - self.SubsysBrowser_15 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_15.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_15.setSizePolicy(sizePolicy) - self.SubsysBrowser_15.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_15.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_15.setObjectName(_fromUtf8("SubsysBrowser_15")) - self.horizontalLayout_19.addWidget(self.SubsysBrowser_15) - self.lineEditPktId_15 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_6.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_6.setSizePolicy(sizePolicy) + self.lineEditPktId_6.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_6.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_6.setObjectName("lineEditPktId_6") + self.gridLayout.addWidget(self.lineEditPktId_6, 7, 1, 1, 1) + self.SubsysBrowser_10 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_10.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_10.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_10.setReadOnly(True) + self.SubsysBrowser_10.setObjectName("SubsysBrowser_10") + self.gridLayout.addWidget(self.SubsysBrowser_10, 11, 0, 1, 1) + self.lineEditPktId_10 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_15.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_15.setSizePolicy(sizePolicy) - self.lineEditPktId_15.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_15.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_15.setObjectName(_fromUtf8("lineEditPktId_15")) - self.horizontalLayout_19.addWidget(self.lineEditPktId_15) - self.lineEdit_15 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_10.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_10.setSizePolicy(sizePolicy) + self.lineEditPktId_10.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_10.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_10.setObjectName("lineEditPktId_10") + self.gridLayout.addWidget(self.lineEditPktId_10, 11, 1, 1, 1) + self.lineEdit_10 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_15.sizePolicy().hasHeightForWidth()) - self.lineEdit_15.setSizePolicy(sizePolicy) - self.lineEdit_15.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_15.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_15.setObjectName(_fromUtf8("lineEdit_15")) - self.horizontalLayout_19.addWidget(self.lineEdit_15) - self.pushButton_15 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_10.sizePolicy().hasHeightForWidth()) + self.lineEdit_10.setSizePolicy(sizePolicy) + self.lineEdit_10.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_10.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_10.setObjectName("lineEdit_10") + self.gridLayout.addWidget(self.lineEdit_10, 11, 2, 1, 1) + self.lineEdit_2 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_15.sizePolicy().hasHeightForWidth()) - self.pushButton_15.setSizePolicy(sizePolicy) - self.pushButton_15.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_15.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_15.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_15.setObjectName(_fromUtf8("pushButton_15")) - self.horizontalLayout_19.addWidget(self.pushButton_15) - self.quickButton_16 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_2.sizePolicy().hasHeightForWidth()) + self.lineEdit_2.setSizePolicy(sizePolicy) + self.lineEdit_2.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_2.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_2.setObjectName("lineEdit_2") + self.gridLayout.addWidget(self.lineEdit_2, 3, 2, 1, 1) + self.SubsysBrowser_5 = QtWidgets.QLineEdit(self.layoutWidget) + self.SubsysBrowser_5.setMinimumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_5.setMaximumSize(QtCore.QSize(201, 31)) + self.SubsysBrowser_5.setReadOnly(True) + self.SubsysBrowser_5.setObjectName("SubsysBrowser_5") + self.gridLayout.addWidget(self.SubsysBrowser_5, 6, 0, 1, 1) + self.lineEditPktId_3 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_16.sizePolicy().hasHeightForWidth()) - self.quickButton_16.setSizePolicy(sizePolicy) - self.quickButton_16.setMinimumSize(QtCore.QSize(121, 32)) - self.quickButton_16.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_16.setText(_fromUtf8("")) - self.quickButton_16.setObjectName(_fromUtf8("quickButton_16")) - self.horizontalLayout_19.addWidget(self.quickButton_16) - self.verticalLayout_4.addLayout(self.horizontalLayout_19) - self.horizontalLayout_20 = QtGui.QHBoxLayout() - self.horizontalLayout_20.setObjectName(_fromUtf8("horizontalLayout_20")) - self.SubsysBrowser_16 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_16.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_16.setSizePolicy(sizePolicy) - self.SubsysBrowser_16.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_16.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_16.setObjectName(_fromUtf8("SubsysBrowser_16")) - self.horizontalLayout_20.addWidget(self.SubsysBrowser_16) - self.lineEditPktId_16 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEditPktId_3.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_3.setSizePolicy(sizePolicy) + self.lineEditPktId_3.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_3.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_3.setObjectName("lineEditPktId_3") + self.gridLayout.addWidget(self.lineEditPktId_3, 4, 1, 1, 1) + self.lineEdit_1 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_16.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_16.setSizePolicy(sizePolicy) - self.lineEditPktId_16.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_16.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_16.setObjectName(_fromUtf8("lineEditPktId_16")) - self.horizontalLayout_20.addWidget(self.lineEditPktId_16) - self.lineEdit_16 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_1.sizePolicy().hasHeightForWidth()) + self.lineEdit_1.setSizePolicy(sizePolicy) + self.lineEdit_1.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_1.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_1.setObjectName("lineEdit_1") + self.gridLayout.addWidget(self.lineEdit_1, 2, 2, 1, 1) + self.lineEdit_8 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_16.sizePolicy().hasHeightForWidth()) - self.lineEdit_16.setSizePolicy(sizePolicy) - self.lineEdit_16.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_16.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_16.setObjectName(_fromUtf8("lineEdit_16")) - self.horizontalLayout_20.addWidget(self.lineEdit_16) - self.pushButton_16 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.lineEdit_8.sizePolicy().hasHeightForWidth()) + self.lineEdit_8.setSizePolicy(sizePolicy) + self.lineEdit_8.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_8.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_8.setObjectName("lineEdit_8") + self.gridLayout.addWidget(self.lineEdit_8, 9, 2, 1, 1) + self.pushButton_8 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_16.sizePolicy().hasHeightForWidth()) - self.pushButton_16.setSizePolicy(sizePolicy) - self.pushButton_16.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_16.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_16.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_16.setObjectName(_fromUtf8("pushButton_16")) - self.horizontalLayout_20.addWidget(self.pushButton_16) - self.quickButton_17 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHeightForWidth(self.pushButton_8.sizePolicy().hasHeightForWidth()) + self.pushButton_8.setSizePolicy(sizePolicy) + self.pushButton_8.setMinimumSize(QtCore.QSize(101, 31)) + self.pushButton_8.setMaximumSize(QtCore.QSize(101, 31)) + self.pushButton_8.setFocusPolicy(QtCore.Qt.NoFocus) + self.pushButton_8.setObjectName("pushButton_8") + self.gridLayout.addWidget(self.pushButton_8, 9, 3, 1, 1) + self.lineEditPktId_1 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_17.sizePolicy().hasHeightForWidth()) - self.quickButton_17.setSizePolicy(sizePolicy) - self.quickButton_17.setMinimumSize(QtCore.QSize(121, 32)) - self.quickButton_17.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_17.setText(_fromUtf8("")) - self.quickButton_17.setObjectName(_fromUtf8("quickButton_17")) - self.horizontalLayout_20.addWidget(self.quickButton_17) - self.verticalLayout_4.addLayout(self.horizontalLayout_20) - self.horizontalLayout_21 = QtGui.QHBoxLayout() - self.horizontalLayout_21.setObjectName(_fromUtf8("horizontalLayout_21")) - self.SubsysBrowser_17 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_17.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_17.setSizePolicy(sizePolicy) + sizePolicy.setHeightForWidth(self.lineEditPktId_1.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_1.setSizePolicy(sizePolicy) + self.lineEditPktId_1.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_1.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_1.setObjectName("lineEditPktId_1") + self.gridLayout.addWidget(self.lineEditPktId_1, 2, 1, 1, 1) + self.lineEdit_6 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lineEdit_6.sizePolicy().hasHeightForWidth()) + self.lineEdit_6.setSizePolicy(sizePolicy) + self.lineEdit_6.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_6.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_6.setObjectName("lineEdit_6") + self.gridLayout.addWidget(self.lineEdit_6, 7, 2, 1, 1) + self.lineEditPktId_9 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lineEditPktId_9.sizePolicy().hasHeightForWidth()) + self.lineEditPktId_9.setSizePolicy(sizePolicy) + self.lineEditPktId_9.setMinimumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_9.setMaximumSize(QtCore.QSize(81, 31)) + self.lineEditPktId_9.setObjectName("lineEditPktId_9") + self.gridLayout.addWidget(self.lineEditPktId_9, 10, 1, 1, 1) + self.lineEdit_9 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.lineEdit_9.sizePolicy().hasHeightForWidth()) + self.lineEdit_9.setSizePolicy(sizePolicy) + self.lineEdit_9.setMinimumSize(QtCore.QSize(100, 31)) + self.lineEdit_9.setMaximumSize(QtCore.QSize(100, 31)) + self.lineEdit_9.setObjectName("lineEdit_9") + self.gridLayout.addWidget(self.lineEdit_9, 10, 2, 1, 1) + self.quickButton_7 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.quickButton_7.sizePolicy().hasHeightForWidth()) + self.quickButton_7.setSizePolicy(sizePolicy) + self.quickButton_7.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_7.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_7.setText("") + self.quickButton_7.setObjectName("quickButton_7") + self.gridLayout.addWidget(self.quickButton_7, 7, 4, 1, 1) + self.quickButton_5 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.quickButton_5.sizePolicy().hasHeightForWidth()) + self.quickButton_5.setSizePolicy(sizePolicy) + self.quickButton_5.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_5.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_5.setText("") + self.quickButton_5.setObjectName("quickButton_5") + self.gridLayout.addWidget(self.quickButton_5, 5, 4, 1, 1) + self.SubsysBrowser_17 = QtWidgets.QLineEdit(self.layoutWidget) self.SubsysBrowser_17.setMinimumSize(QtCore.QSize(201, 31)) self.SubsysBrowser_17.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_17.setObjectName(_fromUtf8("SubsysBrowser_17")) - self.horizontalLayout_21.addWidget(self.SubsysBrowser_17) - self.lineEditPktId_17 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SubsysBrowser_17.setReadOnly(True) + self.SubsysBrowser_17.setObjectName("SubsysBrowser_17") + self.gridLayout.addWidget(self.SubsysBrowser_17, 18, 0, 1, 1) + self.lineEditPktId_17 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditPktId_17.sizePolicy().hasHeightForWidth()) self.lineEditPktId_17.setSizePolicy(sizePolicy) self.lineEditPktId_17.setMinimumSize(QtCore.QSize(81, 31)) self.lineEditPktId_17.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_17.setObjectName(_fromUtf8("lineEditPktId_17")) - self.horizontalLayout_21.addWidget(self.lineEditPktId_17) - self.lineEdit_17 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEditPktId_17.setObjectName("lineEditPktId_17") + self.gridLayout.addWidget(self.lineEditPktId_17, 18, 1, 1, 1) + self.lineEdit_17 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_17.sizePolicy().hasHeightForWidth()) self.lineEdit_17.setSizePolicy(sizePolicy) self.lineEdit_17.setMinimumSize(QtCore.QSize(100, 31)) self.lineEdit_17.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_17.setObjectName(_fromUtf8("lineEdit_17")) - self.horizontalLayout_21.addWidget(self.lineEdit_17) - self.pushButton_17 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEdit_17.setObjectName("lineEdit_17") + self.gridLayout.addWidget(self.lineEdit_17, 18, 2, 1, 1) + self.pushButton_17 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_17.sizePolicy().hasHeightForWidth()) @@ -1095,164 +997,58 @@ def setupUi(self, CommandSystemDialog): self.pushButton_17.setMinimumSize(QtCore.QSize(101, 31)) self.pushButton_17.setMaximumSize(QtCore.QSize(101, 31)) self.pushButton_17.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_17.setObjectName(_fromUtf8("pushButton_17")) - self.horizontalLayout_21.addWidget(self.pushButton_17) - self.quickButton_18 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_17.setObjectName("pushButton_17") + self.gridLayout.addWidget(self.pushButton_17, 18, 3, 1, 1) + self.quickButton_18 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_18.sizePolicy().hasHeightForWidth()) self.quickButton_18.setSizePolicy(sizePolicy) self.quickButton_18.setMinimumSize(QtCore.QSize(121, 32)) self.quickButton_18.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_18.setText(_fromUtf8("")) - self.quickButton_18.setObjectName(_fromUtf8("quickButton_18")) - self.horizontalLayout_21.addWidget(self.quickButton_18) - self.verticalLayout_4.addLayout(self.horizontalLayout_21) - self.horizontalLayout_22 = QtGui.QHBoxLayout() - self.horizontalLayout_22.setObjectName(_fromUtf8("horizontalLayout_22")) - self.SubsysBrowser_18 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_18.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_18.setSizePolicy(sizePolicy) - self.SubsysBrowser_18.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_18.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_18.setObjectName(_fromUtf8("SubsysBrowser_18")) - self.horizontalLayout_22.addWidget(self.SubsysBrowser_18) - self.lineEditPktId_18 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_18.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_18.setSizePolicy(sizePolicy) - self.lineEditPktId_18.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_18.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_18.setObjectName(_fromUtf8("lineEditPktId_18")) - self.horizontalLayout_22.addWidget(self.lineEditPktId_18) - self.lineEdit_18 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_18.sizePolicy().hasHeightForWidth()) - self.lineEdit_18.setSizePolicy(sizePolicy) - self.lineEdit_18.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_18.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_18.setObjectName(_fromUtf8("lineEdit_18")) - self.horizontalLayout_22.addWidget(self.lineEdit_18) - self.pushButton_18 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_18.sizePolicy().hasHeightForWidth()) - self.pushButton_18.setSizePolicy(sizePolicy) - self.pushButton_18.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_18.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_18.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_18.setObjectName(_fromUtf8("pushButton_18")) - self.horizontalLayout_22.addWidget(self.pushButton_18) - self.quickButton_19 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.quickButton_19.sizePolicy().hasHeightForWidth()) - self.quickButton_19.setSizePolicy(sizePolicy) - self.quickButton_19.setMinimumSize(QtCore.QSize(121, 32)) - self.quickButton_19.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_19.setText(_fromUtf8("")) - self.quickButton_19.setObjectName(_fromUtf8("quickButton_19")) - self.horizontalLayout_22.addWidget(self.quickButton_19) - self.verticalLayout_4.addLayout(self.horizontalLayout_22) - self.horizontalLayout_23 = QtGui.QHBoxLayout() - self.horizontalLayout_23.setObjectName(_fromUtf8("horizontalLayout_23")) - self.SubsysBrowser_19 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_19.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_19.setSizePolicy(sizePolicy) - self.SubsysBrowser_19.setMinimumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_19.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_19.setObjectName(_fromUtf8("SubsysBrowser_19")) - self.horizontalLayout_23.addWidget(self.SubsysBrowser_19) - self.lineEditPktId_19 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEditPktId_19.sizePolicy().hasHeightForWidth()) - self.lineEditPktId_19.setSizePolicy(sizePolicy) - self.lineEditPktId_19.setMinimumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_19.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_19.setObjectName(_fromUtf8("lineEditPktId_19")) - self.horizontalLayout_23.addWidget(self.lineEditPktId_19) - self.lineEdit_19 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.lineEdit_19.sizePolicy().hasHeightForWidth()) - self.lineEdit_19.setSizePolicy(sizePolicy) - self.lineEdit_19.setMinimumSize(QtCore.QSize(100, 31)) - self.lineEdit_19.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_19.setObjectName(_fromUtf8("lineEdit_19")) - self.horizontalLayout_23.addWidget(self.lineEdit_19) - self.pushButton_19 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pushButton_19.sizePolicy().hasHeightForWidth()) - self.pushButton_19.setSizePolicy(sizePolicy) - self.pushButton_19.setMinimumSize(QtCore.QSize(101, 31)) - self.pushButton_19.setMaximumSize(QtCore.QSize(101, 31)) - self.pushButton_19.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_19.setObjectName(_fromUtf8("pushButton_19")) - self.horizontalLayout_23.addWidget(self.pushButton_19) - self.quickButton_20 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.quickButton_18.setText("") + self.quickButton_18.setObjectName("quickButton_18") + self.gridLayout.addWidget(self.quickButton_18, 18, 4, 1, 1) + self.quickButton_20 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_20.sizePolicy().hasHeightForWidth()) self.quickButton_20.setSizePolicy(sizePolicy) self.quickButton_20.setMinimumSize(QtCore.QSize(121, 32)) self.quickButton_20.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_20.setText(_fromUtf8("")) - self.quickButton_20.setObjectName(_fromUtf8("quickButton_20")) - self.horizontalLayout_23.addWidget(self.quickButton_20) - self.verticalLayout_4.addLayout(self.horizontalLayout_23) - self.horizontalLayout_24 = QtGui.QHBoxLayout() - self.horizontalLayout_24.setObjectName(_fromUtf8("horizontalLayout_24")) - self.SubsysBrowser_20 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_20.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_20.setSizePolicy(sizePolicy) + self.quickButton_20.setText("") + self.quickButton_20.setObjectName("quickButton_20") + self.gridLayout.addWidget(self.quickButton_20, 20, 4, 1, 1) + self.SubsysBrowser_20 = QtWidgets.QLineEdit(self.layoutWidget) self.SubsysBrowser_20.setMinimumSize(QtCore.QSize(201, 31)) self.SubsysBrowser_20.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_20.setObjectName(_fromUtf8("SubsysBrowser_20")) - self.horizontalLayout_24.addWidget(self.SubsysBrowser_20) - self.lineEditPktId_20 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SubsysBrowser_20.setReadOnly(True) + self.SubsysBrowser_20.setObjectName("SubsysBrowser_20") + self.gridLayout.addWidget(self.SubsysBrowser_20, 21, 0, 1, 1) + self.lineEditPktId_20 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditPktId_20.sizePolicy().hasHeightForWidth()) self.lineEditPktId_20.setSizePolicy(sizePolicy) self.lineEditPktId_20.setMinimumSize(QtCore.QSize(81, 31)) self.lineEditPktId_20.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_20.setObjectName(_fromUtf8("lineEditPktId_20")) - self.horizontalLayout_24.addWidget(self.lineEditPktId_20) - self.lineEdit_20 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEditPktId_20.setObjectName("lineEditPktId_20") + self.gridLayout.addWidget(self.lineEditPktId_20, 21, 1, 1, 1) + self.lineEdit_20 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_20.sizePolicy().hasHeightForWidth()) self.lineEdit_20.setSizePolicy(sizePolicy) self.lineEdit_20.setMinimumSize(QtCore.QSize(100, 31)) self.lineEdit_20.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_20.setObjectName(_fromUtf8("lineEdit_20")) - self.horizontalLayout_24.addWidget(self.lineEdit_20) - self.pushButton_20 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEdit_20.setObjectName("lineEdit_20") + self.gridLayout.addWidget(self.lineEdit_20, 21, 2, 1, 1) + self.pushButton_20 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_20.sizePolicy().hasHeightForWidth()) @@ -1260,54 +1056,47 @@ def setupUi(self, CommandSystemDialog): self.pushButton_20.setMinimumSize(QtCore.QSize(101, 31)) self.pushButton_20.setMaximumSize(QtCore.QSize(101, 31)) self.pushButton_20.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_20.setObjectName(_fromUtf8("pushButton_20")) - self.horizontalLayout_24.addWidget(self.pushButton_20) - self.quickButton_21 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_20.setObjectName("pushButton_20") + self.gridLayout.addWidget(self.pushButton_20, 21, 3, 1, 1) + self.quickButton_21 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_21.sizePolicy().hasHeightForWidth()) self.quickButton_21.setSizePolicy(sizePolicy) self.quickButton_21.setMinimumSize(QtCore.QSize(121, 32)) self.quickButton_21.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_21.setText(_fromUtf8("")) - self.quickButton_21.setObjectName(_fromUtf8("quickButton_21")) - self.horizontalLayout_24.addWidget(self.quickButton_21) - self.verticalLayout_4.addLayout(self.horizontalLayout_24) - self.horizontalLayout_25 = QtGui.QHBoxLayout() - self.horizontalLayout_25.setObjectName(_fromUtf8("horizontalLayout_25")) - self.SubsysBrowser_21 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.SubsysBrowser_21.sizePolicy().hasHeightForWidth()) - self.SubsysBrowser_21.setSizePolicy(sizePolicy) + self.quickButton_21.setText("") + self.quickButton_21.setObjectName("quickButton_21") + self.gridLayout.addWidget(self.quickButton_21, 21, 4, 1, 1) + self.SubsysBrowser_21 = QtWidgets.QLineEdit(self.layoutWidget) self.SubsysBrowser_21.setMinimumSize(QtCore.QSize(201, 31)) self.SubsysBrowser_21.setMaximumSize(QtCore.QSize(201, 31)) - self.SubsysBrowser_21.setObjectName(_fromUtf8("SubsysBrowser_21")) - self.horizontalLayout_25.addWidget(self.SubsysBrowser_21) - self.lineEditPktId_21 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SubsysBrowser_21.setReadOnly(True) + self.SubsysBrowser_21.setObjectName("SubsysBrowser_21") + self.gridLayout.addWidget(self.SubsysBrowser_21, 22, 0, 1, 1) + self.lineEditPktId_21 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditPktId_21.sizePolicy().hasHeightForWidth()) self.lineEditPktId_21.setSizePolicy(sizePolicy) self.lineEditPktId_21.setMinimumSize(QtCore.QSize(81, 31)) self.lineEditPktId_21.setMaximumSize(QtCore.QSize(81, 31)) - self.lineEditPktId_21.setObjectName(_fromUtf8("lineEditPktId_21")) - self.horizontalLayout_25.addWidget(self.lineEditPktId_21) - self.lineEdit_21 = QtGui.QLineEdit(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEditPktId_21.setObjectName("lineEditPktId_21") + self.gridLayout.addWidget(self.lineEditPktId_21, 22, 1, 1, 1) + self.lineEdit_21 = QtWidgets.QLineEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_21.sizePolicy().hasHeightForWidth()) self.lineEdit_21.setSizePolicy(sizePolicy) self.lineEdit_21.setMinimumSize(QtCore.QSize(100, 31)) self.lineEdit_21.setMaximumSize(QtCore.QSize(100, 31)) - self.lineEdit_21.setObjectName(_fromUtf8("lineEdit_21")) - self.horizontalLayout_25.addWidget(self.lineEdit_21) - self.pushButton_21 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.lineEdit_21.setObjectName("lineEdit_21") + self.gridLayout.addWidget(self.lineEdit_21, 22, 2, 1, 1) + self.pushButton_21 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_21.sizePolicy().hasHeightForWidth()) @@ -1315,65 +1104,73 @@ def setupUi(self, CommandSystemDialog): self.pushButton_21.setMinimumSize(QtCore.QSize(101, 31)) self.pushButton_21.setMaximumSize(QtCore.QSize(101, 31)) self.pushButton_21.setFocusPolicy(QtCore.Qt.NoFocus) - self.pushButton_21.setObjectName(_fromUtf8("pushButton_21")) - self.horizontalLayout_25.addWidget(self.pushButton_21) - self.quickButton_22 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_21.setObjectName("pushButton_21") + self.gridLayout.addWidget(self.pushButton_21, 22, 3, 1, 1) + self.quickButton_22 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.quickButton_22.sizePolicy().hasHeightForWidth()) self.quickButton_22.setSizePolicy(sizePolicy) self.quickButton_22.setMinimumSize(QtCore.QSize(121, 32)) self.quickButton_22.setMaximumSize(QtCore.QSize(121, 32)) - self.quickButton_22.setText(_fromUtf8("")) - self.quickButton_22.setObjectName(_fromUtf8("quickButton_22")) - self.horizontalLayout_25.addWidget(self.quickButton_22) - self.verticalLayout_4.addLayout(self.horizontalLayout_25) - self.verticalLayout_2.addLayout(self.verticalLayout_4) - self.scrollArea.setWidget(self.scrollAreaWidgetContents) - self.verticalLayout.addWidget(self.scrollArea) + self.quickButton_22.setText("") + self.quickButton_22.setObjectName("quickButton_22") + self.gridLayout.addWidget(self.quickButton_22, 22, 4, 1, 1) + self.quickButton_1 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.quickButton_1.sizePolicy().hasHeightForWidth()) + self.quickButton_1.setSizePolicy(sizePolicy) + self.quickButton_1.setMinimumSize(QtCore.QSize(121, 0)) + self.quickButton_1.setMaximumSize(QtCore.QSize(121, 16777215)) + self.quickButton_1.setText("") + self.quickButton_1.setObjectName("quickButton_1") + self.gridLayout.addWidget(self.quickButton_1, 1, 4, 1, 1) + self.label_3 = QtWidgets.QLabel(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) + self.label_3.setSizePolicy(sizePolicy) + self.label_3.setMinimumSize(QtCore.QSize(201, 31)) + self.label_3.setMaximumSize(QtCore.QSize(201, 31)) + self.label_3.setObjectName("label_3") + self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.retranslateUi(CommandSystemDialog) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), CommandSystemDialog.close) + self.buttonBox.clicked['QAbstractButton*'].connect(CommandSystemDialog.close) QtCore.QMetaObject.connectSlotsByName(CommandSystemDialog) def retranslateUi(self, CommandSystemDialog): - CommandSystemDialog.setWindowTitle(_translate("CommandSystemDialog", "Command System", None)) - self.label.setText(_translate("CommandSystemDialog", "cFE/CFS Subsystem Commands", None)) - self.label_2.setText(_translate("CommandSystemDialog", "Available Pages", None)) - self.label_3.setText(_translate("CommandSystemDialog", "Subsystem/Page", None)) - self.label_4.setText(_translate("CommandSystemDialog", "Packet ID", None)) - self.label_5.setText(_translate("CommandSystemDialog", "Send To", None)) - self.pushButton_0.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_1.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_2.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_3.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_4.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_5.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_6.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_7.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_8.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_9.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_10.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_11.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_12.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_13.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_14.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_15.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_16.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_17.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_18.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_19.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_20.setText(_translate("CommandSystemDialog", "Display Page", None)) - self.pushButton_21.setText(_translate("CommandSystemDialog", "Display Page", None)) - - -if __name__ == "__main__": - import sys - app = QtGui.QApplication(sys.argv) - CommandSystemDialog = QtGui.QWidget() - ui = Ui_CommandSystemDialog() - ui.setupUi(CommandSystemDialog) - CommandSystemDialog.show() - sys.exit(app.exec_()) + _translate = QtCore.QCoreApplication.translate + CommandSystemDialog.setWindowTitle(_translate("CommandSystemDialog", "Command System Main Page")) + self.label.setText(_translate("CommandSystemDialog", "cFE/CFS Subsystem Commands")) + self.label_2.setText(_translate("CommandSystemDialog", "Available Pages")) + self.pushButton_18.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_19.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_16.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_5.setText(_translate("CommandSystemDialog", "Display Page")) + self.label_4.setText(_translate("CommandSystemDialog", "Packet ID")) + self.pushButton_3.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_11.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_10.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_2.setText(_translate("CommandSystemDialog", "Display Page")) + self.label_5.setText(_translate("CommandSystemDialog", "Send To")) + self.pushButton_1.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_7.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_6.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_9.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_15.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_12.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_14.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_13.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_4.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_0.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_8.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_17.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_20.setText(_translate("CommandSystemDialog", "Display Page")) + self.pushButton_21.setText(_translate("CommandSystemDialog", "Display Page")) + self.label_3.setText(_translate("CommandSystemDialog", "Subsystem/Page")) diff --git a/Subsystems/cmdGui/CommandSystemDialog.ui b/Subsystems/cmdGui/CommandSystemDialog.ui index ba135a5..f0c4e0c 100644 --- a/Subsystems/cmdGui/CommandSystemDialog.ui +++ b/Subsystems/cmdGui/CommandSystemDialog.ui @@ -1,3014 +1,2776 @@ CommandSystemDialog - - - Qt::NonModal - - - true - + 0 0 - 709 - 581 + 772 + 1020 - Command System + Command System Main Page - - - 0 + + + + 80 + 20 + 621 + 25 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + cFE/CFS Subsystem Commands + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 80 + 60 + 621 + 33 + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 90 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Available Pages + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Vertical + + + QDialogButtonBox::Close + + + true + + + + + + + + + 70 + 120 + 630 + 857 + - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - cFE/CFS Subsystem Commands - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 90 - 20 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Available Pages - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 0 - 0 - - - - - 90 - 0 - - - - - 90 - 16777215 - - - - Qt::NoFocus - - - Qt::Horizontal - - - QDialogButtonBox::Close - - - - - - - - - - 0 - 0 - - - - - 0 - 800 - - - - Qt::ScrollBarAlwaysOn - - - Qt::ScrollBarAsNeeded - - - true - - - - - 0 - 0 - 668 - 1000 - - - - - 0 - 1000 - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - Subsystem/Page - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - Packet ID - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - Send To - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 101 - 20 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 121 - 20 - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 0 - - - - - 121 - 16777215 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - 0 - 0 - - - - - 201 - 31 - - - - - 201 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 100 - 31 - - - - - 100 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 31 - - - - - 101 - 31 - - - - Qt::NoFocus - - - Display Page - - - - - - - - 0 - 0 - - - - - 121 - 32 - - - - - 121 - 32 - - - - - - - - - - - - - - - - + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + Packet ID + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + Send To + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 201 + 31 + + + + + 201 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 0 + 0 + + + + + 100 + 31 + + + + + 100 + 31 + + + + + + + + + 0 + 0 + + + + + 101 + 31 + + + + + 101 + 31 + + + + Qt::NoFocus + + + Display Page + + + + + + + + 0 + 0 + + + + + 121 + 32 + + + + + 121 + 32 + + + + + + + + + + + + 0 + 0 + + + + + 121 + 0 + + + + + 121 + 16777215 + + + + + + + + + + + + 0 + 0 + + + + + 201 + 31 + + + + + 201 + 31 + + + + Subsystem/Page + + + + + @@ -3019,12 +2781,12 @@ close() - 683 - 70 + 740 + 55 - 393 - 300 + 410 + 555 diff --git a/Subsystems/cmdGui/GenericCommandDialog.py b/Subsystems/cmdGui/GenericCommandDialog.py index 598727e..0996edc 100644 --- a/Subsystems/cmdGui/GenericCommandDialog.py +++ b/Subsystems/cmdGui/GenericCommandDialog.py @@ -1,732 +1,603 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'GenericCommandDialog.ui' +# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/GenericCommandDialog.ui' # -# Created: Wed Mar 25 17:15:12 2015 -# by: PyQt4 UI code generator 4.11.3 +# Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) +from PyQt5 import QtCore, QtGui, QtWidgets class Ui_GenericCommandDialog(object): def setupUi(self, GenericCommandDialog): - GenericCommandDialog.setObjectName(_fromUtf8("GenericCommandDialog")) - GenericCommandDialog.resize(549, 504) - self.verticalLayout_6 = QtGui.QVBoxLayout(GenericCommandDialog) - self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) - self.verticalLayout_4 = QtGui.QVBoxLayout() - self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.verticalLayout = QtGui.QVBoxLayout() - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.subSystemCommandPageLabel = QtGui.QLabel(GenericCommandDialog) + GenericCommandDialog.setObjectName("GenericCommandDialog") + GenericCommandDialog.resize(549, 1058) + self.verticalLayout_6 = QtWidgets.QVBoxLayout(GenericCommandDialog) + self.verticalLayout_6.setObjectName("verticalLayout_6") + self.verticalLayout_4 = QtWidgets.QVBoxLayout() + self.verticalLayout_4.setObjectName("verticalLayout_4") + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.verticalLayout = QtWidgets.QVBoxLayout() + self.verticalLayout.setObjectName("verticalLayout") + self.subSystemCommandPageLabel = QtWidgets.QLabel(GenericCommandDialog) self.subSystemCommandPageLabel.setAlignment(QtCore.Qt.AlignCenter) - self.subSystemCommandPageLabel.setObjectName(_fromUtf8("subSystemCommandPageLabel")) + self.subSystemCommandPageLabel.setObjectName("subSystemCommandPageLabel") self.verticalLayout.addWidget(self.subSystemCommandPageLabel) - self.subSystemTextBrowser = QtGui.QTextBrowser(GenericCommandDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.subSystemTextBrowser.sizePolicy().hasHeightForWidth()) - self.subSystemTextBrowser.setSizePolicy(sizePolicy) - self.subSystemTextBrowser.setMinimumSize(QtCore.QSize(159, 31)) - self.subSystemTextBrowser.setMaximumSize(QtCore.QSize(300, 31)) - self.subSystemTextBrowser.setObjectName(_fromUtf8("subSystemTextBrowser")) - self.verticalLayout.addWidget(self.subSystemTextBrowser) + self.subSystemLineEdit = QtWidgets.QLineEdit(GenericCommandDialog) + self.subSystemLineEdit.setMinimumSize(QtCore.QSize(159, 31)) + self.subSystemLineEdit.setMaximumSize(QtCore.QSize(300, 31)) + self.subSystemLineEdit.setObjectName("subSystemLineEdit") + self.verticalLayout.addWidget(self.subSystemLineEdit) self.horizontalLayout.addLayout(self.verticalLayout) - self.verticalLayout_2 = QtGui.QVBoxLayout() - self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) - self.packetIdLabel = QtGui.QLabel(GenericCommandDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) + self.verticalLayout_2 = QtWidgets.QVBoxLayout() + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.packetIdLabel = QtWidgets.QLabel(GenericCommandDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.packetIdLabel.sizePolicy().hasHeightForWidth()) self.packetIdLabel.setSizePolicy(sizePolicy) self.packetIdLabel.setMinimumSize(QtCore.QSize(0, 13)) self.packetIdLabel.setMaximumSize(QtCore.QSize(16777193, 13)) - self.packetIdLabel.setObjectName(_fromUtf8("packetIdLabel")) + self.packetIdLabel.setObjectName("packetIdLabel") self.verticalLayout_2.addWidget(self.packetIdLabel) - self.packetId = QtGui.QLCDNumber(GenericCommandDialog) - self.packetId.setObjectName(_fromUtf8("packetId")) + self.packetId = QtWidgets.QLCDNumber(GenericCommandDialog) + self.packetId.setObjectName("packetId") self.verticalLayout_2.addWidget(self.packetId) self.horizontalLayout.addLayout(self.verticalLayout_2) - self.verticalLayout_3 = QtGui.QVBoxLayout() - self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) - self.label_5 = QtGui.QLabel(GenericCommandDialog) + self.verticalLayout_3 = QtWidgets.QVBoxLayout() + self.verticalLayout_3.setObjectName("verticalLayout_3") + self.label_5 = QtWidgets.QLabel(GenericCommandDialog) self.label_5.setAlignment(QtCore.Qt.AlignCenter) - self.label_5.setObjectName(_fromUtf8("label_5")) + self.label_5.setObjectName("label_5") self.verticalLayout_3.addWidget(self.label_5) - self.commandAddressLineEdit = QtGui.QLineEdit(GenericCommandDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.commandAddressLineEdit = QtWidgets.QLineEdit(GenericCommandDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.commandAddressLineEdit.sizePolicy().hasHeightForWidth()) self.commandAddressLineEdit.setSizePolicy(sizePolicy) self.commandAddressLineEdit.setMinimumSize(QtCore.QSize(135, 31)) self.commandAddressLineEdit.setMaximumSize(QtCore.QSize(135, 31)) - self.commandAddressLineEdit.setObjectName(_fromUtf8("commandAddressLineEdit")) + self.commandAddressLineEdit.setObjectName("commandAddressLineEdit") self.verticalLayout_3.addWidget(self.commandAddressLineEdit) self.horizontalLayout.addLayout(self.verticalLayout_3) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) - self.buttonBox = QtGui.QDialogButtonBox(GenericCommandDialog) + self.buttonBox = QtWidgets.QDialogButtonBox(GenericCommandDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) + self.buttonBox.setObjectName("buttonBox") self.horizontalLayout.addWidget(self.buttonBox) self.verticalLayout_4.addLayout(self.horizontalLayout) - self.label = QtGui.QLabel(GenericCommandDialog) + self.label = QtWidgets.QLabel(GenericCommandDialog) self.label.setAlignment(QtCore.Qt.AlignCenter) - self.label.setObjectName(_fromUtf8("label")) + self.label.setObjectName("label") self.verticalLayout_4.addWidget(self.label) self.verticalLayout_6.addLayout(self.verticalLayout_4) - self.scrollArea = QtGui.QScrollArea(GenericCommandDialog) + self.scrollArea = QtWidgets.QScrollArea(GenericCommandDialog) self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.scrollArea.setWidgetResizable(True) - self.scrollArea.setObjectName(_fromUtf8("scrollArea")) - self.scrollAreaWidgetContents = QtGui.QWidget() - self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 508, 1000)) + self.scrollArea.setObjectName("scrollArea") + self.scrollAreaWidgetContents = QtWidgets.QWidget() + self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 515, 1000)) self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(0, 1000)) - self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) - self.verticalLayout_5 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) - self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) - self.horizontalLayout_2 = QtGui.QHBoxLayout() - self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) - self.itemLabelTextBrowser_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_1.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_1.setSizePolicy(sizePolicy) + self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") + self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents) + self.verticalLayout_5.setObjectName("verticalLayout_5") + self.horizontalLayout_2 = QtWidgets.QHBoxLayout() + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + self.itemLabelTextBrowser_1 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_1.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_1.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_1.setObjectName(_fromUtf8("itemLabelTextBrowser_1")) + self.itemLabelTextBrowser_1.setReadOnly(True) + self.itemLabelTextBrowser_1.setObjectName("itemLabelTextBrowser_1") self.horizontalLayout_2.addWidget(self.itemLabelTextBrowser_1) - self.SendButton_1 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_1 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_1.sizePolicy().hasHeightForWidth()) self.SendButton_1.setSizePolicy(sizePolicy) self.SendButton_1.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_1.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_1.setObjectName(_fromUtf8("SendButton_1")) + self.SendButton_1.setObjectName("SendButton_1") self.horizontalLayout_2.addWidget(self.SendButton_1) self.verticalLayout_5.addLayout(self.horizontalLayout_2) - self.horizontalLayout_3 = QtGui.QHBoxLayout() - self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) - self.itemLabelTextBrowser_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_2.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_2.setSizePolicy(sizePolicy) + self.horizontalLayout_3 = QtWidgets.QHBoxLayout() + self.horizontalLayout_3.setObjectName("horizontalLayout_3") + self.itemLabelTextBrowser_2 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_2.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_2.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_2.setObjectName(_fromUtf8("itemLabelTextBrowser_2")) + self.itemLabelTextBrowser_2.setReadOnly(True) + self.itemLabelTextBrowser_2.setObjectName("itemLabelTextBrowser_2") self.horizontalLayout_3.addWidget(self.itemLabelTextBrowser_2) - self.SendButton_2 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_2 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_2.sizePolicy().hasHeightForWidth()) self.SendButton_2.setSizePolicy(sizePolicy) self.SendButton_2.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_2.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_2.setObjectName(_fromUtf8("SendButton_2")) + self.SendButton_2.setObjectName("SendButton_2") self.horizontalLayout_3.addWidget(self.SendButton_2) self.verticalLayout_5.addLayout(self.horizontalLayout_3) - self.horizontalLayout_4 = QtGui.QHBoxLayout() - self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) - self.itemLabelTextBrowser_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_3.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_3.setSizePolicy(sizePolicy) + self.horizontalLayout_4 = QtWidgets.QHBoxLayout() + self.horizontalLayout_4.setObjectName("horizontalLayout_4") + self.itemLabelTextBrowser_3 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_3.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_3.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_3.setObjectName(_fromUtf8("itemLabelTextBrowser_3")) + self.itemLabelTextBrowser_3.setReadOnly(True) + self.itemLabelTextBrowser_3.setObjectName("itemLabelTextBrowser_3") self.horizontalLayout_4.addWidget(self.itemLabelTextBrowser_3) - self.SendButton_3 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_3 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_3.sizePolicy().hasHeightForWidth()) self.SendButton_3.setSizePolicy(sizePolicy) self.SendButton_3.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_3.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_3.setObjectName(_fromUtf8("SendButton_3")) + self.SendButton_3.setObjectName("SendButton_3") self.horizontalLayout_4.addWidget(self.SendButton_3) self.verticalLayout_5.addLayout(self.horizontalLayout_4) - self.horizontalLayout_5 = QtGui.QHBoxLayout() - self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) - self.itemLabelTextBrowser_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_4.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_4.setSizePolicy(sizePolicy) + self.horizontalLayout_5 = QtWidgets.QHBoxLayout() + self.horizontalLayout_5.setObjectName("horizontalLayout_5") + self.itemLabelTextBrowser_4 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_4.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_4.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_4.setObjectName(_fromUtf8("itemLabelTextBrowser_4")) + self.itemLabelTextBrowser_4.setReadOnly(True) + self.itemLabelTextBrowser_4.setObjectName("itemLabelTextBrowser_4") self.horizontalLayout_5.addWidget(self.itemLabelTextBrowser_4) - self.SendButton_4 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_4 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_4.sizePolicy().hasHeightForWidth()) self.SendButton_4.setSizePolicy(sizePolicy) self.SendButton_4.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_4.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_4.setObjectName(_fromUtf8("SendButton_4")) + self.SendButton_4.setObjectName("SendButton_4") self.horizontalLayout_5.addWidget(self.SendButton_4) self.verticalLayout_5.addLayout(self.horizontalLayout_5) - self.horizontalLayout_6 = QtGui.QHBoxLayout() - self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) - self.itemLabelTextBrowser_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_5.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_5.setSizePolicy(sizePolicy) + self.horizontalLayout_6 = QtWidgets.QHBoxLayout() + self.horizontalLayout_6.setObjectName("horizontalLayout_6") + self.itemLabelTextBrowser_5 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_5.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_5.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_5.setObjectName(_fromUtf8("itemLabelTextBrowser_5")) + self.itemLabelTextBrowser_5.setReadOnly(True) + self.itemLabelTextBrowser_5.setObjectName("itemLabelTextBrowser_5") self.horizontalLayout_6.addWidget(self.itemLabelTextBrowser_5) - self.SendButton_5 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_5 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_5.sizePolicy().hasHeightForWidth()) self.SendButton_5.setSizePolicy(sizePolicy) self.SendButton_5.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_5.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_5.setObjectName(_fromUtf8("SendButton_5")) + self.SendButton_5.setObjectName("SendButton_5") self.horizontalLayout_6.addWidget(self.SendButton_5) self.verticalLayout_5.addLayout(self.horizontalLayout_6) - self.horizontalLayout_7 = QtGui.QHBoxLayout() - self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) - self.itemLabelTextBrowser_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_6.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_6.setSizePolicy(sizePolicy) + self.horizontalLayout_7 = QtWidgets.QHBoxLayout() + self.horizontalLayout_7.setObjectName("horizontalLayout_7") + self.itemLabelTextBrowser_6 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_6.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_6.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_6.setObjectName(_fromUtf8("itemLabelTextBrowser_6")) + self.itemLabelTextBrowser_6.setReadOnly(True) + self.itemLabelTextBrowser_6.setObjectName("itemLabelTextBrowser_6") self.horizontalLayout_7.addWidget(self.itemLabelTextBrowser_6) - self.SendButton_6 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_6 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_6.sizePolicy().hasHeightForWidth()) self.SendButton_6.setSizePolicy(sizePolicy) self.SendButton_6.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_6.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_6.setObjectName(_fromUtf8("SendButton_6")) + self.SendButton_6.setObjectName("SendButton_6") self.horizontalLayout_7.addWidget(self.SendButton_6) self.verticalLayout_5.addLayout(self.horizontalLayout_7) - self.horizontalLayout_8 = QtGui.QHBoxLayout() - self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) - self.itemLabelTextBrowser_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_7.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_7.setSizePolicy(sizePolicy) + self.horizontalLayout_8 = QtWidgets.QHBoxLayout() + self.horizontalLayout_8.setObjectName("horizontalLayout_8") + self.itemLabelTextBrowser_7 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_7.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_7.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_7.setObjectName(_fromUtf8("itemLabelTextBrowser_7")) + self.itemLabelTextBrowser_7.setReadOnly(True) + self.itemLabelTextBrowser_7.setObjectName("itemLabelTextBrowser_7") self.horizontalLayout_8.addWidget(self.itemLabelTextBrowser_7) - self.SendButton_7 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_7 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_7.sizePolicy().hasHeightForWidth()) self.SendButton_7.setSizePolicy(sizePolicy) self.SendButton_7.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_7.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_7.setObjectName(_fromUtf8("SendButton_7")) + self.SendButton_7.setObjectName("SendButton_7") self.horizontalLayout_8.addWidget(self.SendButton_7) self.verticalLayout_5.addLayout(self.horizontalLayout_8) - self.horizontalLayout_9 = QtGui.QHBoxLayout() - self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) - self.itemLabelTextBrowser_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_8.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_8.setSizePolicy(sizePolicy) + self.horizontalLayout_9 = QtWidgets.QHBoxLayout() + self.horizontalLayout_9.setObjectName("horizontalLayout_9") + self.itemLabelTextBrowser_8 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_8.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_8.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_8.setObjectName(_fromUtf8("itemLabelTextBrowser_8")) + self.itemLabelTextBrowser_8.setReadOnly(True) + self.itemLabelTextBrowser_8.setObjectName("itemLabelTextBrowser_8") self.horizontalLayout_9.addWidget(self.itemLabelTextBrowser_8) - self.SendButton_8 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_8 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_8.sizePolicy().hasHeightForWidth()) self.SendButton_8.setSizePolicy(sizePolicy) self.SendButton_8.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_8.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_8.setObjectName(_fromUtf8("SendButton_8")) + self.SendButton_8.setObjectName("SendButton_8") self.horizontalLayout_9.addWidget(self.SendButton_8) self.verticalLayout_5.addLayout(self.horizontalLayout_9) - self.horizontalLayout_10 = QtGui.QHBoxLayout() - self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) - self.itemLabelTextBrowser_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_9.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_9.setSizePolicy(sizePolicy) + self.horizontalLayout_10 = QtWidgets.QHBoxLayout() + self.horizontalLayout_10.setObjectName("horizontalLayout_10") + self.itemLabelTextBrowser_9 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_9.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_9.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_9.setObjectName(_fromUtf8("itemLabelTextBrowser_9")) + self.itemLabelTextBrowser_9.setReadOnly(True) + self.itemLabelTextBrowser_9.setObjectName("itemLabelTextBrowser_9") self.horizontalLayout_10.addWidget(self.itemLabelTextBrowser_9) - self.SendButton_9 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_9 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_9.sizePolicy().hasHeightForWidth()) self.SendButton_9.setSizePolicy(sizePolicy) self.SendButton_9.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_9.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_9.setObjectName(_fromUtf8("SendButton_9")) + self.SendButton_9.setObjectName("SendButton_9") self.horizontalLayout_10.addWidget(self.SendButton_9) self.verticalLayout_5.addLayout(self.horizontalLayout_10) - self.horizontalLayout_11 = QtGui.QHBoxLayout() - self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11")) - self.itemLabelTextBrowser_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_10.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_10.setSizePolicy(sizePolicy) + self.horizontalLayout_11 = QtWidgets.QHBoxLayout() + self.horizontalLayout_11.setObjectName("horizontalLayout_11") + self.itemLabelTextBrowser_10 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_10.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_10.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_10.setObjectName(_fromUtf8("itemLabelTextBrowser_10")) + self.itemLabelTextBrowser_10.setReadOnly(True) + self.itemLabelTextBrowser_10.setObjectName("itemLabelTextBrowser_10") self.horizontalLayout_11.addWidget(self.itemLabelTextBrowser_10) - self.SendButton_10 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_10 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_10.sizePolicy().hasHeightForWidth()) self.SendButton_10.setSizePolicy(sizePolicy) self.SendButton_10.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_10.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_10.setObjectName(_fromUtf8("SendButton_10")) + self.SendButton_10.setObjectName("SendButton_10") self.horizontalLayout_11.addWidget(self.SendButton_10) self.verticalLayout_5.addLayout(self.horizontalLayout_11) - self.horizontalLayout_12 = QtGui.QHBoxLayout() - self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) - self.itemLabelTextBrowser_11 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_11.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_11.setSizePolicy(sizePolicy) + self.horizontalLayout_12 = QtWidgets.QHBoxLayout() + self.horizontalLayout_12.setObjectName("horizontalLayout_12") + self.itemLabelTextBrowser_11 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_11.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_11.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_11.setObjectName(_fromUtf8("itemLabelTextBrowser_11")) + self.itemLabelTextBrowser_11.setReadOnly(True) + self.itemLabelTextBrowser_11.setObjectName("itemLabelTextBrowser_11") self.horizontalLayout_12.addWidget(self.itemLabelTextBrowser_11) - self.SendButton_11 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_11 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_11.sizePolicy().hasHeightForWidth()) self.SendButton_11.setSizePolicy(sizePolicy) self.SendButton_11.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_11.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_11.setObjectName(_fromUtf8("SendButton_11")) + self.SendButton_11.setObjectName("SendButton_11") self.horizontalLayout_12.addWidget(self.SendButton_11) self.verticalLayout_5.addLayout(self.horizontalLayout_12) - self.horizontalLayout_13 = QtGui.QHBoxLayout() - self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) - self.itemLabelTextBrowser_12 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_12.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_12.setSizePolicy(sizePolicy) + self.horizontalLayout_13 = QtWidgets.QHBoxLayout() + self.horizontalLayout_13.setObjectName("horizontalLayout_13") + self.itemLabelTextBrowser_12 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_12.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_12.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_12.setObjectName(_fromUtf8("itemLabelTextBrowser_12")) + self.itemLabelTextBrowser_12.setReadOnly(True) + self.itemLabelTextBrowser_12.setObjectName("itemLabelTextBrowser_12") self.horizontalLayout_13.addWidget(self.itemLabelTextBrowser_12) - self.SendButton_12 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_12 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_12.sizePolicy().hasHeightForWidth()) self.SendButton_12.setSizePolicy(sizePolicy) self.SendButton_12.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_12.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_12.setObjectName(_fromUtf8("SendButton_12")) + self.SendButton_12.setObjectName("SendButton_12") self.horizontalLayout_13.addWidget(self.SendButton_12) self.verticalLayout_5.addLayout(self.horizontalLayout_13) - self.horizontalLayout_14 = QtGui.QHBoxLayout() - self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14")) - self.itemLabelTextBrowser_13 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_13.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_13.setSizePolicy(sizePolicy) + self.horizontalLayout_14 = QtWidgets.QHBoxLayout() + self.horizontalLayout_14.setObjectName("horizontalLayout_14") + self.itemLabelTextBrowser_13 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_13.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_13.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_13.setObjectName(_fromUtf8("itemLabelTextBrowser_13")) + self.itemLabelTextBrowser_13.setReadOnly(True) + self.itemLabelTextBrowser_13.setObjectName("itemLabelTextBrowser_13") self.horizontalLayout_14.addWidget(self.itemLabelTextBrowser_13) - self.SendButton_13 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_13 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_13.sizePolicy().hasHeightForWidth()) self.SendButton_13.setSizePolicy(sizePolicy) self.SendButton_13.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_13.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_13.setObjectName(_fromUtf8("SendButton_13")) + self.SendButton_13.setObjectName("SendButton_13") self.horizontalLayout_14.addWidget(self.SendButton_13) self.verticalLayout_5.addLayout(self.horizontalLayout_14) - self.horizontalLayout_15 = QtGui.QHBoxLayout() - self.horizontalLayout_15.setObjectName(_fromUtf8("horizontalLayout_15")) - self.itemLabelTextBrowser_14 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_14.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_14.setSizePolicy(sizePolicy) + self.horizontalLayout_15 = QtWidgets.QHBoxLayout() + self.horizontalLayout_15.setObjectName("horizontalLayout_15") + self.itemLabelTextBrowser_14 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_14.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_14.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_14.setObjectName(_fromUtf8("itemLabelTextBrowser_14")) + self.itemLabelTextBrowser_14.setReadOnly(True) + self.itemLabelTextBrowser_14.setObjectName("itemLabelTextBrowser_14") self.horizontalLayout_15.addWidget(self.itemLabelTextBrowser_14) - self.SendButton_14 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_14 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_14.sizePolicy().hasHeightForWidth()) self.SendButton_14.setSizePolicy(sizePolicy) self.SendButton_14.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_14.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_14.setObjectName(_fromUtf8("SendButton_14")) + self.SendButton_14.setObjectName("SendButton_14") self.horizontalLayout_15.addWidget(self.SendButton_14) self.verticalLayout_5.addLayout(self.horizontalLayout_15) - self.horizontalLayout_16 = QtGui.QHBoxLayout() - self.horizontalLayout_16.setObjectName(_fromUtf8("horizontalLayout_16")) - self.itemLabelTextBrowser_15 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_15.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_15.setSizePolicy(sizePolicy) + self.horizontalLayout_16 = QtWidgets.QHBoxLayout() + self.horizontalLayout_16.setObjectName("horizontalLayout_16") + self.itemLabelTextBrowser_15 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_15.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_15.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_15.setObjectName(_fromUtf8("itemLabelTextBrowser_15")) + self.itemLabelTextBrowser_15.setReadOnly(True) + self.itemLabelTextBrowser_15.setObjectName("itemLabelTextBrowser_15") self.horizontalLayout_16.addWidget(self.itemLabelTextBrowser_15) - self.SendButton_15 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_15 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_15.sizePolicy().hasHeightForWidth()) self.SendButton_15.setSizePolicy(sizePolicy) self.SendButton_15.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_15.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_15.setObjectName(_fromUtf8("SendButton_15")) + self.SendButton_15.setObjectName("SendButton_15") self.horizontalLayout_16.addWidget(self.SendButton_15) self.verticalLayout_5.addLayout(self.horizontalLayout_16) - self.horizontalLayout_17 = QtGui.QHBoxLayout() - self.horizontalLayout_17.setObjectName(_fromUtf8("horizontalLayout_17")) - self.itemLabelTextBrowser_16 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_16.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_16.setSizePolicy(sizePolicy) + self.horizontalLayout_17 = QtWidgets.QHBoxLayout() + self.horizontalLayout_17.setObjectName("horizontalLayout_17") + self.itemLabelTextBrowser_16 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_16.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_16.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_16.setObjectName(_fromUtf8("itemLabelTextBrowser_16")) + self.itemLabelTextBrowser_16.setReadOnly(True) + self.itemLabelTextBrowser_16.setObjectName("itemLabelTextBrowser_16") self.horizontalLayout_17.addWidget(self.itemLabelTextBrowser_16) - self.SendButton_16 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_16 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_16.sizePolicy().hasHeightForWidth()) self.SendButton_16.setSizePolicy(sizePolicy) self.SendButton_16.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_16.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_16.setObjectName(_fromUtf8("SendButton_16")) + self.SendButton_16.setObjectName("SendButton_16") self.horizontalLayout_17.addWidget(self.SendButton_16) self.verticalLayout_5.addLayout(self.horizontalLayout_17) - self.horizontalLayout_18 = QtGui.QHBoxLayout() - self.horizontalLayout_18.setObjectName(_fromUtf8("horizontalLayout_18")) - self.itemLabelTextBrowser_17 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_17.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_17.setSizePolicy(sizePolicy) + self.horizontalLayout_18 = QtWidgets.QHBoxLayout() + self.horizontalLayout_18.setObjectName("horizontalLayout_18") + self.itemLabelTextBrowser_17 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_17.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_17.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_17.setObjectName(_fromUtf8("itemLabelTextBrowser_17")) + self.itemLabelTextBrowser_17.setReadOnly(True) + self.itemLabelTextBrowser_17.setObjectName("itemLabelTextBrowser_17") self.horizontalLayout_18.addWidget(self.itemLabelTextBrowser_17) - self.SendButton_17 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_17 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_17.sizePolicy().hasHeightForWidth()) self.SendButton_17.setSizePolicy(sizePolicy) self.SendButton_17.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_17.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_17.setObjectName(_fromUtf8("SendButton_17")) + self.SendButton_17.setObjectName("SendButton_17") self.horizontalLayout_18.addWidget(self.SendButton_17) self.verticalLayout_5.addLayout(self.horizontalLayout_18) - self.horizontalLayout_19 = QtGui.QHBoxLayout() - self.horizontalLayout_19.setObjectName(_fromUtf8("horizontalLayout_19")) - self.itemLabelTextBrowser_18 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_18.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_18.setSizePolicy(sizePolicy) + self.horizontalLayout_19 = QtWidgets.QHBoxLayout() + self.horizontalLayout_19.setObjectName("horizontalLayout_19") + self.itemLabelTextBrowser_18 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_18.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_18.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_18.setObjectName(_fromUtf8("itemLabelTextBrowser_18")) + self.itemLabelTextBrowser_18.setReadOnly(True) + self.itemLabelTextBrowser_18.setObjectName("itemLabelTextBrowser_18") self.horizontalLayout_19.addWidget(self.itemLabelTextBrowser_18) - self.SendButton_18 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_18 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_18.sizePolicy().hasHeightForWidth()) self.SendButton_18.setSizePolicy(sizePolicy) self.SendButton_18.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_18.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_18.setObjectName(_fromUtf8("SendButton_18")) + self.SendButton_18.setObjectName("SendButton_18") self.horizontalLayout_19.addWidget(self.SendButton_18) self.verticalLayout_5.addLayout(self.horizontalLayout_19) - self.horizontalLayout_20 = QtGui.QHBoxLayout() - self.horizontalLayout_20.setObjectName(_fromUtf8("horizontalLayout_20")) - self.itemLabelTextBrowser_19 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_19.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_19.setSizePolicy(sizePolicy) + self.horizontalLayout_20 = QtWidgets.QHBoxLayout() + self.horizontalLayout_20.setObjectName("horizontalLayout_20") + self.itemLabelTextBrowser_19 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_19.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_19.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_19.setObjectName(_fromUtf8("itemLabelTextBrowser_19")) + self.itemLabelTextBrowser_19.setReadOnly(True) + self.itemLabelTextBrowser_19.setObjectName("itemLabelTextBrowser_19") self.horizontalLayout_20.addWidget(self.itemLabelTextBrowser_19) - self.SendButton_19 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_19 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_19.sizePolicy().hasHeightForWidth()) self.SendButton_19.setSizePolicy(sizePolicy) self.SendButton_19.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_19.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_19.setObjectName(_fromUtf8("SendButton_19")) + self.SendButton_19.setObjectName("SendButton_19") self.horizontalLayout_20.addWidget(self.SendButton_19) self.verticalLayout_5.addLayout(self.horizontalLayout_20) - self.horizontalLayout_21 = QtGui.QHBoxLayout() - self.horizontalLayout_21.setObjectName(_fromUtf8("horizontalLayout_21")) - self.itemLabelTextBrowser_20 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_20.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_20.setSizePolicy(sizePolicy) + self.horizontalLayout_21 = QtWidgets.QHBoxLayout() + self.horizontalLayout_21.setObjectName("horizontalLayout_21") + self.itemLabelTextBrowser_20 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_20.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_20.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_20.setObjectName(_fromUtf8("itemLabelTextBrowser_20")) + self.itemLabelTextBrowser_20.setReadOnly(True) + self.itemLabelTextBrowser_20.setObjectName("itemLabelTextBrowser_20") self.horizontalLayout_21.addWidget(self.itemLabelTextBrowser_20) - self.SendButton_20 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_20 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_20.sizePolicy().hasHeightForWidth()) self.SendButton_20.setSizePolicy(sizePolicy) self.SendButton_20.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_20.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_20.setObjectName(_fromUtf8("SendButton_20")) + self.SendButton_20.setObjectName("SendButton_20") self.horizontalLayout_21.addWidget(self.SendButton_20) self.verticalLayout_5.addLayout(self.horizontalLayout_21) - self.horizontalLayout_22 = QtGui.QHBoxLayout() - self.horizontalLayout_22.setObjectName(_fromUtf8("horizontalLayout_22")) - self.itemLabelTextBrowser_21 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_21.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_21.setSizePolicy(sizePolicy) + self.horizontalLayout_22 = QtWidgets.QHBoxLayout() + self.horizontalLayout_22.setObjectName("horizontalLayout_22") + self.itemLabelTextBrowser_21 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_21.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_21.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_21.setObjectName(_fromUtf8("itemLabelTextBrowser_21")) + self.itemLabelTextBrowser_21.setReadOnly(True) + self.itemLabelTextBrowser_21.setObjectName("itemLabelTextBrowser_21") self.horizontalLayout_22.addWidget(self.itemLabelTextBrowser_21) - self.SendButton_21 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_21 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_21.sizePolicy().hasHeightForWidth()) self.SendButton_21.setSizePolicy(sizePolicy) self.SendButton_21.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_21.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_21.setObjectName(_fromUtf8("SendButton_21")) + self.SendButton_21.setObjectName("SendButton_21") self.horizontalLayout_22.addWidget(self.SendButton_21) self.verticalLayout_5.addLayout(self.horizontalLayout_22) - self.horizontalLayout_23 = QtGui.QHBoxLayout() - self.horizontalLayout_23.setObjectName(_fromUtf8("horizontalLayout_23")) - self.itemLabelTextBrowser_22 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_22.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_22.setSizePolicy(sizePolicy) + self.horizontalLayout_23 = QtWidgets.QHBoxLayout() + self.horizontalLayout_23.setObjectName("horizontalLayout_23") + self.itemLabelTextBrowser_22 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_22.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_22.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_22.setObjectName(_fromUtf8("itemLabelTextBrowser_22")) + self.itemLabelTextBrowser_22.setReadOnly(True) + self.itemLabelTextBrowser_22.setObjectName("itemLabelTextBrowser_22") self.horizontalLayout_23.addWidget(self.itemLabelTextBrowser_22) - self.SendButton_22 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_22 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_22.sizePolicy().hasHeightForWidth()) self.SendButton_22.setSizePolicy(sizePolicy) self.SendButton_22.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_22.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_22.setObjectName(_fromUtf8("SendButton_22")) + self.SendButton_22.setObjectName("SendButton_22") self.horizontalLayout_23.addWidget(self.SendButton_22) self.verticalLayout_5.addLayout(self.horizontalLayout_23) - self.horizontalLayout_24 = QtGui.QHBoxLayout() - self.horizontalLayout_24.setObjectName(_fromUtf8("horizontalLayout_24")) - self.itemLabelTextBrowser_23 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_23.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_23.setSizePolicy(sizePolicy) + self.horizontalLayout_24 = QtWidgets.QHBoxLayout() + self.horizontalLayout_24.setObjectName("horizontalLayout_24") + self.itemLabelTextBrowser_23 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_23.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_23.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_23.setObjectName(_fromUtf8("itemLabelTextBrowser_23")) + self.itemLabelTextBrowser_23.setReadOnly(True) + self.itemLabelTextBrowser_23.setObjectName("itemLabelTextBrowser_23") self.horizontalLayout_24.addWidget(self.itemLabelTextBrowser_23) - self.SendButton_23 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_23 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_23.sizePolicy().hasHeightForWidth()) self.SendButton_23.setSizePolicy(sizePolicy) self.SendButton_23.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_23.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_23.setObjectName(_fromUtf8("SendButton_23")) + self.SendButton_23.setObjectName("SendButton_23") self.horizontalLayout_24.addWidget(self.SendButton_23) self.verticalLayout_5.addLayout(self.horizontalLayout_24) - self.horizontalLayout_25 = QtGui.QHBoxLayout() - self.horizontalLayout_25.setObjectName(_fromUtf8("horizontalLayout_25")) - self.itemLabelTextBrowser_24 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_24.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_24.setSizePolicy(sizePolicy) + self.horizontalLayout_25 = QtWidgets.QHBoxLayout() + self.horizontalLayout_25.setObjectName("horizontalLayout_25") + self.itemLabelTextBrowser_24 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_24.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_24.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_24.setObjectName(_fromUtf8("itemLabelTextBrowser_24")) + self.itemLabelTextBrowser_24.setReadOnly(True) + self.itemLabelTextBrowser_24.setObjectName("itemLabelTextBrowser_24") self.horizontalLayout_25.addWidget(self.itemLabelTextBrowser_24) - self.SendButton_24 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_24 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_24.sizePolicy().hasHeightForWidth()) self.SendButton_24.setSizePolicy(sizePolicy) self.SendButton_24.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_24.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_24.setObjectName(_fromUtf8("SendButton_24")) + self.SendButton_24.setObjectName("SendButton_24") self.horizontalLayout_25.addWidget(self.SendButton_24) self.verticalLayout_5.addLayout(self.horizontalLayout_25) - self.horizontalLayout_26 = QtGui.QHBoxLayout() - self.horizontalLayout_26.setObjectName(_fromUtf8("horizontalLayout_26")) - self.itemLabelTextBrowser_25 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_25.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_25.setSizePolicy(sizePolicy) + self.horizontalLayout_26 = QtWidgets.QHBoxLayout() + self.horizontalLayout_26.setObjectName("horizontalLayout_26") + self.itemLabelTextBrowser_25 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) self.itemLabelTextBrowser_25.setMinimumSize(QtCore.QSize(391, 31)) self.itemLabelTextBrowser_25.setMaximumSize(QtCore.QSize(1234, 31)) - self.itemLabelTextBrowser_25.setObjectName(_fromUtf8("itemLabelTextBrowser_25")) + self.itemLabelTextBrowser_25.setReadOnly(True) + self.itemLabelTextBrowser_25.setObjectName("itemLabelTextBrowser_25") self.horizontalLayout_26.addWidget(self.itemLabelTextBrowser_25) - self.SendButton_25 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.SendButton_25 = QtWidgets.QPushButton(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SendButton_25.sizePolicy().hasHeightForWidth()) self.SendButton_25.setSizePolicy(sizePolicy) self.SendButton_25.setMinimumSize(QtCore.QSize(73, 32)) self.SendButton_25.setMaximumSize(QtCore.QSize(73, 32)) - self.SendButton_25.setObjectName(_fromUtf8("SendButton_25")) + self.SendButton_25.setObjectName("SendButton_25") self.horizontalLayout_26.addWidget(self.SendButton_25) self.verticalLayout_5.addLayout(self.horizontalLayout_26) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_6.addWidget(self.scrollArea) self.retranslateUi(GenericCommandDialog) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), GenericCommandDialog.close) + self.buttonBox.clicked['QAbstractButton*'].connect(GenericCommandDialog.close) QtCore.QMetaObject.connectSlotsByName(GenericCommandDialog) def retranslateUi(self, GenericCommandDialog): - GenericCommandDialog.setWindowTitle(_translate("GenericCommandDialog", "Command Page", None)) - self.subSystemCommandPageLabel.setText(_translate("GenericCommandDialog", "Subsystem", None)) - self.packetIdLabel.setText(_translate("GenericCommandDialog", "Packet ID", None)) - self.label_5.setText(_translate("GenericCommandDialog", "Send To:", None)) - self.label.setText(_translate("GenericCommandDialog", "Command", None)) - self.SendButton_1.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_2.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_3.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_4.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_5.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_6.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_7.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_8.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_9.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_10.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_11.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_12.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_13.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_14.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_15.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_16.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_17.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_18.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_19.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_20.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_21.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_22.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_23.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_24.setText(_translate("GenericCommandDialog", "Send", None)) - self.SendButton_25.setText(_translate("GenericCommandDialog", "Send", None)) - - -if __name__ == "__main__": - import sys - app = QtGui.QApplication(sys.argv) - GenericCommandDialog = QtGui.QWidget() - ui = Ui_GenericCommandDialog() - ui.setupUi(GenericCommandDialog) - GenericCommandDialog.show() - sys.exit(app.exec_()) + _translate = QtCore.QCoreApplication.translate + GenericCommandDialog.setWindowTitle(_translate("GenericCommandDialog", "Command Page")) + self.subSystemCommandPageLabel.setText(_translate("GenericCommandDialog", "Subsystem")) + self.packetIdLabel.setText(_translate("GenericCommandDialog", "Packet ID")) + self.label_5.setText(_translate("GenericCommandDialog", "Send To:")) + self.label.setText(_translate("GenericCommandDialog", "Command")) + self.SendButton_1.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_2.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_3.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_4.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_5.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_6.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_7.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_8.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_9.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_10.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_11.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_12.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_13.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_14.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_15.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_16.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_17.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_18.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_19.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_20.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_21.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_22.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_23.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_24.setText(_translate("GenericCommandDialog", "Send")) + self.SendButton_25.setText(_translate("GenericCommandDialog", "Send")) diff --git a/Subsystems/cmdGui/GenericCommandDialog.ui b/Subsystems/cmdGui/GenericCommandDialog.ui index f2fbd9a..984b4b9 100644 --- a/Subsystems/cmdGui/GenericCommandDialog.ui +++ b/Subsystems/cmdGui/GenericCommandDialog.ui @@ -7,7 +7,7 @@ 0 0 549 - 504 + 1058 @@ -31,13 +31,7 @@ - - - - 0 - 0 - - + 159 @@ -172,7 +166,7 @@ 0 0 - 508 + 515 1000 @@ -186,13 +180,7 @@ - - - - 0 - 0 - - + 391 @@ -205,6 +193,9 @@ 31 + + true + @@ -237,13 +228,7 @@ - - - - 0 - 0 - - + 391 @@ -256,6 +241,9 @@ 31 + + true + @@ -288,13 +276,7 @@ - - - - 0 - 0 - - + 391 @@ -307,6 +289,9 @@ 31 + + true + @@ -339,13 +324,7 @@ - - - - 0 - 0 - - + 391 @@ -358,6 +337,9 @@ 31 + + true + @@ -390,13 +372,7 @@ - - - - 0 - 0 - - + 391 @@ -409,6 +385,9 @@ 31 + + true + @@ -441,13 +420,7 @@ - - - - 0 - 0 - - + 391 @@ -460,6 +433,9 @@ 31 + + true + @@ -492,13 +468,7 @@ - - - - 0 - 0 - - + 391 @@ -511,6 +481,9 @@ 31 + + true + @@ -543,13 +516,7 @@ - - - - 0 - 0 - - + 391 @@ -562,6 +529,9 @@ 31 + + true + @@ -594,13 +564,7 @@ - - - - 0 - 0 - - + 391 @@ -613,6 +577,9 @@ 31 + + true + @@ -645,13 +612,7 @@ - - - - 0 - 0 - - + 391 @@ -664,6 +625,9 @@ 31 + + true + @@ -696,13 +660,7 @@ - - - - 0 - 0 - - + 391 @@ -715,6 +673,9 @@ 31 + + true + @@ -747,13 +708,7 @@ - - - - 0 - 0 - - + 391 @@ -766,6 +721,9 @@ 31 + + true + @@ -798,13 +756,7 @@ - - - - 0 - 0 - - + 391 @@ -817,6 +769,9 @@ 31 + + true + @@ -849,13 +804,7 @@ - - - - 0 - 0 - - + 391 @@ -868,6 +817,9 @@ 31 + + true + @@ -900,13 +852,7 @@ - - - - 0 - 0 - - + 391 @@ -919,6 +865,9 @@ 31 + + true + @@ -951,13 +900,7 @@ - - - - 0 - 0 - - + 391 @@ -970,6 +913,9 @@ 31 + + true + @@ -1002,13 +948,7 @@ - - - - 0 - 0 - - + 391 @@ -1021,6 +961,9 @@ 31 + + true + @@ -1053,13 +996,7 @@ - - - - 0 - 0 - - + 391 @@ -1072,6 +1009,9 @@ 31 + + true + @@ -1104,13 +1044,7 @@ - - - - 0 - 0 - - + 391 @@ -1123,6 +1057,9 @@ 31 + + true + @@ -1155,13 +1092,7 @@ - - - - 0 - 0 - - + 391 @@ -1174,6 +1105,9 @@ 31 + + true + @@ -1206,13 +1140,7 @@ - - - - 0 - 0 - - + 391 @@ -1225,6 +1153,9 @@ 31 + + true + @@ -1257,13 +1188,7 @@ - - - - 0 - 0 - - + 391 @@ -1276,6 +1201,9 @@ 31 + + true + @@ -1308,13 +1236,7 @@ - - - - 0 - 0 - - + 391 @@ -1327,6 +1249,9 @@ 31 + + true + @@ -1359,13 +1284,7 @@ - - - - 0 - 0 - - + 391 @@ -1378,6 +1297,9 @@ 31 + + true + @@ -1410,13 +1332,7 @@ - - - - 0 - 0 - - + 391 @@ -1429,6 +1345,9 @@ 31 + + true + diff --git a/Subsystems/cmdGui/HTMLDocsParser.py b/Subsystems/cmdGui/HTMLDocsParser.py index 300c82b..455f4ad 100644 --- a/Subsystems/cmdGui/HTMLDocsParser.py +++ b/Subsystems/cmdGui/HTMLDocsParser.py @@ -19,8 +19,8 @@ # import sys import csv -import getopt -import subprocess +import getopt +import subprocess import shlex import re import glob @@ -29,149 +29,158 @@ from html.parser import HTMLParser from struct import * + class HTMLDocsParser(HTMLParser): - # - # Initializes allData variable - # - def reset(self): - self.allData = [] - HTMLParser.reset(self) - - # - # Appends HTML file content to allData variable - # - def handle_data(self, text): - if text.strip() != '': # excludes new lines - self.allData.append(text.strip()) - - # - # Determines UNIX data type of parameter - # - def findDataTypeNew(self, dataTypeOrig, paramName, paramLen, paramDesc): - if paramLen != '': # assumes all string types have length enclosed in brackets - return '--string' - elif dataTypeOrig == 'uint8' or dataTypeOrig == 'boolean': - return '--byte' - elif dataTypeOrig == 'uint16': - return '--half' - elif dataTypeOrig == 'uint32': - return '--word' - elif dataTypeOrig == 'uint64': - return '--double' - else: - return '' - - # - # Determines character array size for string types - # - def findStringLen(self, keyword): - hdr_files = glob.glob('../../../build/inc/*.h') - hdr_files += glob.glob('../../../build/cpu1/inc/*.h') - hdr_files += glob.glob('../../../build/native/inc/*.h') - hdr_files += glob.glob('../../fsw/cfe-core/src/inc/cfe_*.h') - val = '' - found = False - i = 0 - - while found == False and i < len(hdr_files): - with open(hdr_files[i], 'r') as hdr_obj: - file_lines = hdr_obj.readlines() - j = 0 - while found == False and j < len(file_lines): - if '#define '+keyword in file_lines[j]: - found = True - val = file_lines[j].split()[2] - j += 1 - i += 1 - - return val + # + # Initializes allData variable + # + def reset(self): + self.allData = [] + HTMLParser.reset(self) + + # + # Appends HTML file content to allData variable + # + def handle_data(self, text): + if text.strip() != '': # excludes new lines + self.allData.append(text.strip()) + + # + # Determines UNIX data type of parameter + # + def findDataTypeNew(self, dataTypeOrig, paramLen): + if paramLen != '': # assumes all string types have length enclosed in brackets + return '--string' + if dataTypeOrig in ('uint8', 'boolean'): + return '--byte' + if dataTypeOrig == 'uint16': + return '--half' + if dataTypeOrig == 'uint32': + return '--word' + if dataTypeOrig == 'uint64': + return '--double' + return '' + + # + # Determines character array size for string types + # + def findStringLen(self, keyword): + hdr_files = glob.glob('../../../build/cpu1/inc/*.h') + hdr_files += glob.glob('../../fsw/cfe-core/src/inc/cfe_*.h') + hdr_files += glob.glob('../../fsw/mission_inc/cfe_mission_cfg.h') + val = '' + found = False + i = 0 + + while not found and i < len(hdr_files): + with open(hdr_files[i]) as hdr_obj: + file_lines = hdr_obj.readlines() + j = 0 + while found == False and j < len(file_lines): + if '#define ' + keyword in file_lines[j]: + found = True + val = file_lines[j].split()[2] + j += 1 + i += 1 + + return val if __name__ == '__main__': - # - # Initializes HTMLDocsParser class - # - parser = HTMLDocsParser() - - # - # Searches for and reads in HTML files - # - file_list = glob.glob('../../docs/cFE UsersGuide/Doxygen/struct_c_f_e__*.html') - - for html_file in file_list: # loops through HTML files - with open(html_file) as file_obj: # opens HTML file - reader = file_obj.read() # reads HTML file - parser.feed(reader) # feeds file contents to parser - data = parser.allData - - dataTypesOrig = [] # uint8, uint16, uint32, char, boolean - paramNames = [] # parameter name - paramLen = [] # original parameter length - paramDesc = [] # parameter description - dataTypesNew = [] # --string, --byte, --half, --word, --double - stringLen = [] # evaluated parameter length - - try: - i = data.index("Data Fields") + 1 - j = data.index("Detailed Description") - while i < j: # iterates through lines between Data Fields and Detailed Description - - # skips header parameters - if 'Header' in data[i+1] or 'Hdr' in data[i+1]: - i += 1 - while 'uint' not in data[i] and 'char' not in data[i] and i < j: - i += 1 - - else: - dataTypesOrig.append(data[i]) # stores data type - i += 1 - paramNames.append(data[i]) # stores parameter name - i += 1 - param_len = '' - if '[' in data[i]: - param_len = data[i] # stores string length if provided - i += 1 - paramLen.append(param_len) - desc_string = '' - while 'uint' not in data[i] and 'char' not in data[i] and i < j: - desc_string = desc_string + ' ' + data[i] - i += 1 - paramDesc.append(desc_string.lstrip()) # stores parameter description - - # determines new data type of parameter - dataTypeNew = parser.findDataTypeNew(dataTypesOrig[-1], paramNames[-1], paramLen[-1], paramDesc[-1]) - dataTypesNew.append(dataTypeNew) - - # finds size of character array if type --string - keyword = '' - if dataTypeNew == '--string': - keyword = re.sub('\[|\]|\(|\)','',paramLen[-1]) # removes brackets - while keyword.isdigit() == False: - keyword = parser.findStringLen(keyword) - keyword = re.sub('\[|\]|\(|\)','',keyword) - if keyword == '0': - keyword = input(paramLen[-1]+' not found. Please enter value manually: ') - stringLen.append(keyword) - - - print ("DATA TYPES:", dataTypesOrig) - print ("PARAM NAMES: ", paramNames) - print ("PARAM STRING LEN:", paramLen) - print ("PARAM DESC: ", paramDesc) - print ("UNIX DATA TYPES:", dataTypesNew) - print ("STRING LENGTH:", stringLen, "\n") - - except ValueError: - print ("Data Fields not found in HTML file") - - # write data to a file - file_split = re.split('/|\.', html_file) - pickle_file = 'ParameterFiles/'+file_split[-2] - with open(pickle_file,'wb') as pickle_obj: - pickle.dump([dataTypesOrig, paramNames, paramLen, paramDesc, dataTypesNew, stringLen], pickle_obj) - - # resets data list for next HTML file - parser.allData = [] - + # + # Initializes HTMLDocsParser class + # + parser = HTMLDocsParser() + + # + # Searches for and reads in HTML files + # + file_list = glob.glob( + '../../docs/cFE UsersGuide/Doxygen/struct_c_f_e__*.html') + + for html_file in file_list: # loops through HTML files + with open(html_file) as file_obj: # opens HTML file + reader = file_obj.read() # reads HTML file + parser.feed(reader) # feeds file contents to parser + data = parser.allData + + dataTypesOrig = [] # uint8, uint16, uint32, char, boolean + paramNames = [] # parameter name + paramLen = [] # original parameter length + paramDesc = [] # parameter description + dataTypesNew = [] # --string, --byte, --half, --word, --double + stringLen = [] # evaluated parameter length + + try: + i = data.index("Data Fields") + 1 + j = data.index("Detailed Description") + while i < j: # iterates through lines between Data Fields and Detailed Description + + # skips header parameters + if 'Header' in data[i + 1] or 'Hdr' in data[i + 1]: + i += 1 + while 'uint' not in data[i] and 'char' not in data[ + i] and i < j: + i += 1 + + else: + dataTypesOrig.append(data[i]) # stores data type + i += 1 + paramNames.append(data[i]) # stores parameter name + i += 1 + param_len = '' + if '[' in data[i]: + param_len = data[ + i] # stores string length if provided + i += 1 + paramLen.append(param_len) + desc_string = '' + while 'uint' not in data[i] and 'char' not in data[ + i] and i < j: + desc_string = desc_string + ' ' + data[i] + i += 1 + paramDesc.append(desc_string.lstrip() + ) # stores parameter description + + # determines new data type of parameter + dataTypeNew = parser.findDataTypeNew( + dataTypesOrig[-1], paramLen[-1]) + dataTypesNew.append(dataTypeNew) + + # finds size of character array if type --string + keyword = '' + if dataTypeNew == '--string': + keyword = re.sub('\[|\]|\(|\)', '', + paramLen[-1]) # removes brackets + while keyword.isdigit() == False: + keyword = parser.findStringLen(keyword) + keyword = re.sub('\[|\]|\(|\)', '', keyword) + if keyword == '0': + keyword = input( + paramLen[-1] + + ' not found. Please enter value manually: ') + stringLen.append(keyword) + + print("DATA TYPES:", dataTypesOrig) + print("PARAM NAMES: ", paramNames) + print("PARAM STRING LEN:", paramLen) + print("PARAM DESC: ", paramDesc) + print("UNIX DATA TYPES:", dataTypesNew) + print("STRING LENGTH:", stringLen, "\n") + + except ValueError: + print("Data Fields not found in HTML file") + + # write data to a file + file_split = re.split('/|\.', html_file) + pickle_file = 'ParameterFiles/' + file_split[-2] + with open(pickle_file, 'wb') as pickle_obj: + pickle.dump([ + dataTypesOrig, paramNames, paramLen, paramDesc, + dataTypesNew, stringLen + ], pickle_obj) + + # resets data list for next HTML file + parser.allData = [] diff --git a/Subsystems/cmdGui/Parameter.py b/Subsystems/cmdGui/Parameter.py index 79244d5..6778075 100644 --- a/Subsystems/cmdGui/Parameter.py +++ b/Subsystems/cmdGui/Parameter.py @@ -17,81 +17,66 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import sys -import csv -import getopt -import subprocess -import shlex -import re +import getopt import pickle +import re +import shlex +import subprocess +import sys +from pathlib import Path + +from PyQt5.QtWidgets import QApplication, QDialog -from PyQt4 import QtGui, QtNetwork -from ParameterDialog import Ui_Dialog -from html.parser import HTMLParser from HTMLDocsParser import HTMLDocsParser -from struct import * +from ParameterDialog import Ui_Dialog + +ROOTDIR = Path(sys.argv[0]).resolve().parent + -class Parameter(QtGui.QDialog): +class Parameter(QDialog, Ui_Dialog): # # Initializes Parameter class # def __init__(self): - QtGui.QDialog.__init__(self) # calls QDialog constructor - self.parser = HTMLDocsParser() # creates instance of HTMLDocsParser class - self.ui = Ui_Dialog() # creates instance of Ui_Dialog class, sets to var ui - self.ui.setupUi(self) # calls setupUi method in Ui_Dialog class to setup UI - self.setWindowTitle("Parameter Dialog") # sets title of dialog box - self.ui.SendButton_1.clicked.connect(self.ProcessSendButton) # connects button to method - - # + super().__init__() + self.setupUi(self) + self.parser = HTMLDocsParser() + self.setWindowTitle("Parameter Dialog") + self.SendButton_1.clicked.connect(self.ProcessSendButton) + + # # Button method # def ProcessSendButton(self): - field1 = self.ui.input_1 - field2 = self.ui.input_2 - field3 = self.ui.input_3 - field4 = self.ui.input_4 - field5 = self.ui.input_5 - field6 = self.ui.input_6 - field7 = self.ui.input_7 - field8 = self.ui.input_8 - field9 = self.ui.input_9 - field10 = self.ui.input_10 - - input1 = str(field1.toPlainText()).strip() - input2 = str(field2.toPlainText()).strip() - input3 = str(field3.toPlainText()).strip() - input4 = str(field4.toPlainText()).strip() - input5 = str(field5.toPlainText()).strip() - input6 = str(field6.toPlainText()).strip() - input7 = str(field7.toPlainText()).strip() - input8 = str(field8.toPlainText()).strip() - input9 = str(field9.toPlainText()).strip() - input10 = str(field10.toPlainText()).strip() - - input_list = [input1, input2, input3, input4, input5, input6, input7, input8, input9, input10] - - i = 0 + input_list = [] + for j in range(1, 11): + inputStr = getattr(self, f"input_{j}") + input_list.append(inputStr.text().strip()) + + k = 0 param_list = [] - while input_list[i] != '': - dataType = dataTypesNew[i] + while input_list[k]: + dataType = dataTypesNew[k] if dataType == '--string': - param_list.append(dataType+'=\"'+stringLen[i]+':'+input_list[i]+'\"') + param_list.append( + f'{dataType}=\"{stringLen[k]}:{input_list[k]}\"') else: - param_list.append(dataType+'='+input_list[i]) # --byte=4 - i += 1 + param_list.append(f'{dataType}={input_list[k]}') # --byte=4 + k += 1 param_string = ' '.join(param_list) - # print param_string - prog = '../cmdUtil/cmdUtil' - launch_string = prog + ' --host=' + pageAddress + ' --port=' + str(pagePort) + ' --pktid=' + str(pagePktId) + ' --endian=' + pageEndian + ' --cmdcode=' + cmdCode + ' ' + param_string.strip() + # print(param_string) + launch_string = ( + f'{ROOTDIR}/../cmdUtil/cmdUtil --host={pageAddress} ' + f'--port={pagePort} --pktid={pagePktId} --endian={pageEndian} ' + f'--cmdcode={cmdCode} {param_string.strip()}') # print launch_string cmd_args = shlex.split(launch_string) subprocess.Popen(cmd_args) - self.ui.status_box.setText('Command sent!') + self.status_box.setText('Command sent!') -# +# # Main method # if __name__ == '__main__': @@ -99,116 +84,68 @@ def ProcessSendButton(self): # # Initializes variables # - subsysTitle = '' - cmdDesc = '' - idx = 0 - pagePktId = 0 + subsysTitle, cmdDesc, pageEndian, pageAddress, cmdCode, params = ( + '' for _ in range(6)) + idx, pagePktId, pagePort = (0 for _ in range(3)) param_file = 'struct_c_f_e___e_s___start_app_cmd__t.html' - pageEndian = '' - pageAddress = '' - pagePort = 0 - cmdCode = '' - params = '' - # # Process command line arguments - # - opts, args = getopt.getopt(sys.argv[1:], "tdihppecf", ["title=", "descrip=", "idx=", "host=", "port=", "pktid=", "endian=", "cmdcode=","file="]) + # + opts, args = getopt.getopt(sys.argv[1:], "tdihppecf", [ + "title=", "descrip=", "idx=", "host=", "port=", "pktid=", "endian=", + "cmdcode=", "file=" + ]) for opt, arg in opts: - if opt in ("-t", "--title"): - subsysTitle = arg # subsystem name, eg Telemetry - elif opt in ("-d", "--descrip"): - cmdDesc = arg # command name, eg No-Op - elif opt in ("-i", "--idx"): - idx = int(arg) # command index in command definition file - elif opt in ("-h", "--host"): - pageAddress = arg # send to address - elif opt in ("-p", "--port"): - pagePort = arg # port number - elif opt in ("-p", "--pktid"): - pagePktId = arg # packet ID - elif opt in ("-e", "--endian"): - pageEndian = arg # LE or BE + if opt in ("-t", "--title"): + subsysTitle = arg # subsystem name, eg Telemetry + elif opt in ("-d", "--descrip"): + cmdDesc = arg # command name, eg No-Op + elif opt in ("-i", "--idx"): + idx = int(arg) # comand index in command definition file + elif opt in ("-h", "--host"): + pageAddress = arg # send to address + elif opt in ("-p", "--port"): + pagePort = arg # port number + elif opt in ("-p", "--pktid"): + pagePktId = arg # packet ID + elif opt in ("-e", "--endian"): + pageEndian = arg # LE or BE elif opt in ("-c", "--cmdcode"): - cmdCode = arg # command code + cmdCode = arg # command code elif opt in ("-f", "--file"): - param_file = arg # parameter definition file - + param_file = arg # parameter definition file # # Initializes QT application and Parameter class # - app = QtGui.QApplication(sys.argv) # creates instance of QtApplication class - param = Parameter() # creates instance of Parameter class - + app = QApplication(sys.argv) # creates instance of QtApplication class + param = Parameter() # creates instance of Parameter class # # Gets parameter information from pickle files # - pickle_file = 'ParameterFiles/' + re.split('\.', param_file)[0] - with open(pickle_file,'rb') as pickle_obj: - dataTypesOrig, paramNames, paramLen, paramDesc, dataTypesNew, stringLen = pickle.load(pickle_obj) + pickle_file = f'{ROOTDIR}/ParameterFiles/' + re.split(r'\.', param_file)[0] + with open(pickle_file, 'rb') as pickle_obj: + dataTypesOrig, paramNames, paramLen, paramDesc, dataTypesNew, stringLen = pickle.load( + pickle_obj) # # Sets text in GUI # - param.ui.subSystemTextBrowser.setText(subsysTitle) # subsystem name - param.ui.commandAddressTextBrowser.setText(cmdDesc+' Command') # command name - - try: - param.ui.paramName_1.setText(paramNames[0]) - param.ui.descrip_1.setText(paramDesc[0]) - except IndexError: - pass - - try: - param.ui.paramName_2.setText(paramNames[1]) - param.ui.descrip_2.setText(paramDesc[1]) - except IndexError: - pass - try: - param.ui.paramName_3.setText(paramNames[2]) - param.ui.descrip_3.setText(paramDesc[2]) - except IndexError: - pass - try: - param.ui.paramName_4.setText(paramNames[3]) - param.ui.descrip_4.setText(paramDesc[3]) - except IndexError: - pass - try: - param.ui.paramName_5.setText(paramNames[4]) - param.ui.descrip_5.setText(paramDesc[4]) - except IndexError: - pass - try: - param.ui.paramName_6.setText(paramNames[5]) - param.ui.descrip_6.setText(paramDesc[5]) - except IndexError: - pass - try: - param.ui.paramName_7.setText(paramNames[6]) - param.ui.descrip_7.setText(paramDesc[6]) - except IndexError: - pass - try: - param.ui.paramName_8.setText(paramNames[7]) - param.ui.descrip_8.setText(paramDesc[7]) - except IndexError: - pass - try: - param.ui.paramName_9.setText(paramNames[8]) - param.ui.descrip_9.setText(paramDesc[8]) - except IndexError: - pass - try: - param.ui.paramName_10.setText(paramNames[9]) - param.ui.descrip_10.setText(paramDesc[9]) - except IndexError: - pass - + param.subSystemTextBrowser.setText(subsysTitle) # subsystem name + param.commandAddressTextBrowser.setText( + f'{cmdDesc} Command') # command name + + for i in range(10): + paramName = getattr(param, f"paramName_{i+1}") + descrip = getattr(param, f"descrip_{i+1}") + try: + paramName.setText(paramNames[i]) + descrip.setText(paramDesc[i]) + except IndexError: + pass # # Displays the dialog @@ -216,4 +153,3 @@ def ProcessSendButton(self): param.show() param.raise_() sys.exit(app.exec_()) - diff --git a/Subsystems/cmdGui/ParameterDialog.py b/Subsystems/cmdGui/ParameterDialog.py index 9c645f9..3644c4e 100644 --- a/Subsystems/cmdGui/ParameterDialog.py +++ b/Subsystems/cmdGui/ParameterDialog.py @@ -1,255 +1,273 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'ParameterDialog.ui' +# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/cmdGui/ParameterDialog.ui' # -# Created: Wed Mar 25 12:38:59 2015 -# by: PyQt4 UI code generator 4.11.3 +# Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) +from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): - Dialog.setObjectName(_fromUtf8("Dialog")) + Dialog.setObjectName("Dialog") Dialog.setEnabled(True) - Dialog.resize(786, 466) - self.label_title = QtGui.QLabel(Dialog) - self.label_title.setGeometry(QtCore.QRect(330, 70, 91, 31)) + Dialog.resize(786, 534) + self.label_title = QtWidgets.QLabel(Dialog) + self.label_title.setGeometry(QtCore.QRect(330, 120, 91, 31)) font = QtGui.QFont() - font.setFamily(_fromUtf8("Sans Serif")) + font.setFamily("Sans Serif") font.setPointSize(10) self.label_title.setFont(font) self.label_title.setAlignment(QtCore.Qt.AlignCenter) - self.label_title.setObjectName(_fromUtf8("label_title")) - self.label_instructions = QtGui.QLabel(Dialog) - self.label_instructions.setGeometry(QtCore.QRect(120, 90, 551, 31)) + self.label_title.setObjectName("label_title") + self.label_instructions = QtWidgets.QLabel(Dialog) + self.label_instructions.setGeometry(QtCore.QRect(120, 140, 551, 31)) self.label_instructions.setAlignment(QtCore.Qt.AlignCenter) - self.label_instructions.setObjectName(_fromUtf8("label_instructions")) - self.buttonBox = QtGui.QDialogButtonBox(Dialog) - self.buttonBox.setGeometry(QtCore.QRect(670, 430, 101, 31)) + self.label_instructions.setObjectName("label_instructions") + self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) + self.buttonBox.setGeometry(QtCore.QRect(670, 490, 101, 31)) self.buttonBox.setLayoutDirection(QtCore.Qt.LeftToRight) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) self.buttonBox.setCenterButtons(True) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) - self.status_box = QtGui.QTextBrowser(Dialog) - self.status_box.setGeometry(QtCore.QRect(480, 30, 201, 41)) + self.buttonBox.setObjectName("buttonBox") + self.status_box = QtWidgets.QTextBrowser(Dialog) + self.status_box.setGeometry(QtCore.QRect(480, 40, 201, 41)) self.status_box.setAutoFillBackground(False) - self.status_box.setObjectName(_fromUtf8("status_box")) - self.label_param_title_2 = QtGui.QLabel(Dialog) - self.label_param_title_2.setGeometry(QtCore.QRect(480, 10, 51, 21)) - font = QtGui.QFont() - font.setFamily(_fromUtf8("Sans Serif")) - font.setPointSize(10) - self.label_param_title_2.setFont(font) - self.label_param_title_2.setObjectName(_fromUtf8("label_param_title_2")) - self.SendButton_1 = QtGui.QPushButton(Dialog) - self.SendButton_1.setGeometry(QtCore.QRect(690, 40, 71, 27)) - self.SendButton_1.setObjectName(_fromUtf8("SendButton_1")) - self.label_5 = QtGui.QLabel(Dialog) + self.status_box.setObjectName("status_box") + self.label_param_title_2 = QtWidgets.QLabel(Dialog) + self.label_param_title_2.setGeometry(QtCore.QRect(480, 10, 61, 21)) + self.label_param_title_2.setObjectName("label_param_title_2") + self.SendButton_1 = QtWidgets.QPushButton(Dialog) + self.SendButton_1.setGeometry(QtCore.QRect(690, 47, 71, 27)) + self.SendButton_1.setAutoDefault(False) + self.SendButton_1.setDefault(True) + self.SendButton_1.setObjectName("SendButton_1") + self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setGeometry(QtCore.QRect(260, 10, 81, 20)) - self.label_5.setObjectName(_fromUtf8("label_5")) - self.subSystemCommandPageLabel = QtGui.QLabel(Dialog) - self.subSystemCommandPageLabel.setGeometry(QtCore.QRect(30, 10, 91, 17)) - self.subSystemCommandPageLabel.setObjectName(_fromUtf8("subSystemCommandPageLabel")) - self.subSystemTextBrowser = QtGui.QTextBrowser(Dialog) - self.subSystemTextBrowser.setGeometry(QtCore.QRect(30, 30, 221, 41)) - self.subSystemTextBrowser.setObjectName(_fromUtf8("subSystemTextBrowser")) - self.commandAddressTextBrowser = QtGui.QTextBrowser(Dialog) - self.commandAddressTextBrowser.setGeometry(QtCore.QRect(260, 30, 211, 41)) - self.commandAddressTextBrowser.setObjectName(_fromUtf8("commandAddressTextBrowser")) - self.scrollArea_2 = QtGui.QScrollArea(Dialog) - self.scrollArea_2.setGeometry(QtCore.QRect(20, 120, 741, 301)) + self.label_5.setObjectName("label_5") + self.subSystemCommandPageLabel = QtWidgets.QLabel(Dialog) + self.subSystemCommandPageLabel.setGeometry(QtCore.QRect(30, 10, 91, 24)) + self.subSystemCommandPageLabel.setObjectName("subSystemCommandPageLabel") + self.subSystemTextBrowser = QtWidgets.QTextBrowser(Dialog) + self.subSystemTextBrowser.setGeometry(QtCore.QRect(30, 40, 221, 41)) + self.subSystemTextBrowser.setObjectName("subSystemTextBrowser") + self.commandAddressTextBrowser = QtWidgets.QTextBrowser(Dialog) + self.commandAddressTextBrowser.setGeometry(QtCore.QRect(260, 40, 211, 41)) + self.commandAddressTextBrowser.setObjectName("commandAddressTextBrowser") + self.scrollArea_2 = QtWidgets.QScrollArea(Dialog) + self.scrollArea_2.setGeometry(QtCore.QRect(20, 180, 741, 301)) self.scrollArea_2.setMinimumSize(QtCore.QSize(0, 0)) self.scrollArea_2.setBaseSize(QtCore.QSize(0, 500)) - self.scrollArea_2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) - self.scrollArea_2.setWidgetResizable(True) - self.scrollArea_2.setObjectName(_fromUtf8("scrollArea_2")) - self.scrollAreaWidgetContents_2 = QtGui.QWidget() - self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 724, 1000)) + self.scrollArea_2.setObjectName("scrollArea_2") + self.scrollAreaWidgetContents_2 = QtWidgets.QWidget() + self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 725, 1000)) self.scrollAreaWidgetContents_2.setMinimumSize(QtCore.QSize(0, 1000)) - self.scrollAreaWidgetContents_2.setObjectName(_fromUtf8("scrollAreaWidgetContents_2")) - self.input_2 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_2.setGeometry(QtCore.QRect(440, 80, 271, 41)) - self.input_2.setObjectName(_fromUtf8("input_2")) - self.descrip_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2") + self.descrip_1 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_1.setGeometry(QtCore.QRect(150, 30, 281, 41)) + self.descrip_1.setMinimumSize(QtCore.QSize(281, 41)) + self.descrip_1.setMaximumSize(QtCore.QSize(300, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_1.setFont(font) - self.descrip_1.setObjectName(_fromUtf8("descrip_1")) - self.label_input_title_2 = QtGui.QLabel(self.scrollAreaWidgetContents_2) + self.descrip_1.setObjectName("descrip_1") + self.label_input_title_2 = QtWidgets.QLabel(self.scrollAreaWidgetContents_2) self.label_input_title_2.setGeometry(QtCore.QRect(440, 10, 91, 21)) font = QtGui.QFont() - font.setFamily(_fromUtf8("Sans Serif")) + font.setFamily("Sans Serif") font.setPointSize(10) self.label_input_title_2.setFont(font) - self.label_input_title_2.setObjectName(_fromUtf8("label_input_title_2")) - self.input_5 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_5.setGeometry(QtCore.QRect(440, 230, 271, 41)) - self.input_5.setObjectName(_fromUtf8("input_5")) - self.label_param_title_3 = QtGui.QLabel(self.scrollAreaWidgetContents_2) + self.label_input_title_2.setObjectName("label_input_title_2") + self.label_param_title_3 = QtWidgets.QLabel(self.scrollAreaWidgetContents_2) self.label_param_title_3.setGeometry(QtCore.QRect(10, 10, 111, 21)) font = QtGui.QFont() - font.setFamily(_fromUtf8("Sans Serif")) + font.setFamily("Sans Serif") font.setPointSize(10) self.label_param_title_3.setFont(font) - self.label_param_title_3.setObjectName(_fromUtf8("label_param_title_3")) - self.label_descrip_2 = QtGui.QLabel(self.scrollAreaWidgetContents_2) + self.label_param_title_3.setObjectName("label_param_title_3") + self.label_descrip_2 = QtWidgets.QLabel(self.scrollAreaWidgetContents_2) self.label_descrip_2.setGeometry(QtCore.QRect(150, 10, 111, 21)) font = QtGui.QFont() - font.setFamily(_fromUtf8("Sans Serif")) + font.setFamily("Sans Serif") font.setPointSize(10) self.label_descrip_2.setFont(font) - self.label_descrip_2.setObjectName(_fromUtf8("label_descrip_2")) - self.input_1 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_1.setGeometry(QtCore.QRect(440, 30, 271, 41)) - self.input_1.setObjectName(_fromUtf8("input_1")) - self.paramName_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_1.setGeometry(QtCore.QRect(10, 30, 131, 41)) - self.paramName_1.setObjectName(_fromUtf8("paramName_1")) - self.input_3 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_3.setGeometry(QtCore.QRect(440, 130, 271, 41)) - self.input_3.setObjectName(_fromUtf8("input_3")) - self.input_4 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_4.setGeometry(QtCore.QRect(440, 180, 271, 41)) - self.input_4.setObjectName(_fromUtf8("input_4")) - self.input_6 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_6.setGeometry(QtCore.QRect(440, 280, 271, 41)) - self.input_6.setObjectName(_fromUtf8("input_6")) - self.input_7 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_7.setGeometry(QtCore.QRect(440, 330, 271, 41)) - self.input_7.setObjectName(_fromUtf8("input_7")) - self.input_8 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_8.setGeometry(QtCore.QRect(440, 380, 271, 41)) - self.input_8.setObjectName(_fromUtf8("input_8")) - self.input_9 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) - self.input_9.setGeometry(QtCore.QRect(440, 430, 271, 41)) - self.input_9.setObjectName(_fromUtf8("input_9")) - self.paramName_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_2.setGeometry(QtCore.QRect(10, 80, 131, 41)) - self.paramName_2.setObjectName(_fromUtf8("paramName_2")) - self.descrip_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.label_descrip_2.setObjectName("label_descrip_2") + self.descrip_2 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_2.setGeometry(QtCore.QRect(150, 80, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_2.setFont(font) - self.descrip_2.setObjectName(_fromUtf8("descrip_2")) - self.descrip_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_2.setObjectName("descrip_2") + self.descrip_3 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_3.setGeometry(QtCore.QRect(150, 130, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_3.setFont(font) - self.descrip_3.setObjectName(_fromUtf8("descrip_3")) - self.paramName_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_3.setGeometry(QtCore.QRect(10, 130, 131, 41)) - self.paramName_3.setObjectName(_fromUtf8("paramName_3")) - self.paramName_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_4.setGeometry(QtCore.QRect(10, 180, 131, 41)) - self.paramName_4.setObjectName(_fromUtf8("paramName_4")) - self.descrip_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_3.setObjectName("descrip_3") + self.descrip_4 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_4.setGeometry(QtCore.QRect(150, 180, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_4.setFont(font) - self.descrip_4.setObjectName(_fromUtf8("descrip_4")) - self.descrip_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_4.setObjectName("descrip_4") + self.descrip_5 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_5.setGeometry(QtCore.QRect(150, 230, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_5.setFont(font) - self.descrip_5.setObjectName(_fromUtf8("descrip_5")) - self.paramName_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_5.setGeometry(QtCore.QRect(10, 230, 131, 41)) - self.paramName_5.setObjectName(_fromUtf8("paramName_5")) - self.descrip_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_5.setObjectName("descrip_5") + self.descrip_6 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_6.setGeometry(QtCore.QRect(150, 280, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_6.setFont(font) - self.descrip_6.setObjectName(_fromUtf8("descrip_6")) - self.paramName_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_6.setGeometry(QtCore.QRect(10, 280, 131, 41)) - self.paramName_6.setObjectName(_fromUtf8("paramName_6")) - self.descrip_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_6.setObjectName("descrip_6") + self.descrip_7 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_7.setGeometry(QtCore.QRect(150, 330, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_7.setFont(font) - self.descrip_7.setObjectName(_fromUtf8("descrip_7")) - self.paramName_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_7.setGeometry(QtCore.QRect(10, 330, 131, 41)) - self.paramName_7.setObjectName(_fromUtf8("paramName_7")) - self.paramName_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_8.setGeometry(QtCore.QRect(10, 380, 131, 41)) - self.paramName_8.setObjectName(_fromUtf8("paramName_8")) - self.descrip_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_7.setObjectName("descrip_7") + self.descrip_8 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_8.setGeometry(QtCore.QRect(150, 380, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_8.setFont(font) - self.descrip_8.setObjectName(_fromUtf8("descrip_8")) - self.paramName_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_9.setGeometry(QtCore.QRect(10, 430, 131, 41)) - self.paramName_9.setObjectName(_fromUtf8("paramName_9")) - self.descrip_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_8.setObjectName("descrip_8") + self.descrip_9 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_9.setGeometry(QtCore.QRect(150, 430, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_9.setFont(font) - self.descrip_9.setObjectName(_fromUtf8("descrip_9")) - self.descrip_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) + self.descrip_9.setObjectName("descrip_9") + self.descrip_10 = QtWidgets.QTextBrowser(self.scrollAreaWidgetContents_2) self.descrip_10.setGeometry(QtCore.QRect(150, 480, 281, 41)) font = QtGui.QFont() font.setPointSize(8) self.descrip_10.setFont(font) - self.descrip_10.setObjectName(_fromUtf8("descrip_10")) - self.paramName_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents_2) - self.paramName_10.setGeometry(QtCore.QRect(10, 480, 131, 41)) - self.paramName_10.setObjectName(_fromUtf8("paramName_10")) - self.input_10 = QtGui.QTextEdit(self.scrollAreaWidgetContents_2) + self.descrip_10.setObjectName("descrip_10") + self.input_1 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_1.setGeometry(QtCore.QRect(440, 30, 271, 41)) + self.input_1.setObjectName("input_1") + self.input_2 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_2.setGeometry(QtCore.QRect(440, 80, 271, 41)) + self.input_2.setObjectName("input_2") + self.input_3 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_3.setGeometry(QtCore.QRect(440, 130, 271, 41)) + self.input_3.setObjectName("input_3") + self.input_4 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_4.setGeometry(QtCore.QRect(440, 180, 271, 41)) + self.input_4.setObjectName("input_4") + self.input_5 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_5.setGeometry(QtCore.QRect(440, 230, 271, 41)) + self.input_5.setObjectName("input_5") + self.input_6 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_6.setGeometry(QtCore.QRect(440, 280, 271, 41)) + self.input_6.setObjectName("input_6") + self.input_7 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_7.setGeometry(QtCore.QRect(440, 330, 271, 41)) + self.input_7.setObjectName("input_7") + self.input_8 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_8.setGeometry(QtCore.QRect(440, 380, 271, 41)) + self.input_8.setObjectName("input_8") + self.input_9 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.input_9.setGeometry(QtCore.QRect(440, 430, 271, 41)) + self.input_9.setObjectName("input_9") + self.input_10 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) self.input_10.setGeometry(QtCore.QRect(440, 480, 271, 41)) - self.input_10.setObjectName(_fromUtf8("input_10")) + self.input_10.setObjectName("input_10") + self.paramName_1 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_1.setGeometry(QtCore.QRect(10, 30, 131, 41)) + self.paramName_1.setReadOnly(True) + self.paramName_1.setObjectName("paramName_1") + self.paramName_2 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_2.setGeometry(QtCore.QRect(10, 80, 131, 41)) + self.paramName_2.setReadOnly(True) + self.paramName_2.setObjectName("paramName_2") + self.paramName_3 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_3.setGeometry(QtCore.QRect(10, 130, 131, 41)) + self.paramName_3.setReadOnly(True) + self.paramName_3.setObjectName("paramName_3") + self.paramName_4 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_4.setGeometry(QtCore.QRect(10, 180, 131, 41)) + self.paramName_4.setReadOnly(True) + self.paramName_4.setObjectName("paramName_4") + self.paramName_5 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_5.setGeometry(QtCore.QRect(10, 230, 131, 41)) + self.paramName_5.setReadOnly(True) + self.paramName_5.setObjectName("paramName_5") + self.paramName_6 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_6.setGeometry(QtCore.QRect(10, 280, 131, 41)) + self.paramName_6.setReadOnly(True) + self.paramName_6.setObjectName("paramName_6") + self.paramName_7 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_7.setGeometry(QtCore.QRect(10, 330, 131, 41)) + self.paramName_7.setReadOnly(True) + self.paramName_7.setObjectName("paramName_7") + self.paramName_8 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_8.setGeometry(QtCore.QRect(10, 380, 131, 41)) + self.paramName_8.setReadOnly(True) + self.paramName_8.setObjectName("paramName_8") + self.paramName_9 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_9.setGeometry(QtCore.QRect(10, 430, 131, 41)) + self.paramName_9.setReadOnly(True) + self.paramName_9.setObjectName("paramName_9") + self.paramName_10 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents_2) + self.paramName_10.setGeometry(QtCore.QRect(10, 480, 131, 41)) + self.paramName_10.setReadOnly(True) + self.paramName_10.setObjectName("paramName_10") self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_2) self.retranslateUi(Dialog) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), Dialog.close) + self.buttonBox.clicked['QAbstractButton*'].connect(Dialog.close) QtCore.QMetaObject.connectSlotsByName(Dialog) + Dialog.setTabOrder(self.input_1, self.input_2) + Dialog.setTabOrder(self.input_2, self.input_3) + Dialog.setTabOrder(self.input_3, self.input_4) + Dialog.setTabOrder(self.input_4, self.input_5) + Dialog.setTabOrder(self.input_5, self.input_6) + Dialog.setTabOrder(self.input_6, self.input_7) + Dialog.setTabOrder(self.input_7, self.input_8) + Dialog.setTabOrder(self.input_8, self.input_9) + Dialog.setTabOrder(self.input_9, self.input_10) + Dialog.setTabOrder(self.input_10, self.descrip_4) + Dialog.setTabOrder(self.descrip_4, self.descrip_5) + Dialog.setTabOrder(self.descrip_5, self.descrip_2) + Dialog.setTabOrder(self.descrip_2, self.descrip_6) + Dialog.setTabOrder(self.descrip_6, self.descrip_7) + Dialog.setTabOrder(self.descrip_7, self.descrip_8) + Dialog.setTabOrder(self.descrip_8, self.descrip_9) + Dialog.setTabOrder(self.descrip_9, self.descrip_10) + Dialog.setTabOrder(self.descrip_10, self.status_box) + Dialog.setTabOrder(self.status_box, self.SendButton_1) + Dialog.setTabOrder(self.SendButton_1, self.subSystemTextBrowser) + Dialog.setTabOrder(self.subSystemTextBrowser, self.commandAddressTextBrowser) + Dialog.setTabOrder(self.commandAddressTextBrowser, self.scrollArea_2) + Dialog.setTabOrder(self.scrollArea_2, self.descrip_1) + Dialog.setTabOrder(self.descrip_1, self.descrip_3) + Dialog.setTabOrder(self.descrip_3, self.paramName_1) + Dialog.setTabOrder(self.paramName_1, self.paramName_2) + Dialog.setTabOrder(self.paramName_2, self.paramName_3) + Dialog.setTabOrder(self.paramName_3, self.paramName_4) + Dialog.setTabOrder(self.paramName_4, self.paramName_5) + Dialog.setTabOrder(self.paramName_5, self.paramName_6) + Dialog.setTabOrder(self.paramName_6, self.paramName_7) + Dialog.setTabOrder(self.paramName_7, self.paramName_8) + Dialog.setTabOrder(self.paramName_8, self.paramName_9) + Dialog.setTabOrder(self.paramName_9, self.paramName_10) def retranslateUi(self, Dialog): - Dialog.setWindowTitle(_translate("Dialog", "Dialog", None)) - self.label_title.setText(_translate("Dialog", "Parameters", None)) - self.label_instructions.setText(_translate("Dialog", "Please enter the following parameters then click \'Send\':", None)) - self.label_param_title_2.setText(_translate("Dialog", "Status:", None)) - self.SendButton_1.setText(_translate("Dialog", "Send", None)) - self.label_5.setText(_translate("Dialog", "Command:", None)) - self.subSystemCommandPageLabel.setText(_translate("Dialog", "Subsystem:", None)) - self.label_input_title_2.setText(_translate("Dialog", "Input", None)) - self.label_param_title_3.setText(_translate("Dialog", "Parameter", None)) - self.label_descrip_2.setText(_translate("Dialog", "Description", None)) - - -if __name__ == "__main__": - import sys - app = QtGui.QApplication(sys.argv) - Dialog = QtGui.QDialog() - ui = Ui_Dialog() - ui.setupUi(Dialog) - Dialog.show() - sys.exit(app.exec_()) + _translate = QtCore.QCoreApplication.translate + Dialog.setWindowTitle(_translate("Dialog", "Dialog")) + self.label_title.setText(_translate("Dialog", "Parameters")) + self.label_instructions.setText(_translate("Dialog", "Please enter the following parameters then click \'Send\':")) + self.label_param_title_2.setText(_translate("Dialog", "Status:")) + self.SendButton_1.setText(_translate("Dialog", "Send")) + self.label_5.setText(_translate("Dialog", "Command:")) + self.subSystemCommandPageLabel.setText(_translate("Dialog", "Subsystem:")) + self.label_input_title_2.setText(_translate("Dialog", "Input")) + self.label_param_title_3.setText(_translate("Dialog", "Parameter")) + self.label_descrip_2.setText(_translate("Dialog", "Description")) diff --git a/Subsystems/cmdGui/ParameterDialog.ui b/Subsystems/cmdGui/ParameterDialog.ui index c269c2e..3998ce8 100644 --- a/Subsystems/cmdGui/ParameterDialog.ui +++ b/Subsystems/cmdGui/ParameterDialog.ui @@ -10,7 +10,7 @@ 0 0 786 - 466 + 534 @@ -20,7 +20,7 @@ 330 - 70 + 120 91 31 @@ -42,7 +42,7 @@ 120 - 90 + 140 551 31 @@ -58,7 +58,7 @@ 670 - 430 + 490 101 31 @@ -80,7 +80,7 @@ 480 - 30 + 40 201 41 @@ -94,16 +94,10 @@ 480 10 - 51 + 61 21 - - - Sans Serif - 10 - - Status: @@ -112,7 +106,7 @@ 690 - 40 + 47 71 27 @@ -120,6 +114,12 @@ Send + + false + + + true + @@ -140,7 +140,7 @@ 30 10 91 - 17 + 24 @@ -151,7 +151,7 @@ 30 - 30 + 40 221 41 @@ -161,7 +161,7 @@ 260 - 30 + 40 211 41 @@ -171,7 +171,7 @@ 20 - 120 + 180 741 301 @@ -188,18 +188,12 @@ 500 - - Qt::ScrollBarAlwaysOn - - - true - 0 0 - 724 + 725 1000 @@ -209,16 +203,6 @@ 1000 - - - - 440 - 80 - 271 - 41 - - - @@ -228,6 +212,18 @@ 41 + + + 281 + 41 + + + + + 300 + 41 + + 8 @@ -253,16 +249,6 @@ Input - - - - 440 - 230 - 271 - 41 - - - @@ -301,101 +287,131 @@ Description - + - 440 - 30 - 271 + 150 + 80 + 281 41 + + + 8 + + - + - 10 - 30 - 131 + 150 + 130 + 281 41 + + + 8 + + - + - 440 - 130 - 271 + 150 + 180 + 281 41 + + + 8 + + - + - 440 - 180 - 271 + 150 + 230 + 281 41 + + + 8 + + - + - 440 + 150 280 - 271 + 281 41 + + + 8 + + - + - 440 + 150 330 - 271 + 281 41 + + + 8 + + - + - 440 + 150 380 - 271 + 281 41 + + + 8 + + - + - 440 + 150 430 - 271 + 281 41 - - - - - 10 - 80 - 131 - 41 - + + + 8 + - + 150 - 80 + 480 281 41 @@ -406,219 +422,276 @@ - + - 150 - 130 - 281 + 440 + 30 + 271 41 - - - 8 - + + + + + 440 + 80 + 271 + 41 + - + - 10 + 440 130 - 131 + 271 41 - + - 10 + 440 180 - 131 + 271 41 - + - 150 - 180 - 281 + 440 + 230 + 271 41 - - - 8 - - - + - 150 - 230 - 281 + 440 + 280 + 271 41 - - - 8 - + + + + + 440 + 330 + 271 + 41 + - + - 10 - 230 - 131 + 440 + 380 + 271 41 - + - 150 - 280 - 281 + 440 + 430 + 271 41 - - - 8 - + + + + + 440 + 480 + 271 + 41 + - + 10 - 280 + 30 131 41 + + true + - + - 150 - 330 - 281 + 10 + 80 + 131 41 - - - 8 - + + true - + 10 - 330 + 130 131 41 + + true + - + 10 - 380 + 180 131 41 + + true + - + - 150 - 380 - 281 + 10 + 230 + 131 41 - - - 8 - + + true - + 10 - 430 + 280 131 41 + + true + - + - 150 - 430 - 281 + 10 + 330 + 131 41 - - - 8 - + + true - + - 150 - 480 - 281 + 10 + 380 + 131 41 - - - 8 - + + true - + 10 - 480 + 430 131 41 + + true + - + - 440 + 10 480 - 271 + 131 41 + + true + + + input_1 + input_2 + input_3 + input_4 + input_5 + input_6 + input_7 + input_8 + input_9 + input_10 + descrip_4 + descrip_5 + descrip_2 + descrip_6 + descrip_7 + descrip_8 + descrip_9 + descrip_10 + status_box + SendButton_1 + subSystemTextBrowser + commandAddressTextBrowser + scrollArea_2 + descrip_1 + descrip_3 + paramName_1 + paramName_2 + paramName_3 + paramName_4 + paramName_5 + paramName_6 + paramName_7 + paramName_8 + paramName_9 + paramName_10 + diff --git a/Subsystems/cmdGui/UdpCommands.py b/Subsystems/cmdGui/UdpCommands.py index aa389df..f520aa9 100644 --- a/Subsystems/cmdGui/UdpCommands.py +++ b/Subsystems/cmdGui/UdpCommands.py @@ -17,370 +17,182 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python -# -# UdpCommands.py -- This is a class that creates a simple command dialog and -# sends commands using the cmdUtil UDP C program. -# -# The commands that can be sent are defined in comma delimited text files. -# This class deals with one set of commands in a file ( up to 20 ) -# but multiple subsystems can be represented by spawning this class -# multiple times. +#!/usr/bin/env python3 # -# This class could be duplicated to send over another interface -# such as TCP, Cubesat Space Protocol, or Xbee wireless radio +# UdpCommands.py -- This is a class that creates a simple command dialog and +# sends commands using the cmdUtil UDP C program. # - -import sys -import csv -import getopt -import subprocess -import shlex +# The commands that can be sent are defined in comma +# delimited text files. +# This class deals with one set of commands in a file (up +# to 20) but multiple subsystems can be represented by +# spawning this class multiple times. +# +# This class could be duplicated to send over another +# interface such as TCP, Cubesat Space Protocol, or Xbee +# wireless radio +# +import getopt import pickle +import shlex +import subprocess +import sys +from pathlib import Path + +from PyQt5.QtWidgets import QApplication, QDialog -from PyQt4 import QtGui from GenericCommandDialog import Ui_GenericCommandDialog -from html.parser import HTMLParser -from HTMLDocsParser import HTMLDocsParser -from struct import * -class SubsystemCommands(QtGui.QDialog): +ROOTDIR = Path(sys.argv[0]).resolve().parent + - pktCount = 0 +class SubsystemCommands(QDialog, Ui_GenericCommandDialog): + + # pktCount = 0 # # Init the class # def __init__(self): - QtGui.QDialog.__init__(self) - self.ui = Ui_GenericCommandDialog() - self.ui.setupUi(self) + super().__init__() + self.setupUi(self) self.setWindowTitle(pageTitle) - self.parser = HTMLDocsParser() - - self.ui.SendButton_1.clicked.connect(self.ProcessSendButton_1) - self.ui.SendButton_2.clicked.connect(self.ProcessSendButton_2) - self.ui.SendButton_3.clicked.connect(self.ProcessSendButton_3) - self.ui.SendButton_4.clicked.connect(self.ProcessSendButton_4) - self.ui.SendButton_5.clicked.connect(self.ProcessSendButton_5) - self.ui.SendButton_6.clicked.connect(self.ProcessSendButton_6) - self.ui.SendButton_7.clicked.connect(self.ProcessSendButton_7) - self.ui.SendButton_8.clicked.connect(self.ProcessSendButton_8) - self.ui.SendButton_9.clicked.connect(self.ProcessSendButton_9) - self.ui.SendButton_10.clicked.connect(self.ProcessSendButton_10) - self.ui.SendButton_11.clicked.connect(self.ProcessSendButton_11) - self.ui.SendButton_12.clicked.connect(self.ProcessSendButton_12) - self.ui.SendButton_13.clicked.connect(self.ProcessSendButton_13) - self.ui.SendButton_14.clicked.connect(self.ProcessSendButton_14) - self.ui.SendButton_15.clicked.connect(self.ProcessSendButton_15) - self.ui.SendButton_16.clicked.connect(self.ProcessSendButton_16) - self.ui.SendButton_17.clicked.connect(self.ProcessSendButton_17) - self.ui.SendButton_18.clicked.connect(self.ProcessSendButton_18) - self.ui.SendButton_19.clicked.connect(self.ProcessSendButton_19) - self.ui.SendButton_20.clicked.connect(self.ProcessSendButton_20) - self.ui.SendButton_21.clicked.connect(self.ProcessSendButton_21) - self.ui.SendButton_22.clicked.connect(self.ProcessSendButton_22) - self.ui.SendButton_23.clicked.connect(self.ProcessSendButton_23) - self.ui.SendButton_24.clicked.connect(self.ProcessSendButton_24) - self.ui.SendButton_25.clicked.connect(self.ProcessSendButton_25) - - # - # Button press methods - # - def ProcessSendButton_1(self): - self.ProcessSendButtonGeneric(0) - def ProcessSendButton_2(self): - self.ProcessSendButtonGeneric(1) - def ProcessSendButton_3(self): - self.ProcessSendButtonGeneric(2) - def ProcessSendButton_4(self): - self.ProcessSendButtonGeneric(3) - def ProcessSendButton_5(self): - self.ProcessSendButtonGeneric(4) - def ProcessSendButton_6(self): - self.ProcessSendButtonGeneric(5) - def ProcessSendButton_7(self): - self.ProcessSendButtonGeneric(6) - def ProcessSendButton_8(self): - self.ProcessSendButtonGeneric(7) - def ProcessSendButton_9(self): - self.ProcessSendButtonGeneric(8) - def ProcessSendButton_10(self): - self.ProcessSendButtonGeneric(9) - def ProcessSendButton_11(self): - self.ProcessSendButtonGeneric(10) - def ProcessSendButton_12(self): - self.ProcessSendButtonGeneric(11) - def ProcessSendButton_13(self): - self.ProcessSendButtonGeneric(12) - def ProcessSendButton_14(self): - self.ProcessSendButtonGeneric(13) - def ProcessSendButton_15(self): - self.ProcessSendButtonGeneric(14) - def ProcessSendButton_16(self): - self.ProcessSendButtonGeneric(15) - def ProcessSendButton_17(self): - self.ProcessSendButtonGeneric(16) - def ProcessSendButton_18(self): - self.ProcessSendButtonGeneric(17) - def ProcessSendButton_19(self): - self.ProcessSendButtonGeneric(18) - def ProcessSendButton_20(self): - self.ProcessSendButtonGeneric(19) - def ProcessSendButton_21(self): - self.ProcessSendButtonGeneric(20) - def ProcessSendButton_22(self): - self.ProcessSendButtonGeneric(21) - def ProcessSendButton_23(self): - self.ProcessSendButtonGeneric(22) - def ProcessSendButton_24(self): - self.ProcessSendButtonGeneric(23) - def ProcessSendButton_25(self): - self.ProcessSendButtonGeneric(24) + for j in range(25): + btn = getattr(self, f"SendButton_{j+1}") + btn.clicked.connect( + lambda _, x=j: self.ProcessSendButtonGeneric(x)) # # Determines if command requires parameters # - def checkParams(self, idx): - pickle_file = 'ParameterFiles/' + param_files[idx] + @staticmethod + def checkParams(idx): + pf = f'{ROOTDIR}/ParameterFiles/{param_files[idx]}' try: - with open(pickle_file,'rb') as pickle_obj: - dataTypesOrig, paramNames, paramLen, paramDesc, dataTypesNew, stringLen = pickle.load(pickle_obj) - if len(paramNames) > 0: # if has parameters - return True - else: - return False + with open(pf, 'rb') as po: + _, paramNames, _, _, _, _ = pickle.load(po) + return len(paramNames) > 0 # if has parameters except IOError: return False - # # Generic button press method # def ProcessSendButtonGeneric(self, idx): - if cmdItemIsValid[idx] == True: + if cmdItemIsValid[idx]: param_bool = self.checkParams(idx) - address = str(Commands.ui.commandAddressLineEdit.text()) + address = self.commandAddressLineEdit.text() - # If parameters are required, launches Parameters page - if param_bool == True: - prog = 'python3 Parameter.py' - launch_string = prog+' --title=\"'+pageTitle+'\" --descrip=\"'+cmdDesc[idx]+'\" --idx='+str(idx)+' --host=\"'+address+'\" --port='+str(pagePort)+' --pktid='+str(pagePktId)+' --endian='+pageEndian+' --cmdcode='+cmdCodes[idx]+' --file='+param_files[idx] + if param_bool: + launch_string = ( + f'python3 {ROOTDIR}/Parameter.py --title=\"{pageTitle}\" ' + f'--descrip=\"{cmdDesc[idx]}\" --idx={idx} ' + f'--host=\"{address}\" --port={pagePort} ' + f'--pktid={pagePktId} --endian={pageEndian} ' + f'--cmdcode={cmdCodes[idx]} --file={param_files[idx]}') # If parameters not required, directly calls cmdUtil to send command else: - prog = '../cmdUtil/cmdUtil ' - launch_string = prog + ' --host=' + address + ' --port=' + str(pagePort) + ' --pktid=' + str(pagePktId) + ' --endian=' + pageEndian + ' --cmdcode=' + cmdCodes[idx] + launch_string = ( + f'{ROOTDIR}/../cmdUtil/cmdUtil --host=\"{address}\" ' + f'--port={pagePort} --pktid={pagePktId} ' + f'--endian={pageEndian} --cmdcode={cmdCodes[idx]}') cmd_args = shlex.split(launch_string) subprocess.Popen(cmd_args) - # # Display usage # def usage(): - print ("Must specify --title= --file= --pktid= --endian= --address= --port=") - print (" example: --title=\"Executive Services\" --file=cfe-es-cmds.txt --pktid=1806 --endian=LE --address=127.0.0.1 --port=1234") + print(( + "Must specify --title= --file= " + "--pktid= --endian= --address= " + "--port=\n\nexample: --title=\"Executive Services\" " + "--file=cfe-es-cmds.txt --pktid=1806 --endian=LE --address=127.0.0.1 " + "--port=1234")) + # -# Main +# Main # if __name__ == '__main__': # # Set defaults for the arguments # - pageTitle = "Command Page" - pagePort = 1234 + pageTitle = "Command Page" + pagePort = 1234 pageAddress = "127.0.0.1" - pagePktId = 1801 + pagePktId = 1801 pageEndian = "LE" pageDefFile = "cfe__es__msg_8h" # - # process cmd line args + # process cmd line args # - try: - opts, args = getopt.getopt(sys.argv[1:], "htpfeap", ["help", "title=", "pktid=", "file=", "endian=", "address=", "port="]) + try: + opts, args = getopt.getopt(sys.argv[1:], "htpfeap", [ + "help", "title=", "pktid=", "file=", "endian=", "address=", "port=" + ]) except getopt.GetoptError: - usage() - sys.exit(2) - - for opt, arg in opts: - if opt in ("-h", "--help"): - usage() - sys.exit() - elif opt in ("-t", "--title"): + usage() + sys.exit(2) + + for opt, arg in opts: + if opt in ("-h", "--help"): + usage() + sys.exit() + elif opt in ("-t", "--title"): pageTitle = arg - elif opt in ("-f", "--file"): + elif opt in ("-f", "--file"): pageDefFile = arg - elif opt in ("-p", "--pktid"): - pagePktId = arg - elif opt in ("-e", "--endian"): - pageEndian = arg - elif opt in ("-a", "--address"): - pageAddress = arg - elif opt in ("-p", "--port"): + elif opt in ("-p", "--pktid"): + pagePktId = arg + elif opt in ("-e", "--endian"): + pageEndian = arg + elif opt in ("-a", "--address"): + pageAddress = arg + elif opt in ("-p", "--port"): pagePort = arg # # Init the QT application and the command class # - app = QtGui.QApplication(sys.argv) + app = QApplication(sys.argv) Commands = SubsystemCommands() - Commands.ui.subSystemTextBrowser.setText(pageTitle) - Commands.ui.packetId.display(pagePktId) - Commands.ui.commandAddressLineEdit.setText(pageAddress) + Commands.subSystemLineEdit.setText(pageTitle) + Commands.packetId.display(pagePktId) + Commands.commandAddressLineEdit.setText(pageAddress) # # Reads commands from command definition file # - pickle_file = 'CommandFiles/'+pageDefFile + pickle_file = f'{ROOTDIR}/CommandFiles/{pageDefFile}' with open(pickle_file, 'rb') as pickle_obj: cmdDesc, cmdCodes, param_files = pickle.load(pickle_obj) cmdItemIsValid = [] for i in range(len(cmdDesc)): cmdItemIsValid.append(True) - for i in range (len(cmdDesc), 26): + for i in range(len(cmdDesc), 26): cmdItemIsValid.append(False) - # # Fill the data fields on the page # - if cmdItemIsValid[0] == True: - Commands.ui.itemLabelTextBrowser_1.setText(cmdDesc[0]) - else: - Commands.ui.itemLabelTextBrowser_1.setText("(unused)") - - if cmdItemIsValid[1] == True: - Commands.ui.itemLabelTextBrowser_2.setText(cmdDesc[1]) - else: - Commands.ui.itemLabelTextBrowser_2.setText("(unused)") - - if cmdItemIsValid[2] == True: - Commands.ui.itemLabelTextBrowser_3.setText(cmdDesc[2]) - else: - Commands.ui.itemLabelTextBrowser_3.setText("(unused)") - - if cmdItemIsValid[3] == True: - Commands.ui.itemLabelTextBrowser_4.setText(cmdDesc[3]) - else: - Commands.ui.itemLabelTextBrowser_4.setText("(unused)") - - if cmdItemIsValid[4] == True: - Commands.ui.itemLabelTextBrowser_5.setText(cmdDesc[4]) - else: - Commands.ui.itemLabelTextBrowser_5.setText("(unused)") + for i in range(25): + itemLabelTextBrowser = getattr(Commands, f"itemLabelTextBrowser_{i+1}") + if cmdItemIsValid[i]: + itemLabelTextBrowser.setText(cmdDesc[i]) + else: + itemLabelTextBrowser.setText("(unused)") - if cmdItemIsValid[5] == True: - Commands.ui.itemLabelTextBrowser_6.setText(cmdDesc[5]) - else: - Commands.ui.itemLabelTextBrowser_6.setText("(unused)") - - if cmdItemIsValid[6] == True: - Commands.ui.itemLabelTextBrowser_7.setText(cmdDesc[6]) - else: - Commands.ui.itemLabelTextBrowser_7.setText("(unused)") - - if cmdItemIsValid[7] == True: - Commands.ui.itemLabelTextBrowser_8.setText(cmdDesc[7]) - else: - Commands.ui.itemLabelTextBrowser_8.setText("(unused)") - - if cmdItemIsValid[8] == True: - Commands.ui.itemLabelTextBrowser_9.setText(cmdDesc[8]) - else: - Commands.ui.itemLabelTextBrowser_9.setText("(unused)") - - if cmdItemIsValid[9] == True: - Commands.ui.itemLabelTextBrowser_10.setText(cmdDesc[9]) - else: - Commands.ui.itemLabelTextBrowser_10.setText("(unused)") - - if cmdItemIsValid[10] == True: - Commands.ui.itemLabelTextBrowser_11.setText(cmdDesc[10]) - else: - Commands.ui.itemLabelTextBrowser_11.setText("(unused)") - - if cmdItemIsValid[11] == True: - Commands.ui.itemLabelTextBrowser_12.setText(cmdDesc[11]) - else: - Commands.ui.itemLabelTextBrowser_12.setText("(unused)") - - if cmdItemIsValid[12] == True: - Commands.ui.itemLabelTextBrowser_13.setText(cmdDesc[12]) - else: - Commands.ui.itemLabelTextBrowser_13.setText("(unused)") - - if cmdItemIsValid[13] == True: - Commands.ui.itemLabelTextBrowser_14.setText(cmdDesc[13]) - else: - Commands.ui.itemLabelTextBrowser_14.setText("(unused)") - - if cmdItemIsValid[14] == True: - Commands.ui.itemLabelTextBrowser_15.setText(cmdDesc[14]) - else: - Commands.ui.itemLabelTextBrowser_15.setText("(unused)") - - if cmdItemIsValid[15] == True: - Commands.ui.itemLabelTextBrowser_16.setText(cmdDesc[15]) - else: - Commands.ui.itemLabelTextBrowser_16.setText("(unused)") - - if cmdItemIsValid[16] == True: - Commands.ui.itemLabelTextBrowser_17.setText(cmdDesc[16]) - else: - Commands.ui.itemLabelTextBrowser_17.setText("(unused)") - - if cmdItemIsValid[17] == True: - Commands.ui.itemLabelTextBrowser_18.setText(cmdDesc[17]) - else: - Commands.ui.itemLabelTextBrowser_18.setText("(unused)") - - if cmdItemIsValid[18] == True: - Commands.ui.itemLabelTextBrowser_19.setText(cmdDesc[18]) - else: - Commands.ui.itemLabelTextBrowser_19.setText("(unused)") - - if cmdItemIsValid[19] == True: - Commands.ui.itemLabelTextBrowser_20.setText(cmdDesc[19]) - else: - Commands.ui.itemLabelTextBrowser_20.setText("(unused)") - - if cmdItemIsValid[20] == True: - Commands.ui.itemLabelTextBrowser_21.setText(cmdDesc[20]) - else: - Commands.ui.itemLabelTextBrowser_21.setText("(unused)") - - if cmdItemIsValid[21] == True: - Commands.ui.itemLabelTextBrowser_22.setText(cmdDesc[21]) - else: - Commands.ui.itemLabelTextBrowser_22.setText("(unused)") - - if cmdItemIsValid[22] == True: - Commands.ui.itemLabelTextBrowser_23.setText(cmdDesc[22]) - else: - Commands.ui.itemLabelTextBrowser_23.setText("(unused)") - - if cmdItemIsValid[23] == True: - Commands.ui.itemLabelTextBrowser_24.setText(cmdDesc[23]) - else: - Commands.ui.itemLabelTextBrowser_24.setText("(unused)") - - if cmdItemIsValid[24] == True: - Commands.ui.itemLabelTextBrowser_25.setText(cmdDesc[24]) - else: - Commands.ui.itemLabelTextBrowser_25.setText("(unused)") - - - # - # Display the page + # + # Display the page # Commands.show() Commands.raise_() diff --git a/Subsystems/cmdGui/quick-buttons.txt b/Subsystems/cmdGui/quick-buttons.txt index 8694702..844d645 100644 --- a/Subsystems/cmdGui/quick-buttons.txt +++ b/Subsystems/cmdGui/quick-buttons.txt @@ -30,4 +30,4 @@ Table Services, CFE_TBL_CMD, TBL No-Op, 0, 0x1804, LE, 1 Time Services, CFE_TIME_CMD, Time No-Op, 0, 0x1805, LE, 127.0.0.1, 1234, CFE_TIME_NOOP_CC Event Services, CFE_EVS_CMD, EVS No-Op, 0, 0x1801, LE, 127.0.0.1, 1234, CFE_EVS_NOOP_CC Command Ingest, CI_LAB_CMD, CI No-Op, 0, 0x1884, LE, 127.0.0.1, 1234, CI_LAB_NOOP_CC -Sample App, SAMPLE_APP_CMD, Sample No-Op, 0, 0x1882, LE, 127.0.0.1, 1234, SAMPLE_APP_NOOP_CC +Sample App, SAMPLE_APP_CMD, Sample No-Op, 0, 0x1882, LE, 127.0.0.1, 1234, SAMPLE_APP_NOOP_CC \ No newline at end of file diff --git a/Subsystems/tlmGUI/EventMessage.py b/Subsystems/tlmGUI/EventMessage.py index e264f36..9d05702 100644 --- a/Subsystems/tlmGUI/EventMessage.py +++ b/Subsystems/tlmGUI/EventMessage.py @@ -17,19 +17,19 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python +#!/usr/bin/env python3 # # EVS Events page -# +# # The EVS Event Message has the following format -# +# # # ES HK format: # # Packet Header -# uint16 StreamId; 0 +# uint16 StreamId; 0 # uint16 Sequence; 2 -# uint16 Length; 4 +# uint16 Length; 4 # Tlm Secondary Header # uint32 seconds 6 @@ -40,141 +40,147 @@ # Event format: # # Packet Header -# uint16 StreamId; -# uint16 Sequence; -# uint16 Length; +# uint16 StreamId; +# uint16 Sequence; +# uint16 Length; # Tlm Secondary Header # uint32 seconds # uint16 subseconds # Packet ID -# char AppName[20] -# uint16 EventID; -# uint16 EventType; -# uint32 SpacecraftID; +# char AppName[20] +# uint16 EventID; +# uint16 EventType; +# uint32 SpacecraftID; # uint32 ProcessorID; # Message -# char Message[122]; -# uint8 Spare1; -# uint8 Spare2; +# char Message[122]; +# uint8 Spare1; +# uint8 Spare2; -import sys import getopt +import sys +from struct import unpack +from pathlib import Path + import zmq +from PyQt5.QtCore import QThread, pyqtSignal +from PyQt5.QtWidgets import QApplication, QDialog -from PyQt4 import QtGui, QtCore from EventMessageDialog import Ui_EventMessageDialog -from struct import * - -class EventMessageTelemetry(QtGui.QDialog): - - pktCount = 0 - - def __init__(self, appId): - QtGui.QDialog.__init__(self) - self.appId = appId - self.ui = Ui_EventMessageDialog() - self.ui.setupUi(self) - - def initTlmReceiver(self, subscription): - self.setWindowTitle(pageTitle + ' for: ' + subscription) - self.thread = TlmReceiver(self, subscription, self.appId) - self.connect(self.thread, self.thread.signalTlmDatagram, self.processPendingDatagrams) + +ROOTDIR = Path(sys.argv[0]).resolve().parent + + +class EventMessageTelemetry(QDialog, Ui_EventMessageDialog): + def __init__(self, aid): + super().__init__() + self.setupUi(self) + self.appId = aid + + self.eventTypes = { + 1: "DEBUG", + 2: "INFORMATION", + 3: "ERROR", + 4: "CRITICAL" + } + + def initEMTlmReceiver(self, subscr): + self.setWindowTitle(f'{pageTitle} for: {subscr}') + self.thread = EMTlmReceiver(subscr, self.appId) + self.thread.emSignalTlmDatagram.connect(self.processPendingDatagrams) + self.thread.finished.connect(self.thread.deleteLater) self.thread.start() # This method processes packets. Called when the TelemetryReceiver receives a message/packet def processPendingDatagrams(self, datagram): - - self.pktCount += 1 - # Packet Header - # uint16 StreamId; 0 + # uint16 StreamId; 0 # uint16 Sequence; 2 - # uint16 Length; 4 - # PktSequence = unpack("H", datagram[2:4]) + seqCount = packetSeq[0] & 0x3FFF + self.sequenceCount.setValue(seqCount) # # Get App Name, Event ID, Type and Event Text! # - appName = datagram[16:36].decode('utf-8','ignore') - EventID = int.from_bytes(datagram[36:38], byteorder='little') - EventType = int.from_bytes(datagram[38:40], byteorder='little') - eventText = datagram[48:].decode('utf-8','ignore') - EventID = str(EventID) - EventType = str(EventType) + appName = datagram[16:36].decode('utf-8', 'ignore') + eventID = int.from_bytes(datagram[36:38], byteorder='little') + eventType = int.from_bytes(datagram[38:40], byteorder='little') + eventText = datagram[48:].decode('utf-8', 'ignore') appName = appName.split("\0")[0] eventText = eventText.split("\0")[0] + eventTypeStr = self.eventTypes.get(eventType, "Invalid Event Type") + + eventString = f"EVENT --> {appName}-{eventTypeStr} Event ID: {eventID} : {eventText}" + self.eventOutput.appendPlainText(eventString) - if ( EventType == "1" ): - EventType = "DEBUG" - elif ( EventType == "2" ): - EventType = "INFORMATION" - elif ( EventType == "3" ): - EventType = "ERROR" - elif ( EventType == "4" ): - EventType = "CRITICAL" - else: - EventType = "Invalid Event Type" + ## Reimplements closeEvent + ## to properly quit the thread + ## and close the window + def closeEvent(self, event): + self.thread.runs = False + self.thread.wait(2000) + super().closeEvent(event) - eventString = "EVENT --> "+ appName + "-" + EventType + " Event ID: " + EventID + " : " + eventText - self.ui.eventOutput.append(eventString) # Subscribes and receives zeroMQ messages -class TlmReceiver(QtCore.QThread): - - def __init__(self, mainWindow, subscription, appId): - QtCore.QThread.__init__(self) - self.appId = appId +class EMTlmReceiver(QThread): + # Setup signal to communicate with front-end GUI + emSignalTlmDatagram = pyqtSignal(bytes) - # Setup signal to communicate with front-end GUI - self.signalTlmDatagram = QtCore.SIGNAL("TlmDatagram") + def __init__(self, subscr, aid): + super().__init__() + self.appId = aid + self.runs = True # Init zeroMQ - self.context = zmq.Context() + self.context = zmq.Context() self.subscriber = self.context.socket(zmq.SUB) self.subscriber.connect("ipc:///tmp/GroundSystem") - subscriptionString = str(subscription) + ".Spacecraft1.TelemetryPackets." + str(appId) + subscriptionString = f"{subscr}.Spacecraft1.TelemetryPackets.{appId}" self.subscriber.setsockopt_string(zmq.SUBSCRIBE, subscriptionString) - + def run(self): - while True: + while self.runs: # Read envelope with address - [address, datagram] = self.subscriber.recv_multipart() - + address, datagram = self.subscriber.recv_multipart() # Ignore if not an event message - if self.appId not in str(address): continue - self.emit(self.signalTlmDatagram, datagram) + if self.appId in address.decode(): + self.emSignalTlmDatagram.emit(datagram) + # # Display usage # def usage(): - print ("Must specify --title= --port= --appid= --endian=") - print (" example: --title=Executive Services --port=10800 --appid=800 --file=cfe-es-hk-table.txt --endian=L") - print (" (quotes are not on the title string in this example)") - - -if __name__ == '__main__': + print(("Must specify --title=\"\" --port= " + "--appid= --endian=\n\nexample: --title=\"Executive Services\" " + "--port=10800 --appid=800 --file=cfe-es-hk-table.txt --endian=L")) +if __name__ == '__main__': # # Set defaults for the arguments # pageTitle = "Event Messages" - udpPort = 10000 + udpPort = 10000 appId = 999 tlmDefFile = "not-needed.txt" endian = "L" subscription = "" # - # process cmd line args + # process cmd line args # try: - opts, args = getopt.getopt(sys.argv[1:], "htpafl", ["help", "title=", "port=", "appid=","file=", "endian=", "sub="]) + opts, args = getopt.getopt( + sys.argv[1:], "htpafl", + ["help", "title=", "port=", "appid=", "file=", "endian=", "sub="]) except getopt.GetoptError: usage() sys.exit(2) @@ -183,42 +189,39 @@ def usage(): if opt in ("-h", "--help"): usage() sys.exit() - elif opt in ("-p", "--port"): + if opt in ("-p", "--port"): udpPort = arg elif opt in ("-t", "--title"): pageTitle = arg elif opt in ("-f", "--file"): tlmDefFile = arg - elif opt in ("-t", "--appid"): + elif opt in ("-a", "--appid"): appId = arg elif opt in ("-e", "--endian"): endian = arg elif opt in ("-s", "--sub"): subscription = arg - if len(subscription) == 0: + if not subscription or len(subscription.split('.')) < 3: subscription = "GroundSystem" - arr = subscription.split('.') - if len(arr) < 3: - subscription = 'GroundSystem' + # arr = subscription.split('.') + # if len(arr) < 3: + # subscription = 'GroundSystem' - print ('Event Messages Page started. Subscribed to ' + subscription) + print('Event Messages Page started. Subscribed to', subscription) - if endian == 'L': - py_endian = '<' - else: - py_endian = '>' + py_endian = '<' if endian == 'L' else '>' # # Init the QT application and the Event Message class # - app = QtGui.QApplication(sys.argv) + app = QApplication(sys.argv) Telem = EventMessageTelemetry(appId) # Display the page Telem.show() Telem.raise_() - Telem.initTlmReceiver(subscription) + Telem.initEMTlmReceiver(subscription) sys.exit(app.exec_()) diff --git a/Subsystems/tlmGUI/EventMessageDialog.py b/Subsystems/tlmGUI/EventMessageDialog.py index 45a9834..8c22a66 100644 --- a/Subsystems/tlmGUI/EventMessageDialog.py +++ b/Subsystems/tlmGUI/EventMessageDialog.py @@ -1,110 +1,74 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'EventMessageDialog.ui' +# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/tlmGUI/EventMessageDialog.ui' # -# Created: Thu Mar 26 11:45:17 2015 -# by: PyQt4 UI code generator 4.11.3 +# Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) +from PyQt5 import QtCore, QtGui, QtWidgets class Ui_EventMessageDialog(object): def setupUi(self, EventMessageDialog): - EventMessageDialog.setObjectName(_fromUtf8("EventMessageDialog")) + EventMessageDialog.setObjectName("EventMessageDialog") EventMessageDialog.resize(591, 277) - self.verticalLayout = QtGui.QVBoxLayout(EventMessageDialog) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.label_2 = QtGui.QLabel(EventMessageDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) + self.verticalLayout = QtWidgets.QVBoxLayout(EventMessageDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.label_2 = QtWidgets.QLabel(EventMessageDialog) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setMinimumSize(QtCore.QSize(91, 17)) - self.label_2.setMaximumSize(QtCore.QSize(91, 17)) + self.label_2.setMaximumSize(QtCore.QSize(135, 29)) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) - self.label_2.setObjectName(_fromUtf8("label_2")) + self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) - self.sequenceCount = QtGui.QTextBrowser(EventMessageDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.sequenceCount.sizePolicy().hasHeightForWidth()) - self.sequenceCount.setSizePolicy(sizePolicy) - self.sequenceCount.setMinimumSize(QtCore.QSize(81, 31)) - self.sequenceCount.setMaximumSize(QtCore.QSize(81, 31)) - self.sequenceCount.setObjectName(_fromUtf8("sequenceCount")) + self.sequenceCount = QtWidgets.QSpinBox(EventMessageDialog) + self.sequenceCount.setReadOnly(True) + self.sequenceCount.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.sequenceCount.setMaximum(16384) + self.sequenceCount.setObjectName("sequenceCount") self.horizontalLayout.addWidget(self.sequenceCount) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) - self.line = QtGui.QFrame(EventMessageDialog) - self.line.setFrameShape(QtGui.QFrame.VLine) - self.line.setFrameShadow(QtGui.QFrame.Sunken) - self.line.setObjectName(_fromUtf8("line")) + self.line = QtWidgets.QFrame(EventMessageDialog) + self.line.setFrameShape(QtWidgets.QFrame.VLine) + self.line.setFrameShadow(QtWidgets.QFrame.Sunken) + self.line.setObjectName("line") self.horizontalLayout.addWidget(self.line) - self.label = QtGui.QLabel(EventMessageDialog) - self.label.setObjectName(_fromUtf8("label")) + self.label = QtWidgets.QLabel(EventMessageDialog) + self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) - self.line_2 = QtGui.QFrame(EventMessageDialog) - self.line_2.setFrameShape(QtGui.QFrame.VLine) - self.line_2.setFrameShadow(QtGui.QFrame.Sunken) - self.line_2.setObjectName(_fromUtf8("line_2")) + self.line_2 = QtWidgets.QFrame(EventMessageDialog) + self.line_2.setFrameShape(QtWidgets.QFrame.VLine) + self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) + self.line_2.setObjectName("line_2") self.horizontalLayout.addWidget(self.line_2) - spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) - spacerItem2 = QtGui.QSpacerItem(81, 31, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + spacerItem2 = QtWidgets.QSpacerItem(81, 31, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) - self.buttonBox = QtGui.QDialogButtonBox(EventMessageDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth()) - self.buttonBox.setSizePolicy(sizePolicy) - self.buttonBox.setMinimumSize(QtCore.QSize(91, 32)) - self.buttonBox.setMaximumSize(QtCore.QSize(91, 32)) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) + self.buttonBox = QtWidgets.QDialogButtonBox(EventMessageDialog) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) + self.buttonBox.setObjectName("buttonBox") self.horizontalLayout.addWidget(self.buttonBox) self.verticalLayout.addLayout(self.horizontalLayout) - self.eventOutput = QtGui.QTextBrowser(EventMessageDialog) - self.eventOutput.setObjectName(_fromUtf8("eventOutput")) + self.eventOutput = QtWidgets.QPlainTextEdit(EventMessageDialog) + self.eventOutput.setReadOnly(True) + self.eventOutput.setObjectName("eventOutput") self.verticalLayout.addWidget(self.eventOutput) self.retranslateUi(EventMessageDialog) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), EventMessageDialog.accept) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), EventMessageDialog.reject) + self.buttonBox.clicked['QAbstractButton*'].connect(EventMessageDialog.close) QtCore.QMetaObject.connectSlotsByName(EventMessageDialog) def retranslateUi(self, EventMessageDialog): - EventMessageDialog.setWindowTitle(_translate("EventMessageDialog", "Event Messages", None)) - self.label_2.setText(_translate("EventMessageDialog", "Packet Count", None)) - self.label.setText(_translate("EventMessageDialog", "Events", None)) - - -if __name__ == "__main__": - import sys - app = QtGui.QApplication(sys.argv) - EventMessageDialog = QtGui.QDialog() - ui = Ui_EventMessageDialog() - ui.setupUi(EventMessageDialog) - EventMessageDialog.show() - sys.exit(app.exec_()) + _translate = QtCore.QCoreApplication.translate + EventMessageDialog.setWindowTitle(_translate("EventMessageDialog", "Event Messages")) + self.label_2.setText(_translate("EventMessageDialog", "Sequence Count")) + self.label.setText(_translate("EventMessageDialog", "Events")) diff --git a/Subsystems/tlmGUI/EventMessageDialog.ui b/Subsystems/tlmGUI/EventMessageDialog.ui index 6118d2b..425576c 100644 --- a/Subsystems/tlmGUI/EventMessageDialog.ui +++ b/Subsystems/tlmGUI/EventMessageDialog.ui @@ -32,12 +32,12 @@ - 91 - 17 + 135 + 29 - Packet Count + Sequence Count Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -45,24 +45,15 @@ - - - - 0 - 0 - + + + true - - - 81 - 31 - + + QAbstractSpinBox::NoButtons - - - 81 - 31 - + + 16384 @@ -131,27 +122,6 @@ - - - 0 - 0 - - - - - 91 - 32 - - - - - 91 - 32 - - - - Qt::Horizontal - QDialogButtonBox::Close @@ -160,7 +130,11 @@ - + + + true + + @@ -168,33 +142,17 @@ buttonBox - accepted() - EventMessageDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() + clicked(QAbstractButton*) EventMessageDialog - reject() + close() - 316 - 260 + 540 + 25 - 286 - 274 + 295 + 138 diff --git a/Subsystems/tlmGUI/GenericTelemetry.py b/Subsystems/tlmGUI/GenericTelemetry.py index 7b194bb..3510daf 100644 --- a/Subsystems/tlmGUI/GenericTelemetry.py +++ b/Subsystems/tlmGUI/GenericTelemetry.py @@ -17,58 +17,63 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python -# +#!/usr/bin/env python3 +# -import sys import csv -import getopt -import pdb +import getopt +import sys +from pathlib import Path +from struct import unpack + import zmq +from PyQt5.QtCore import QThread, pyqtSignal +from PyQt5.QtWidgets import QApplication, QDialog -from PyQt4 import QtGui, QtCore from GenericTelemetryDialog import Ui_GenericTelemetryDialog -from struct import * -class SubsystemTelemetry(QtGui.QDialog): +ROOTDIR = Path(sys.argv[0]).resolve().parent + - pktCount = 0 +class SubsystemTelemetry(QDialog, Ui_GenericTelemetryDialog): # # Init the class # def __init__(self): - QtGui.QDialog.__init__(self) - self.ui = Ui_GenericTelemetryDialog() - self.ui.setupUi(self) + super().__init__() + self.setupUi(self) - # - # This method Decodes a telemetry item from the packet and displays it # - def displayTelemetryItem(self, datagram, tlmIndex, labelField, valueField): - if tlmItemIsValid[tlmIndex] == True: - TlmField1 = tlmItemFormat[tlmIndex] - if TlmField1[:1] == "<": - TlmField1 = TlmField1[1:] - TlmField2 = datagram[int(tlmItemStart[tlmIndex]):(int(tlmItemStart[tlmIndex]) + int(tlmItemSize[tlmIndex]))] - TlmField = unpack( TlmField1, TlmField2) - if tlmItemDisplayType[tlmIndex] == 'Dec': - valueField.setText(str(TlmField[0])) - elif tlmItemDisplayType[tlmIndex] == 'Hex': - valueField.setText(hex(TlmField[0])) - elif tlmItemDisplayType[tlmIndex] == 'Enm': - valueField.setText(tlmItemEnum[tlmIndex][int(TlmField[0])]) - elif tlmItemDisplayType[tlmIndex] == 'Str': - valueField.setText(TlmField[0].decode('utf-8','ignore')) - labelField.setText(tlmItemDesc[tlmIndex]) - else: - labelField.setText("(unused)") - - # Start the telemetry receiver (see TlmReceiver class) - def initTlmReceiver(self, subscription): - self.setWindowTitle(pageTitle + ' for: ' + subscription) - self.thread = TlmReceiver(self, subscription) - self.connect(self.thread, self.thread.signalTlmDatagram, self.processPendingDatagrams) + # This method Decodes a telemetry item from the packet and displays it + # + @staticmethod + def displayTelemetryItem(datagram, tlmIndex, labelField, valueField): + if tlmItemIsValid[tlmIndex]: + TlmField1 = tlmItemFormat[tlmIndex] + if TlmField1[0] == "<": + TlmField1 = TlmField1[1:] + TlmField2 = datagram[int(tlmItemStart[tlmIndex]):( + int(tlmItemStart[tlmIndex]) + int(tlmItemSize[tlmIndex]))] + TlmField = unpack(TlmField1, TlmField2) + if tlmItemDisplayType[tlmIndex] == 'Dec': + valueField.setText(str(TlmField[0])) + elif tlmItemDisplayType[tlmIndex] == 'Hex': + valueField.setText(hex(TlmField[0])) + elif tlmItemDisplayType[tlmIndex] == 'Enm': + valueField.setText(tlmItemEnum[tlmIndex][int(TlmField[0])]) + elif tlmItemDisplayType[tlmIndex] == 'Str': + valueField.setText(TlmField[0].decode('utf-8', 'ignore')) + labelField.setPlainText(tlmItemDesc[tlmIndex]) + else: + labelField.setPlainText("(unused)") + + # Start the telemetry receiver (see GTTlmReceiver class) + def initGTTlmReceiver(self, subscr): + self.setWindowTitle(f"{pageTitle} for: {subscr}") + self.thread = GTTlmReceiver(subscr) + self.thread.gtSignalTlmDatagram.connect(self.processPendingDatagrams) + self.thread.finished.connect(self.thread.deleteLater) self.thread.start() # @@ -76,193 +81,158 @@ def initTlmReceiver(self, subscription): # def processPendingDatagrams(self, datagram): # - # Show number of packets received + # Show sequence number # - self.pktCount += 1 - self.ui.sequenceCount.setText(str(self.pktCount)) + packetSeq = unpack(">H", datagram[2:4]) + seqCount = packetSeq[0] & 0x3FFF ## sequence count mask + self.sequenceCount.setValue(seqCount) # # Decode and display all packet elements # - self.displayTelemetryItem(datagram, 0, self.ui.itemLabelTextBrowser_1, self.ui.itemValueTextBrowser_1) - self.displayTelemetryItem(datagram, 1, self.ui.itemLabelTextBrowser_2, self.ui.itemValueTextBrowser_2) - self.displayTelemetryItem(datagram, 2, self.ui.itemLabelTextBrowser_3, self.ui.itemValueTextBrowser_3) - self.displayTelemetryItem(datagram, 3, self.ui.itemLabelTextBrowser_4, self.ui.itemValueTextBrowser_4) - self.displayTelemetryItem(datagram, 4, self.ui.itemLabelTextBrowser_5, self.ui.itemValueTextBrowser_5) - self.displayTelemetryItem(datagram, 5, self.ui.itemLabelTextBrowser_6, self.ui.itemValueTextBrowser_6) - self.displayTelemetryItem(datagram, 6, self.ui.itemLabelTextBrowser_7, self.ui.itemValueTextBrowser_7) - self.displayTelemetryItem(datagram, 7, self.ui.itemLabelTextBrowser_8, self.ui.itemValueTextBrowser_8) - self.displayTelemetryItem(datagram, 8, self.ui.itemLabelTextBrowser_9, self.ui.itemValueTextBrowser_9) - self.displayTelemetryItem(datagram, 9, self.ui.itemLabelTextBrowser_10, self.ui.itemValueTextBrowser_10) - self.displayTelemetryItem(datagram, 10, self.ui.itemLabelTextBrowser_11, self.ui.itemValueTextBrowser_11) - self.displayTelemetryItem(datagram, 11, self.ui.itemLabelTextBrowser_12, self.ui.itemValueTextBrowser_12) - self.displayTelemetryItem(datagram, 12, self.ui.itemLabelTextBrowser_13, self.ui.itemValueTextBrowser_13) - self.displayTelemetryItem(datagram, 13, self.ui.itemLabelTextBrowser_14, self.ui.itemValueTextBrowser_14) - self.displayTelemetryItem(datagram, 14, self.ui.itemLabelTextBrowser_15, self.ui.itemValueTextBrowser_15) - self.displayTelemetryItem(datagram, 15, self.ui.itemLabelTextBrowser_16, self.ui.itemValueTextBrowser_16) - self.displayTelemetryItem(datagram, 16, self.ui.itemLabelTextBrowser_17, self.ui.itemValueTextBrowser_17) - self.displayTelemetryItem(datagram, 17, self.ui.itemLabelTextBrowser_18, self.ui.itemValueTextBrowser_18) - self.displayTelemetryItem(datagram, 18, self.ui.itemLabelTextBrowser_19, self.ui.itemValueTextBrowser_19) - self.displayTelemetryItem(datagram, 19, self.ui.itemLabelTextBrowser_20, self.ui.itemValueTextBrowser_20) - self.displayTelemetryItem(datagram, 20, self.ui.itemLabelTextBrowser_21, self.ui.itemValueTextBrowser_21) - self.displayTelemetryItem(datagram, 21, self.ui.itemLabelTextBrowser_22, self.ui.itemValueTextBrowser_22) - self.displayTelemetryItem(datagram, 22, self.ui.itemLabelTextBrowser_23, self.ui.itemValueTextBrowser_23) - self.displayTelemetryItem(datagram, 23, self.ui.itemLabelTextBrowser_24, self.ui.itemValueTextBrowser_24) - self.displayTelemetryItem(datagram, 24, self.ui.itemLabelTextBrowser_25, self.ui.itemValueTextBrowser_25) - self.displayTelemetryItem(datagram, 25, self.ui.itemLabelTextBrowser_26, self.ui.itemValueTextBrowser_26) - self.displayTelemetryItem(datagram, 26, self.ui.itemLabelTextBrowser_27, self.ui.itemValueTextBrowser_27) - self.displayTelemetryItem(datagram, 27, self.ui.itemLabelTextBrowser_28, self.ui.itemValueTextBrowser_28) - self.displayTelemetryItem(datagram, 28, self.ui.itemLabelTextBrowser_29, self.ui.itemValueTextBrowser_29) - self.displayTelemetryItem(datagram, 29, self.ui.itemLabelTextBrowser_30, self.ui.itemValueTextBrowser_30) - self.displayTelemetryItem(datagram, 30, self.ui.itemLabelTextBrowser_31, self.ui.itemValueTextBrowser_31) - self.displayTelemetryItem(datagram, 31, self.ui.itemLabelTextBrowser_32, self.ui.itemValueTextBrowser_32) - self.displayTelemetryItem(datagram, 32, self.ui.itemLabelTextBrowser_33, self.ui.itemValueTextBrowser_33) - self.displayTelemetryItem(datagram, 33, self.ui.itemLabelTextBrowser_34, self.ui.itemValueTextBrowser_34) - self.displayTelemetryItem(datagram, 34, self.ui.itemLabelTextBrowser_35, self.ui.itemValueTextBrowser_35) - self.displayTelemetryItem(datagram, 35, self.ui.itemLabelTextBrowser_36, self.ui.itemValueTextBrowser_36) - self.displayTelemetryItem(datagram, 36, self.ui.itemLabelTextBrowser_37, self.ui.itemValueTextBrowser_37) - self.displayTelemetryItem(datagram, 37, self.ui.itemLabelTextBrowser_38, self.ui.itemValueTextBrowser_38) - self.displayTelemetryItem(datagram, 38, self.ui.itemLabelTextBrowser_39, self.ui.itemValueTextBrowser_39) - self.displayTelemetryItem(datagram, 39, self.ui.itemLabelTextBrowser_40, self.ui.itemValueTextBrowser_40) + for k in range(40): + itemLabelpte = getattr(self, f"itemLabelPlainTextEdit_{k+1}") + itemValuele = getattr(self, f"itemValueLineEdit_{k+1}") + self.displayTelemetryItem(datagram, k, itemLabelpte, itemValuele) + + ## Reimplements closeEvent + ## to properly quit the thread + ## and close the window + def closeEvent(self, event): + self.thread.runs = False + self.thread.wait(2000) + super().closeEvent(event) # Subscribes and receives zeroMQ messages -class TlmReceiver(QtCore.QThread): - - def __init__(self, mainWindow, subscription): - QtCore.QThread.__init__(self) - - # Setup signal to communicate with front-end GUI - self.signalTlmDatagram = QtCore.SIGNAL("TlmDatagram") - +class GTTlmReceiver(QThread): + # Setup signal to communicate with front-end GUI + gtSignalTlmDatagram = pyqtSignal(bytes) + + def __init__(self, subscr): + super().__init__() + self.runs = True + # Init zeroMQ - self.context = zmq.Context() - self.subscriber = self.context.socket(zmq.SUB) + context = zmq.Context() + self.subscriber = context.socket(zmq.SUB) self.subscriber.connect("ipc:///tmp/GroundSystem") - myTlmPgAPID = subscription.split(".",1) - mySubscription = "GroundSystem.Spacecraft1.TelemetryPackets." + str(myTlmPgAPID[1]) + myTlmPgAPID = subscr.split(".", 1) + mySubscription = f"GroundSystem.Spacecraft1.TelemetryPackets.{myTlmPgAPID[1]}" self.subscriber.setsockopt_string(zmq.SUBSCRIBE, mySubscription) - + def run(self): - while True: + while self.runs: # Read envelope with address - [address, datagram] = self.subscriber.recv_multipart() + address, datagram = self.subscriber.recv_multipart() # Send signal with received packet to front-end/GUI - self.emit(self.signalTlmDatagram, datagram) + self.gtSignalTlmDatagram.emit(datagram) # # Display usage # def usage(): - print ("Must specify --title= --port= --appid= --endian= --sub=") - print (" example: --title=Executive Services --port=10800 --appid=800 --file=cfe-es-hk-table.txt --endian=L --sub=GroundSystem.Spacecraft1.0x886") - print (" (quotes are not on the title string in this example)") + print(("Must specify --title=\"\" --port= " + "--appid= --endian=\n\nexample: --title=\"Executive Services\" " + "--port=10800 --appid=800 --file=cfe-es-hk-table.txt --endian=L")) + # -# Main +# Main # if __name__ == '__main__': - # # Set defaults for the arguments # - pageTitle = "Telemetry Page" - udpPort = 10000 - appId = 999 - tlmDefFile = "telemetry_def.txt" + pageTitle = "Telemetry Page" + udpPort = 10000 + appId = 999 + tlmDefFile = f"{ROOTDIR}/telemetry_def.txt" endian = "L" subscription = "" - + # - # process cmd line args + # process cmd line args # - try: - opts, args = getopt.getopt(sys.argv[1:], "htpafl", ["help", "title=", "port=", "appid=","file=", "endian=", "sub="]) - except getopt.GetoptError: - usage() - sys.exit(2) - - for opt, arg in opts: - if opt in ("-h", "--help"): - usage() - sys.exit() - elif opt in ("-p", "--port"): - udpPort = arg - elif opt in ("-t", "--title"): - pageTitle = arg - elif opt in ("-f", "--file"): - tlmDefFile = arg - elif opt in ("-t", "--appid"): - appId = arg - elif opt in ("-e", "--endian"): - endian = arg + try: + opts, args = getopt.getopt( + sys.argv[1:], "htpafl", + ["help", "title=", "port=", "appid=", "file=", "endian=", "sub="]) + except getopt.GetoptError: + usage() + sys.exit(2) + + for opt, arg in opts: + if opt in ("-h", "--help"): + usage() + sys.exit() + elif opt in ("-p", "--port"): + udpPort = arg + elif opt in ("-t", "--title"): + pageTitle = arg + elif opt in ("-f", "--file"): + tlmDefFile = arg + elif opt in ("-t", "--appid"): + appId = arg + elif opt in ("-e", "--endian"): + endian = arg elif opt in ("-s", "--sub"): subscription = arg - if len(subscription) == 0: + if not subscription: subscription = "GroundSystem" - print ('Generic Telemetry Page started. Subscribed to ' + subscription) + print('Generic Telemetry Page started. Subscribed to', subscription) - if endian == 'L': - py_endian = '<' - else: - py_endian = '>' + py_endian = '<' if endian == 'L' else '>' # # Init the QT application and the telemetry class # - app = QtGui.QApplication(sys.argv) + app = QApplication(sys.argv) Telem = SubsystemTelemetry() - Telem.ui.subSystemTextBrowser.setText(pageTitle) - Telem.ui.packetId.display(appId) + Telem.subSystemLineEdit.setText(pageTitle) + Telem.packetId.display(appId) # # Read in the contents of the telemetry packet definition # - tlmItemIsValid = [] - tlmItemDesc = [] - tlmItemStart = [] - tlmItemSize = [] - tlmItemDisplayType = [] - tlmItemFormat = [] - tlmItemEnum = [[] for i in range(40)] + tlmItemIsValid, tlmItemDesc, tlmItemStart, tlmItemSize, tlmItemDisplayType, tlmItemFormat = ( + [] for _ in range(6)) + tlmItemEnum = [[]] * 40 + i = 0 + with open(f"{ROOTDIR}/{tlmDefFile}") as tlmfile: + reader = csv.reader(tlmfile, skipinitialspace=True) + for row in reader: + if row[0][0] != '#': + tlmItemIsValid.append(True) + tlmItemDesc.append(row[0]) + tlmItemStart.append(row[1]) + tlmItemSize.append(row[2]) + if row[3] == 's': + tlmItemFormat.append(row[2] + row[3]) + else: + tlmItemFormat.append(py_endian + row[3]) + tlmItemDisplayType.append(row[4]) + if row[4] == 'Enm': + for m in range(5, 9): + tlmItemEnum[i].append(row[m]) + i += 1 - with open(tlmDefFile, 'r') as tlmfile: - reader = csv.reader(tlmfile, skipinitialspace = True) - for row in reader: - if row[0][0] != '#': - tlmItemIsValid.append(True) - tlmItemDesc.append(row[0]) - tlmItemStart.append(row[1]) - tlmItemSize.append(row[2]) - if row[3] == 's': - tlmItemFormat.append(row[2]+row[3]) - else: - tlmItemFormat.append(py_endian + row[3]) - - tlmItemDisplayType.append(row[4]) - if row[4] == 'Enm': - tlmItemEnum[i].append(row[5]) - tlmItemEnum[i].append(row[6]) - tlmItemEnum[i].append(row[7]) - tlmItemEnum[i].append(row[8]) - i = i + 1 - - # + # # Mark the remaining values as invalid # - for j in range (i, 40): - tlmItemIsValid.append(False) + for j in range(i, 40): + tlmItemIsValid.append(False) - # - # Display the page + # + # Display the page # Telem.show() Telem.raise_() - Telem.initTlmReceiver(subscription) + Telem.initGTTlmReceiver(subscription) sys.exit(app.exec_()) - diff --git a/Subsystems/tlmGUI/GenericTelemetryDialog.py b/Subsystems/tlmGUI/GenericTelemetryDialog.py index 0c6be4d..85e1944 100644 --- a/Subsystems/tlmGUI/GenericTelemetryDialog.py +++ b/Subsystems/tlmGUI/GenericTelemetryDialog.py @@ -1,1025 +1,861 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'GenericTelemetryDialog.ui' +# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/tlmGUI/GenericTelemetryDialog.ui' # -# Created: Thu Jun 25 09:52:44 2015 -# by: PyQt4 UI code generator 4.11.3 +# Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) +from PyQt5 import QtCore, QtGui, QtWidgets class Ui_GenericTelemetryDialog(object): def setupUi(self, GenericTelemetryDialog): - GenericTelemetryDialog.setObjectName(_fromUtf8("GenericTelemetryDialog")) - GenericTelemetryDialog.setWindowModality(QtCore.Qt.NonModal) - GenericTelemetryDialog.resize(750, 434) - font = QtGui.QFont() - font.setPointSize(13) - GenericTelemetryDialog.setFont(font) - self.verticalLayout_8 = QtGui.QVBoxLayout(GenericTelemetryDialog) - self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) - self.horizontalLayout_2 = QtGui.QHBoxLayout() - self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) - self.verticalLayout = QtGui.QVBoxLayout() - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.subSystemTelemetryPageLabel = QtGui.QLabel(GenericTelemetryDialog) - self.subSystemTelemetryPageLabel.setObjectName(_fromUtf8("subSystemTelemetryPageLabel")) - self.verticalLayout.addWidget(self.subSystemTelemetryPageLabel) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - self.subSystemTextBrowser = QtGui.QTextBrowser(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.subSystemTextBrowser.sizePolicy().hasHeightForWidth()) - self.subSystemTextBrowser.setSizePolicy(sizePolicy) - self.subSystemTextBrowser.setMinimumSize(QtCore.QSize(141, 31)) - self.subSystemTextBrowser.setMaximumSize(QtCore.QSize(141, 31)) - self.subSystemTextBrowser.setObjectName(_fromUtf8("subSystemTextBrowser")) - self.horizontalLayout.addWidget(self.subSystemTextBrowser) - self.verticalLayout.addLayout(self.horizontalLayout) - self.horizontalLayout_2.addLayout(self.verticalLayout) - self.verticalLayout_2 = QtGui.QVBoxLayout() - self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) - self.packetIdLabel = QtGui.QLabel(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + GenericTelemetryDialog.setObjectName("GenericTelemetryDialog") + GenericTelemetryDialog.resize(1046, 816) + self.layoutWidget = QtWidgets.QWidget(GenericTelemetryDialog) + self.layoutWidget.setGeometry(QtCore.QRect(40, 22, 841, 65)) + self.layoutWidget.setObjectName("layoutWidget") + self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget) + self.horizontalLayout.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout.setObjectName("horizontalLayout") + self.verticalLayout_2 = QtWidgets.QVBoxLayout() + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.subSystemTelemetryPageLabel = QtWidgets.QLabel(self.layoutWidget) + self.subSystemTelemetryPageLabel.setObjectName("subSystemTelemetryPageLabel") + self.verticalLayout_2.addWidget(self.subSystemTelemetryPageLabel) + self.subSystemLineEdit = QtWidgets.QLineEdit(self.layoutWidget) + self.subSystemLineEdit.setMinimumSize(QtCore.QSize(141, 31)) + self.subSystemLineEdit.setMaximumSize(QtCore.QSize(141, 31)) + self.subSystemLineEdit.setReadOnly(True) + self.subSystemLineEdit.setObjectName("subSystemLineEdit") + self.verticalLayout_2.addWidget(self.subSystemLineEdit) + self.horizontalLayout.addLayout(self.verticalLayout_2) + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) + self.horizontalLayout.addItem(spacerItem) + self.verticalLayout = QtWidgets.QVBoxLayout() + self.verticalLayout.setObjectName("verticalLayout") + self.packetIdLabel = QtWidgets.QLabel(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.packetIdLabel.sizePolicy().hasHeightForWidth()) self.packetIdLabel.setSizePolicy(sizePolicy) - self.packetIdLabel.setMinimumSize(QtCore.QSize(0, 13)) - self.packetIdLabel.setMaximumSize(QtCore.QSize(16777215, 13)) - self.packetIdLabel.setObjectName(_fromUtf8("packetIdLabel")) - self.verticalLayout_2.addWidget(self.packetIdLabel) - self.packetId = QtGui.QLCDNumber(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + self.packetIdLabel.setMinimumSize(QtCore.QSize(0, 21)) + self.packetIdLabel.setMaximumSize(QtCore.QSize(16777215, 25)) + self.packetIdLabel.setObjectName("packetIdLabel") + self.verticalLayout.addWidget(self.packetIdLabel) + self.packetId = QtWidgets.QLCDNumber(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.packetId.sizePolicy().hasHeightForWidth()) self.packetId.setSizePolicy(sizePolicy) - self.packetId.setObjectName(_fromUtf8("packetId")) - self.verticalLayout_2.addWidget(self.packetId) - self.horizontalLayout_2.addLayout(self.verticalLayout_2) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_2.addItem(spacerItem) - self.verticalLayout_3 = QtGui.QVBoxLayout() - self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) - self.label_5 = QtGui.QLabel(GenericTelemetryDialog) - self.label_5.setObjectName(_fromUtf8("label_5")) + self.packetId.setObjectName("packetId") + self.verticalLayout.addWidget(self.packetId) + self.horizontalLayout.addLayout(self.verticalLayout) + spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) + self.horizontalLayout.addItem(spacerItem1) + self.verticalLayout_3 = QtWidgets.QVBoxLayout() + self.verticalLayout_3.setObjectName("verticalLayout_3") + self.label_5 = QtWidgets.QLabel(self.layoutWidget) + self.label_5.setObjectName("label_5") self.verticalLayout_3.addWidget(self.label_5) - self.sequenceCount = QtGui.QTextBrowser(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.sequenceCount.sizePolicy().hasHeightForWidth()) - self.sequenceCount.setSizePolicy(sizePolicy) + self.sequenceCount = QtWidgets.QSpinBox(self.layoutWidget) self.sequenceCount.setMinimumSize(QtCore.QSize(101, 31)) self.sequenceCount.setMaximumSize(QtCore.QSize(101, 31)) - self.sequenceCount.setObjectName(_fromUtf8("sequenceCount")) + self.sequenceCount.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.sequenceCount.setMaximum(16384) + self.sequenceCount.setProperty("value", 0) + self.sequenceCount.setObjectName("sequenceCount") self.verticalLayout_3.addWidget(self.sequenceCount) - self.horizontalLayout_2.addLayout(self.verticalLayout_3) - spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_2.addItem(spacerItem1) - spacerItem2 = QtGui.QSpacerItem(146, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_2.addItem(spacerItem2) - self.buttonBox = QtGui.QDialogButtonBox(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth()) - self.buttonBox.setSizePolicy(sizePolicy) - self.buttonBox.setFocusPolicy(QtCore.Qt.NoFocus) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) - self.horizontalLayout_2.addWidget(self.buttonBox) - self.verticalLayout_8.addLayout(self.horizontalLayout_2) - self.horizontalLayout_4 = QtGui.QHBoxLayout() - self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) - self.label = QtGui.QLabel(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.horizontalLayout.addLayout(self.verticalLayout_3) + spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) + self.horizontalLayout.addItem(spacerItem2) + self.buttonBox = QtWidgets.QDialogButtonBox(self.layoutWidget) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) + self.buttonBox.setObjectName("buttonBox") + self.horizontalLayout.addWidget(self.buttonBox) + self.label_6 = QtWidgets.QLabel(GenericTelemetryDialog) + self.label_6.setGeometry(QtCore.QRect(29, 750, 711, 19)) + font = QtGui.QFont() + font.setPointSize(12) + self.label_6.setFont(font) + self.label_6.setObjectName("label_6") + self.layoutWidget_2 = QtWidgets.QWidget(GenericTelemetryDialog) + self.layoutWidget_2.setGeometry(QtCore.QRect(40, 100, 451, 23)) + self.layoutWidget_2.setObjectName("layoutWidget_2") + self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.layoutWidget_2) + self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout_4.setObjectName("horizontalLayout_4") + self.label = QtWidgets.QLabel(self.layoutWidget_2) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(161, 17)) self.label.setAlignment(QtCore.Qt.AlignCenter) - self.label.setObjectName(_fromUtf8("label")) + self.label.setObjectName("label") self.horizontalLayout_4.addWidget(self.label) - self.label_2 = QtGui.QLabel(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) - self.label_2.setSizePolicy(sizePolicy) - self.label_2.setMinimumSize(QtCore.QSize(151, 0)) - self.label_2.setMaximumSize(QtCore.QSize(151, 16777215)) - self.label_2.setAlignment(QtCore.Qt.AlignCenter) - self.label_2.setObjectName(_fromUtf8("label_2")) - self.horizontalLayout_4.addWidget(self.label_2) - self.line_2 = QtGui.QFrame(GenericTelemetryDialog) - self.line_2.setFrameShape(QtGui.QFrame.VLine) - self.line_2.setFrameShadow(QtGui.QFrame.Sunken) - self.line_2.setObjectName(_fromUtf8("line_2")) - self.horizontalLayout_4.addWidget(self.line_2) - self.label_4 = QtGui.QLabel(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) - self.label_4.setSizePolicy(sizePolicy) - self.label_4.setMinimumSize(QtCore.QSize(161, 17)) - self.label_4.setAlignment(QtCore.Qt.AlignCenter) - self.label_4.setObjectName(_fromUtf8("label_4")) - self.horizontalLayout_4.addWidget(self.label_4) - self.label_3 = QtGui.QLabel(GenericTelemetryDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) - self.label_3.setSizePolicy(sizePolicy) - self.label_3.setMinimumSize(QtCore.QSize(151, 0)) - self.label_3.setMaximumSize(QtCore.QSize(151, 16777215)) - self.label_3.setAlignment(QtCore.Qt.AlignCenter) - self.label_3.setObjectName(_fromUtf8("label_3")) - self.horizontalLayout_4.addWidget(self.label_3) - spacerItem3 = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_4.addItem(spacerItem3) - self.verticalLayout_8.addLayout(self.horizontalLayout_4) - self.scrollArea = QtGui.QScrollArea(GenericTelemetryDialog) + self.label_8 = QtWidgets.QLabel(self.layoutWidget_2) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth()) + self.label_8.setSizePolicy(sizePolicy) + self.label_8.setMinimumSize(QtCore.QSize(161, 17)) + self.label_8.setAlignment(QtCore.Qt.AlignCenter) + self.label_8.setObjectName("label_8") + self.horizontalLayout_4.addWidget(self.label_8) + self.scrollArea = QtWidgets.QScrollArea(GenericTelemetryDialog) + self.scrollArea.setGeometry(QtCore.QRect(30, 130, 961, 601)) self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.scrollArea.setWidgetResizable(True) - self.scrollArea.setObjectName(_fromUtf8("scrollArea")) - self.scrollAreaWidgetContents = QtGui.QWidget() - self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 709, 1000)) + self.scrollArea.setObjectName("scrollArea") + self.scrollAreaWidgetContents = QtWidgets.QWidget() + self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 945, 1000)) self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(0, 1000)) - self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) - self.horizontalLayout_3 = QtGui.QHBoxLayout(self.scrollAreaWidgetContents) - self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) - self.verticalLayout_4 = QtGui.QVBoxLayout() - self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) - self.itemLabelTextBrowser_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_1.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_1.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_1.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_1.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_1.setObjectName(_fromUtf8("itemLabelTextBrowser_1")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_1) - self.itemLabelTextBrowser_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_2.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_2.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_2.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_2.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_2.setObjectName(_fromUtf8("itemLabelTextBrowser_2")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_2) - self.itemLabelTextBrowser_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_3.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_3.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_3.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_3.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_3.setObjectName(_fromUtf8("itemLabelTextBrowser_3")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_3) - self.itemLabelTextBrowser_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_4.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_4.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_4.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_4.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_4.setObjectName(_fromUtf8("itemLabelTextBrowser_4")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_4) - self.itemLabelTextBrowser_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_5.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_5.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_5.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_5.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_5.setObjectName(_fromUtf8("itemLabelTextBrowser_5")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_5) - self.itemLabelTextBrowser_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_6.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_6.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_6.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_6.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_6.setObjectName(_fromUtf8("itemLabelTextBrowser_6")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_6) - self.itemLabelTextBrowser_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_7.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_7.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_7.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_7.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_7.setObjectName(_fromUtf8("itemLabelTextBrowser_7")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_7) - self.itemLabelTextBrowser_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_8.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_8.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_8.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_8.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_8.setObjectName(_fromUtf8("itemLabelTextBrowser_8")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_8) - self.itemLabelTextBrowser_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_9.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_9.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_9.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_9.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_9.setObjectName(_fromUtf8("itemLabelTextBrowser_9")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_9) - self.itemLabelTextBrowser_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_10.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_10.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_10.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_10.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_10.setObjectName(_fromUtf8("itemLabelTextBrowser_10")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_10) - self.itemLabelTextBrowser_11 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_11.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_11.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_11.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_11.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_11.setObjectName(_fromUtf8("itemLabelTextBrowser_11")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_11) - self.itemLabelTextBrowser_12 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_12.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_12.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_12.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_12.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_12.setObjectName(_fromUtf8("itemLabelTextBrowser_12")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_12) - self.itemLabelTextBrowser_13 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_13.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_13.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_13.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_13.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_13.setObjectName(_fromUtf8("itemLabelTextBrowser_13")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_13) - self.itemLabelTextBrowser_14 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_14.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_14.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_14.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_14.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_14.setObjectName(_fromUtf8("itemLabelTextBrowser_14")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_14) - self.itemLabelTextBrowser_15 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_15.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_15.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_15.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_15.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_15.setObjectName(_fromUtf8("itemLabelTextBrowser_15")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_15) - self.itemLabelTextBrowser_16 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_16.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_16.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_16.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_16.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_16.setObjectName(_fromUtf8("itemLabelTextBrowser_16")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_16) - self.itemLabelTextBrowser_17 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_17.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_17.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_17.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_17.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_17.setObjectName(_fromUtf8("itemLabelTextBrowser_17")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_17) - self.itemLabelTextBrowser_18 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_18.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_18.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_18.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_18.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_18.setObjectName(_fromUtf8("itemLabelTextBrowser_18")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_18) - self.itemLabelTextBrowser_19 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_19.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_19.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_19.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_19.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_19.setObjectName(_fromUtf8("itemLabelTextBrowser_19")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_19) - self.itemLabelTextBrowser_20 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_20.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_20.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_20.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_20.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_20.setObjectName(_fromUtf8("itemLabelTextBrowser_20")) - self.verticalLayout_4.addWidget(self.itemLabelTextBrowser_20) + self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") + self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.scrollAreaWidgetContents) + self.horizontalLayout_3.setObjectName("horizontalLayout_3") + self.verticalLayout_4 = QtWidgets.QVBoxLayout() + self.verticalLayout_4.setObjectName("verticalLayout_4") + self.itemLabelPlainTextEdit_1 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_1.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_1.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_1.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_1.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_1.setReadOnly(True) + self.itemLabelPlainTextEdit_1.setObjectName("itemLabelPlainTextEdit_1") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_1) + self.itemLabelPlainTextEdit_2 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_2.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_2.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_2.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_2.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_2.setReadOnly(True) + self.itemLabelPlainTextEdit_2.setObjectName("itemLabelPlainTextEdit_2") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_2) + self.itemLabelPlainTextEdit_3 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_3.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_3.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_3.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_3.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_3.setReadOnly(True) + self.itemLabelPlainTextEdit_3.setObjectName("itemLabelPlainTextEdit_3") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_3) + self.itemLabelPlainTextEdit_4 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_4.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_4.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_4.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_4.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_4.setReadOnly(True) + self.itemLabelPlainTextEdit_4.setObjectName("itemLabelPlainTextEdit_4") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_4) + self.itemLabelPlainTextEdit_5 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_5.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_5.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_5.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_5.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_5.setReadOnly(True) + self.itemLabelPlainTextEdit_5.setObjectName("itemLabelPlainTextEdit_5") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_5) + self.itemLabelPlainTextEdit_6 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_6.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_6.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_6.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_6.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_6.setReadOnly(True) + self.itemLabelPlainTextEdit_6.setObjectName("itemLabelPlainTextEdit_6") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_6) + self.itemLabelPlainTextEdit_7 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_7.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_7.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_7.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_7.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_7.setReadOnly(True) + self.itemLabelPlainTextEdit_7.setObjectName("itemLabelPlainTextEdit_7") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_7) + self.itemLabelPlainTextEdit_8 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_8.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_8.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_8.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_8.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_8.setReadOnly(True) + self.itemLabelPlainTextEdit_8.setObjectName("itemLabelPlainTextEdit_8") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_8) + self.itemLabelPlainTextEdit_9 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_9.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_9.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_9.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_9.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_9.setReadOnly(True) + self.itemLabelPlainTextEdit_9.setObjectName("itemLabelPlainTextEdit_9") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_9) + self.itemLabelPlainTextEdit_10 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_10.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_10.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_10.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_10.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_10.setReadOnly(True) + self.itemLabelPlainTextEdit_10.setObjectName("itemLabelPlainTextEdit_10") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_10) + self.itemLabelPlainTextEdit_11 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_11.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_11.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_11.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_11.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_11.setReadOnly(True) + self.itemLabelPlainTextEdit_11.setObjectName("itemLabelPlainTextEdit_11") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_11) + self.itemLabelPlainTextEdit_12 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_12.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_12.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_12.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_12.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_12.setReadOnly(True) + self.itemLabelPlainTextEdit_12.setObjectName("itemLabelPlainTextEdit_12") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_12) + self.itemLabelPlainTextEdit_13 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_13.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_13.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_13.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_13.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_13.setReadOnly(True) + self.itemLabelPlainTextEdit_13.setObjectName("itemLabelPlainTextEdit_13") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_13) + self.itemLabelPlainTextEdit_14 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_14.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_14.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_14.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_14.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_14.setReadOnly(True) + self.itemLabelPlainTextEdit_14.setObjectName("itemLabelPlainTextEdit_14") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_14) + self.itemLabelPlainTextEdit_15 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_15.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_15.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_15.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_15.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_15.setReadOnly(True) + self.itemLabelPlainTextEdit_15.setObjectName("itemLabelPlainTextEdit_15") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_15) + self.itemLabelPlainTextEdit_16 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_16.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_16.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_16.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_16.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_16.setReadOnly(True) + self.itemLabelPlainTextEdit_16.setObjectName("itemLabelPlainTextEdit_16") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_16) + self.itemLabelPlainTextEdit_17 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_17.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_17.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_17.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_17.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_17.setReadOnly(True) + self.itemLabelPlainTextEdit_17.setObjectName("itemLabelPlainTextEdit_17") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_17) + self.itemLabelPlainTextEdit_18 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_18.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_18.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_18.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_18.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_18.setReadOnly(True) + self.itemLabelPlainTextEdit_18.setObjectName("itemLabelPlainTextEdit_18") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_18) + self.itemLabelPlainTextEdit_19 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_19.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_19.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_19.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_19.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_19.setReadOnly(True) + self.itemLabelPlainTextEdit_19.setObjectName("itemLabelPlainTextEdit_19") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_19) + self.itemLabelPlainTextEdit_20 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_20.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_20.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_20.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_20.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_20.setReadOnly(True) + self.itemLabelPlainTextEdit_20.setObjectName("itemLabelPlainTextEdit_20") + self.verticalLayout_4.addWidget(self.itemLabelPlainTextEdit_20) self.horizontalLayout_3.addLayout(self.verticalLayout_4) - self.verticalLayout_5 = QtGui.QVBoxLayout() - self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) - self.itemValueTextBrowser_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_1.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_1.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_1.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_1.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_1.setObjectName(_fromUtf8("itemValueTextBrowser_1")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_1) - self.itemValueTextBrowser_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_2.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_2.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_2.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_2.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_2.setObjectName(_fromUtf8("itemValueTextBrowser_2")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_2) - self.itemValueTextBrowser_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_3.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_3.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_3.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_3.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_3.setObjectName(_fromUtf8("itemValueTextBrowser_3")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_3) - self.itemValueTextBrowser_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_4.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_4.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_4.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_4.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_4.setObjectName(_fromUtf8("itemValueTextBrowser_4")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_4) - self.itemValueTextBrowser_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_5.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_5.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_5.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_5.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_5.setObjectName(_fromUtf8("itemValueTextBrowser_5")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_5) - self.itemValueTextBrowser_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_6.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_6.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_6.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_6.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_6.setObjectName(_fromUtf8("itemValueTextBrowser_6")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_6) - self.itemValueTextBrowser_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_7.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_7.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_7.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_7.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_7.setObjectName(_fromUtf8("itemValueTextBrowser_7")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_7) - self.itemValueTextBrowser_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_8.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_8.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_8.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_8.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_8.setObjectName(_fromUtf8("itemValueTextBrowser_8")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_8) - self.itemValueTextBrowser_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_9.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_9.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_9.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_9.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_9.setObjectName(_fromUtf8("itemValueTextBrowser_9")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_9) - self.itemValueTextBrowser_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_10.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_10.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_10.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_10.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_10.setObjectName(_fromUtf8("itemValueTextBrowser_10")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_10) - self.itemValueTextBrowser_11 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_11.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_11.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_11.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_11.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_11.setObjectName(_fromUtf8("itemValueTextBrowser_11")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_11) - self.itemValueTextBrowser_12 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_12.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_12.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_12.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_12.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_12.setObjectName(_fromUtf8("itemValueTextBrowser_12")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_12) - self.itemValueTextBrowser_13 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_13.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_13.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_13.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_13.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_13.setObjectName(_fromUtf8("itemValueTextBrowser_13")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_13) - self.itemValueTextBrowser_14 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_14.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_14.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_14.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_14.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_14.setObjectName(_fromUtf8("itemValueTextBrowser_14")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_14) - self.itemValueTextBrowser_15 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_15.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_15.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_15.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_15.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_15.setObjectName(_fromUtf8("itemValueTextBrowser_15")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_15) - self.itemValueTextBrowser_16 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_16.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_16.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_16.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_16.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_16.setObjectName(_fromUtf8("itemValueTextBrowser_16")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_16) - self.itemValueTextBrowser_17 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_17.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_17.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_17.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_17.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_17.setObjectName(_fromUtf8("itemValueTextBrowser_17")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_17) - self.itemValueTextBrowser_18 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_18.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_18.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_18.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_18.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_18.setObjectName(_fromUtf8("itemValueTextBrowser_18")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_18) - self.itemValueTextBrowser_19 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_19.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_19.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_19.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_19.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_19.setObjectName(_fromUtf8("itemValueTextBrowser_19")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_19) - self.itemValueTextBrowser_20 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_20.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_20.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_20.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_20.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_20.setObjectName(_fromUtf8("itemValueTextBrowser_20")) - self.verticalLayout_5.addWidget(self.itemValueTextBrowser_20) + self.verticalLayout_5 = QtWidgets.QVBoxLayout() + self.verticalLayout_5.setObjectName("verticalLayout_5") + self.itemValueLineEdit_1 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_1.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_1.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_1.setReadOnly(True) + self.itemValueLineEdit_1.setObjectName("itemValueLineEdit_1") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_1) + self.itemValueLineEdit_2 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_2.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_2.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_2.setReadOnly(True) + self.itemValueLineEdit_2.setObjectName("itemValueLineEdit_2") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_2) + self.itemValueLineEdit_3 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_3.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_3.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_3.setReadOnly(True) + self.itemValueLineEdit_3.setObjectName("itemValueLineEdit_3") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_3) + self.itemValueLineEdit_4 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_4.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_4.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_4.setReadOnly(True) + self.itemValueLineEdit_4.setObjectName("itemValueLineEdit_4") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_4) + self.itemValueLineEdit_5 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_5.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_5.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_5.setReadOnly(True) + self.itemValueLineEdit_5.setObjectName("itemValueLineEdit_5") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_5) + self.itemValueLineEdit_6 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_6.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_6.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_6.setReadOnly(True) + self.itemValueLineEdit_6.setObjectName("itemValueLineEdit_6") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_6) + self.itemValueLineEdit_7 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_7.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_7.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_7.setReadOnly(True) + self.itemValueLineEdit_7.setObjectName("itemValueLineEdit_7") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_7) + self.itemValueLineEdit_8 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_8.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_8.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_8.setReadOnly(True) + self.itemValueLineEdit_8.setObjectName("itemValueLineEdit_8") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_8) + self.itemValueLineEdit_9 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_9.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_9.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_9.setReadOnly(True) + self.itemValueLineEdit_9.setObjectName("itemValueLineEdit_9") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_9) + self.itemValueLineEdit_10 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_10.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_10.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_10.setReadOnly(True) + self.itemValueLineEdit_10.setObjectName("itemValueLineEdit_10") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_10) + self.itemValueLineEdit_11 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_11.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_11.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_11.setReadOnly(True) + self.itemValueLineEdit_11.setObjectName("itemValueLineEdit_11") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_11) + self.itemValueLineEdit_12 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_12.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_12.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_12.setReadOnly(True) + self.itemValueLineEdit_12.setObjectName("itemValueLineEdit_12") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_12) + self.itemValueLineEdit_13 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_13.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_13.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_13.setReadOnly(True) + self.itemValueLineEdit_13.setObjectName("itemValueLineEdit_13") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_13) + self.itemValueLineEdit_14 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_14.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_14.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_14.setReadOnly(True) + self.itemValueLineEdit_14.setObjectName("itemValueLineEdit_14") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_14) + self.itemValueLineEdit_15 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_15.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_15.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_15.setReadOnly(True) + self.itemValueLineEdit_15.setObjectName("itemValueLineEdit_15") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_15) + self.itemValueLineEdit_16 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_16.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_16.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_16.setReadOnly(True) + self.itemValueLineEdit_16.setObjectName("itemValueLineEdit_16") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_16) + self.itemValueLineEdit_17 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_17.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_17.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_17.setReadOnly(True) + self.itemValueLineEdit_17.setObjectName("itemValueLineEdit_17") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_17) + self.itemValueLineEdit_18 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_18.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_18.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_18.setReadOnly(True) + self.itemValueLineEdit_18.setObjectName("itemValueLineEdit_18") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_18) + self.itemValueLineEdit_19 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_19.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_19.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_19.setReadOnly(True) + self.itemValueLineEdit_19.setObjectName("itemValueLineEdit_19") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_19) + self.itemValueLineEdit_20 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_20.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_20.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_20.setReadOnly(True) + self.itemValueLineEdit_20.setObjectName("itemValueLineEdit_20") + self.verticalLayout_5.addWidget(self.itemValueLineEdit_20) self.horizontalLayout_3.addLayout(self.verticalLayout_5) - self.line = QtGui.QFrame(self.scrollAreaWidgetContents) - self.line.setFrameShape(QtGui.QFrame.VLine) - self.line.setFrameShadow(QtGui.QFrame.Sunken) - self.line.setObjectName(_fromUtf8("line")) + self.line = QtWidgets.QFrame(self.scrollAreaWidgetContents) + self.line.setFrameShape(QtWidgets.QFrame.VLine) + self.line.setFrameShadow(QtWidgets.QFrame.Sunken) + self.line.setObjectName("line") self.horizontalLayout_3.addWidget(self.line) - self.verticalLayout_6 = QtGui.QVBoxLayout() - self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) - self.itemLabelTextBrowser_21 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_21.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_21.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_21.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_21.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_21.setObjectName(_fromUtf8("itemLabelTextBrowser_21")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_21) - self.itemLabelTextBrowser_22 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_22.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_22.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_22.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_22.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_22.setObjectName(_fromUtf8("itemLabelTextBrowser_22")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_22) - self.itemLabelTextBrowser_23 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_23.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_23.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_23.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_23.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_23.setObjectName(_fromUtf8("itemLabelTextBrowser_23")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_23) - self.itemLabelTextBrowser_24 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_24.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_24.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_24.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_24.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_24.setObjectName(_fromUtf8("itemLabelTextBrowser_24")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_24) - self.itemLabelTextBrowser_25 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_25.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_25.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_25.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_25.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_25.setObjectName(_fromUtf8("itemLabelTextBrowser_25")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_25) - self.itemLabelTextBrowser_26 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_26.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_26.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_26.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_26.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_26.setObjectName(_fromUtf8("itemLabelTextBrowser_26")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_26) - self.itemLabelTextBrowser_27 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_27.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_27.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_27.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_27.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_27.setObjectName(_fromUtf8("itemLabelTextBrowser_27")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_27) - self.itemLabelTextBrowser_28 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_28.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_28.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_28.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_28.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_28.setObjectName(_fromUtf8("itemLabelTextBrowser_28")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_28) - self.itemLabelTextBrowser_29 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_29.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_29.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_29.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_29.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_29.setObjectName(_fromUtf8("itemLabelTextBrowser_29")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_29) - self.itemLabelTextBrowser_30 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_30.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_30.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_30.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_30.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_30.setObjectName(_fromUtf8("itemLabelTextBrowser_30")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_30) - self.itemLabelTextBrowser_31 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_31.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_31.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_31.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_31.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_31.setObjectName(_fromUtf8("itemLabelTextBrowser_31")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_31) - self.itemLabelTextBrowser_32 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_32.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_32.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_32.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_32.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_32.setObjectName(_fromUtf8("itemLabelTextBrowser_32")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_32) - self.itemLabelTextBrowser_33 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_33.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_33.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_33.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_33.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_33.setObjectName(_fromUtf8("itemLabelTextBrowser_33")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_33) - self.itemLabelTextBrowser_34 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_34.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_34.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_34.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_34.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_34.setObjectName(_fromUtf8("itemLabelTextBrowser_34")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_34) - self.itemLabelTextBrowser_35 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_35.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_35.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_35.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_35.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_35.setObjectName(_fromUtf8("itemLabelTextBrowser_35")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_35) - self.itemLabelTextBrowser_36 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_36.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_36.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_36.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_36.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_36.setObjectName(_fromUtf8("itemLabelTextBrowser_36")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_36) - self.itemLabelTextBrowser_37 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_37.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_37.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_37.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_37.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_37.setObjectName(_fromUtf8("itemLabelTextBrowser_37")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_37) - self.itemLabelTextBrowser_38 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_38.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_38.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_38.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_38.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_38.setObjectName(_fromUtf8("itemLabelTextBrowser_38")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_38) - self.itemLabelTextBrowser_39 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_39.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_39.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_39.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_39.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_39.setObjectName(_fromUtf8("itemLabelTextBrowser_39")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_39) - self.itemLabelTextBrowser_40 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemLabelTextBrowser_40.sizePolicy().hasHeightForWidth()) - self.itemLabelTextBrowser_40.setSizePolicy(sizePolicy) - self.itemLabelTextBrowser_40.setMinimumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_40.setMaximumSize(QtCore.QSize(161, 31)) - self.itemLabelTextBrowser_40.setObjectName(_fromUtf8("itemLabelTextBrowser_40")) - self.verticalLayout_6.addWidget(self.itemLabelTextBrowser_40) + self.verticalLayout_6 = QtWidgets.QVBoxLayout() + self.verticalLayout_6.setObjectName("verticalLayout_6") + self.itemLabelPlainTextEdit_21 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_21.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_21.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_21.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_21.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_21.setReadOnly(True) + self.itemLabelPlainTextEdit_21.setObjectName("itemLabelPlainTextEdit_21") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_21) + self.itemLabelPlainTextEdit_22 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_22.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_22.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_22.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_22.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_22.setReadOnly(True) + self.itemLabelPlainTextEdit_22.setObjectName("itemLabelPlainTextEdit_22") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_22) + self.itemLabelPlainTextEdit_23 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_23.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_23.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_23.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_23.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_23.setReadOnly(True) + self.itemLabelPlainTextEdit_23.setObjectName("itemLabelPlainTextEdit_23") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_23) + self.itemLabelPlainTextEdit_24 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_24.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_24.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_24.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_24.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_24.setReadOnly(True) + self.itemLabelPlainTextEdit_24.setObjectName("itemLabelPlainTextEdit_24") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_24) + self.itemLabelPlainTextEdit_25 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_25.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_25.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_25.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_25.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_25.setReadOnly(True) + self.itemLabelPlainTextEdit_25.setObjectName("itemLabelPlainTextEdit_25") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_25) + self.itemLabelPlainTextEdit_26 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_26.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_26.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_26.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_26.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_26.setReadOnly(True) + self.itemLabelPlainTextEdit_26.setObjectName("itemLabelPlainTextEdit_26") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_26) + self.itemLabelPlainTextEdit_27 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_27.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_27.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_27.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_27.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_27.setReadOnly(True) + self.itemLabelPlainTextEdit_27.setObjectName("itemLabelPlainTextEdit_27") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_27) + self.itemLabelPlainTextEdit_28 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_28.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_28.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_28.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_28.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_28.setReadOnly(True) + self.itemLabelPlainTextEdit_28.setObjectName("itemLabelPlainTextEdit_28") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_28) + self.itemLabelPlainTextEdit_29 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_29.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_29.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_29.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_29.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_29.setReadOnly(True) + self.itemLabelPlainTextEdit_29.setObjectName("itemLabelPlainTextEdit_29") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_29) + self.itemLabelPlainTextEdit_30 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_30.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_30.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_30.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_30.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_30.setReadOnly(True) + self.itemLabelPlainTextEdit_30.setObjectName("itemLabelPlainTextEdit_30") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_30) + self.itemLabelPlainTextEdit_31 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_31.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_31.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_31.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_31.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_31.setReadOnly(True) + self.itemLabelPlainTextEdit_31.setObjectName("itemLabelPlainTextEdit_31") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_31) + self.itemLabelPlainTextEdit_32 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_32.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_32.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_32.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_32.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_32.setReadOnly(True) + self.itemLabelPlainTextEdit_32.setObjectName("itemLabelPlainTextEdit_32") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_32) + self.itemLabelPlainTextEdit_33 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_33.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_33.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_33.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_33.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_33.setReadOnly(True) + self.itemLabelPlainTextEdit_33.setObjectName("itemLabelPlainTextEdit_33") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_33) + self.itemLabelPlainTextEdit_34 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_34.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_34.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_34.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_34.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_34.setReadOnly(True) + self.itemLabelPlainTextEdit_34.setObjectName("itemLabelPlainTextEdit_34") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_34) + self.itemLabelPlainTextEdit_35 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_35.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_35.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_35.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_35.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_35.setReadOnly(True) + self.itemLabelPlainTextEdit_35.setObjectName("itemLabelPlainTextEdit_35") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_35) + self.itemLabelPlainTextEdit_36 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_36.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_36.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_36.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_36.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_36.setReadOnly(True) + self.itemLabelPlainTextEdit_36.setObjectName("itemLabelPlainTextEdit_36") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_36) + self.itemLabelPlainTextEdit_37 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_37.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_37.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_37.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_37.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_37.setReadOnly(True) + self.itemLabelPlainTextEdit_37.setObjectName("itemLabelPlainTextEdit_37") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_37) + self.itemLabelPlainTextEdit_38 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_38.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_38.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_38.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_38.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_38.setReadOnly(True) + self.itemLabelPlainTextEdit_38.setObjectName("itemLabelPlainTextEdit_38") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_38) + self.itemLabelPlainTextEdit_39 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_39.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_39.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_39.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_39.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_39.setReadOnly(True) + self.itemLabelPlainTextEdit_39.setObjectName("itemLabelPlainTextEdit_39") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_39) + self.itemLabelPlainTextEdit_40 = QtWidgets.QPlainTextEdit(self.scrollAreaWidgetContents) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.itemLabelPlainTextEdit_40.sizePolicy().hasHeightForWidth()) + self.itemLabelPlainTextEdit_40.setSizePolicy(sizePolicy) + self.itemLabelPlainTextEdit_40.setMinimumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_40.setMaximumSize(QtCore.QSize(161, 31)) + self.itemLabelPlainTextEdit_40.setReadOnly(True) + self.itemLabelPlainTextEdit_40.setObjectName("itemLabelPlainTextEdit_40") + self.verticalLayout_6.addWidget(self.itemLabelPlainTextEdit_40) self.horizontalLayout_3.addLayout(self.verticalLayout_6) - self.verticalLayout_7 = QtGui.QVBoxLayout() - self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) - self.itemValueTextBrowser_21 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_21.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_21.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_21.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_21.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_21.setObjectName(_fromUtf8("itemValueTextBrowser_21")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_21) - self.itemValueTextBrowser_22 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_22.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_22.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_22.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_22.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_22.setObjectName(_fromUtf8("itemValueTextBrowser_22")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_22) - self.itemValueTextBrowser_23 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_23.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_23.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_23.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_23.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_23.setObjectName(_fromUtf8("itemValueTextBrowser_23")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_23) - self.itemValueTextBrowser_24 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_24.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_24.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_24.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_24.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_24.setObjectName(_fromUtf8("itemValueTextBrowser_24")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_24) - self.itemValueTextBrowser_25 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_25.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_25.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_25.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_25.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_25.setObjectName(_fromUtf8("itemValueTextBrowser_25")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_25) - self.itemValueTextBrowser_26 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_26.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_26.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_26.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_26.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_26.setObjectName(_fromUtf8("itemValueTextBrowser_26")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_26) - self.itemValueTextBrowser_27 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_27.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_27.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_27.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_27.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_27.setObjectName(_fromUtf8("itemValueTextBrowser_27")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_27) - self.itemValueTextBrowser_28 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_28.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_28.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_28.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_28.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_28.setObjectName(_fromUtf8("itemValueTextBrowser_28")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_28) - self.itemValueTextBrowser_29 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_29.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_29.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_29.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_29.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_29.setObjectName(_fromUtf8("itemValueTextBrowser_29")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_29) - self.itemValueTextBrowser_30 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_30.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_30.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_30.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_30.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_30.setObjectName(_fromUtf8("itemValueTextBrowser_30")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_30) - self.itemValueTextBrowser_31 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_31.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_31.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_31.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_31.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_31.setObjectName(_fromUtf8("itemValueTextBrowser_31")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_31) - self.itemValueTextBrowser_32 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_32.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_32.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_32.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_32.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_32.setObjectName(_fromUtf8("itemValueTextBrowser_32")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_32) - self.itemValueTextBrowser_33 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_33.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_33.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_33.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_33.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_33.setObjectName(_fromUtf8("itemValueTextBrowser_33")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_33) - self.itemValueTextBrowser_34 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_34.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_34.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_34.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_34.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_34.setObjectName(_fromUtf8("itemValueTextBrowser_34")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_34) - self.itemValueTextBrowser_35 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_35.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_35.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_35.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_35.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_35.setObjectName(_fromUtf8("itemValueTextBrowser_35")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_35) - self.itemValueTextBrowser_36 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_36.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_36.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_36.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_36.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_36.setObjectName(_fromUtf8("itemValueTextBrowser_36")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_36) - self.itemValueTextBrowser_37 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_37.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_37.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_37.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_37.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_37.setObjectName(_fromUtf8("itemValueTextBrowser_37")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_37) - self.itemValueTextBrowser_38 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_38.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_38.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_38.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_38.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_38.setObjectName(_fromUtf8("itemValueTextBrowser_38")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_38) - self.itemValueTextBrowser_39 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_39.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_39.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_39.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_39.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_39.setObjectName(_fromUtf8("itemValueTextBrowser_39")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_39) - self.itemValueTextBrowser_40 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.itemValueTextBrowser_40.sizePolicy().hasHeightForWidth()) - self.itemValueTextBrowser_40.setSizePolicy(sizePolicy) - self.itemValueTextBrowser_40.setMinimumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_40.setMaximumSize(QtCore.QSize(151, 31)) - self.itemValueTextBrowser_40.setObjectName(_fromUtf8("itemValueTextBrowser_40")) - self.verticalLayout_7.addWidget(self.itemValueTextBrowser_40) + self.verticalLayout_7 = QtWidgets.QVBoxLayout() + self.verticalLayout_7.setObjectName("verticalLayout_7") + self.itemValueLineEdit_21 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_21.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_21.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_21.setReadOnly(True) + self.itemValueLineEdit_21.setObjectName("itemValueLineEdit_21") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_21) + self.itemValueLineEdit_22 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_22.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_22.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_22.setReadOnly(True) + self.itemValueLineEdit_22.setObjectName("itemValueLineEdit_22") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_22) + self.itemValueLineEdit_23 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_23.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_23.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_23.setReadOnly(True) + self.itemValueLineEdit_23.setObjectName("itemValueLineEdit_23") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_23) + self.itemValueLineEdit_24 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_24.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_24.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_24.setReadOnly(True) + self.itemValueLineEdit_24.setObjectName("itemValueLineEdit_24") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_24) + self.itemValueLineEdit_25 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_25.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_25.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_25.setReadOnly(True) + self.itemValueLineEdit_25.setObjectName("itemValueLineEdit_25") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_25) + self.itemValueLineEdit_26 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_26.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_26.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_26.setReadOnly(True) + self.itemValueLineEdit_26.setObjectName("itemValueLineEdit_26") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_26) + self.itemValueLineEdit_27 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_27.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_27.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_27.setReadOnly(True) + self.itemValueLineEdit_27.setObjectName("itemValueLineEdit_27") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_27) + self.itemValueLineEdit_28 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_28.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_28.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_28.setReadOnly(True) + self.itemValueLineEdit_28.setObjectName("itemValueLineEdit_28") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_28) + self.itemValueLineEdit_29 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_29.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_29.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_29.setReadOnly(True) + self.itemValueLineEdit_29.setObjectName("itemValueLineEdit_29") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_29) + self.itemValueLineEdit_30 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_30.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_30.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_30.setReadOnly(True) + self.itemValueLineEdit_30.setObjectName("itemValueLineEdit_30") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_30) + self.itemValueLineEdit_31 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_31.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_31.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_31.setReadOnly(True) + self.itemValueLineEdit_31.setObjectName("itemValueLineEdit_31") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_31) + self.itemValueLineEdit_32 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_32.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_32.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_32.setReadOnly(True) + self.itemValueLineEdit_32.setObjectName("itemValueLineEdit_32") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_32) + self.itemValueLineEdit_33 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_33.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_33.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_33.setReadOnly(True) + self.itemValueLineEdit_33.setObjectName("itemValueLineEdit_33") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_33) + self.itemValueLineEdit_34 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_34.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_34.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_34.setReadOnly(True) + self.itemValueLineEdit_34.setObjectName("itemValueLineEdit_34") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_34) + self.itemValueLineEdit_35 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_35.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_35.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_35.setReadOnly(True) + self.itemValueLineEdit_35.setObjectName("itemValueLineEdit_35") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_35) + self.itemValueLineEdit_36 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_36.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_36.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_36.setReadOnly(True) + self.itemValueLineEdit_36.setObjectName("itemValueLineEdit_36") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_36) + self.itemValueLineEdit_37 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_37.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_37.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_37.setReadOnly(True) + self.itemValueLineEdit_37.setObjectName("itemValueLineEdit_37") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_37) + self.itemValueLineEdit_38 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_38.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_38.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_38.setReadOnly(True) + self.itemValueLineEdit_38.setObjectName("itemValueLineEdit_38") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_38) + self.itemValueLineEdit_39 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_39.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_39.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_39.setReadOnly(True) + self.itemValueLineEdit_39.setObjectName("itemValueLineEdit_39") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_39) + self.itemValueLineEdit_40 = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) + self.itemValueLineEdit_40.setMinimumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_40.setMaximumSize(QtCore.QSize(151, 31)) + self.itemValueLineEdit_40.setReadOnly(True) + self.itemValueLineEdit_40.setObjectName("itemValueLineEdit_40") + self.verticalLayout_7.addWidget(self.itemValueLineEdit_40) self.horizontalLayout_3.addLayout(self.verticalLayout_7) self.scrollArea.setWidget(self.scrollAreaWidgetContents) - self.verticalLayout_8.addWidget(self.scrollArea) - self.label_6 = QtGui.QLabel(GenericTelemetryDialog) - font = QtGui.QFont() - font.setPointSize(12) - self.label_6.setFont(font) - self.label_6.setObjectName(_fromUtf8("label_6")) - self.verticalLayout_8.addWidget(self.label_6) + self.layoutWidget_3 = QtWidgets.QWidget(GenericTelemetryDialog) + self.layoutWidget_3.setGeometry(QtCore.QRect(510, 100, 451, 23)) + self.layoutWidget_3.setObjectName("layoutWidget_3") + self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.layoutWidget_3) + self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0) + self.horizontalLayout_5.setObjectName("horizontalLayout_5") + self.label_2 = QtWidgets.QLabel(self.layoutWidget_3) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) + self.label_2.setSizePolicy(sizePolicy) + self.label_2.setMinimumSize(QtCore.QSize(161, 17)) + self.label_2.setAlignment(QtCore.Qt.AlignCenter) + self.label_2.setObjectName("label_2") + self.horizontalLayout_5.addWidget(self.label_2) + self.label_9 = QtWidgets.QLabel(self.layoutWidget_3) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth()) + self.label_9.setSizePolicy(sizePolicy) + self.label_9.setMinimumSize(QtCore.QSize(161, 17)) + self.label_9.setAlignment(QtCore.Qt.AlignCenter) + self.label_9.setObjectName("label_9") + self.horizontalLayout_5.addWidget(self.label_9) self.retranslateUi(GenericTelemetryDialog) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), GenericTelemetryDialog.accept) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), GenericTelemetryDialog.reject) + self.buttonBox.clicked['QAbstractButton*'].connect(GenericTelemetryDialog.close) QtCore.QMetaObject.connectSlotsByName(GenericTelemetryDialog) def retranslateUi(self, GenericTelemetryDialog): - GenericTelemetryDialog.setWindowTitle(_translate("GenericTelemetryDialog", "Telemetry Page", None)) - self.subSystemTelemetryPageLabel.setText(_translate("GenericTelemetryDialog", "Subsystem Telemetry Page", None)) - self.packetIdLabel.setText(_translate("GenericTelemetryDialog", "Packet ID", None)) - self.label_5.setText(_translate("GenericTelemetryDialog", "Sequence Count", None)) - self.label.setText(_translate("GenericTelemetryDialog", "Telemetry Point Label", None)) - self.label_2.setText(_translate("GenericTelemetryDialog", "Telemetry Point Value", None)) - self.label_4.setText(_translate("GenericTelemetryDialog", "Telemetry Point Label", None)) - self.label_3.setText(_translate("GenericTelemetryDialog", "Telemetry Point Value", None)) - self.label_6.setText(_translate("GenericTelemetryDialog", "*No packets? Remember to select the IP address of your spacecraft in the Main Window.", None)) - - -if __name__ == "__main__": - import sys - app = QtGui.QApplication(sys.argv) - GenericTelemetryDialog = QtGui.QDialog() - ui = Ui_GenericTelemetryDialog() - ui.setupUi(GenericTelemetryDialog) - GenericTelemetryDialog.show() - sys.exit(app.exec_()) + _translate = QtCore.QCoreApplication.translate + GenericTelemetryDialog.setWindowTitle(_translate("GenericTelemetryDialog", "Telemetry Page")) + self.subSystemTelemetryPageLabel.setText(_translate("GenericTelemetryDialog", "Subsystem Telemetry Page")) + self.packetIdLabel.setText(_translate("GenericTelemetryDialog", "Packet ID")) + self.label_5.setText(_translate("GenericTelemetryDialog", "Sequence Count")) + self.label_6.setText(_translate("GenericTelemetryDialog", "*No packets? Remember to select the IP address of your spacecraft in the Main Window.")) + self.label.setText(_translate("GenericTelemetryDialog", "Telemetry Point Label")) + self.label_8.setText(_translate("GenericTelemetryDialog", "Telemetry Point Value")) + self.label_2.setText(_translate("GenericTelemetryDialog", "Telemetry Point Label")) + self.label_9.setText(_translate("GenericTelemetryDialog", "Telemetry Point Value")) diff --git a/Subsystems/tlmGUI/GenericTelemetryDialog.ui b/Subsystems/tlmGUI/GenericTelemetryDialog.ui index 42bec0f..fa9ecc6 100644 --- a/Subsystems/tlmGUI/GenericTelemetryDialog.ui +++ b/Subsystems/tlmGUI/GenericTelemetryDialog.ui @@ -2,69 +2,314 @@ GenericTelemetryDialog - - Qt::NonModal - 0 0 - 750 - 434 + 1046 + 816 - - - 13 - - Telemetry Page - - - + + + + 40 + 22 + 841 + 65 + + + + + + + + + Subsystem Telemetry Page + + + + + + + + 141 + 31 + + + + + 141 + 31 + + + + true + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + 0 + 0 + + + + + 0 + 21 + + + + + 16777215 + 25 + + + + Packet ID + + + + + + + + 0 + 0 + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Sequence Count + + + + + + + + 101 + 31 + + + + + 101 + 31 + + + + QAbstractSpinBox::NoButtons + + + 16384 + + + 0 + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + QDialogButtonBox::Close + + + + + + + + + 29 + 750 + 711 + 19 + + + + + 12 + + + + *No packets? Remember to select the IP address of your spacecraft in the Main Window. + + + + + + 40 + 100 + 451 + 23 + + + + + + + + 0 + 0 + + + + + 161 + 17 + + + + Telemetry Point Label + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 161 + 17 + + + + Telemetry Point Value + + + Qt::AlignCenter + + + + + + + + + 30 + 130 + 961 + 601 + + + + Qt::ScrollBarAlwaysOn + + + true + + + + + 0 + 0 + 945 + 1000 + + + + + 0 + 1000 + + + - - - - - Subsystem Telemetry Page - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + - - - - - + 0 @@ -73,57 +318,73 @@ - 0 - 13 + 161 + 31 - 16777215 - 13 + 161 + 31 - - Packet ID + + true - + - + 0 0 + + + 161 + 31 + + + + + 161 + 31 + + + + true + - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - Sequence Count + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true - + 0 @@ -132,2053 +393,1752 @@ - 101 + 161 31 - 101 + 161 31 + + true + - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 146 - 20 - - - - - - - - - 0 - 0 - - - - Qt::NoFocus - - - Qt::Horizontal - - - QDialogButtonBox::Close - - - - - - - - - - - - 0 - 0 - - - - - 161 - 17 - - - - Telemetry Point Label - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 151 - 0 - - - - - 151 - 16777215 - - - - Telemetry Point Value - - - Qt::AlignCenter - - - - - - - Qt::Vertical - - - - - - - - 0 - 0 - - - - - 161 - 17 - - - - Telemetry Point Label - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 151 - 0 - - - - - 151 - 16777215 - - - - Telemetry Point Value - - - Qt::AlignCenter - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 0 - 20 - - - - - - - - - - Qt::ScrollBarAlwaysOn - - - true - - - - - 0 - 0 - 709 - 1000 - - - - - 0 - 1000 - - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - - Qt::Vertical - - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - 0 - 0 - - - - - 161 - 31 - - - - - 161 - 31 - - - - - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - - - - - 0 - 0 - - - - - 151 - 31 - - - - - 151 - 31 - - - - - + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + - - - - - - - - - 12 - - - - *No packets? Remember to select the IP address of your spacecraft in the Main Window. - - - - - - - - - buttonBox - accepted() - GenericTelemetryDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + + Qt::Vertical + + + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + 0 + 0 + + + + + 161 + 31 + + + + + 161 + 31 + + + + true + + + + + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + 151 + 31 + + + + + 151 + 31 + + + + true + + + + + + + + + + + + 510 + 100 + 451 + 23 + + + + + + + + 0 + 0 + + + + + 161 + 17 + + + + Telemetry Point Label + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 161 + 17 + + + + Telemetry Point Value + + + Qt::AlignCenter + + + + + + + + buttonBox - rejected() + clicked(QAbstractButton*) GenericTelemetryDialog - reject() + close() - 316 - 260 + 99 + 46 - 286 - 274 + 522 + 407 diff --git a/Subsystems/tlmGUI/TelemetrySystem.py b/Subsystems/tlmGUI/TelemetrySystem.py index 6cf43c5..4c9ce23 100644 --- a/Subsystems/tlmGUI/TelemetrySystem.py +++ b/Subsystems/tlmGUI/TelemetrySystem.py @@ -17,273 +17,174 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python -# -import sys +#!/usr/bin/env python3 +# import csv -import subprocess import getopt import shlex +# import socket +import subprocess +import sys +from pathlib import Path +from struct import unpack + import zmq +from PyQt5.QtCore import QThread, pyqtSignal +from PyQt5.QtWidgets import QApplication, QDialog -from PyQt4 import QtGui, QtCore from TelemetrySystemDialog import Ui_TelemetrySystemDialog -from struct import * -class TelemetrySystem(QtGui.QDialog): +ROOTDIR = Path(sys.argv[0]).resolve().parent - pktCount = 0 + +class TelemetrySystem(QDialog, Ui_TelemetrySystemDialog): # # Init the class # def __init__(self): - QtGui.QDialog.__init__(self) - self.ui = Ui_TelemetrySystemDialog() - self.ui.setupUi(self) + super().__init__() + self.setupUi(self) self.setWindowTitle('Telemetry System Main Page') - self.move(0,100) - - self.ui.pushButton_0.clicked.connect(self.ProcessButton_0) - self.ui.pushButton_1.clicked.connect(self.ProcessButton_1) - self.ui.pushButton_2.clicked.connect(self.ProcessButton_2) - self.ui.pushButton_3.clicked.connect(self.ProcessButton_3) - self.ui.pushButton_4.clicked.connect(self.ProcessButton_4) - self.ui.pushButton_5.clicked.connect(self.ProcessButton_5) - self.ui.pushButton_6.clicked.connect(self.ProcessButton_6) - self.ui.pushButton_7.clicked.connect(self.ProcessButton_7) - self.ui.pushButton_8.clicked.connect(self.ProcessButton_8) - self.ui.pushButton_9.clicked.connect(self.ProcessButton_9) - self.ui.pushButton_10.clicked.connect(self.ProcessButton_10) - self.ui.pushButton_11.clicked.connect(self.ProcessButton_11) - self.ui.pushButton_12.clicked.connect(self.ProcessButton_12) - self.ui.pushButton_13.clicked.connect(self.ProcessButton_13) - self.ui.pushButton_14.clicked.connect(self.ProcessButton_14) - self.ui.pushButton_15.clicked.connect(self.ProcessButton_15) - self.ui.pushButton_16.clicked.connect(self.ProcessButton_16) - self.ui.pushButton_17.clicked.connect(self.ProcessButton_17) - self.ui.pushButton_18.clicked.connect(self.ProcessButton_18) - self.ui.pushButton_19.clicked.connect(self.ProcessButton_19) - self.ui.pushButton_20.clicked.connect(self.ProcessButton_20) + self.move(0, 100) + + self.pktCount = 0 + self.subscription = None + + for k in range(21): + pushButton = getattr(self, f"pushButton_{k}") + pushButton.clicked.connect( + lambda _, x=k: self.ProcessButtonGeneric(x)) + # - # convert a string of binary bytes to ascii hex + # convert a string of binary bytes to ascii hex # + @staticmethod def strToHex(aString): hexStr = "" for x in aString: - hexStr = hexStr + "%02X " % ord(x) - return hexStr + hexStr += f'{ord(x):02X} ' + return hexStr.strip() # - # Dump the telemetry packet - # - def dumpPacket(packetData): - appIdString = "%02X" % ord(packetData[0]) - appIdString = appIdString + "%02X" % ord(packetData[1]) - appId = (ord(packetData[0]) << 8) + (ord(packetData[1])) - print ("\n-----------------------------------------------") - print ("\nPacket: App ID = ", hex(appId)) - print ("\nPacket Data: ", strToHex(packetData)) - + # Dump the telemetry packet # - # Button press methods - # - def ProcessButton_0(self): - self.ProcessButtonGeneric(0) - def ProcessButton_1(self): - self.ProcessButtonGeneric(1) - def ProcessButton_2(self): - self.ProcessButtonGeneric(2) - def ProcessButton_3(self): - self.ProcessButtonGeneric(3) - def ProcessButton_4(self): - self.ProcessButtonGeneric(4) - def ProcessButton_5(self): - self.ProcessButtonGeneric(5) - def ProcessButton_6(self): - self.ProcessButtonGeneric(6) - def ProcessButton_7(self): - self.ProcessButtonGeneric(7) - def ProcessButton_8(self): - self.ProcessButtonGeneric(8) - def ProcessButton_9(self): - self.ProcessButtonGeneric(9) - def ProcessButton_10(self): - self.ProcessButtonGeneric(10) - def ProcessButton_11(self): - self.ProcessButtonGeneric(11) - def ProcessButton_12(self): - self.ProcessButtonGeneric(12) - def ProcessButton_13(self): - self.ProcessButtonGeneric(13) - def ProcessButton_14(self): - self.ProcessButtonGeneric(14) - def ProcessButton_15(self): - self.ProcessButtonGeneric(15) - def ProcessButton_16(self): - self.ProcessButtonGeneric(16) - def ProcessButton_17(self): - self.ProcessButtonGeneric(17) - def ProcessButton_18(self): - self.ProcessButtonGeneric(18) - def ProcessButton_19(self): - self.ProcessButtonGeneric(19) - def ProcessButton_20(self): - self.ProcessButtonGeneric(20) + def dumpPacket(self, packetData): + # appIdString = f"{ord(packetData[0]):02X}" + # appIdString += f"{ord(packetData[1]):02X}" + appId = (ord(packetData[0]) << 8) + (ord(packetData[1])) + print("\n-----------------------------------------------") + print("\nPacket: App ID =", hex(appId)) + print("\nPacket Data:", self.strToHex(packetData)) def ProcessButtonGeneric(self, idx): - tempSub = self.subscription + '.' + hex(tlmPageAppid[idx]) - if tlmPageIsValid[idx] == True: - # need to extract data from fields, then start page with right params - launch_string = 'python3 ' + tlmClass[idx] + ' --title=\"' + tlmPageDesc[idx] + '\" --appid=' + hex(tlmPageAppid[idx]) + ' --port=' + str(tlmPagePort[idx]) + ' --file=' + tlmPageDefFile[idx] + ' --endian=' + endian + ' --sub=' + tempSub - cmd_args = shlex.split(launch_string) - subprocess.Popen(cmd_args) - - # Start the telemetry receiver (see TlmReceiver class) - def initTlmReceiver(self, subscription): - self.setWindowTitle('Telemetry System page for: ' + subscription) - self.subscription = subscription - self.thread = TlmReceiver(self, subscription) - self.connect(self.thread, self.thread.signalTlmDatagram, self.processPendingDatagrams) + tempSub = f"{self.subscription}.{hex(tlmPageAppid[idx])}" + if tlmPageIsValid[idx]: + # need to extract data from fields, then start page with right params + launch_string = (f'python3 {ROOTDIR}/{tlmClass[idx]} ' + f'--title=\"{tlmPageDesc[idx]}\" ' + f'--appid={hex(tlmPageAppid[idx])} ' + f'--port={tlmPagePort[idx]} ' + f'--file={tlmPageDefFile[idx]} ' + f'--endian={endian} --sub={tempSub}') + # print(launch_string) + cmd_args = shlex.split(launch_string) + subprocess.Popen(cmd_args) + + # Start the telemetry receiver (see TSTlmReceiver class) + def initTSTlmReceiver(self, subscr): + self.setWindowTitle(f'Telemetry System page for: {subscr}') + self.subscription = subscr + self.thread = TSTlmReceiver(subscr) + self.thread.tsSignalTlmDatagram.connect(self.processPendingDatagrams) + self.thread.finished.connect(self.thread.deleteLater) self.thread.start() # # This method processes packets. Called when the TelemetryReceiver receives a message/packet # def processPendingDatagrams(self, datagram): - - # - # convert a string of binary bytes to ascii hex - # - def strToHex(aString): - hexStr = "" - for x in aString: - hexStr = hexStr + "%02X " % ord(x) - return hexStr - - # - # Dump the telemetry packet - # - def dumpPacket(packetData): - appIdString = "%02X" % ord(packetData[0]) - appIdString = appIdString + "%02X" % ord(packetData[1]) - appId = (ord(packetData[0]) << 8) + (ord(packetData[1])) - print ("\nPacket: App ID = ", hex(appId)) - print ("\nPacket Data: ", strToHex(packetData)) - print ("\n-----------------------------------------------") - # # Show number of packets received - # + # self.pktCount += 1 - self.ui.sequenceCount.setText(str(self.pktCount)) + self.packetCount.setValue(self.pktCount) + # sendSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # - # Decode the packet and forward it to the correct port (if there is one) + # Decode the packet and forward it to the correct port (if there is one) # - streamId,Sequence,Length = unpack(">HHH",datagram[:6]) + streamId = unpack(">H", datagram[:2]) # Uncomment the next two lines to debug - # print "Packet ID = " , hex(streamId) - # dumpPacket(datagram) - for i in range ( 0, 21 ): - if streamId == tlmPageAppid[i]: - send_host = "127.0.0.1" - send_port = tlmPagePort[i] -# sendSocket = socket(AF_INET,SOCK_DGRAM) -# sendSocket.sendto(datagram, (send_host,send_port)) - - tlmPageCount[i] = tlmPageCount[i] + 1 - # - # I wish I knew a better way to update the count field in the GUI - # Maybe store a pointer to the field in the gui - # - if i == 0: - self.ui.countBrowser_0.setText(str(tlmPageCount[0])) - elif i == 1: - self.ui.countBrowser_1.setText(str(tlmPageCount[1])) - elif i == 2: - self.ui.countBrowser_2.setText(str(tlmPageCount[2])) - elif i == 3: - self.ui.countBrowser_3.setText(str(tlmPageCount[3])) - elif i == 4: - self.ui.countBrowser_4.setText(str(tlmPageCount[4])) - elif i == 5: - self.ui.countBrowser_5.setText(str(tlmPageCount[5])) - elif i == 6: - self.ui.countBrowser_6.setText(str(tlmPageCount[6])) - elif i == 7: - self.ui.countBrowser_7.setText(str(tlmPageCount[7])) - elif i == 8: - self.ui.countBrowser_8.setText(str(tlmPageCount[8])) - elif i == 9: - self.ui.countBrowser_9.setText(str(tlmPageCount[9])) - elif i == 10: - self.ui.countBrowser_10.setText(str(tlmPageCount[10])) - elif i == 11: - self.ui.countBrowser_11.setText(str(tlmPageCount[11])) - elif i == 12: - self.ui.countBrowser_12.setText(str(tlmPageCount[12])) - elif i == 13: - self.ui.countBrowser_13.setText(str(tlmPageCount[13])) - elif i == 14: - self.ui.countBrowser_14.setText(str(tlmPageCount[14])) - elif i == 15: - self.ui.countBrowser_16.setText(str(tlmPageCount[15])) - elif i == 16: - self.ui.countBrowser_17.setText(str(tlmPageCount[16])) - elif i == 17: - self.ui.countBrowser_18.setText(str(tlmPageCount[17])) - elif i == 18: - self.ui.countBrowser_19.setText(str(tlmPageCount[18])) - elif i == 19: - self.ui.countBrowser_20.setText(str(tlmPageCount[19])) - elif i == 20: - self.ui.countBrowser_21.setText(str(tlmPageCount[20])) + # print("Packet ID =", hex(streamId[0])) + # self.dumpPacket(datagram) + for l in range(21): + if streamId[0] == tlmPageAppid[l]: + # send_host = "127.0.0.1" + # send_port = tlmPagePort[l] + # sendSocket.sendto(datagram, (send_host, send_port)) + + tlmPageCount[l] += 1 + # + # I wish I knew a better way to update the count field in the GUI + # Maybe store a pointer to the field in the gui + # + if l < 15: + countSpinBox_l = getattr(self, f"countSpinBox_{l}") + else: + countSpinBox_l = getattr(self, f"countSpinBox_{l+1}") + countSpinBox_l.setValue(tlmPageCount[l]) + + ## Reimplements closeEvent + ## to properly quit the thread + ## and close the window + def closeEvent(self, event): + self.thread.runs = False + self.thread.wait(2000) + super().closeEvent(event) # Subscribes and receives zeroMQ messages -class TlmReceiver(QtCore.QThread): - - def __init__(self, mainWindow, subscription): - QtCore.QThread.__init__(self) +class TSTlmReceiver(QThread): + # Setup signal to communicate with front-end GUI + tsSignalTlmDatagram = pyqtSignal(bytes) - # Setup signal to communicate with front-end GUI - self.signalTlmDatagram = QtCore.SIGNAL("TlmDatagram") + def __init__(self, subscr): + super().__init__() + self.runs = True # Init zeroMQ - self.context = zmq.Context() - self.subscriber = self.context.socket(zmq.SUB) + context = zmq.Context() + self.subscriber = context.socket(zmq.SUB) self.subscriber.connect("ipc:///tmp/GroundSystem") - self.subscriber.setsockopt_string(zmq.SUBSCRIBE, subscription) - + self.subscriber.setsockopt_string(zmq.SUBSCRIBE, subscr) + def run(self): - while True: + while self.runs: # Receive and read envelope with address - [address, datagram] = self.subscriber.recv_multipart() + address, datagram = self.subscriber.recv_multipart() # Send signal with received packet to front-end/GUI - self.emit(self.signalTlmDatagram, datagram) + self.tsSignalTlmDatagram.emit(datagram) + # # Main # if __name__ == '__main__': - - # # Init the QT application and the telemetry dialog class # - app = QtGui.QApplication(sys.argv) + app = QApplication(sys.argv) Telem = TelemetrySystem() - # # Set defaults for the arguments # - tlmDefFile = "telemetry-pages.txt" + tlmDefFile = f"{ROOTDIR}/telemetry-pages.txt" endian = "L" subscription = "" - + # # process cmd line args # @@ -291,203 +192,59 @@ def run(self): opts, args = getopt.getopt(sys.argv[1:], "htpafl", ["sub="]) except getopt.GetoptError: sys.exit(2) - + for opt, arg in opts: if opt in ("-s", "--sub"): subscription = arg - if len(subscription) == 0: + if not subscription: subscription = "GroundSystem" - print ('Telemetry System started. Subscribed to ' + subscription) + print('Telemetry System started. Subscribed to', subscription) # # Read in the contents of the telemetry packet definition # - tlmPageIsValid = [] - tlmPageDesc = [] - tlmClass = [] - tlmPagePort = [] - tlmPageAppid = [] - tlmPageCount = [] - tlmPageDefFile = [] + tlmPageIsValid, tlmPageDesc, tlmClass, tlmPagePort,\ + tlmPageAppid, tlmPageCount, tlmPageDefFile = ([] for _ in range(7)) i = 0 - with open(tlmDefFile, 'r') as tlmfile: - reader = csv.reader(tlmfile, skipinitialspace = True) - for row in reader: - if row[0][0] != '#': - tlmPageIsValid.append(True) - tlmPageDesc.append(row[0]) - tlmClass.append(row[1]) - tlmPagePort.append(int(row[2],16) + 10000) - tlmPageAppid.append(int(row[2],16)) - tlmPageDefFile.append(row[3]) - tlmPageCount.append(0) - i = i + 1 - # + with open(tlmDefFile) as tlmfile: + reader = csv.reader(tlmfile, skipinitialspace=True) + for row in reader: + if row[0][0] != '#': + tlmPageIsValid.append(True) + tlmPageDesc.append(row[0]) + tlmClass.append(row[1]) + tlmPagePort.append(int(row[2], 16) + 10000) + tlmPageAppid.append(int(row[2], 16)) + tlmPageDefFile.append(row[3]) + tlmPageCount.append(0) + i += 1 + # # Mark the remaining values ad invalid # - for j in range (i, 21): - tlmPageAppid.append(0) - tlmPageIsValid.append(False) + for j in range(i, 21): + tlmPageAppid.append(0) + tlmPageIsValid.append(False) # # fill the data fields on the page # - if tlmPageIsValid[0] == True: - Telem.ui.SubsysBrowser_0.setText(tlmPageDesc[0]) - Telem.ui.pktidBrowser_0.setText(hex(tlmPageAppid[0])) - Telem.ui.countBrowser_0.setText(str(tlmPageCount[0])) - else: - Telem.ui.SubsysBrowser_0.setText("(unused)") - - if tlmPageIsValid[1] == True: - Telem.ui.SubsysBrowser_1.setText(tlmPageDesc[1]) - Telem.ui.pktidBrowser_1.setText(hex(tlmPageAppid[1])) - Telem.ui.countBrowser_1.setText(str(tlmPageCount[1])) - else: - Telem.ui.SubsysBrowser_1.setText("(unused)") - - if tlmPageIsValid[2] == True: - Telem.ui.SubsysBrowser_2.setText(tlmPageDesc[2]) - Telem.ui.pktidBrowser_2.setText(hex(tlmPageAppid[2])) - Telem.ui.countBrowser_2.setText(str(tlmPageCount[2])) - else: - Telem.ui.SubsysBrowser_2.setText("(unused)") - - if tlmPageIsValid[3] == True: - Telem.ui.SubsysBrowser_3.setText(tlmPageDesc[3]) - Telem.ui.pktidBrowser_3.setText(hex(tlmPageAppid[3])) - Telem.ui.countBrowser_3.setText(str(tlmPageCount[3])) - else: - Telem.ui.SubsysBrowser_3.setText("(unused)") - - if tlmPageIsValid[4] == True: - Telem.ui.SubsysBrowser_4.setText(tlmPageDesc[4]) - Telem.ui.pktidBrowser_4.setText(hex(tlmPageAppid[4])) - Telem.ui.countBrowser_4.setText(str(tlmPageCount[4])) - else: - Telem.ui.SubsysBrowser_4.setText("(unused)") - - if tlmPageIsValid[5] == True: - Telem.ui.SubsysBrowser_5.setText(tlmPageDesc[5]) - Telem.ui.pktidBrowser_5.setText(hex(tlmPageAppid[5])) - Telem.ui.countBrowser_5.setText(str(tlmPageCount[5])) - else: - Telem.ui.SubsysBrowser_5.setText("(unused)") - - if tlmPageIsValid[6] == True: - Telem.ui.SubsysBrowser_6.setText(tlmPageDesc[6]) - Telem.ui.pktidBrowser_6.setText(hex(tlmPageAppid[6])) - Telem.ui.countBrowser_6.setText(str(tlmPageCount[6])) - else: - Telem.ui.SubsysBrowser_6.setText("(unused)") - - if tlmPageIsValid[7] == True: - Telem.ui.SubsysBrowser_7.setText(tlmPageDesc[7]) - Telem.ui.pktidBrowser_7.setText(hex(tlmPageAppid[7])) - Telem.ui.countBrowser_7.setText(str(tlmPageCount[7])) - else: - Telem.ui.SubsysBrowser_7.setText("(unused)") - - if tlmPageIsValid[8] == True: - Telem.ui.SubsysBrowser_8.setText(tlmPageDesc[8]) - Telem.ui.pktidBrowser_8.setText(hex(tlmPageAppid[8])) - Telem.ui.countBrowser_8.setText(str(tlmPageCount[8])) - else: - Telem.ui.SubsysBrowser_8.setText("(unused)") - - if tlmPageIsValid[9] == True: - Telem.ui.SubsysBrowser_9.setText(tlmPageDesc[9]) - Telem.ui.pktidBrowser_9.setText(hex(tlmPageAppid[9])) - Telem.ui.countBrowser_9.setText(str(tlmPageCount[9])) - else: - Telem.ui.SubsysBrowser_9.setText("(unused)") - - if tlmPageIsValid[10] == True: - Telem.ui.SubsysBrowser_10.setText(tlmPageDesc[10]) - Telem.ui.pktidBrowser_10.setText(hex(tlmPageAppid[10])) - Telem.ui.countBrowser_10.setText(str(tlmPageCount[10])) - else: - Telem.ui.SubsysBrowser_10.setText("(unused)") - - if tlmPageIsValid[11] == True: - Telem.ui.SubsysBrowser_11.setText(tlmPageDesc[11]) - Telem.ui.pktidBrowser_11.setText(hex(tlmPageAppid[11])) - Telem.ui.countBrowser_11.setText(str(tlmPageCount[11])) - else: - Telem.ui.SubsysBrowser_11.setText("(unused)") - - if tlmPageIsValid[12] == True: - Telem.ui.SubsysBrowser_12.setText(tlmPageDesc[12]) - Telem.ui.pktidBrowser_12.setText(hex(tlmPageAppid[12])) - Telem.ui.countBrowser_12.setText(str(tlmPageCount[12])) - else: - Telem.ui.SubsysBrowser_12.setText("(unused)") - - if tlmPageIsValid[13] == True: - Telem.ui.SubsysBrowser_13.setText(tlmPageDesc[13]) - Telem.ui.pktidBrowser_13.setText(hex(tlmPageAppid[13])) - Telem.ui.countBrowser_13.setText(str(tlmPageCount[13])) - else: - Telem.ui.SubsysBrowser_13.setText("(unused)") - - if tlmPageIsValid[14] == True: - Telem.ui.SubsysBrowser_14.setText(tlmPageDesc[14]) - Telem.ui.pktidBrowser_14.setText(hex(tlmPageAppid[14])) - Telem.ui.countBrowser_14.setText(str(tlmPageCount[14])) - else: - Telem.ui.SubsysBrowser_14.setText("(unused)") - - if tlmPageIsValid[15] == True: - Telem.ui.SubsysBrowser_15.setText(tlmPageDesc[15]) - Telem.ui.pktidBrowser_15.setText(hex(tlmPageAppid[15])) - Telem.ui.countBrowser_15.setText(str(tlmPageCount[15])) - else: - Telem.ui.SubsysBrowser_15.setText("(unused)") - - if tlmPageIsValid[16] == True: - Telem.ui.SubsysBrowser_16.setText(tlmPageDesc[16]) - Telem.ui.pktidBrowser_16.setText(hex(tlmPageAppid[16])) - Telem.ui.countBrowser_16.setText(str(tlmPageCount[16])) - else: - Telem.ui.SubsysBrowser_16.setText("(unused)") - - if tlmPageIsValid[17] == True: - Telem.ui.SubsysBrowser_17.setText(tlmPageDesc[17]) - Telem.ui.pktidBrowser_17.setText(hex(tlmPageAppid[17])) - Telem.ui.countBrowser_17.setText(str(tlmPageCount[17])) - else: - Telem.ui.SubsysBrowser_17.setText("(unused)") - - if tlmPageIsValid[18] == True: - Telem.ui.SubsysBrowser_18.setText(tlmPageDesc[18]) - Telem.ui.pktidBrowser_18.setText(hex(tlmPageAppid[18])) - Telem.ui.countBrowser_18.setText(str(tlmPageCount[18])) - else: - Telem.ui.SubsysBrowser_18.setText("(unused)") - - if tlmPageIsValid[19] == True: - Telem.ui.SubsysBrowser_19.setText(tlmPageDesc[19]) - Telem.ui.pktidBrowser_19.setText(hex(tlmPageAppid[19])) - Telem.ui.countBrowser_19.setText(str(tlmPageCount[19])) - else: - Telem.ui.SubsysBrowser_19.setText("(unused)") - - if tlmPageIsValid[20] == True: - Telem.ui.SubsysBrowser_20.setText(tlmPageDesc[20]) - Telem.ui.pktidBrowser_20.setText(hex(tlmPageAppid[20])) - Telem.ui.countBrowser_20.setText(str(tlmPageCount[20])) - else: - Telem.ui.SubsysBrowser_20.setText("(unused)") - - - - # - # Display the page + for i in range(21): + subsysBrowser = getattr(Telem, f"SubsysBrowser_{i}") + if tlmPageIsValid[i]: + pktidBrowser = getattr(Telem, f"pktidBrowser_{i}") + countSpinBox = getattr(Telem, f"countSpinBox_{i}") + subsysBrowser.setPlainText(tlmPageDesc[i]) + pktidBrowser.setText(hex(tlmPageAppid[i])) + countSpinBox.setValue(tlmPageCount[0]) + else: + subsysBrowser.setPlainText("(unused)") + + # + # Display the page # Telem.show() Telem.raise_() - Telem.initTlmReceiver(subscription) + Telem.initTSTlmReceiver(subscription) sys.exit(app.exec_()) - diff --git a/Subsystems/tlmGUI/TelemetrySystemDialog.py b/Subsystems/tlmGUI/TelemetrySystemDialog.py index 8f6ff0f..379b38b 100644 --- a/Subsystems/tlmGUI/TelemetrySystemDialog.py +++ b/Subsystems/tlmGUI/TelemetrySystemDialog.py @@ -1,1085 +1,912 @@ # -*- coding: utf-8 -*- -# Form implementation generated from reading ui file 'TelemetrySystemDialog.ui' +# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/Subsystems/tlmGUI/TelemetrySystemDialog.ui' # -# Created: Wed Mar 25 14:24:26 2015 -# by: PyQt4 UI code generator 4.11.3 +# Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore, QtGui - -try: - _fromUtf8 = QtCore.QString.fromUtf8 -except AttributeError: - def _fromUtf8(s): - return s - -try: - _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig, _encoding) -except AttributeError: - def _translate(context, text, disambig): - return QtGui.QApplication.translate(context, text, disambig) +from PyQt5 import QtCore, QtGui, QtWidgets class Ui_TelemetrySystemDialog(object): def setupUi(self, TelemetrySystemDialog): - TelemetrySystemDialog.setObjectName(_fromUtf8("TelemetrySystemDialog")) - TelemetrySystemDialog.resize(515, 600) - self.verticalLayout = QtGui.QVBoxLayout(TelemetrySystemDialog) - self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) - self.horizontalLayout = QtGui.QHBoxLayout() - self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) - spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + TelemetrySystemDialog.setObjectName("TelemetrySystemDialog") + TelemetrySystemDialog.resize(625, 908) + self.verticalLayout = QtWidgets.QVBoxLayout(TelemetrySystemDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) - self.label = QtGui.QLabel(TelemetrySystemDialog) - self.label.setObjectName(_fromUtf8("label")) + self.label = QtWidgets.QLabel(TelemetrySystemDialog) + self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) - spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) - self.horizontalLayout_3 = QtGui.QHBoxLayout() - self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetNoConstraint) - self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) - spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_3 = QtWidgets.QHBoxLayout() + self.horizontalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint) + self.horizontalLayout_3.setObjectName("horizontalLayout_3") + spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) - spacerItem3 = QtGui.QSpacerItem(80, 32, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) + spacerItem3 = QtWidgets.QSpacerItem(80, 32, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) - self.horizontalLayout_2 = QtGui.QHBoxLayout() - self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) - spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_2 = QtWidgets.QHBoxLayout() + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem4) - self.label_6 = QtGui.QLabel(TelemetrySystemDialog) - self.label_6.setObjectName(_fromUtf8("label_6")) + self.label_6 = QtWidgets.QLabel(TelemetrySystemDialog) + self.label_6.setObjectName("label_6") self.horizontalLayout_2.addWidget(self.label_6) - self.sequenceCount = QtGui.QTextBrowser(TelemetrySystemDialog) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.sequenceCount.sizePolicy().hasHeightForWidth()) - self.sequenceCount.setSizePolicy(sizePolicy) - self.sequenceCount.setMinimumSize(QtCore.QSize(130, 30)) - self.sequenceCount.setMaximumSize(QtCore.QSize(130, 30)) - self.sequenceCount.setObjectName(_fromUtf8("sequenceCount")) - self.horizontalLayout_2.addWidget(self.sequenceCount) - spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.packetCount = QtWidgets.QSpinBox(TelemetrySystemDialog) + self.packetCount.setReadOnly(True) + self.packetCount.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.packetCount.setMaximum(16384) + self.packetCount.setProperty("value", 0) + self.packetCount.setObjectName("packetCount") + self.horizontalLayout_2.addWidget(self.packetCount) + spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.horizontalLayout_3.addLayout(self.horizontalLayout_2) - spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem6) - self.buttonBox = QtGui.QDialogButtonBox(TelemetrySystemDialog) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) - self.buttonBox.setObjectName(_fromUtf8("buttonBox")) + self.buttonBox = QtWidgets.QDialogButtonBox(TelemetrySystemDialog) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) + self.buttonBox.setObjectName("buttonBox") self.horizontalLayout_3.addWidget(self.buttonBox) self.verticalLayout.addLayout(self.horizontalLayout_3) - self.horizontalLayout_4 = QtGui.QHBoxLayout() - self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) - spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout_4 = QtWidgets.QHBoxLayout() + self.horizontalLayout_4.setObjectName("horizontalLayout_4") + spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem7) - self.label_2 = QtGui.QLabel(TelemetrySystemDialog) - self.label_2.setObjectName(_fromUtf8("label_2")) + self.label_2 = QtWidgets.QLabel(TelemetrySystemDialog) + self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) - spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem8) self.verticalLayout.addLayout(self.horizontalLayout_4) - self.scrollArea = QtGui.QScrollArea(TelemetrySystemDialog) + self.scrollArea = QtWidgets.QScrollArea(TelemetrySystemDialog) self.scrollArea.setMinimumSize(QtCore.QSize(0, 0)) self.scrollArea.setBaseSize(QtCore.QSize(0, 800)) self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.scrollArea.setWidgetResizable(True) - self.scrollArea.setObjectName(_fromUtf8("scrollArea")) - self.scrollAreaWidgetContents = QtGui.QWidget() - self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 474, 1000)) + self.scrollArea.setObjectName("scrollArea") + self.scrollAreaWidgetContents = QtWidgets.QWidget() + self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 591, 1000)) self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(0, 1000)) - self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) - self.verticalLayout_2 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) - self.verticalLayout_2.setSpacing(0) - self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) - self.horizontalLayout_5 = QtGui.QHBoxLayout() - self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) - self.label_3 = QtGui.QLabel(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") + self.layoutWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents) + self.layoutWidget.setGeometry(QtCore.QRect(10, 11, 523, 892)) + self.layoutWidget.setObjectName("layoutWidget") + self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget) + self.gridLayout.setContentsMargins(0, 0, 0, 0) + self.gridLayout.setObjectName("gridLayout") + self.horizontalLayout_7 = QtWidgets.QHBoxLayout() + self.horizontalLayout_7.setObjectName("horizontalLayout_7") + self.label_3 = QtWidgets.QLabel(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setMinimumSize(QtCore.QSize(141, 31)) self.label_3.setMaximumSize(QtCore.QSize(141, 31)) - self.label_3.setObjectName(_fromUtf8("label_3")) - self.horizontalLayout_5.addWidget(self.label_3) - self.label_4 = QtGui.QLabel(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.label_3.setObjectName("label_3") + self.horizontalLayout_7.addWidget(self.label_3) + self.label_4 = QtWidgets.QLabel(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setMinimumSize(QtCore.QSize(81, 31)) self.label_4.setMaximumSize(QtCore.QSize(81, 31)) - self.label_4.setObjectName(_fromUtf8("label_4")) - self.horizontalLayout_5.addWidget(self.label_4) - self.label_5 = QtGui.QLabel(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.label_4.setObjectName("label_4") + self.horizontalLayout_7.addWidget(self.label_4) + self.label_5 = QtWidgets.QLabel(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setMinimumSize(QtCore.QSize(91, 31)) - self.label_5.setMaximumSize(QtCore.QSize(91, 31)) - self.label_5.setObjectName(_fromUtf8("label_5")) - self.horizontalLayout_5.addWidget(self.label_5) - spacerItem9 = QtGui.QSpacerItem(101, 27, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) - self.horizontalLayout_5.addItem(spacerItem9) - self.verticalLayout_2.addLayout(self.horizontalLayout_5) - self.horizontalLayout_6 = QtGui.QHBoxLayout() - self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) - self.SubsysBrowser_0 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.label_5.setMaximumSize(QtCore.QSize(100, 31)) + self.label_5.setObjectName("label_5") + self.horizontalLayout_7.addWidget(self.label_5) + spacerItem9 = QtWidgets.QSpacerItem(110, 27, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) + self.horizontalLayout_7.addItem(spacerItem9) + self.gridLayout.addLayout(self.horizontalLayout_7, 0, 0, 1, 1) + self.horizontalLayout_5 = QtWidgets.QHBoxLayout() + self.horizontalLayout_5.setObjectName("horizontalLayout_5") + self.SubsysBrowser_0 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_0.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_0.setSizePolicy(sizePolicy) self.SubsysBrowser_0.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_0.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_0.setObjectName(_fromUtf8("SubsysBrowser_0")) - self.horizontalLayout_6.addWidget(self.SubsysBrowser_0) - self.pktidBrowser_0 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_0.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_0.setSizePolicy(sizePolicy) + self.SubsysBrowser_0.setObjectName("SubsysBrowser_0") + self.horizontalLayout_5.addWidget(self.SubsysBrowser_0) + self.pktidBrowser_0 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_0.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_0.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_0.setObjectName(_fromUtf8("pktidBrowser_0")) - self.horizontalLayout_6.addWidget(self.pktidBrowser_0) - self.countBrowser_0 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_0.sizePolicy().hasHeightForWidth()) - self.countBrowser_0.setSizePolicy(sizePolicy) - self.countBrowser_0.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_0.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_0.setObjectName(_fromUtf8("countBrowser_0")) - self.horizontalLayout_6.addWidget(self.countBrowser_0) - self.pushButton_0 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pktidBrowser_0.setObjectName("pktidBrowser_0") + self.horizontalLayout_5.addWidget(self.pktidBrowser_0) + self.countSpinBox_0 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_0.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_0.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_0.setReadOnly(True) + self.countSpinBox_0.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_0.setMaximum(16384) + self.countSpinBox_0.setObjectName("countSpinBox_0") + self.horizontalLayout_5.addWidget(self.countSpinBox_0) + self.pushButton_0 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_0.sizePolicy().hasHeightForWidth()) self.pushButton_0.setSizePolicy(sizePolicy) self.pushButton_0.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_0.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_0.setObjectName(_fromUtf8("pushButton_0")) - self.horizontalLayout_6.addWidget(self.pushButton_0) - self.verticalLayout_2.addLayout(self.horizontalLayout_6) - self.horizontalLayout_7 = QtGui.QHBoxLayout() - self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) - self.SubsysBrowser_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_0.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_0.setObjectName("pushButton_0") + self.horizontalLayout_5.addWidget(self.pushButton_0) + self.gridLayout.addLayout(self.horizontalLayout_5, 1, 0, 1, 1) + self.horizontalLayout_6 = QtWidgets.QHBoxLayout() + self.horizontalLayout_6.setObjectName("horizontalLayout_6") + self.SubsysBrowser_1 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_1.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_1.setSizePolicy(sizePolicy) self.SubsysBrowser_1.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_1.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_1.setObjectName(_fromUtf8("SubsysBrowser_1")) - self.horizontalLayout_7.addWidget(self.SubsysBrowser_1) - self.pktidBrowser_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_1.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_1.setSizePolicy(sizePolicy) + self.SubsysBrowser_1.setObjectName("SubsysBrowser_1") + self.horizontalLayout_6.addWidget(self.SubsysBrowser_1) + self.pktidBrowser_1 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_1.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_1.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_1.setObjectName(_fromUtf8("pktidBrowser_1")) - self.horizontalLayout_7.addWidget(self.pktidBrowser_1) - self.countBrowser_1 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_1.sizePolicy().hasHeightForWidth()) - self.countBrowser_1.setSizePolicy(sizePolicy) - self.countBrowser_1.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_1.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_1.setObjectName(_fromUtf8("countBrowser_1")) - self.horizontalLayout_7.addWidget(self.countBrowser_1) - self.pushButton_1 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pktidBrowser_1.setObjectName("pktidBrowser_1") + self.horizontalLayout_6.addWidget(self.pktidBrowser_1) + self.countSpinBox_1 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_1.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_1.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_1.setReadOnly(True) + self.countSpinBox_1.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_1.setMaximum(16384) + self.countSpinBox_1.setObjectName("countSpinBox_1") + self.horizontalLayout_6.addWidget(self.countSpinBox_1) + self.pushButton_1 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_1.sizePolicy().hasHeightForWidth()) self.pushButton_1.setSizePolicy(sizePolicy) self.pushButton_1.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_1.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_1.setObjectName(_fromUtf8("pushButton_1")) - self.horizontalLayout_7.addWidget(self.pushButton_1) - self.verticalLayout_2.addLayout(self.horizontalLayout_7) - self.horizontalLayout_8 = QtGui.QHBoxLayout() - self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) - self.SubsysBrowser_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.pushButton_1.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_1.setObjectName("pushButton_1") + self.horizontalLayout_6.addWidget(self.pushButton_1) + self.gridLayout.addLayout(self.horizontalLayout_6, 2, 0, 1, 1) + self.horizontalLayout_8 = QtWidgets.QHBoxLayout() + self.horizontalLayout_8.setObjectName("horizontalLayout_8") + self.SubsysBrowser_2 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_2.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_2.setSizePolicy(sizePolicy) self.SubsysBrowser_2.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_2.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_2.setObjectName(_fromUtf8("SubsysBrowser_2")) + self.SubsysBrowser_2.setObjectName("SubsysBrowser_2") self.horizontalLayout_8.addWidget(self.SubsysBrowser_2) - self.pktidBrowser_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_2.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_2.setSizePolicy(sizePolicy) + self.pktidBrowser_2 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_2.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_2.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_2.setObjectName(_fromUtf8("pktidBrowser_2")) + self.pktidBrowser_2.setObjectName("pktidBrowser_2") self.horizontalLayout_8.addWidget(self.pktidBrowser_2) - self.countBrowser_2 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_2.sizePolicy().hasHeightForWidth()) - self.countBrowser_2.setSizePolicy(sizePolicy) - self.countBrowser_2.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_2.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_2.setObjectName(_fromUtf8("countBrowser_2")) - self.horizontalLayout_8.addWidget(self.countBrowser_2) - self.pushButton_2 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_2 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_2.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_2.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_2.setReadOnly(True) + self.countSpinBox_2.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_2.setMaximum(16384) + self.countSpinBox_2.setObjectName("countSpinBox_2") + self.horizontalLayout_8.addWidget(self.countSpinBox_2) + self.pushButton_2 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth()) self.pushButton_2.setSizePolicy(sizePolicy) self.pushButton_2.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_2.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) + self.pushButton_2.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_2.setObjectName("pushButton_2") self.horizontalLayout_8.addWidget(self.pushButton_2) - self.verticalLayout_2.addLayout(self.horizontalLayout_8) - self.horizontalLayout_9 = QtGui.QHBoxLayout() - self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) - self.SubsysBrowser_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_8, 3, 0, 1, 1) + self.horizontalLayout_9 = QtWidgets.QHBoxLayout() + self.horizontalLayout_9.setObjectName("horizontalLayout_9") + self.SubsysBrowser_3 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_3.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_3.setSizePolicy(sizePolicy) self.SubsysBrowser_3.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_3.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_3.setObjectName(_fromUtf8("SubsysBrowser_3")) + self.SubsysBrowser_3.setObjectName("SubsysBrowser_3") self.horizontalLayout_9.addWidget(self.SubsysBrowser_3) - self.pktidBrowser_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_3.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_3.setSizePolicy(sizePolicy) + self.pktidBrowser_3 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_3.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_3.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_3.setObjectName(_fromUtf8("pktidBrowser_3")) + self.pktidBrowser_3.setObjectName("pktidBrowser_3") self.horizontalLayout_9.addWidget(self.pktidBrowser_3) - self.countBrowser_3 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_3.sizePolicy().hasHeightForWidth()) - self.countBrowser_3.setSizePolicy(sizePolicy) - self.countBrowser_3.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_3.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_3.setObjectName(_fromUtf8("countBrowser_3")) - self.horizontalLayout_9.addWidget(self.countBrowser_3) - self.pushButton_3 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_3 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_3.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_3.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_3.setReadOnly(True) + self.countSpinBox_3.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_3.setMaximum(16384) + self.countSpinBox_3.setObjectName("countSpinBox_3") + self.horizontalLayout_9.addWidget(self.countSpinBox_3) + self.pushButton_3 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth()) self.pushButton_3.setSizePolicy(sizePolicy) self.pushButton_3.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_3.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_3.setObjectName(_fromUtf8("pushButton_3")) + self.pushButton_3.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_3.setObjectName("pushButton_3") self.horizontalLayout_9.addWidget(self.pushButton_3) - self.verticalLayout_2.addLayout(self.horizontalLayout_9) - self.horizontalLayout_10 = QtGui.QHBoxLayout() - self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10")) - self.SubsysBrowser_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_9, 4, 0, 1, 1) + self.horizontalLayout_10 = QtWidgets.QHBoxLayout() + self.horizontalLayout_10.setObjectName("horizontalLayout_10") + self.SubsysBrowser_4 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_4.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_4.setSizePolicy(sizePolicy) self.SubsysBrowser_4.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_4.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_4.setObjectName(_fromUtf8("SubsysBrowser_4")) + self.SubsysBrowser_4.setObjectName("SubsysBrowser_4") self.horizontalLayout_10.addWidget(self.SubsysBrowser_4) - self.pktidBrowser_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_4.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_4.setSizePolicy(sizePolicy) + self.pktidBrowser_4 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_4.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_4.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_4.setObjectName(_fromUtf8("pktidBrowser_4")) + self.pktidBrowser_4.setObjectName("pktidBrowser_4") self.horizontalLayout_10.addWidget(self.pktidBrowser_4) - self.countBrowser_4 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_4.sizePolicy().hasHeightForWidth()) - self.countBrowser_4.setSizePolicy(sizePolicy) - self.countBrowser_4.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_4.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_4.setObjectName(_fromUtf8("countBrowser_4")) - self.horizontalLayout_10.addWidget(self.countBrowser_4) - self.pushButton_4 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_4 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_4.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_4.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_4.setReadOnly(True) + self.countSpinBox_4.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_4.setMaximum(16384) + self.countSpinBox_4.setObjectName("countSpinBox_4") + self.horizontalLayout_10.addWidget(self.countSpinBox_4) + self.pushButton_4 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_4.sizePolicy().hasHeightForWidth()) self.pushButton_4.setSizePolicy(sizePolicy) self.pushButton_4.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_4.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_4.setObjectName(_fromUtf8("pushButton_4")) + self.pushButton_4.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_4.setObjectName("pushButton_4") self.horizontalLayout_10.addWidget(self.pushButton_4) - self.verticalLayout_2.addLayout(self.horizontalLayout_10) - self.horizontalLayout_11 = QtGui.QHBoxLayout() - self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11")) - self.SubsysBrowser_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_10, 5, 0, 1, 1) + self.horizontalLayout_11 = QtWidgets.QHBoxLayout() + self.horizontalLayout_11.setObjectName("horizontalLayout_11") + self.SubsysBrowser_5 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_5.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_5.setSizePolicy(sizePolicy) self.SubsysBrowser_5.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_5.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_5.setObjectName(_fromUtf8("SubsysBrowser_5")) + self.SubsysBrowser_5.setObjectName("SubsysBrowser_5") self.horizontalLayout_11.addWidget(self.SubsysBrowser_5) - self.pktidBrowser_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_5.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_5.setSizePolicy(sizePolicy) + self.pktidBrowser_5 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_5.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_5.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_5.setObjectName(_fromUtf8("pktidBrowser_5")) + self.pktidBrowser_5.setObjectName("pktidBrowser_5") self.horizontalLayout_11.addWidget(self.pktidBrowser_5) - self.countBrowser_5 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_5.sizePolicy().hasHeightForWidth()) - self.countBrowser_5.setSizePolicy(sizePolicy) - self.countBrowser_5.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_5.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_5.setObjectName(_fromUtf8("countBrowser_5")) - self.horizontalLayout_11.addWidget(self.countBrowser_5) - self.pushButton_5 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_5 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_5.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_5.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_5.setReadOnly(True) + self.countSpinBox_5.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_5.setMaximum(16384) + self.countSpinBox_5.setObjectName("countSpinBox_5") + self.horizontalLayout_11.addWidget(self.countSpinBox_5) + self.pushButton_5 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_5.sizePolicy().hasHeightForWidth()) self.pushButton_5.setSizePolicy(sizePolicy) self.pushButton_5.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_5.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_5.setObjectName(_fromUtf8("pushButton_5")) + self.pushButton_5.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_5.setObjectName("pushButton_5") self.horizontalLayout_11.addWidget(self.pushButton_5) - self.verticalLayout_2.addLayout(self.horizontalLayout_11) - self.horizontalLayout_12 = QtGui.QHBoxLayout() - self.horizontalLayout_12.setObjectName(_fromUtf8("horizontalLayout_12")) - self.SubsysBrowser_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_11, 6, 0, 1, 1) + self.horizontalLayout_12 = QtWidgets.QHBoxLayout() + self.horizontalLayout_12.setObjectName("horizontalLayout_12") + self.SubsysBrowser_6 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_6.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_6.setSizePolicy(sizePolicy) self.SubsysBrowser_6.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_6.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_6.setObjectName(_fromUtf8("SubsysBrowser_6")) + self.SubsysBrowser_6.setObjectName("SubsysBrowser_6") self.horizontalLayout_12.addWidget(self.SubsysBrowser_6) - self.pktidBrowser_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_6.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_6.setSizePolicy(sizePolicy) + self.pktidBrowser_6 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_6.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_6.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_6.setObjectName(_fromUtf8("pktidBrowser_6")) + self.pktidBrowser_6.setObjectName("pktidBrowser_6") self.horizontalLayout_12.addWidget(self.pktidBrowser_6) - self.countBrowser_6 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_6.sizePolicy().hasHeightForWidth()) - self.countBrowser_6.setSizePolicy(sizePolicy) - self.countBrowser_6.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_6.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_6.setObjectName(_fromUtf8("countBrowser_6")) - self.horizontalLayout_12.addWidget(self.countBrowser_6) - self.pushButton_6 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_6 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_6.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_6.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_6.setReadOnly(True) + self.countSpinBox_6.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_6.setMaximum(16384) + self.countSpinBox_6.setObjectName("countSpinBox_6") + self.horizontalLayout_12.addWidget(self.countSpinBox_6) + self.pushButton_6 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_6.sizePolicy().hasHeightForWidth()) self.pushButton_6.setSizePolicy(sizePolicy) self.pushButton_6.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_6.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_6.setObjectName(_fromUtf8("pushButton_6")) + self.pushButton_6.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_6.setObjectName("pushButton_6") self.horizontalLayout_12.addWidget(self.pushButton_6) - self.verticalLayout_2.addLayout(self.horizontalLayout_12) - self.horizontalLayout_13 = QtGui.QHBoxLayout() - self.horizontalLayout_13.setObjectName(_fromUtf8("horizontalLayout_13")) - self.SubsysBrowser_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_12, 7, 0, 1, 1) + self.horizontalLayout_13 = QtWidgets.QHBoxLayout() + self.horizontalLayout_13.setObjectName("horizontalLayout_13") + self.SubsysBrowser_7 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_7.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_7.setSizePolicy(sizePolicy) self.SubsysBrowser_7.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_7.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_7.setObjectName(_fromUtf8("SubsysBrowser_7")) + self.SubsysBrowser_7.setObjectName("SubsysBrowser_7") self.horizontalLayout_13.addWidget(self.SubsysBrowser_7) - self.pktidBrowser_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_7.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_7.setSizePolicy(sizePolicy) + self.pktidBrowser_7 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_7.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_7.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_7.setObjectName(_fromUtf8("pktidBrowser_7")) + self.pktidBrowser_7.setObjectName("pktidBrowser_7") self.horizontalLayout_13.addWidget(self.pktidBrowser_7) - self.countBrowser_7 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_7.sizePolicy().hasHeightForWidth()) - self.countBrowser_7.setSizePolicy(sizePolicy) - self.countBrowser_7.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_7.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_7.setObjectName(_fromUtf8("countBrowser_7")) - self.horizontalLayout_13.addWidget(self.countBrowser_7) - self.pushButton_7 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_7 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_7.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_7.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_7.setReadOnly(True) + self.countSpinBox_7.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_7.setMaximum(16384) + self.countSpinBox_7.setObjectName("countSpinBox_7") + self.horizontalLayout_13.addWidget(self.countSpinBox_7) + self.pushButton_7 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_7.sizePolicy().hasHeightForWidth()) self.pushButton_7.setSizePolicy(sizePolicy) self.pushButton_7.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_7.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_7.setObjectName(_fromUtf8("pushButton_7")) + self.pushButton_7.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_7.setObjectName("pushButton_7") self.horizontalLayout_13.addWidget(self.pushButton_7) - self.verticalLayout_2.addLayout(self.horizontalLayout_13) - self.horizontalLayout_14 = QtGui.QHBoxLayout() - self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14")) - self.SubsysBrowser_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_13, 8, 0, 1, 1) + self.horizontalLayout_14 = QtWidgets.QHBoxLayout() + self.horizontalLayout_14.setObjectName("horizontalLayout_14") + self.SubsysBrowser_8 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_8.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_8.setSizePolicy(sizePolicy) self.SubsysBrowser_8.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_8.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_8.setObjectName(_fromUtf8("SubsysBrowser_8")) + self.SubsysBrowser_8.setObjectName("SubsysBrowser_8") self.horizontalLayout_14.addWidget(self.SubsysBrowser_8) - self.pktidBrowser_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_8.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_8.setSizePolicy(sizePolicy) + self.pktidBrowser_8 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_8.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_8.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_8.setObjectName(_fromUtf8("pktidBrowser_8")) + self.pktidBrowser_8.setObjectName("pktidBrowser_8") self.horizontalLayout_14.addWidget(self.pktidBrowser_8) - self.countBrowser_8 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_8.sizePolicy().hasHeightForWidth()) - self.countBrowser_8.setSizePolicy(sizePolicy) - self.countBrowser_8.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_8.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_8.setObjectName(_fromUtf8("countBrowser_8")) - self.horizontalLayout_14.addWidget(self.countBrowser_8) - self.pushButton_8 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_8 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_8.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_8.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_8.setReadOnly(True) + self.countSpinBox_8.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_8.setMaximum(16384) + self.countSpinBox_8.setObjectName("countSpinBox_8") + self.horizontalLayout_14.addWidget(self.countSpinBox_8) + self.pushButton_8 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_8.sizePolicy().hasHeightForWidth()) self.pushButton_8.setSizePolicy(sizePolicy) self.pushButton_8.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_8.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_8.setObjectName(_fromUtf8("pushButton_8")) + self.pushButton_8.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_8.setObjectName("pushButton_8") self.horizontalLayout_14.addWidget(self.pushButton_8) - self.verticalLayout_2.addLayout(self.horizontalLayout_14) - self.horizontalLayout_15 = QtGui.QHBoxLayout() - self.horizontalLayout_15.setObjectName(_fromUtf8("horizontalLayout_15")) - self.SubsysBrowser_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_14, 9, 0, 1, 1) + self.horizontalLayout_15 = QtWidgets.QHBoxLayout() + self.horizontalLayout_15.setObjectName("horizontalLayout_15") + self.SubsysBrowser_9 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_9.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_9.setSizePolicy(sizePolicy) self.SubsysBrowser_9.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_9.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_9.setObjectName(_fromUtf8("SubsysBrowser_9")) + self.SubsysBrowser_9.setObjectName("SubsysBrowser_9") self.horizontalLayout_15.addWidget(self.SubsysBrowser_9) - self.pktidBrowser_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_9.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_9.setSizePolicy(sizePolicy) + self.pktidBrowser_9 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_9.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_9.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_9.setObjectName(_fromUtf8("pktidBrowser_9")) + self.pktidBrowser_9.setObjectName("pktidBrowser_9") self.horizontalLayout_15.addWidget(self.pktidBrowser_9) - self.countBrowser_9 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_9.sizePolicy().hasHeightForWidth()) - self.countBrowser_9.setSizePolicy(sizePolicy) - self.countBrowser_9.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_9.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_9.setObjectName(_fromUtf8("countBrowser_9")) - self.horizontalLayout_15.addWidget(self.countBrowser_9) - self.pushButton_9 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_9 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_9.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_9.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_9.setReadOnly(True) + self.countSpinBox_9.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_9.setMaximum(16384) + self.countSpinBox_9.setObjectName("countSpinBox_9") + self.horizontalLayout_15.addWidget(self.countSpinBox_9) + self.pushButton_9 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_9.sizePolicy().hasHeightForWidth()) self.pushButton_9.setSizePolicy(sizePolicy) self.pushButton_9.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_9.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_9.setObjectName(_fromUtf8("pushButton_9")) + self.pushButton_9.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_9.setObjectName("pushButton_9") self.horizontalLayout_15.addWidget(self.pushButton_9) - self.verticalLayout_2.addLayout(self.horizontalLayout_15) - self.horizontalLayout_16 = QtGui.QHBoxLayout() - self.horizontalLayout_16.setObjectName(_fromUtf8("horizontalLayout_16")) - self.SubsysBrowser_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_15, 10, 0, 1, 1) + self.horizontalLayout_16 = QtWidgets.QHBoxLayout() + self.horizontalLayout_16.setObjectName("horizontalLayout_16") + self.SubsysBrowser_10 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_10.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_10.setSizePolicy(sizePolicy) self.SubsysBrowser_10.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_10.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_10.setObjectName(_fromUtf8("SubsysBrowser_10")) + self.SubsysBrowser_10.setObjectName("SubsysBrowser_10") self.horizontalLayout_16.addWidget(self.SubsysBrowser_10) - self.pktidBrowser_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_10.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_10.setSizePolicy(sizePolicy) + self.pktidBrowser_10 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_10.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_10.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_10.setObjectName(_fromUtf8("pktidBrowser_10")) + self.pktidBrowser_10.setObjectName("pktidBrowser_10") self.horizontalLayout_16.addWidget(self.pktidBrowser_10) - self.countBrowser_10 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_10.sizePolicy().hasHeightForWidth()) - self.countBrowser_10.setSizePolicy(sizePolicy) - self.countBrowser_10.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_10.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_10.setObjectName(_fromUtf8("countBrowser_10")) - self.horizontalLayout_16.addWidget(self.countBrowser_10) - self.pushButton_10 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_10 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_10.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_10.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_10.setReadOnly(True) + self.countSpinBox_10.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_10.setMaximum(16384) + self.countSpinBox_10.setObjectName("countSpinBox_10") + self.horizontalLayout_16.addWidget(self.countSpinBox_10) + self.pushButton_10 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_10.sizePolicy().hasHeightForWidth()) self.pushButton_10.setSizePolicy(sizePolicy) self.pushButton_10.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_10.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_10.setObjectName(_fromUtf8("pushButton_10")) + self.pushButton_10.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_10.setObjectName("pushButton_10") self.horizontalLayout_16.addWidget(self.pushButton_10) - self.verticalLayout_2.addLayout(self.horizontalLayout_16) - self.horizontalLayout_17 = QtGui.QHBoxLayout() - self.horizontalLayout_17.setObjectName(_fromUtf8("horizontalLayout_17")) - self.SubsysBrowser_11 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_16, 11, 0, 1, 1) + self.horizontalLayout_17 = QtWidgets.QHBoxLayout() + self.horizontalLayout_17.setObjectName("horizontalLayout_17") + self.SubsysBrowser_11 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_11.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_11.setSizePolicy(sizePolicy) self.SubsysBrowser_11.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_11.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_11.setObjectName(_fromUtf8("SubsysBrowser_11")) + self.SubsysBrowser_11.setObjectName("SubsysBrowser_11") self.horizontalLayout_17.addWidget(self.SubsysBrowser_11) - self.pktidBrowser_11 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_11.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_11.setSizePolicy(sizePolicy) + self.pktidBrowser_11 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_11.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_11.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_11.setObjectName(_fromUtf8("pktidBrowser_11")) + self.pktidBrowser_11.setObjectName("pktidBrowser_11") self.horizontalLayout_17.addWidget(self.pktidBrowser_11) - self.countBrowser_11 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_11.sizePolicy().hasHeightForWidth()) - self.countBrowser_11.setSizePolicy(sizePolicy) - self.countBrowser_11.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_11.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_11.setObjectName(_fromUtf8("countBrowser_11")) - self.horizontalLayout_17.addWidget(self.countBrowser_11) - self.pushButton_11 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_11 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_11.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_11.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_11.setReadOnly(True) + self.countSpinBox_11.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_11.setMaximum(16384) + self.countSpinBox_11.setObjectName("countSpinBox_11") + self.horizontalLayout_17.addWidget(self.countSpinBox_11) + self.pushButton_11 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_11.sizePolicy().hasHeightForWidth()) self.pushButton_11.setSizePolicy(sizePolicy) self.pushButton_11.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_11.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_11.setObjectName(_fromUtf8("pushButton_11")) + self.pushButton_11.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_11.setObjectName("pushButton_11") self.horizontalLayout_17.addWidget(self.pushButton_11) - self.verticalLayout_2.addLayout(self.horizontalLayout_17) - self.horizontalLayout_18 = QtGui.QHBoxLayout() - self.horizontalLayout_18.setObjectName(_fromUtf8("horizontalLayout_18")) - self.SubsysBrowser_12 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_17, 12, 0, 1, 1) + self.horizontalLayout_18 = QtWidgets.QHBoxLayout() + self.horizontalLayout_18.setObjectName("horizontalLayout_18") + self.SubsysBrowser_12 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_12.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_12.setSizePolicy(sizePolicy) self.SubsysBrowser_12.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_12.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_12.setObjectName(_fromUtf8("SubsysBrowser_12")) + self.SubsysBrowser_12.setObjectName("SubsysBrowser_12") self.horizontalLayout_18.addWidget(self.SubsysBrowser_12) - self.pktidBrowser_12 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_12.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_12.setSizePolicy(sizePolicy) + self.pktidBrowser_12 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_12.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_12.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_12.setObjectName(_fromUtf8("pktidBrowser_12")) + self.pktidBrowser_12.setObjectName("pktidBrowser_12") self.horizontalLayout_18.addWidget(self.pktidBrowser_12) - self.countBrowser_12 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_12.sizePolicy().hasHeightForWidth()) - self.countBrowser_12.setSizePolicy(sizePolicy) - self.countBrowser_12.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_12.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_12.setObjectName(_fromUtf8("countBrowser_12")) - self.horizontalLayout_18.addWidget(self.countBrowser_12) - self.pushButton_12 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_12 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_12.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_12.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_12.setReadOnly(True) + self.countSpinBox_12.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_12.setMaximum(16384) + self.countSpinBox_12.setObjectName("countSpinBox_12") + self.horizontalLayout_18.addWidget(self.countSpinBox_12) + self.pushButton_12 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_12.sizePolicy().hasHeightForWidth()) self.pushButton_12.setSizePolicy(sizePolicy) self.pushButton_12.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_12.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_12.setObjectName(_fromUtf8("pushButton_12")) + self.pushButton_12.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_12.setObjectName("pushButton_12") self.horizontalLayout_18.addWidget(self.pushButton_12) - self.verticalLayout_2.addLayout(self.horizontalLayout_18) - self.horizontalLayout_19 = QtGui.QHBoxLayout() - self.horizontalLayout_19.setObjectName(_fromUtf8("horizontalLayout_19")) - self.SubsysBrowser_13 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_18, 13, 0, 1, 1) + self.horizontalLayout_19 = QtWidgets.QHBoxLayout() + self.horizontalLayout_19.setObjectName("horizontalLayout_19") + self.SubsysBrowser_13 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_13.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_13.setSizePolicy(sizePolicy) self.SubsysBrowser_13.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_13.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_13.setObjectName(_fromUtf8("SubsysBrowser_13")) + self.SubsysBrowser_13.setObjectName("SubsysBrowser_13") self.horizontalLayout_19.addWidget(self.SubsysBrowser_13) - self.pktidBrowser_13 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_13.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_13.setSizePolicy(sizePolicy) + self.pktidBrowser_13 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_13.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_13.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_13.setObjectName(_fromUtf8("pktidBrowser_13")) + self.pktidBrowser_13.setObjectName("pktidBrowser_13") self.horizontalLayout_19.addWidget(self.pktidBrowser_13) - self.countBrowser_13 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_13.sizePolicy().hasHeightForWidth()) - self.countBrowser_13.setSizePolicy(sizePolicy) - self.countBrowser_13.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_13.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_13.setObjectName(_fromUtf8("countBrowser_13")) - self.horizontalLayout_19.addWidget(self.countBrowser_13) - self.pushButton_13 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_13 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_13.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_13.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_13.setReadOnly(True) + self.countSpinBox_13.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_13.setMaximum(16384) + self.countSpinBox_13.setObjectName("countSpinBox_13") + self.horizontalLayout_19.addWidget(self.countSpinBox_13) + self.pushButton_13 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_13.sizePolicy().hasHeightForWidth()) self.pushButton_13.setSizePolicy(sizePolicy) self.pushButton_13.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_13.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_13.setObjectName(_fromUtf8("pushButton_13")) + self.pushButton_13.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_13.setObjectName("pushButton_13") self.horizontalLayout_19.addWidget(self.pushButton_13) - self.verticalLayout_2.addLayout(self.horizontalLayout_19) - self.horizontalLayout_20 = QtGui.QHBoxLayout() - self.horizontalLayout_20.setObjectName(_fromUtf8("horizontalLayout_20")) - self.SubsysBrowser_14 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_19, 14, 0, 1, 1) + self.horizontalLayout_20 = QtWidgets.QHBoxLayout() + self.horizontalLayout_20.setObjectName("horizontalLayout_20") + self.SubsysBrowser_14 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_14.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_14.setSizePolicy(sizePolicy) self.SubsysBrowser_14.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_14.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_14.setObjectName(_fromUtf8("SubsysBrowser_14")) + self.SubsysBrowser_14.setObjectName("SubsysBrowser_14") self.horizontalLayout_20.addWidget(self.SubsysBrowser_14) - self.pktidBrowser_14 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_14.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_14.setSizePolicy(sizePolicy) + self.pktidBrowser_14 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_14.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_14.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_14.setObjectName(_fromUtf8("pktidBrowser_14")) + self.pktidBrowser_14.setObjectName("pktidBrowser_14") self.horizontalLayout_20.addWidget(self.pktidBrowser_14) - self.countBrowser_14 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_14.sizePolicy().hasHeightForWidth()) - self.countBrowser_14.setSizePolicy(sizePolicy) - self.countBrowser_14.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_14.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_14.setObjectName(_fromUtf8("countBrowser_14")) - self.horizontalLayout_20.addWidget(self.countBrowser_14) - self.pushButton_14 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_14 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_14.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_14.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_14.setReadOnly(True) + self.countSpinBox_14.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_14.setMaximum(16384) + self.countSpinBox_14.setObjectName("countSpinBox_14") + self.horizontalLayout_20.addWidget(self.countSpinBox_14) + self.pushButton_14 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_14.sizePolicy().hasHeightForWidth()) self.pushButton_14.setSizePolicy(sizePolicy) self.pushButton_14.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_14.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_14.setObjectName(_fromUtf8("pushButton_14")) + self.pushButton_14.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_14.setObjectName("pushButton_14") self.horizontalLayout_20.addWidget(self.pushButton_14) - self.verticalLayout_2.addLayout(self.horizontalLayout_20) - self.horizontalLayout_21 = QtGui.QHBoxLayout() - self.horizontalLayout_21.setObjectName(_fromUtf8("horizontalLayout_21")) - self.SubsysBrowser_15 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_20, 15, 0, 1, 1) + self.horizontalLayout_21 = QtWidgets.QHBoxLayout() + self.horizontalLayout_21.setObjectName("horizontalLayout_21") + self.SubsysBrowser_15 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_15.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_15.setSizePolicy(sizePolicy) self.SubsysBrowser_15.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_15.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_15.setObjectName(_fromUtf8("SubsysBrowser_15")) + self.SubsysBrowser_15.setObjectName("SubsysBrowser_15") self.horizontalLayout_21.addWidget(self.SubsysBrowser_15) - self.pktidBrowser_15 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_15.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_15.setSizePolicy(sizePolicy) + self.pktidBrowser_15 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_15.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_15.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_15.setObjectName(_fromUtf8("pktidBrowser_15")) + self.pktidBrowser_15.setObjectName("pktidBrowser_15") self.horizontalLayout_21.addWidget(self.pktidBrowser_15) - self.countBrowser_15 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_15.sizePolicy().hasHeightForWidth()) - self.countBrowser_15.setSizePolicy(sizePolicy) - self.countBrowser_15.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_15.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_15.setObjectName(_fromUtf8("countBrowser_15")) - self.horizontalLayout_21.addWidget(self.countBrowser_15) - self.pushButton_15 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_15 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_15.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_15.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_15.setReadOnly(True) + self.countSpinBox_15.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_15.setMaximum(16384) + self.countSpinBox_15.setObjectName("countSpinBox_15") + self.horizontalLayout_21.addWidget(self.countSpinBox_15) + self.pushButton_15 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_15.sizePolicy().hasHeightForWidth()) self.pushButton_15.setSizePolicy(sizePolicy) self.pushButton_15.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_15.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_15.setObjectName(_fromUtf8("pushButton_15")) + self.pushButton_15.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_15.setObjectName("pushButton_15") self.horizontalLayout_21.addWidget(self.pushButton_15) - self.verticalLayout_2.addLayout(self.horizontalLayout_21) - self.horizontalLayout_22 = QtGui.QHBoxLayout() - self.horizontalLayout_22.setObjectName(_fromUtf8("horizontalLayout_22")) - self.SubsysBrowser_16 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_21, 16, 0, 1, 1) + self.horizontalLayout_22 = QtWidgets.QHBoxLayout() + self.horizontalLayout_22.setObjectName("horizontalLayout_22") + self.SubsysBrowser_16 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_16.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_16.setSizePolicy(sizePolicy) self.SubsysBrowser_16.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_16.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_16.setObjectName(_fromUtf8("SubsysBrowser_16")) + self.SubsysBrowser_16.setObjectName("SubsysBrowser_16") self.horizontalLayout_22.addWidget(self.SubsysBrowser_16) - self.pktidBrowser_16 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_16.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_16.setSizePolicy(sizePolicy) + self.pktidBrowser_16 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_16.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_16.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_16.setObjectName(_fromUtf8("pktidBrowser_16")) + self.pktidBrowser_16.setObjectName("pktidBrowser_16") self.horizontalLayout_22.addWidget(self.pktidBrowser_16) - self.countBrowser_16 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_16.sizePolicy().hasHeightForWidth()) - self.countBrowser_16.setSizePolicy(sizePolicy) - self.countBrowser_16.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_16.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_16.setObjectName(_fromUtf8("countBrowser_16")) - self.horizontalLayout_22.addWidget(self.countBrowser_16) - self.pushButton_16 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_16 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_16.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_16.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_16.setReadOnly(True) + self.countSpinBox_16.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_16.setMaximum(16384) + self.countSpinBox_16.setObjectName("countSpinBox_16") + self.horizontalLayout_22.addWidget(self.countSpinBox_16) + self.pushButton_16 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_16.sizePolicy().hasHeightForWidth()) self.pushButton_16.setSizePolicy(sizePolicy) self.pushButton_16.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_16.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_16.setObjectName(_fromUtf8("pushButton_16")) + self.pushButton_16.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_16.setObjectName("pushButton_16") self.horizontalLayout_22.addWidget(self.pushButton_16) - self.verticalLayout_2.addLayout(self.horizontalLayout_22) - self.horizontalLayout_23 = QtGui.QHBoxLayout() - self.horizontalLayout_23.setObjectName(_fromUtf8("horizontalLayout_23")) - self.SubsysBrowser_17 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_22, 17, 0, 1, 1) + self.horizontalLayout_23 = QtWidgets.QHBoxLayout() + self.horizontalLayout_23.setObjectName("horizontalLayout_23") + self.SubsysBrowser_17 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_17.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_17.setSizePolicy(sizePolicy) self.SubsysBrowser_17.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_17.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_17.setObjectName(_fromUtf8("SubsysBrowser_17")) + self.SubsysBrowser_17.setObjectName("SubsysBrowser_17") self.horizontalLayout_23.addWidget(self.SubsysBrowser_17) - self.pktidBrowser_17 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_17.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_17.setSizePolicy(sizePolicy) + self.pktidBrowser_17 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_17.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_17.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_17.setObjectName(_fromUtf8("pktidBrowser_17")) + self.pktidBrowser_17.setObjectName("pktidBrowser_17") self.horizontalLayout_23.addWidget(self.pktidBrowser_17) - self.countBrowser_17 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_17.sizePolicy().hasHeightForWidth()) - self.countBrowser_17.setSizePolicy(sizePolicy) - self.countBrowser_17.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_17.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_17.setObjectName(_fromUtf8("countBrowser_17")) - self.horizontalLayout_23.addWidget(self.countBrowser_17) - self.pushButton_17 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_17 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_17.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_17.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_17.setReadOnly(True) + self.countSpinBox_17.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_17.setMaximum(16384) + self.countSpinBox_17.setObjectName("countSpinBox_17") + self.horizontalLayout_23.addWidget(self.countSpinBox_17) + self.pushButton_17 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_17.sizePolicy().hasHeightForWidth()) self.pushButton_17.setSizePolicy(sizePolicy) self.pushButton_17.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_17.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_17.setObjectName(_fromUtf8("pushButton_17")) + self.pushButton_17.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_17.setObjectName("pushButton_17") self.horizontalLayout_23.addWidget(self.pushButton_17) - self.verticalLayout_2.addLayout(self.horizontalLayout_23) - self.horizontalLayout_24 = QtGui.QHBoxLayout() - self.horizontalLayout_24.setObjectName(_fromUtf8("horizontalLayout_24")) - self.SubsysBrowser_18 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_23, 18, 0, 1, 1) + self.horizontalLayout_24 = QtWidgets.QHBoxLayout() + self.horizontalLayout_24.setObjectName("horizontalLayout_24") + self.SubsysBrowser_18 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_18.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_18.setSizePolicy(sizePolicy) self.SubsysBrowser_18.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_18.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_18.setObjectName(_fromUtf8("SubsysBrowser_18")) + self.SubsysBrowser_18.setObjectName("SubsysBrowser_18") self.horizontalLayout_24.addWidget(self.SubsysBrowser_18) - self.pktidBrowser_18 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_18.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_18.setSizePolicy(sizePolicy) + self.pktidBrowser_18 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_18.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_18.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_18.setObjectName(_fromUtf8("pktidBrowser_18")) + self.pktidBrowser_18.setObjectName("pktidBrowser_18") self.horizontalLayout_24.addWidget(self.pktidBrowser_18) - self.countBrowser_18 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_18.sizePolicy().hasHeightForWidth()) - self.countBrowser_18.setSizePolicy(sizePolicy) - self.countBrowser_18.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_18.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_18.setObjectName(_fromUtf8("countBrowser_18")) - self.horizontalLayout_24.addWidget(self.countBrowser_18) - self.pushButton_18 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_18 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_18.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_18.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_18.setReadOnly(True) + self.countSpinBox_18.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_18.setMaximum(16384) + self.countSpinBox_18.setObjectName("countSpinBox_18") + self.horizontalLayout_24.addWidget(self.countSpinBox_18) + self.pushButton_18 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_18.sizePolicy().hasHeightForWidth()) self.pushButton_18.setSizePolicy(sizePolicy) self.pushButton_18.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_18.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_18.setObjectName(_fromUtf8("pushButton_18")) + self.pushButton_18.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_18.setObjectName("pushButton_18") self.horizontalLayout_24.addWidget(self.pushButton_18) - self.verticalLayout_2.addLayout(self.horizontalLayout_24) - self.horizontalLayout_25 = QtGui.QHBoxLayout() - self.horizontalLayout_25.setObjectName(_fromUtf8("horizontalLayout_25")) - self.SubsysBrowser_19 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_24, 19, 0, 1, 1) + self.horizontalLayout_25 = QtWidgets.QHBoxLayout() + self.horizontalLayout_25.setObjectName("horizontalLayout_25") + self.SubsysBrowser_19 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_19.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_19.setSizePolicy(sizePolicy) self.SubsysBrowser_19.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_19.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_19.setObjectName(_fromUtf8("SubsysBrowser_19")) + self.SubsysBrowser_19.setObjectName("SubsysBrowser_19") self.horizontalLayout_25.addWidget(self.SubsysBrowser_19) - self.pktidBrowser_19 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_19.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_19.setSizePolicy(sizePolicy) + self.pktidBrowser_19 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_19.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_19.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_19.setObjectName(_fromUtf8("pktidBrowser_19")) + self.pktidBrowser_19.setObjectName("pktidBrowser_19") self.horizontalLayout_25.addWidget(self.pktidBrowser_19) - self.countBrowser_19 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_19.sizePolicy().hasHeightForWidth()) - self.countBrowser_19.setSizePolicy(sizePolicy) - self.countBrowser_19.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_19.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_19.setObjectName(_fromUtf8("countBrowser_19")) - self.horizontalLayout_25.addWidget(self.countBrowser_19) - self.pushButton_19 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_19 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_19.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_19.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_19.setReadOnly(True) + self.countSpinBox_19.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_19.setMaximum(16384) + self.countSpinBox_19.setObjectName("countSpinBox_19") + self.horizontalLayout_25.addWidget(self.countSpinBox_19) + self.pushButton_19 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_19.sizePolicy().hasHeightForWidth()) self.pushButton_19.setSizePolicy(sizePolicy) self.pushButton_19.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_19.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_19.setObjectName(_fromUtf8("pushButton_19")) + self.pushButton_19.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_19.setObjectName("pushButton_19") self.horizontalLayout_25.addWidget(self.pushButton_19) - self.verticalLayout_2.addLayout(self.horizontalLayout_25) - self.horizontalLayout_26 = QtGui.QHBoxLayout() - self.horizontalLayout_26.setObjectName(_fromUtf8("horizontalLayout_26")) - self.SubsysBrowser_20 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.gridLayout.addLayout(self.horizontalLayout_25, 20, 0, 1, 1) + self.horizontalLayout_26 = QtWidgets.QHBoxLayout() + self.horizontalLayout_26.setObjectName("horizontalLayout_26") + self.SubsysBrowser_20 = QtWidgets.QPlainTextEdit(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.SubsysBrowser_20.sizePolicy().hasHeightForWidth()) self.SubsysBrowser_20.setSizePolicy(sizePolicy) self.SubsysBrowser_20.setMinimumSize(QtCore.QSize(141, 31)) self.SubsysBrowser_20.setMaximumSize(QtCore.QSize(141, 31)) - self.SubsysBrowser_20.setObjectName(_fromUtf8("SubsysBrowser_20")) + self.SubsysBrowser_20.setObjectName("SubsysBrowser_20") self.horizontalLayout_26.addWidget(self.SubsysBrowser_20) - self.pktidBrowser_20 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.pktidBrowser_20.sizePolicy().hasHeightForWidth()) - self.pktidBrowser_20.setSizePolicy(sizePolicy) + self.pktidBrowser_20 = QtWidgets.QLineEdit(self.layoutWidget) self.pktidBrowser_20.setMinimumSize(QtCore.QSize(81, 31)) self.pktidBrowser_20.setMaximumSize(QtCore.QSize(81, 31)) - self.pktidBrowser_20.setObjectName(_fromUtf8("pktidBrowser_20")) + self.pktidBrowser_20.setObjectName("pktidBrowser_20") self.horizontalLayout_26.addWidget(self.pktidBrowser_20) - self.countBrowser_20 = QtGui.QTextBrowser(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.countBrowser_20.sizePolicy().hasHeightForWidth()) - self.countBrowser_20.setSizePolicy(sizePolicy) - self.countBrowser_20.setMinimumSize(QtCore.QSize(91, 31)) - self.countBrowser_20.setMaximumSize(QtCore.QSize(91, 31)) - self.countBrowser_20.setObjectName(_fromUtf8("countBrowser_20")) - self.horizontalLayout_26.addWidget(self.countBrowser_20) - self.pushButton_20 = QtGui.QPushButton(self.scrollAreaWidgetContents) - sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + self.countSpinBox_20 = QtWidgets.QSpinBox(self.layoutWidget) + self.countSpinBox_20.setMinimumSize(QtCore.QSize(81, 31)) + self.countSpinBox_20.setMaximumSize(QtCore.QSize(81, 31)) + self.countSpinBox_20.setReadOnly(True) + self.countSpinBox_20.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) + self.countSpinBox_20.setMaximum(16384) + self.countSpinBox_20.setObjectName("countSpinBox_20") + self.horizontalLayout_26.addWidget(self.countSpinBox_20) + self.pushButton_20 = QtWidgets.QPushButton(self.layoutWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_20.sizePolicy().hasHeightForWidth()) self.pushButton_20.setSizePolicy(sizePolicy) self.pushButton_20.setMinimumSize(QtCore.QSize(101, 27)) - self.pushButton_20.setMaximumSize(QtCore.QSize(101, 27)) - self.pushButton_20.setObjectName(_fromUtf8("pushButton_20")) + self.pushButton_20.setMaximumSize(QtCore.QSize(120, 27)) + self.pushButton_20.setObjectName("pushButton_20") self.horizontalLayout_26.addWidget(self.pushButton_20) - self.verticalLayout_2.addLayout(self.horizontalLayout_26) + self.gridLayout.addLayout(self.horizontalLayout_26, 21, 0, 1, 1) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout.addWidget(self.scrollArea) self.retranslateUi(TelemetrySystemDialog) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), TelemetrySystemDialog.accept) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), TelemetrySystemDialog.reject) + self.buttonBox.clicked['QAbstractButton*'].connect(TelemetrySystemDialog.close) QtCore.QMetaObject.connectSlotsByName(TelemetrySystemDialog) def retranslateUi(self, TelemetrySystemDialog): - TelemetrySystemDialog.setWindowTitle(_translate("TelemetrySystemDialog", "Dialog", None)) - self.label.setText(_translate("TelemetrySystemDialog", "cFE/CFS Subsystem Telemetry", None)) - self.label_6.setText(_translate("TelemetrySystemDialog", "Packets Received", None)) - self.label_2.setText(_translate("TelemetrySystemDialog", "Available Pages", None)) - self.label_3.setText(_translate("TelemetrySystemDialog", "Subsystem/Page", None)) - self.label_4.setText(_translate("TelemetrySystemDialog", "Packet ID", None)) - self.label_5.setText(_translate("TelemetrySystemDialog", "Packet Count", None)) - self.pushButton_0.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_1.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_2.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_3.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_4.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_5.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_6.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_7.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_8.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_9.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_10.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_11.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_12.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_13.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_14.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_15.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_16.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_17.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_18.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_19.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - self.pushButton_20.setText(_translate("TelemetrySystemDialog", "Display Page", None)) - - -if __name__ == "__main__": - import sys - app = QtGui.QApplication(sys.argv) - TelemetrySystemDialog = QtGui.QDialog() - ui = Ui_TelemetrySystemDialog() - ui.setupUi(TelemetrySystemDialog) - TelemetrySystemDialog.show() - sys.exit(app.exec_()) + _translate = QtCore.QCoreApplication.translate + TelemetrySystemDialog.setWindowTitle(_translate("TelemetrySystemDialog", "Dialog")) + self.label.setText(_translate("TelemetrySystemDialog", "cFE/CFS Subsystem Telemetry")) + self.label_6.setText(_translate("TelemetrySystemDialog", "Packets Received")) + self.label_2.setText(_translate("TelemetrySystemDialog", "Available Pages")) + self.label_3.setText(_translate("TelemetrySystemDialog", "Subsystem/Page")) + self.label_4.setText(_translate("TelemetrySystemDialog", "Packet ID")) + self.label_5.setText(_translate("TelemetrySystemDialog", "Packet Count")) + self.pushButton_0.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_1.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_2.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_3.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_4.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_5.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_6.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_7.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_8.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_9.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_10.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_11.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_12.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_13.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_14.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_15.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_16.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_17.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_18.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_19.setText(_translate("TelemetrySystemDialog", "Display Page")) + self.pushButton_20.setText(_translate("TelemetrySystemDialog", "Display Page")) diff --git a/Subsystems/tlmGUI/TelemetrySystemDialog.ui b/Subsystems/tlmGUI/TelemetrySystemDialog.ui index 1ab3d55..50258c8 100644 --- a/Subsystems/tlmGUI/TelemetrySystemDialog.ui +++ b/Subsystems/tlmGUI/TelemetrySystemDialog.ui @@ -6,8 +6,8 @@ 0 0 - 515 - 600 + 625 + 908 @@ -108,24 +108,18 @@ - - - - 0 - 0 - + + + true - - - 130 - 30 - + + QAbstractSpinBox::NoButtons - - - 130 - 30 - + + 16384 + + + 0 @@ -159,9 +153,6 @@ - - Qt::Horizontal - QDialogButtonBox::Close @@ -231,7 +222,7 @@ 0 0 - 474 + 591 1000 @@ -241,2101 +232,2045 @@ 1000 - - - 0 + + + + 10 + 11 + 523 + 892 + - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - Subsystem/Page - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - Packet ID - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - Packet Count - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 101 - 27 - - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - - - - - - - 0 - 0 - - - - - 141 - 31 - - - - - 141 - 31 - - - - - - - - - 0 - 0 - - - - - 81 - 31 - - - - - 81 - 31 - - - - - - - - - 0 - 0 - - - - - 91 - 31 - - - - - 91 - 31 - - - - - - - - - 0 - 0 - - - - - 101 - 27 - - - - - 101 - 27 - - - - Display Page - - - - - - + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + Subsystem/Page + + + + + + + + 0 + 0 + + + + + 81 + 31 + + + + + 81 + 31 + + + + Packet ID + + + + + + + + 0 + 0 + + + + + 91 + 31 + + + + + 100 + 31 + + + + Packet Count + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 110 + 27 + + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + + + + + + 0 + 0 + + + + + 141 + 31 + + + + + 141 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + + + + + + 81 + 31 + + + + + 81 + 31 + + + + true + + + QAbstractSpinBox::NoButtons + + + 16384 + + + + + + + + 0 + 0 + + + + + 101 + 27 + + + + + 120 + 27 + + + + Display Page + + + + + + + @@ -2345,33 +2280,17 @@ buttonBox - accepted() - TelemetrySystemDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() + clicked(QAbstractButton*) TelemetrySystemDialog - reject() + close() - 316 - 260 + 574 + 57 - 286 - 274 + 312 + 453 diff --git a/TlmMQRecv.py b/TlmMQRecv.py index fd3ffaf..1c2211f 100644 --- a/TlmMQRecv.py +++ b/TlmMQRecv.py @@ -17,10 +17,12 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python +#!/usr/bin/env python3 # import zmq + + # # Receive zeroMQ messages (used for debugging only - not used by CFS Ground System) # @@ -28,15 +30,15 @@ def main(): """ main method """ # Prepare our context and publisher - context = zmq.Context() + context = zmq.Context() subscriber = context.socket(zmq.SUB) subscriber.connect("ipc:///tmp/GroundSystem") subscriber.setsockopt(zmq.SUBSCRIBE, b"GroundSystem") while True: # Read envelope with address - [address, contents] = subscriber.recv_multipart() - print("[%s] %s" % (address, contents)) + address, contents = subscriber.recv_multipart() + print(f"[{address}] {contents}") # We never get here but clean up anyhow subscriber.close() diff --git a/TlmUDPSender.py b/TlmUDPSender.py index 08ce306..9e37357 100644 --- a/TlmUDPSender.py +++ b/TlmUDPSender.py @@ -17,15 +17,14 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#!/usr/bin/env python +#!/usr/bin/env python3 # # # Send UDP messages for debugging (not used by Ground System) # -import sys import time -from socket import * +import socket # # Main @@ -35,12 +34,11 @@ while True: num += 1 time.sleep(1) -# send_host = "10.1.57.37" + # send_host = "10.1.57.37" send_host = "127.0.0.1" -# send_host = "192.168.1.4" - send_port = 1235 - datagram = 'Test tlm message' - sendSocket = socket(AF_INET,SOCK_DGRAM) - sendSocket.sendto(datagram, (send_host,send_port)) - print 'Sent msg #' + str(num) - + # send_host = "192.168.1.4" + send_port = 1235 + datagram = b'Test tlm message' + sendSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + sendSocket.sendto(datagram, (send_host, send_port)) + print(f'Sent msg #{num} to {send_host}:{send_port}')