42
diff --git a/Subsystems/tlmGUI/Ui_GenericTelemetryDialog.py b/Subsystems/tlmGUI/Ui_GenericTelemetryDialog.py
index 9304866..3937700 100644
--- a/Subsystems/tlmGUI/Ui_GenericTelemetryDialog.py
+++ b/Subsystems/tlmGUI/Ui_GenericTelemetryDialog.py
@@ -11,17 +11,15 @@
class Ui_GenericTelemetryDialog(object):
def setupUi(self, GenericTelemetryDialog):
GenericTelemetryDialog.setObjectName("GenericTelemetryDialog")
- GenericTelemetryDialog.resize(630, 816)
+ GenericTelemetryDialog.resize(574, 836)
self.label_6 = QtWidgets.QLabel(GenericTelemetryDialog)
- self.label_6.setGeometry(QtCore.QRect(90, 730, 431, 61))
+ self.label_6.setGeometry(QtCore.QRect(29, 750, 711, 61))
font = QtGui.QFont()
font.setPointSize(12)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.tblTelemetry = QtWidgets.QTableWidget(GenericTelemetryDialog)
- self.tblTelemetry.setGeometry(QtCore.QRect(70, 110, 470, 601))
- self.tblTelemetry.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
- self.tblTelemetry.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow)
+ self.tblTelemetry.setGeometry(QtCore.QRect(20, 100, 431, 621))
self.tblTelemetry.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tblTelemetry.setObjectName("tblTelemetry")
self.tblTelemetry.setColumnCount(2)
@@ -30,18 +28,19 @@ def setupUi(self, GenericTelemetryDialog):
self.tblTelemetry.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tblTelemetry.setHorizontalHeaderItem(1, item)
- self.tblTelemetry.horizontalHeader().setDefaultSectionSize(225)
+ self.tblTelemetry.horizontalHeader().setDefaultSectionSize(200)
+ self.tblTelemetry.verticalHeader().setVisible(False)
self.buttonBox = QtWidgets.QDialogButtonBox(GenericTelemetryDialog)
- self.buttonBox.setGeometry(QtCore.QRect(510, 50, 81, 31))
+ self.buttonBox.setGeometry(QtCore.QRect(450, 100, 100, 31))
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close)
self.buttonBox.setObjectName("buttonBox")
- self.widget = QtWidgets.QWidget(GenericTelemetryDialog)
- self.widget.setGeometry(QtCore.QRect(270, 25, 73, 60))
- self.widget.setObjectName("widget")
- self.verticalLayout = QtWidgets.QVBoxLayout(self.widget)
+ self.layoutWidget = QtWidgets.QWidget(GenericTelemetryDialog)
+ self.layoutWidget.setGeometry(QtCore.QRect(260, 24, 73, 54))
+ self.layoutWidget.setObjectName("layoutWidget")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
- self.packetIdLabel = QtWidgets.QLabel(self.widget)
+ self.packetIdLabel = QtWidgets.QLabel(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -51,7 +50,7 @@ def setupUi(self, GenericTelemetryDialog):
self.packetIdLabel.setMaximumSize(QtCore.QSize(16777215, 25))
self.packetIdLabel.setObjectName("packetIdLabel")
self.verticalLayout.addWidget(self.packetIdLabel)
- self.packetId = QtWidgets.QLCDNumber(self.widget)
+ self.packetId = QtWidgets.QLCDNumber(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -59,16 +58,16 @@ def setupUi(self, GenericTelemetryDialog):
self.packetId.setSizePolicy(sizePolicy)
self.packetId.setObjectName("packetId")
self.verticalLayout.addWidget(self.packetId)
- self.widget1 = QtWidgets.QWidget(GenericTelemetryDialog)
- self.widget1.setGeometry(QtCore.QRect(370, 23, 125, 62))
- self.widget1.setObjectName("widget1")
- self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget1)
+ self.layoutWidget1 = QtWidgets.QWidget(GenericTelemetryDialog)
+ self.layoutWidget1.setGeometry(QtCore.QRect(350, 23, 125, 62))
+ self.layoutWidget1.setObjectName("layoutWidget1")
+ self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.layoutWidget1)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
- self.label_5 = QtWidgets.QLabel(self.widget1)
+ self.label_5 = QtWidgets.QLabel(self.layoutWidget1)
self.label_5.setObjectName("label_5")
self.verticalLayout_3.addWidget(self.label_5)
- self.sequenceCount = QtWidgets.QSpinBox(self.widget1)
+ self.sequenceCount = QtWidgets.QSpinBox(self.layoutWidget1)
self.sequenceCount.setMinimumSize(QtCore.QSize(101, 31))
self.sequenceCount.setMaximumSize(QtCore.QSize(101, 31))
self.sequenceCount.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
@@ -76,16 +75,16 @@ def setupUi(self, GenericTelemetryDialog):
self.sequenceCount.setProperty("value", 0)
self.sequenceCount.setObjectName("sequenceCount")
self.verticalLayout_3.addWidget(self.sequenceCount)
- self.widget2 = QtWidgets.QWidget(GenericTelemetryDialog)
- self.widget2.setGeometry(QtCore.QRect(42, 24, 204, 62))
- self.widget2.setObjectName("widget2")
- self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget2)
+ self.layoutWidget2 = QtWidgets.QWidget(GenericTelemetryDialog)
+ self.layoutWidget2.setGeometry(QtCore.QRect(42, 24, 204, 62))
+ self.layoutWidget2.setObjectName("layoutWidget2")
+ self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget2)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
- self.subSystemTelemetryPageLabel = QtWidgets.QLabel(self.widget2)
+ self.subSystemTelemetryPageLabel = QtWidgets.QLabel(self.layoutWidget2)
self.subSystemTelemetryPageLabel.setObjectName("subSystemTelemetryPageLabel")
self.verticalLayout_2.addWidget(self.subSystemTelemetryPageLabel)
- self.subSystemLineEdit = QtWidgets.QLineEdit(self.widget2)
+ self.subSystemLineEdit = QtWidgets.QLineEdit(self.layoutWidget2)
self.subSystemLineEdit.setMinimumSize(QtCore.QSize(141, 31))
self.subSystemLineEdit.setMaximumSize(QtCore.QSize(141, 31))
self.subSystemLineEdit.setReadOnly(True)
@@ -99,7 +98,11 @@ def setupUi(self, GenericTelemetryDialog):
def retranslateUi(self, GenericTelemetryDialog):
_translate = QtCore.QCoreApplication.translate
GenericTelemetryDialog.setWindowTitle(_translate("GenericTelemetryDialog", "Telemetry Page"))
- self.label_6.setText(_translate("GenericTelemetryDialog", "*No packets? Remember to select the IP address of your
spacecraft in the Main Window.
"))
+ self.label_6.setText(_translate("GenericTelemetryDialog", "\n"
+"\n"
+"*No packets? Remember to select the IP address of
your spacecraft in the Main Window.
"))
item = self.tblTelemetry.horizontalHeaderItem(0)
item.setText(_translate("GenericTelemetryDialog", "Telemetry Point Label"))
item = self.tblTelemetry.horizontalHeaderItem(1)
diff --git a/MainWindow.py b/Ui_MainWindow.py
similarity index 51%
rename from MainWindow.py
rename to Ui_MainWindow.py
index dea718d..d020d3f 100644
--- a/MainWindow.py
+++ b/Ui_MainWindow.py
@@ -2,19 +2,17 @@
# Form implementation generated from reading ui file '/home/lbleier/cFS/tools/cFS-GroundSystem/MainWindow.ui'
#
-# Created by: PyQt5 UI code generator 5.12.3
+# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
-
from PyQt5 import QtCore, QtGui, QtWidgets
-
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.setEnabled(True)
- MainWindow.resize(420, 217)
+ MainWindow.resize(552, 305)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(24)
sizePolicy.setVerticalStretch(0)
@@ -24,24 +22,22 @@ def setupUi(self, MainWindow):
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
- self.labelHomeTittle = QtWidgets.QLabel(self.centralwidget)
+ self.labelHomeTitle = 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("labelHomeTittle")
- self.verticalLayout.addWidget(self.labelHomeTittle)
+ self.labelHomeTitle.setFont(font)
+ self.labelHomeTitle.setAlignment(QtCore.Qt.AlignCenter)
+ self.labelHomeTitle.setObjectName("labelHomeTitle")
+ self.verticalLayout.addWidget(self.labelHomeTitle)
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 = QtWidgets.QHBoxLayout()
- self.horizontalLayout.setObjectName("horizontalLayout")
- spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
- self.horizontalLayout.addItem(spacerItem)
+ self.gridLayout = QtWidgets.QGridLayout()
+ self.gridLayout.setObjectName("gridLayout")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
@@ -49,18 +45,64 @@ def setupUi(self, MainWindow):
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.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_3.setObjectName("label_3")
- self.horizontalLayout.addWidget(self.label_3)
+ self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
self.comboBoxIpAddresses = QtWidgets.QComboBox(self.centralwidget)
self.comboBoxIpAddresses.setMinimumSize(QtCore.QSize(132, 0))
self.comboBoxIpAddresses.setMaximumSize(QtCore.QSize(132, 16777215))
self.comboBoxIpAddresses.setObjectName("comboBoxIpAddresses")
self.comboBoxIpAddresses.addItem("")
- self.horizontalLayout.addWidget(self.comboBoxIpAddresses)
- spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
- self.horizontalLayout.addItem(spacerItem1)
- self.verticalLayout.addLayout(self.horizontalLayout)
+ self.gridLayout.addWidget(self.comboBoxIpAddresses, 0, 1, 1, 1)
+ self.label_4 = QtWidgets.QLabel(self.centralwidget)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
+ self.label_4.setSizePolicy(sizePolicy)
+ self.label_4.setMinimumSize(QtCore.QSize(169, 0))
+ self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
+ self.label_4.setObjectName("label_4")
+ self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
+ self.cbTlmHeaderVer = QtWidgets.QComboBox(self.centralwidget)
+ self.cbTlmHeaderVer.setMinimumSize(QtCore.QSize(132, 0))
+ self.cbTlmHeaderVer.setMaximumSize(QtCore.QSize(132, 16777215))
+ self.cbTlmHeaderVer.setObjectName("cbTlmHeaderVer")
+ self.cbTlmHeaderVer.addItem("")
+ self.cbTlmHeaderVer.addItem("")
+ self.cbTlmHeaderVer.addItem("")
+ self.gridLayout.addWidget(self.cbTlmHeaderVer, 1, 1, 1, 1)
+ self.label_2 = QtWidgets.QLabel(self.centralwidget)
+ self.label_2.setObjectName("label_2")
+ self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
+ self.sbTlmOffset = QtWidgets.QSpinBox(self.centralwidget)
+ self.sbTlmOffset.setEnabled(False)
+ self.sbTlmOffset.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
+ self.sbTlmOffset.setObjectName("sbTlmOffset")
+ self.gridLayout.addWidget(self.sbTlmOffset, 1, 2, 1, 1)
+ self.sbCmdOffsetPri = QtWidgets.QSpinBox(self.centralwidget)
+ self.sbCmdOffsetPri.setEnabled(False)
+ self.sbCmdOffsetPri.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
+ self.sbCmdOffsetPri.setObjectName("sbCmdOffsetPri")
+ self.gridLayout.addWidget(self.sbCmdOffsetPri, 2, 2, 1, 1)
+ self.cbCmdHeaderVer = QtWidgets.QComboBox(self.centralwidget)
+ self.cbCmdHeaderVer.setObjectName("cbCmdHeaderVer")
+ self.cbCmdHeaderVer.addItem("")
+ self.cbCmdHeaderVer.addItem("")
+ self.cbCmdHeaderVer.addItem("")
+ self.gridLayout.addWidget(self.cbCmdHeaderVer, 2, 1, 1, 1)
+ self.sbCmdOffsetSec = QtWidgets.QSpinBox(self.centralwidget)
+ self.sbCmdOffsetSec.setEnabled(False)
+ self.sbCmdOffsetSec.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
+ self.sbCmdOffsetSec.setObjectName("sbCmdOffsetSec")
+ self.gridLayout.addWidget(self.sbCmdOffsetSec, 2, 3, 1, 1)
+ self.label = QtWidgets.QLabel(self.centralwidget)
+ self.label.setObjectName("label")
+ self.gridLayout.addWidget(self.label, 0, 2, 1, 1)
+ self.label_6 = QtWidgets.QLabel(self.centralwidget)
+ self.label_6.setObjectName("label_6")
+ self.gridLayout.addWidget(self.label_6, 0, 3, 1, 1)
+ self.verticalLayout.addLayout(self.gridLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setSpacing(32)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
@@ -112,10 +154,24 @@ def setupUi(self, MainWindow):
def retranslateUi(self, MainWindow):
_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.labelHomeTitle.setText(_translate("MainWindow", "CFS Ground System"))
+ self.label_3.setText(_translate("MainWindow", "Selected IP Address"))
self.comboBoxIpAddresses.setItemText(0, _translate("MainWindow", "All"))
+ self.label_4.setText(_translate("MainWindow", "Tlm header version"))
+ self.cbTlmHeaderVer.setItemText(0, _translate("MainWindow", "1"))
+ self.cbTlmHeaderVer.setItemText(1, _translate("MainWindow", "2"))
+ self.cbTlmHeaderVer.setItemText(2, _translate("MainWindow", "Custom"))
+ self.label_2.setText(_translate("MainWindow", "Cmd header version"))
+ self.sbTlmOffset.setToolTip(_translate("MainWindow", "