class Ui_ProjectDialog(object): def setupUi(self, ProjectDialog): ProjectDialog.setObjectName("ProjectDialog") ProjectDialog.resize(803, 936) self.verticalLayout = QtWidgets.QVBoxLayout(ProjectDialog) self.verticalLayout.setObjectName("verticalLayout") self.lNewProject = QtWidgets.QLabel(ProjectDialog) font = QtGui.QFont() font.setPointSize(16) font.setBold(True) font.setWeight(75) self.lNewProject.setFont(font) self.lNewProject.setObjectName("lNewProject") self.verticalLayout.addWidget(self.lNewProject) self.lblName = QtWidgets.QLabel(ProjectDialog) self.lblName.setObjectName("lblName") self.verticalLayout.addWidget(self.lblName) spacerItem = QtWidgets.QSpacerItem(17, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.verticalLayout.addItem(spacerItem) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_5 = QtWidgets.QLabel(ProjectDialog) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 3, 4, 1, 2) self.lineEdit_Path = QtWidgets.QLineEdit(ProjectDialog) self.lineEdit_Path.setStatusTip("") self.lineEdit_Path.setObjectName("lineEdit_Path") self.gridLayout.addWidget(self.lineEdit_Path, 0, 3, 1, 1) self.label_7 = QtWidgets.QLabel(ProjectDialog) self.label_7.setText("") self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 1, 0, 1, 2) self.lblNewPath = QtWidgets.QLabel(ProjectDialog) self.lblNewPath.setObjectName("lblNewPath") self.gridLayout.addWidget(self.lblNewPath, 1, 3, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 57, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 15, 4, 1, 2) self.txtEdDescription = QtWidgets.QPlainTextEdit(ProjectDialog) self.txtEdDescription.setObjectName("txtEdDescription") self.gridLayout.addWidget(self.txtEdDescription, 10, 3, 1, 1) self.tblParticipants = ParticipantTableView(ProjectDialog) self.tblParticipants.setAlternatingRowColors(True) self.tblParticipants.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) self.tblParticipants.setObjectName("tblParticipants") self.tblParticipants.horizontalHeader().setCascadingSectionResizes(False) self.tblParticipants.horizontalHeader().setDefaultSectionSize(100) self.tblParticipants.horizontalHeader().setStretchLastSection(True) self.tblParticipants.verticalHeader().setCascadingSectionResizes(True) self.tblParticipants.verticalHeader().setStretchLastSection(False) self.gridLayout.addWidget(self.tblParticipants, 11, 3, 5, 1) self.spinBoxBandwidth = KillerDoubleSpinBox(ProjectDialog) self.spinBoxBandwidth.setDecimals(3) self.spinBoxBandwidth.setMinimum(1.0) self.spinBoxBandwidth.setMaximum(999999999999.0) self.spinBoxBandwidth.setSingleStep(0.001) self.spinBoxBandwidth.setProperty("value", 1000000.0) self.spinBoxBandwidth.setObjectName("spinBoxBandwidth") self.gridLayout.addWidget(self.spinBoxBandwidth, 5, 3, 1, 1) self.label_3 = QtWidgets.QLabel(ProjectDialog) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 4, 0, 1, 2) self.spinBoxFreq = KillerDoubleSpinBox(ProjectDialog) self.spinBoxFreq.setDecimals(3) self.spinBoxFreq.setMinimum(0.01) self.spinBoxFreq.setMaximum(1000000000000.0) self.spinBoxFreq.setSingleStep(0.001) self.spinBoxFreq.setProperty("value", 433920000.0) self.spinBoxFreq.setObjectName("spinBoxFreq") self.gridLayout.addWidget(self.spinBoxFreq, 4, 3, 1, 1) self.spinBoxSampleRate = KillerDoubleSpinBox(ProjectDialog) self.spinBoxSampleRate.setDecimals(3) self.spinBoxSampleRate.setMinimum(0.01) self.spinBoxSampleRate.setMaximum(1000000000000.0) self.spinBoxSampleRate.setSingleStep(0.001) self.spinBoxSampleRate.setProperty("value", 1000000.0) self.spinBoxSampleRate.setObjectName("spinBoxSampleRate") self.gridLayout.addWidget(self.spinBoxSampleRate, 3, 3, 1, 1) self.lineEditBroadcastAddress = QtWidgets.QLineEdit(ProjectDialog) self.lineEditBroadcastAddress.setInputMask("") self.lineEditBroadcastAddress.setObjectName("lineEditBroadcastAddress") self.gridLayout.addWidget(self.lineEditBroadcastAddress, 16, 3, 1, 1) self.line = QtWidgets.QFrame(ProjectDialog) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout.addWidget(self.line, 9, 0, 1, 6) self.label_10 = QtWidgets.QLabel(ProjectDialog) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 5, 0, 1, 2) self.btnAddParticipant = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("list-add") self.btnAddParticipant.setIcon(icon) self.btnAddParticipant.setObjectName("btnAddParticipant") self.gridLayout.addWidget(self.btnAddParticipant, 11, 4, 1, 2) self.btnSelectPath = QtWidgets.QToolButton(ProjectDialog) self.btnSelectPath.setObjectName("btnSelectPath") self.gridLayout.addWidget(self.btnSelectPath, 0, 4, 1, 2) self.line_2 = QtWidgets.QFrame(ProjectDialog) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.gridLayout.addWidget(self.line_2, 2, 0, 1, 6) self.label_6 = QtWidgets.QLabel(ProjectDialog) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 4, 4, 1, 2) self.label_2 = QtWidgets.QLabel(ProjectDialog) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 3, 0, 1, 2) self.label = QtWidgets.QLabel(ProjectDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 2) self.btnRemoveParticipant = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("list-remove") self.btnRemoveParticipant.setIcon(icon) self.btnRemoveParticipant.setObjectName("btnRemoveParticipant") self.gridLayout.addWidget(self.btnRemoveParticipant, 12, 4, 1, 2) self.spinBoxGain = QtWidgets.QSpinBox(ProjectDialog) self.spinBoxGain.setMinimum(1) self.spinBoxGain.setProperty("value", 20) self.spinBoxGain.setObjectName("spinBoxGain") self.gridLayout.addWidget(self.spinBoxGain, 6, 3, 1, 1) self.label_4 = QtWidgets.QLabel(ProjectDialog) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 16, 0, 1, 2) self.label_8 = QtWidgets.QLabel(ProjectDialog) self.label_8.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 10, 0, 1, 2) self.label_12 = QtWidgets.QLabel(ProjectDialog) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 5, 4, 1, 2) self.label_11 = QtWidgets.QLabel(ProjectDialog) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 6, 0, 1, 2) self.btnUp = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("go-up") self.btnUp.setIcon(icon) self.btnUp.setObjectName("btnUp") self.gridLayout.addWidget(self.btnUp, 13, 4, 1, 1) self.lOpenSpectrumAnalyzer = QtWidgets.QLabel(ProjectDialog) self.lOpenSpectrumAnalyzer.setTextFormat(QtCore.Qt.AutoText) self.lOpenSpectrumAnalyzer.setOpenExternalLinks(False) self.lOpenSpectrumAnalyzer.setObjectName("lOpenSpectrumAnalyzer") self.gridLayout.addWidget(self.lOpenSpectrumAnalyzer, 8, 0, 1, 4) self.label_9 = QtWidgets.QLabel(ProjectDialog) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 11, 0, 5, 2) self.btnDown = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("go-down") self.btnDown.setIcon(icon) self.btnDown.setObjectName("btnDown") self.gridLayout.addWidget(self.btnDown, 14, 4, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(ProjectDialog) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout.addWidget(self.buttonBox, 17, 3, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.retranslateUi(ProjectDialog) ProjectDialog.setTabOrder(self.lineEdit_Path, self.btnSelectPath) ProjectDialog.setTabOrder(self.btnSelectPath, self.spinBoxSampleRate) ProjectDialog.setTabOrder(self.spinBoxSampleRate, self.spinBoxFreq) ProjectDialog.setTabOrder(self.spinBoxFreq, self.spinBoxBandwidth) ProjectDialog.setTabOrder(self.spinBoxBandwidth, self.spinBoxGain) ProjectDialog.setTabOrder(self.spinBoxGain, self.txtEdDescription) ProjectDialog.setTabOrder(self.txtEdDescription, self.tblParticipants) ProjectDialog.setTabOrder(self.tblParticipants, self.btnAddParticipant) ProjectDialog.setTabOrder(self.btnAddParticipant, self.btnRemoveParticipant) ProjectDialog.setTabOrder(self.btnRemoveParticipant, self.lineEditBroadcastAddress) def retranslateUi(self, ProjectDialog): _translate = QtCore.QCoreApplication.translate ProjectDialog.setWindowTitle(_translate("ProjectDialog", "Create a new project")) self.lNewProject.setText(_translate("ProjectDialog", "New Project")) self.lblName.setText(_translate("ProjectDialog", "<Name>")) self.label_5.setText(_translate("ProjectDialog", "Sps")) self.lblNewPath.setText(_translate("ProjectDialog", "<html><head/><body><p><span style=\" font-style:italic;\">Note: A new directory will be created.</span></p></body></html>")) self.label_3.setText(_translate("ProjectDialog", "Default frequency:")) self.lineEditBroadcastAddress.setToolTip(_translate("ProjectDialog", "<html><head/><body><p>Enter the broadcast address of your protocol in <span style=\" font-weight:600;\">hex</span>. If you do not know what to enter here, just leave the default.</p></body></html>")) self.lineEditBroadcastAddress.setText(_translate("ProjectDialog", "ffff")) self.label_10.setText(_translate("ProjectDialog", "Default bandwidth:")) self.btnAddParticipant.setToolTip(_translate("ProjectDialog", "Add participant")) self.btnAddParticipant.setText(_translate("ProjectDialog", "...")) self.btnSelectPath.setText(_translate("ProjectDialog", "...")) self.label_6.setText(_translate("ProjectDialog", "Hz")) self.label_2.setText(_translate("ProjectDialog", "Default sample rate:")) self.label.setText(_translate("ProjectDialog", "Choose a path:")) self.btnRemoveParticipant.setToolTip(_translate("ProjectDialog", "Remove participant")) self.btnRemoveParticipant.setText(_translate("ProjectDialog", "...")) self.label_4.setText(_translate("ProjectDialog", "Broadcast address (hex):")) self.label_8.setText(_translate("ProjectDialog", "Description:")) self.label_12.setText(_translate("ProjectDialog", "Hz")) self.label_11.setText(_translate("ProjectDialog", "Default gain:")) self.btnUp.setToolTip(_translate("ProjectDialog", "Move selected participants up")) self.btnUp.setText(_translate("ProjectDialog", "...")) self.lOpenSpectrumAnalyzer.setText(_translate("ProjectDialog", "<html><head/><body><p>Tip: Open <a href=\"open_spectrum_analyzer\">spectrum analyzer</a> to find these values.</p></body></html>")) self.label_9.setText(_translate("ProjectDialog", "Participants:")) self.btnDown.setToolTip(_translate("ProjectDialog", "Move selected participants down")) self.btnDown.setText(_translate("ProjectDialog", "..."))
class Ui_FormDeviceSettings(object): def setupUi(self, FormDeviceSettings): FormDeviceSettings.setObjectName("FormDeviceSettings") FormDeviceSettings.resize(860, 754) self.verticalLayout = QtWidgets.QVBoxLayout(FormDeviceSettings) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.groupBoxDeviceSettings = QtWidgets.QGroupBox(FormDeviceSettings) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.groupBoxDeviceSettings.setFont(font) self.groupBoxDeviceSettings.setStyleSheet( "QGroupBox\n" "{\n" "border: none;\n" "}\n" "\n" "QGroupBox::title {\n" " subcontrol-origin: margin;\n" "}\n" "QGroupBox::indicator:unchecked {\n" " image: url(:/icons/icons/collapse.svg)\n" "}\n" "QGroupBox::indicator:checked {\n" " image: url(:/icons/icons/uncollapse.svg)\n" "}") self.groupBoxDeviceSettings.setFlat(True) self.groupBoxDeviceSettings.setCheckable(True) self.groupBoxDeviceSettings.setObjectName("groupBoxDeviceSettings") self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBoxDeviceSettings) self.gridLayout_6.setContentsMargins(-1, 15, -1, -1) self.gridLayout_6.setObjectName("gridLayout_6") self.frame_2 = QtWidgets.QFrame(self.groupBoxDeviceSettings) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.frame_2.setFont(font) self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setLineWidth(0) self.frame_2.setObjectName("frame_2") self.gridLayout = QtWidgets.QGridLayout(self.frame_2) self.gridLayout.setObjectName("gridLayout") self.spinBoxFreqCorrection = QtWidgets.QSpinBox(self.frame_2) self.spinBoxFreqCorrection.setMinimum(-1000) self.spinBoxFreqCorrection.setMaximum(1000) self.spinBoxFreqCorrection.setProperty("value", 1) self.spinBoxFreqCorrection.setObjectName("spinBoxFreqCorrection") self.gridLayout.addWidget(self.spinBoxFreqCorrection, 13, 1, 1, 1) self.labelBasebandGain = QtWidgets.QLabel(self.frame_2) self.labelBasebandGain.setObjectName("labelBasebandGain") self.gridLayout.addWidget(self.labelBasebandGain, 12, 0, 1, 1) self.gridLayout_8 = QtWidgets.QGridLayout() self.gridLayout_8.setObjectName("gridLayout_8") self.sliderBasebandGain = QtWidgets.QSlider(self.frame_2) self.sliderBasebandGain.setSliderPosition(0) self.sliderBasebandGain.setOrientation(QtCore.Qt.Horizontal) self.sliderBasebandGain.setInvertedAppearance(False) self.sliderBasebandGain.setInvertedControls(False) self.sliderBasebandGain.setTickPosition(QtWidgets.QSlider.NoTicks) self.sliderBasebandGain.setTickInterval(0) self.sliderBasebandGain.setObjectName("sliderBasebandGain") self.gridLayout_8.addWidget(self.sliderBasebandGain, 0, 0, 1, 1) self.spinBoxBasebandGain = QtWidgets.QSpinBox(self.frame_2) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.spinBoxBasebandGain.sizePolicy().hasHeightForWidth()) self.spinBoxBasebandGain.setSizePolicy(sizePolicy) self.spinBoxBasebandGain.setObjectName("spinBoxBasebandGain") self.gridLayout_8.addWidget(self.spinBoxBasebandGain, 0, 1, 1, 1) self.gridLayout.addLayout(self.gridLayout_8, 12, 1, 1, 1) self.labelBandwidth = QtWidgets.QLabel(self.frame_2) self.labelBandwidth.setObjectName("labelBandwidth") self.gridLayout.addWidget(self.labelBandwidth, 9, 0, 1, 1) self.labelFreqCorrection = QtWidgets.QLabel(self.frame_2) self.labelFreqCorrection.setObjectName("labelFreqCorrection") self.gridLayout.addWidget(self.labelFreqCorrection, 13, 0, 1, 1) self.labelGain = QtWidgets.QLabel(self.frame_2) self.labelGain.setObjectName("labelGain") self.gridLayout.addWidget(self.labelGain, 10, 0, 1, 1) self.comboBoxDeviceIdentifier = QtWidgets.QComboBox(self.frame_2) self.comboBoxDeviceIdentifier.setEditable(True) self.comboBoxDeviceIdentifier.setInsertPolicy( QtWidgets.QComboBox.NoInsert) self.comboBoxDeviceIdentifier.setObjectName("comboBoxDeviceIdentifier") self.gridLayout.addWidget(self.comboBoxDeviceIdentifier, 1, 1, 1, 1) self.labelDCCorrection = QtWidgets.QLabel(self.frame_2) self.labelDCCorrection.setObjectName("labelDCCorrection") self.gridLayout.addWidget(self.labelDCCorrection, 16, 0, 1, 1) self.labelDeviceIdentifier = QtWidgets.QLabel(self.frame_2) self.labelDeviceIdentifier.setObjectName("labelDeviceIdentifier") self.gridLayout.addWidget(self.labelDeviceIdentifier, 1, 0, 1, 1) self.labelPort = QtWidgets.QLabel(self.frame_2) self.labelPort.setObjectName("labelPort") self.gridLayout.addWidget(self.labelPort, 6, 0, 1, 1) self.labelIFGain = QtWidgets.QLabel(self.frame_2) self.labelIFGain.setObjectName("labelIFGain") self.gridLayout.addWidget(self.labelIFGain, 11, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.frame_2) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.spinBoxFreq = KillerDoubleSpinBox(self.frame_2) self.spinBoxFreq.setDecimals(10) self.spinBoxFreq.setMinimum(0.001) self.spinBoxFreq.setMaximum(1000000000000.0) self.spinBoxFreq.setProperty("value", 433920000.0) self.spinBoxFreq.setObjectName("spinBoxFreq") self.gridLayout.addWidget(self.spinBoxFreq, 7, 1, 1, 1) self.labelAntenna = QtWidgets.QLabel(self.frame_2) self.labelAntenna.setObjectName("labelAntenna") self.gridLayout.addWidget(self.labelAntenna, 4, 0, 1, 1) self.btnRefreshDeviceIdentifier = QtWidgets.QToolButton(self.frame_2) icon = QtGui.QIcon.fromTheme("view-refresh") self.btnRefreshDeviceIdentifier.setIcon(icon) self.btnRefreshDeviceIdentifier.setObjectName( "btnRefreshDeviceIdentifier") self.gridLayout.addWidget(self.btnRefreshDeviceIdentifier, 1, 2, 1, 1) self.cbDevice = QtWidgets.QComboBox(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cbDevice.sizePolicy().hasHeightForWidth()) self.cbDevice.setSizePolicy(sizePolicy) self.cbDevice.setObjectName("cbDevice") self.cbDevice.addItem("") self.cbDevice.addItem("") self.gridLayout.addWidget(self.cbDevice, 0, 1, 1, 1) self.lineEditIP = QtWidgets.QLineEdit(self.frame_2) self.lineEditIP.setObjectName("lineEditIP") self.gridLayout.addWidget(self.lineEditIP, 5, 1, 1, 1) self.labelIP = QtWidgets.QLabel(self.frame_2) self.labelIP.setObjectName("labelIP") self.gridLayout.addWidget(self.labelIP, 5, 0, 1, 1) self.labelFreq = QtWidgets.QLabel(self.frame_2) self.labelFreq.setObjectName("labelFreq") self.gridLayout.addWidget(self.labelFreq, 7, 0, 1, 1) self.btnLockBWSR = QtWidgets.QToolButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.btnLockBWSR.sizePolicy().hasHeightForWidth()) self.btnLockBWSR.setSizePolicy(sizePolicy) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/icons/lock.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnLockBWSR.setIcon(icon) self.btnLockBWSR.setIconSize(QtCore.QSize(16, 16)) self.btnLockBWSR.setCheckable(True) self.btnLockBWSR.setChecked(True) self.btnLockBWSR.setObjectName("btnLockBWSR") self.gridLayout.addWidget(self.btnLockBWSR, 8, 2, 2, 1) self.gridLayout_5 = QtWidgets.QGridLayout() self.gridLayout_5.setSizeConstraint( QtWidgets.QLayout.SetDefaultConstraint) self.gridLayout_5.setObjectName("gridLayout_5") self.sliderGain = QtWidgets.QSlider(self.frame_2) self.sliderGain.setMaximum(100) self.sliderGain.setSingleStep(1) self.sliderGain.setOrientation(QtCore.Qt.Horizontal) self.sliderGain.setObjectName("sliderGain") self.gridLayout_5.addWidget(self.sliderGain, 0, 0, 1, 1) self.spinBoxGain = QtWidgets.QSpinBox(self.frame_2) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.spinBoxGain.sizePolicy().hasHeightForWidth()) self.spinBoxGain.setSizePolicy(sizePolicy) self.spinBoxGain.setMinimum(0) self.spinBoxGain.setMaximum(99) self.spinBoxGain.setProperty("value", 40) self.spinBoxGain.setObjectName("spinBoxGain") self.gridLayout_5.addWidget(self.spinBoxGain, 0, 1, 1, 1) self.gridLayout.addLayout(self.gridLayout_5, 10, 1, 1, 1) self.spinBoxPort = QtWidgets.QSpinBox(self.frame_2) self.spinBoxPort.setMinimum(1) self.spinBoxPort.setMaximum(65535) self.spinBoxPort.setProperty("value", 1234) self.spinBoxPort.setObjectName("spinBoxPort") self.gridLayout.addWidget(self.spinBoxPort, 6, 1, 1, 1) self.comboBoxAntenna = QtWidgets.QComboBox(self.frame_2) self.comboBoxAntenna.setObjectName("comboBoxAntenna") self.gridLayout.addWidget(self.comboBoxAntenna, 4, 1, 1, 1) self.comboBoxDirectSampling = QtWidgets.QComboBox(self.frame_2) self.comboBoxDirectSampling.setObjectName("comboBoxDirectSampling") self.gridLayout.addWidget(self.comboBoxDirectSampling, 14, 1, 1, 1) self.labelDirectSampling = QtWidgets.QLabel(self.frame_2) self.labelDirectSampling.setObjectName("labelDirectSampling") self.gridLayout.addWidget(self.labelDirectSampling, 14, 0, 1, 1) self.labelNRepeat = QtWidgets.QLabel(self.frame_2) self.labelNRepeat.setObjectName("labelNRepeat") self.gridLayout.addWidget(self.labelNRepeat, 15, 0, 1, 1) self.checkBoxDCCorrection = QtWidgets.QCheckBox(self.frame_2) self.checkBoxDCCorrection.setChecked(True) self.checkBoxDCCorrection.setObjectName("checkBoxDCCorrection") self.gridLayout.addWidget(self.checkBoxDCCorrection, 16, 1, 1, 1) self.comboBoxChannel = QtWidgets.QComboBox(self.frame_2) self.comboBoxChannel.setObjectName("comboBoxChannel") self.gridLayout.addWidget(self.comboBoxChannel, 3, 1, 1, 1) self.labelChannel = QtWidgets.QLabel(self.frame_2) self.labelChannel.setObjectName("labelChannel") self.gridLayout.addWidget(self.labelChannel, 3, 0, 1, 1) self.labelSampleRate = QtWidgets.QLabel(self.frame_2) self.labelSampleRate.setObjectName("labelSampleRate") self.gridLayout.addWidget(self.labelSampleRate, 8, 0, 1, 1) self.gridLayout_7 = QtWidgets.QGridLayout() self.gridLayout_7.setObjectName("gridLayout_7") self.sliderIFGain = QtWidgets.QSlider(self.frame_2) self.sliderIFGain.setOrientation(QtCore.Qt.Horizontal) self.sliderIFGain.setObjectName("sliderIFGain") self.gridLayout_7.addWidget(self.sliderIFGain, 0, 0, 1, 1) self.spinBoxIFGain = QtWidgets.QSpinBox(self.frame_2) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.spinBoxIFGain.sizePolicy().hasHeightForWidth()) self.spinBoxIFGain.setSizePolicy(sizePolicy) self.spinBoxIFGain.setObjectName("spinBoxIFGain") self.gridLayout_7.addWidget(self.spinBoxIFGain, 0, 1, 1, 1) self.gridLayout.addLayout(self.gridLayout_7, 11, 1, 1, 1) self.spinBoxNRepeat = QtWidgets.QSpinBox(self.frame_2) self.spinBoxNRepeat.setMaximum(999999999) self.spinBoxNRepeat.setObjectName("spinBoxNRepeat") self.gridLayout.addWidget(self.spinBoxNRepeat, 15, 1, 1, 1) self.spinBoxSampleRate = KillerDoubleSpinBox(self.frame_2) self.spinBoxSampleRate.setDecimals(10) self.spinBoxSampleRate.setMinimum(0.001) self.spinBoxSampleRate.setMaximum(1000000000000.0) self.spinBoxSampleRate.setObjectName("spinBoxSampleRate") self.gridLayout.addWidget(self.spinBoxSampleRate, 8, 1, 1, 1) self.spinBoxBandwidth = KillerDoubleSpinBox(self.frame_2) self.spinBoxBandwidth.setDecimals(10) self.spinBoxBandwidth.setMinimum(0.001) self.spinBoxBandwidth.setMaximum(1000000000000.0) self.spinBoxBandwidth.setObjectName("spinBoxBandwidth") self.gridLayout.addWidget(self.spinBoxBandwidth, 9, 1, 1, 1) self.labelSubdevice = QtWidgets.QLabel(self.frame_2) self.labelSubdevice.setObjectName("labelSubdevice") self.gridLayout.addWidget(self.labelSubdevice, 2, 0, 1, 1) self.lineEditSubdevice = QtWidgets.QLineEdit(self.frame_2) self.lineEditSubdevice.setObjectName("lineEditSubdevice") self.gridLayout.addWidget(self.lineEditSubdevice, 2, 1, 1, 1) self.gridLayout_6.addWidget(self.frame_2, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBoxDeviceSettings) self.retranslateUi(FormDeviceSettings) self.groupBoxDeviceSettings.toggled['bool'].connect( self.frame_2.setVisible) FormDeviceSettings.setTabOrder(self.groupBoxDeviceSettings, self.cbDevice) FormDeviceSettings.setTabOrder(self.cbDevice, self.comboBoxDeviceIdentifier) FormDeviceSettings.setTabOrder(self.comboBoxDeviceIdentifier, self.btnRefreshDeviceIdentifier) FormDeviceSettings.setTabOrder(self.btnRefreshDeviceIdentifier, self.lineEditSubdevice) FormDeviceSettings.setTabOrder(self.lineEditSubdevice, self.comboBoxChannel) FormDeviceSettings.setTabOrder(self.comboBoxChannel, self.comboBoxAntenna) FormDeviceSettings.setTabOrder(self.comboBoxAntenna, self.lineEditIP) FormDeviceSettings.setTabOrder(self.lineEditIP, self.spinBoxPort) FormDeviceSettings.setTabOrder(self.spinBoxPort, self.spinBoxFreq) FormDeviceSettings.setTabOrder(self.spinBoxFreq, self.spinBoxSampleRate) FormDeviceSettings.setTabOrder(self.spinBoxSampleRate, self.btnLockBWSR) FormDeviceSettings.setTabOrder(self.btnLockBWSR, self.spinBoxBandwidth) FormDeviceSettings.setTabOrder(self.spinBoxBandwidth, self.sliderGain) FormDeviceSettings.setTabOrder(self.sliderGain, self.spinBoxGain) FormDeviceSettings.setTabOrder(self.spinBoxGain, self.sliderIFGain) FormDeviceSettings.setTabOrder(self.sliderIFGain, self.spinBoxIFGain) FormDeviceSettings.setTabOrder(self.spinBoxIFGain, self.sliderBasebandGain) FormDeviceSettings.setTabOrder(self.sliderBasebandGain, self.spinBoxBasebandGain) FormDeviceSettings.setTabOrder(self.spinBoxBasebandGain, self.spinBoxFreqCorrection) FormDeviceSettings.setTabOrder(self.spinBoxFreqCorrection, self.comboBoxDirectSampling) FormDeviceSettings.setTabOrder(self.comboBoxDirectSampling, self.spinBoxNRepeat) FormDeviceSettings.setTabOrder(self.spinBoxNRepeat, self.checkBoxDCCorrection) def retranslateUi(self, FormDeviceSettings): _translate = QtCore.QCoreApplication.translate FormDeviceSettings.setWindowTitle( _translate("FormDeviceSettings", "Form")) self.groupBoxDeviceSettings.setTitle( _translate("FormDeviceSettings", "Device settings")) self.spinBoxFreqCorrection.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>Set the frequency correction in <span style=\" font-weight:600;\">ppm</span>. If you do not know what to enter here, just leave it to one.</p></body></html>" )) self.labelBasebandGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The baseband gain is applied to the baseband signal in your software defined radio. The baseband signal is at low frequency and gathered from the RF signal by <span style=\" font-weight:600;\">complex downsampling</span>.</p></body></html>" )) self.labelBasebandGain.setText( _translate("FormDeviceSettings", "Baseband gain:")) self.sliderBasebandGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The baseband gain is applied to the baseband signal in your software defined radio. The baseband signal is at low frequency and gathered from the RF signal by <span style=\" font-weight:600;\">complex downsampling</span>.</p></body></html>" )) self.spinBoxBasebandGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The baseband gain is applied to the baseband signal in your software defined radio. The baseband signal is at low frequency and gathered from the RF signal by <span style=\" font-weight:600;\">complex downsampling</span>.</p></body></html>" )) self.labelBandwidth.setText( _translate("FormDeviceSettings", "Bandwidth (Hz):")) self.labelFreqCorrection.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>Set the frequency correction in <span style=\" font-weight:600;\">ppm</span>. If you do not know what to enter here, just leave it to one.</p></body></html>" )) self.labelFreqCorrection.setText( _translate("FormDeviceSettings", "Frequency correction:")) self.labelGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The gain (more exactly RF gain) is the gain applied to the RF signal. This amplifies the high frequent signal arriving at the antenna of your Software Defined Radio.</p></body></html>" )) self.labelGain.setText(_translate("FormDeviceSettings", "Gain:")) self.comboBoxDeviceIdentifier.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>You can enter a device identifier here if you have multiple SDRs of the same type attached to separate them. There is no need to configure this value otherwise. URH will <span style=\" font-weight:600;\">automatically</span> select an attached SDR of the configured type if you leave this value empty.</p></body></html>" )) self.labelDCCorrection.setToolTip( _translate( "FormDeviceSettings", "Apply DC correction during recording, that is, ensure the captured signal has a mean value of zero." )) self.labelDCCorrection.setText( _translate("FormDeviceSettings", "DC correction:")) self.labelDeviceIdentifier.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>You can enter a device identifier here if you have multiple SDRs of the same type attached to separate them. There is no need to configure this value otherwise. URH will <span style=\" font-weight:600;\">automatically</span> select an attached SDR of the configured type if you leave this value empty.</p></body></html>" )) self.labelDeviceIdentifier.setText( _translate("FormDeviceSettings", "Device Identifier:")) self.labelPort.setText(_translate("FormDeviceSettings", "Port number:")) self.labelIFGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The IF Gain is applied to the Intermediate Frequency signal in your Software Defined Radio. An IF signal has a lower frequency than the high frequent RF signal, so signal processing can be applied more efficiently.</p></body></html>" )) self.labelIFGain.setText(_translate("FormDeviceSettings", "IF Gain:")) self.label_3.setText(_translate("FormDeviceSettings", "Device:")) self.labelAntenna.setText(_translate("FormDeviceSettings", "Antenna:")) self.btnRefreshDeviceIdentifier.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>Automatically detect connected SDRs of the above configured type. There is <span style=\" font-weight:600;\">no need</span> to press this button if you have only one SDR of a certain type attached. </p></body></html>" )) self.btnRefreshDeviceIdentifier.setText( _translate("FormDeviceSettings", "...")) self.cbDevice.setItemText(0, _translate("FormDeviceSettings", "USRP")) self.cbDevice.setItemText(1, _translate("FormDeviceSettings", "HackRF")) self.lineEditIP.setText(_translate("FormDeviceSettings", "127.0.0.1")) self.labelIP.setText(_translate("FormDeviceSettings", "IP address:")) self.labelFreq.setText( _translate("FormDeviceSettings", "Frequency (Hz):")) self.btnLockBWSR.setText(_translate("FormDeviceSettings", "...")) self.sliderGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The gain (more exactly RF gain) is the gain applied to the RF signal. This amplifies the high frequent signal arriving at the antenna of your Software Defined Radio.</p></body></html>" )) self.spinBoxGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The gain (more exactly RF gain) is the gain applied to the RF signal. This amplifies the high frequent signal arriving at the antenna of your Software Defined Radio.</p></body></html>" )) self.comboBoxDirectSampling.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>Set the direct sampling mode. If you do not know what to choose here, just set it to disabled. The<span style=\" font-weight:600;\"> native backend</span> is recommended, when using this setting.</p></body></html>" )) self.labelDirectSampling.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>Set the direct sampling mode. If you do not know what to choose here, just set it to disabled. The<span style=\" font-weight:600;\"> native backend</span> is recommended, when using this setting.</p></body></html>" )) self.labelDirectSampling.setText( _translate("FormDeviceSettings", "Direct sampling:")) self.labelNRepeat.setText(_translate("FormDeviceSettings", "Repeat:")) self.checkBoxDCCorrection.setToolTip( _translate( "FormDeviceSettings", "Apply DC correction during recording, that is, ensure the captured signal has a mean value of zero." )) self.checkBoxDCCorrection.setText( _translate("FormDeviceSettings", "Apply DC correction")) self.labelChannel.setText(_translate("FormDeviceSettings", "Channel:")) self.labelSampleRate.setText( _translate("FormDeviceSettings", "Sample rate (Sps):")) self.sliderIFGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The IF Gain is applied to the Intermediate Frequency signal in your Software Defined Radio. An IF signal has a lower frequency than the high frequent RF signal, so signal processing can be applied more efficiently.</p></body></html>" )) self.spinBoxIFGain.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>The IF Gain is applied to the Intermediate Frequency signal in your Software Defined Radio. An IF signal has a lower frequency than the high frequent RF signal, so signal processing can be applied more efficiently.</p></body></html>" )) self.spinBoxNRepeat.setSpecialValueText( _translate("FormDeviceSettings", "Infinite")) self.labelSubdevice.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>Configure the subdevice of your USRP. For example, <span style=\" font-weight:600;\">B:0 </span>to select a WBX on slot B. You can learn more at <a href=\"http://files.ettus.com/manual/page_configuration.html#config_subdev\"><span style=\" text-decoration: underline; color:#2980b9;\">http://files.ettus.com/manual/page_configuration.html#config_subdev.</span></a></p></body></html>" )) self.labelSubdevice.setText( _translate("FormDeviceSettings", "<html><head/><body><p>Subdevice:</p></body></html>")) self.lineEditSubdevice.setToolTip( _translate( "FormDeviceSettings", "<html><head/><body><p>Configure the subdevice of your USRP. For example, <span style=\" font-weight:600;\">B:0 </span>to select a WBX on slot B. You can learn more at <a href=\"http://files.ettus.com/manual/page_configuration.html#config_subdev\"><span style=\" text-decoration: underline; color:#2980b9;\">http://files.ettus.com/manual/page_configuration.html#config_subdev.</span></a></p></body></html>" ))
class Ui_ProjectDialog(object): def setupUi(self, ProjectDialog): ProjectDialog.setObjectName("ProjectDialog") ProjectDialog.resize(803, 936) self.verticalLayout = QtWidgets.QVBoxLayout(ProjectDialog) self.verticalLayout.setObjectName("verticalLayout") self.lNewProject = QtWidgets.QLabel(ProjectDialog) font = QtGui.QFont() font.setPointSize(16) font.setBold(True) font.setWeight(75) self.lNewProject.setFont(font) self.lNewProject.setObjectName("lNewProject") self.verticalLayout.addWidget(self.lNewProject) self.lblName = QtWidgets.QLabel(ProjectDialog) self.lblName.setObjectName("lblName") self.verticalLayout.addWidget(self.lblName) spacerItem = QtWidgets.QSpacerItem(17, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.verticalLayout.addItem(spacerItem) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_5 = QtWidgets.QLabel(ProjectDialog) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 3, 4, 1, 2) self.lblNewPath = QtWidgets.QLabel(ProjectDialog) self.lblNewPath.setObjectName("lblNewPath") self.gridLayout.addWidget(self.lblNewPath, 1, 3, 1, 1) self.label = QtWidgets.QLabel(ProjectDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 2) self.label_7 = QtWidgets.QLabel(ProjectDialog) self.label_7.setText("") self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 1, 0, 1, 2) self.lineEdit_Path = QtWidgets.QLineEdit(ProjectDialog) self.lineEdit_Path.setStatusTip("") self.lineEdit_Path.setObjectName("lineEdit_Path") self.gridLayout.addWidget(self.lineEdit_Path, 0, 3, 1, 1) self.btnRemoveParticipant = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("list-remove") self.btnRemoveParticipant.setIcon(icon) self.btnRemoveParticipant.setObjectName("btnRemoveParticipant") self.gridLayout.addWidget(self.btnRemoveParticipant, 12, 4, 1, 2) self.spinBoxGain = QtWidgets.QSpinBox(ProjectDialog) self.spinBoxGain.setMinimum(1) self.spinBoxGain.setProperty("value", 20) self.spinBoxGain.setObjectName("spinBoxGain") self.gridLayout.addWidget(self.spinBoxGain, 6, 3, 1, 1) self.label_4 = QtWidgets.QLabel(ProjectDialog) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 16, 0, 1, 2) self.label_8 = QtWidgets.QLabel(ProjectDialog) self.label_8.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 10, 0, 1, 2) self.label_12 = QtWidgets.QLabel(ProjectDialog) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 5, 4, 1, 2) self.label_11 = QtWidgets.QLabel(ProjectDialog) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 6, 0, 1, 2) self.btnUp = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("go-up") self.btnUp.setIcon(icon) self.btnUp.setObjectName("btnUp") self.gridLayout.addWidget(self.btnUp, 13, 4, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 57, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 15, 4, 1, 2) self.txtEdDescription = QtWidgets.QPlainTextEdit(ProjectDialog) self.txtEdDescription.setObjectName("txtEdDescription") self.gridLayout.addWidget(self.txtEdDescription, 10, 3, 1, 1) self.tblParticipants = ParticipantTableView(ProjectDialog) self.tblParticipants.setAlternatingRowColors(True) self.tblParticipants.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) self.tblParticipants.setObjectName("tblParticipants") self.tblParticipants.horizontalHeader().setCascadingSectionResizes( False) self.tblParticipants.horizontalHeader().setDefaultSectionSize(100) self.tblParticipants.horizontalHeader().setStretchLastSection(True) self.tblParticipants.verticalHeader().setCascadingSectionResizes(True) self.tblParticipants.verticalHeader().setStretchLastSection(False) self.gridLayout.addWidget(self.tblParticipants, 11, 3, 5, 1) self.spinBoxBandwidth = KillerDoubleSpinBox(ProjectDialog) self.spinBoxBandwidth.setDecimals(3) self.spinBoxBandwidth.setMinimum(1.0) self.spinBoxBandwidth.setMaximum(999999999999.0) self.spinBoxBandwidth.setSingleStep(0.001) self.spinBoxBandwidth.setProperty("value", 1000000.0) self.spinBoxBandwidth.setObjectName("spinBoxBandwidth") self.gridLayout.addWidget(self.spinBoxBandwidth, 5, 3, 1, 1) self.label_3 = QtWidgets.QLabel(ProjectDialog) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 4, 0, 1, 2) self.spinBoxFreq = KillerDoubleSpinBox(ProjectDialog) self.spinBoxFreq.setDecimals(3) self.spinBoxFreq.setMinimum(0.01) self.spinBoxFreq.setMaximum(1000000000000.0) self.spinBoxFreq.setSingleStep(0.001) self.spinBoxFreq.setProperty("value", 433920000.0) self.spinBoxFreq.setObjectName("spinBoxFreq") self.gridLayout.addWidget(self.spinBoxFreq, 4, 3, 1, 1) self.spinBoxSampleRate = KillerDoubleSpinBox(ProjectDialog) self.spinBoxSampleRate.setDecimals(3) self.spinBoxSampleRate.setMinimum(0.01) self.spinBoxSampleRate.setMaximum(1000000000000.0) self.spinBoxSampleRate.setSingleStep(0.001) self.spinBoxSampleRate.setProperty("value", 1000000.0) self.spinBoxSampleRate.setObjectName("spinBoxSampleRate") self.gridLayout.addWidget(self.spinBoxSampleRate, 3, 3, 1, 1) self.lineEditBroadcastAddress = QtWidgets.QLineEdit(ProjectDialog) self.lineEditBroadcastAddress.setInputMask("") self.lineEditBroadcastAddress.setObjectName("lineEditBroadcastAddress") self.gridLayout.addWidget(self.lineEditBroadcastAddress, 16, 3, 1, 1) self.line = QtWidgets.QFrame(ProjectDialog) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout.addWidget(self.line, 9, 0, 1, 6) self.label_10 = QtWidgets.QLabel(ProjectDialog) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 5, 0, 1, 2) self.btnAddParticipant = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("list-add") self.btnAddParticipant.setIcon(icon) self.btnAddParticipant.setObjectName("btnAddParticipant") self.gridLayout.addWidget(self.btnAddParticipant, 11, 4, 1, 2) self.btnSelectPath = QtWidgets.QToolButton(ProjectDialog) self.btnSelectPath.setObjectName("btnSelectPath") self.gridLayout.addWidget(self.btnSelectPath, 0, 4, 1, 2) self.line_2 = QtWidgets.QFrame(ProjectDialog) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.gridLayout.addWidget(self.line_2, 2, 0, 1, 6) self.label_6 = QtWidgets.QLabel(ProjectDialog) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 4, 4, 1, 2) self.label_2 = QtWidgets.QLabel(ProjectDialog) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 3, 0, 1, 2) self.lOpenSpectrumAnalyzer = QtWidgets.QLabel(ProjectDialog) self.lOpenSpectrumAnalyzer.setTextFormat(QtCore.Qt.AutoText) self.lOpenSpectrumAnalyzer.setOpenExternalLinks(False) self.lOpenSpectrumAnalyzer.setObjectName("lOpenSpectrumAnalyzer") self.gridLayout.addWidget(self.lOpenSpectrumAnalyzer, 8, 0, 1, 4) self.label_9 = QtWidgets.QLabel(ProjectDialog) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 11, 0, 5, 2) self.btnDown = QtWidgets.QToolButton(ProjectDialog) icon = QtGui.QIcon.fromTheme("go-down") self.btnDown.setIcon(icon) self.btnDown.setObjectName("btnDown") self.gridLayout.addWidget(self.btnDown, 14, 4, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.btnOK = QtWidgets.QPushButton(ProjectDialog) self.btnOK.setObjectName("btnOK") self.horizontalLayout.addWidget(self.btnOK) self.btnCancel = QtWidgets.QPushButton(ProjectDialog) self.btnCancel.setObjectName("btnCancel") self.horizontalLayout.addWidget(self.btnCancel) self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(ProjectDialog) self.btnCancel.clicked.connect(ProjectDialog.close) QtCore.QMetaObject.connectSlotsByName(ProjectDialog) ProjectDialog.setTabOrder(self.lineEdit_Path, self.btnSelectPath) ProjectDialog.setTabOrder(self.btnSelectPath, self.spinBoxSampleRate) ProjectDialog.setTabOrder(self.spinBoxSampleRate, self.spinBoxFreq) ProjectDialog.setTabOrder(self.spinBoxFreq, self.spinBoxBandwidth) ProjectDialog.setTabOrder(self.spinBoxBandwidth, self.spinBoxGain) ProjectDialog.setTabOrder(self.spinBoxGain, self.txtEdDescription) ProjectDialog.setTabOrder(self.txtEdDescription, self.tblParticipants) ProjectDialog.setTabOrder(self.tblParticipants, self.btnAddParticipant) ProjectDialog.setTabOrder(self.btnAddParticipant, self.btnRemoveParticipant) ProjectDialog.setTabOrder(self.btnRemoveParticipant, self.lineEditBroadcastAddress) ProjectDialog.setTabOrder(self.lineEditBroadcastAddress, self.btnOK) ProjectDialog.setTabOrder(self.btnOK, self.btnCancel) def retranslateUi(self, ProjectDialog): _translate = QtCore.QCoreApplication.translate ProjectDialog.setWindowTitle( _translate("ProjectDialog", "Create a new project")) self.lNewProject.setText(_translate("ProjectDialog", "New Project")) self.lblName.setText(_translate("ProjectDialog", "<Name>")) self.label_5.setText(_translate("ProjectDialog", "Sps")) self.lblNewPath.setText( _translate( "ProjectDialog", "<html><head/><body><p><span style=\" font-style:italic;\">Note: A new directory will be created.</span></p></body></html>" )) self.label.setText(_translate("ProjectDialog", "Choose a path:")) self.btnRemoveParticipant.setToolTip( _translate("ProjectDialog", "Remove participant")) self.btnRemoveParticipant.setText(_translate("ProjectDialog", "...")) self.label_4.setText( _translate("ProjectDialog", "Broadcast address (hex):")) self.label_8.setText(_translate("ProjectDialog", "Description:")) self.label_12.setText(_translate("ProjectDialog", "Hz")) self.label_11.setText(_translate("ProjectDialog", "Default gain:")) self.btnUp.setToolTip( _translate("ProjectDialog", "Move selected participants up")) self.btnUp.setText(_translate("ProjectDialog", "...")) self.label_3.setText(_translate("ProjectDialog", "Default frequency:")) self.lineEditBroadcastAddress.setToolTip( _translate( "ProjectDialog", "<html><head/><body><p>Enter the broadcast address of your protocol in <span style=\" font-weight:600;\">hex</span>. If you do not know what to enter here, just leave the default.</p></body></html>" )) self.lineEditBroadcastAddress.setText( _translate("ProjectDialog", "ffff")) self.label_10.setText(_translate("ProjectDialog", "Default bandwidth:")) self.btnAddParticipant.setToolTip( _translate("ProjectDialog", "Add participant")) self.btnAddParticipant.setText(_translate("ProjectDialog", "...")) self.btnSelectPath.setText(_translate("ProjectDialog", "...")) self.label_6.setText(_translate("ProjectDialog", "Hz")) self.label_2.setText( _translate("ProjectDialog", "Default sample rate:")) self.lOpenSpectrumAnalyzer.setText( _translate( "ProjectDialog", "<html><head/><body><p>Tip: Open <a href=\"open_spectrum_analyzer\">spectrum analyzer</a> to find these values.</p></body></html>" )) self.label_9.setText(_translate("ProjectDialog", "Participants:")) self.btnDown.setToolTip( _translate("ProjectDialog", "Move selected participants down")) self.btnDown.setText(_translate("ProjectDialog", "...")) self.btnOK.setText(_translate("ProjectDialog", "Create new project")) self.btnCancel.setText(_translate("ProjectDialog", "Cancel"))
class Ui_SignalDetails(object): def setupUi(self, SignalDetails): SignalDetails.setObjectName("SignalDetails") SignalDetails.resize(469, 200) self.verticalLayout = QtWidgets.QVBoxLayout(SignalDetails) self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 2, 2, 1, 1) self.dsb_sample_rate = KillerDoubleSpinBox(SignalDetails) self.dsb_sample_rate.setWrapping(False) self.dsb_sample_rate.setProperty("showGroupSeparator", False) self.dsb_sample_rate.setMinimum(0.01) self.dsb_sample_rate.setMaximum(1e+33) self.dsb_sample_rate.setProperty("value", 1000000.0) self.dsb_sample_rate.setObjectName("dsb_sample_rate") self.gridLayout.addWidget(self.dsb_sample_rate, 5, 1, 1, 1) self.label = QtWidgets.QLabel(SignalDetails) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.lblFile = QtWidgets.QLabel(SignalDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lblFile.sizePolicy().hasHeightForWidth()) self.lblFile.setSizePolicy(sizePolicy) self.lblFile.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse) self.lblFile.setObjectName("lblFile") self.gridLayout.addWidget(self.lblFile, 1, 1, 1, 1) self.label_2 = QtWidgets.QLabel(SignalDetails) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.label_5 = QtWidgets.QLabel(SignalDetails) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1) self.label_6 = QtWidgets.QLabel(SignalDetails) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1) self.lblSamplesTotal = QtWidgets.QLabel(SignalDetails) self.lblSamplesTotal.setObjectName("lblSamplesTotal") self.gridLayout.addWidget(self.lblSamplesTotal, 4, 1, 1, 1) self.label_3 = QtWidgets.QLabel(SignalDetails) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.lblName = QtWidgets.QLabel(SignalDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lblName.sizePolicy().hasHeightForWidth()) self.lblName.setSizePolicy(sizePolicy) self.lblName.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse) self.lblName.setObjectName("lblName") self.gridLayout.addWidget(self.lblName, 0, 1, 1, 1) self.lblFileSize = QtWidgets.QLabel(SignalDetails) self.lblFileSize.setObjectName("lblFileSize") self.gridLayout.addWidget(self.lblFileSize, 2, 1, 1, 1) self.label_4 = QtWidgets.QLabel(SignalDetails) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) self.lFileCreated = QtWidgets.QLabel(SignalDetails) self.lFileCreated.setObjectName("lFileCreated") self.gridLayout.addWidget(self.lFileCreated, 3, 1, 1, 1) self.label_7 = QtWidgets.QLabel(SignalDetails) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 6, 0, 1, 1) self.lDuration = QtWidgets.QLabel(SignalDetails) self.lDuration.setObjectName("lDuration") self.gridLayout.addWidget(self.lDuration, 6, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) spacerItem1 = QtWidgets.QSpacerItem(20, 135, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.retranslateUi(SignalDetails) def retranslateUi(self, SignalDetails): _translate = QtCore.QCoreApplication.translate SignalDetails.setWindowTitle(_translate("SignalDetails", "Signal details")) self.label.setText(_translate("SignalDetails", "Name:")) self.lblFile.setText(_translate("SignalDetails", "TextLabel")) self.label_2.setText(_translate("SignalDetails", "File:")) self.label_5.setText(_translate("SignalDetails", "Samples:")) self.label_6.setText(_translate("SignalDetails", "Sample Rate (Sps):")) self.lblSamplesTotal.setText(_translate("SignalDetails", "TextLabel")) self.label_3.setText(_translate("SignalDetails", "File size:")) self.lblName.setText(_translate("SignalDetails", "TextLabel")) self.lblFileSize.setText(_translate("SignalDetails", "TextLabel")) self.label_4.setText(_translate("SignalDetails", "File created:")) self.lFileCreated.setText(_translate("SignalDetails", "TextLabel")) self.label_7.setText(_translate("SignalDetails", "Duration:")) self.lDuration.setText(_translate("SignalDetails", "42s"))
class Ui_SignalDetails(object): def setupUi(self, SignalDetails): SignalDetails.setObjectName("SignalDetails") SignalDetails.resize(469, 200) self.verticalLayout = QtWidgets.QVBoxLayout(SignalDetails) self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 2, 2, 1, 1) self.dsb_sample_rate = KillerDoubleSpinBox(SignalDetails) self.dsb_sample_rate.setWrapping(False) self.dsb_sample_rate.setProperty("showGroupSeparator", False) self.dsb_sample_rate.setMinimum(0.01) self.dsb_sample_rate.setMaximum(1e+33) self.dsb_sample_rate.setProperty("value", 1000000.0) self.dsb_sample_rate.setObjectName("dsb_sample_rate") self.gridLayout.addWidget(self.dsb_sample_rate, 5, 1, 1, 1) self.label = QtWidgets.QLabel(SignalDetails) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.lblFile = QtWidgets.QLabel(SignalDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lblFile.sizePolicy().hasHeightForWidth()) self.lblFile.setSizePolicy(sizePolicy) self.lblFile.setTextInteractionFlags( QtCore.Qt.LinksAccessibleByMouse | QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.lblFile.setObjectName("lblFile") self.gridLayout.addWidget(self.lblFile, 1, 1, 1, 1) self.label_2 = QtWidgets.QLabel(SignalDetails) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.label_5 = QtWidgets.QLabel(SignalDetails) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1) self.label_6 = QtWidgets.QLabel(SignalDetails) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1) self.lblSamplesTotal = QtWidgets.QLabel(SignalDetails) self.lblSamplesTotal.setObjectName("lblSamplesTotal") self.gridLayout.addWidget(self.lblSamplesTotal, 4, 1, 1, 1) self.label_3 = QtWidgets.QLabel(SignalDetails) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.lblName = QtWidgets.QLabel(SignalDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lblName.sizePolicy().hasHeightForWidth()) self.lblName.setSizePolicy(sizePolicy) self.lblName.setTextInteractionFlags( QtCore.Qt.LinksAccessibleByMouse | QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.lblName.setObjectName("lblName") self.gridLayout.addWidget(self.lblName, 0, 1, 1, 1) self.lblFileSize = QtWidgets.QLabel(SignalDetails) self.lblFileSize.setObjectName("lblFileSize") self.gridLayout.addWidget(self.lblFileSize, 2, 1, 1, 1) self.label_4 = QtWidgets.QLabel(SignalDetails) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) self.lFileCreated = QtWidgets.QLabel(SignalDetails) self.lFileCreated.setObjectName("lFileCreated") self.gridLayout.addWidget(self.lFileCreated, 3, 1, 1, 1) self.label_7 = QtWidgets.QLabel(SignalDetails) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 6, 0, 1, 1) self.lDuration = QtWidgets.QLabel(SignalDetails) self.lDuration.setObjectName("lDuration") self.gridLayout.addWidget(self.lDuration, 6, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) spacerItem1 = QtWidgets.QSpacerItem(20, 135, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.retranslateUi(SignalDetails) QtCore.QMetaObject.connectSlotsByName(SignalDetails) def retranslateUi(self, SignalDetails): _translate = QtCore.QCoreApplication.translate SignalDetails.setWindowTitle( _translate("SignalDetails", "Signal details")) self.label.setText(_translate("SignalDetails", "Name:")) self.lblFile.setText(_translate("SignalDetails", "TextLabel")) self.label_2.setText(_translate("SignalDetails", "File:")) self.label_5.setText(_translate("SignalDetails", "Samples:")) self.label_6.setText(_translate("SignalDetails", "Sample Rate (Sps):")) self.lblSamplesTotal.setText(_translate("SignalDetails", "TextLabel")) self.label_3.setText(_translate("SignalDetails", "File size:")) self.lblName.setText(_translate("SignalDetails", "TextLabel")) self.lblFileSize.setText(_translate("SignalDetails", "TextLabel")) self.label_4.setText(_translate("SignalDetails", "File created:")) self.lFileCreated.setText(_translate("SignalDetails", "TextLabel")) self.label_7.setText(_translate("SignalDetails", "Duration:")) self.lDuration.setText(_translate("SignalDetails", "42s"))
class Ui_ProjectDialog(object): def setupUi(self, ProjectDialog): ProjectDialog.setObjectName("ProjectDialog") ProjectDialog.resize(669, 245) self.verticalLayout = QtWidgets.QVBoxLayout(ProjectDialog) self.verticalLayout.setObjectName("verticalLayout") self.label_4 = QtWidgets.QLabel(ProjectDialog) font = QtGui.QFont() font.setPointSize(16) font.setBold(True) font.setWeight(75) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.verticalLayout.addWidget(self.label_4) self.lblName = QtWidgets.QLabel(ProjectDialog) self.lblName.setObjectName("lblName") self.verticalLayout.addWidget(self.lblName) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(ProjectDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.lineEdit_Path = QtWidgets.QLineEdit(ProjectDialog) self.lineEdit_Path.setStatusTip("") self.lineEdit_Path.setObjectName("lineEdit_Path") self.gridLayout.addWidget(self.lineEdit_Path, 0, 1, 1, 2) self.btnSelectPath = QtWidgets.QToolButton(ProjectDialog) self.btnSelectPath.setObjectName("btnSelectPath") self.gridLayout.addWidget(self.btnSelectPath, 0, 3, 1, 1) self.label_2 = QtWidgets.QLabel(ProjectDialog) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.spinBoxSampleRate = KillerDoubleSpinBox(ProjectDialog) self.spinBoxSampleRate.setDecimals(2) self.spinBoxSampleRate.setMinimum(0.01) self.spinBoxSampleRate.setMaximum(1000000000000.0) self.spinBoxSampleRate.setProperty("value", 1000000.0) self.spinBoxSampleRate.setObjectName("spinBoxSampleRate") self.gridLayout.addWidget(self.spinBoxSampleRate, 2, 1, 1, 1) self.label_5 = QtWidgets.QLabel(ProjectDialog) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 2, 2, 1, 1) self.label_3 = QtWidgets.QLabel(ProjectDialog) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) self.spinBoxFreq = KillerDoubleSpinBox(ProjectDialog) self.spinBoxFreq.setMinimum(0.01) self.spinBoxFreq.setMaximum(1000000000000.0) self.spinBoxFreq.setProperty("value", 433920000.0) self.spinBoxFreq.setObjectName("spinBoxFreq") self.gridLayout.addWidget(self.spinBoxFreq, 3, 1, 1, 1) self.label_6 = QtWidgets.QLabel(ProjectDialog) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 3, 2, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 4, 1, 1, 1) self.lblNewPath = QtWidgets.QLabel(ProjectDialog) self.lblNewPath.setObjectName("lblNewPath") self.gridLayout.addWidget(self.lblNewPath, 1, 1, 1, 2) self.label_7 = QtWidgets.QLabel(ProjectDialog) self.label_7.setText("") self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.btnOK = QtWidgets.QPushButton(ProjectDialog) self.btnOK.setObjectName("btnOK") self.horizontalLayout.addWidget(self.btnOK) self.btnCancel = QtWidgets.QPushButton(ProjectDialog) self.btnCancel.setObjectName("btnCancel") self.horizontalLayout.addWidget(self.btnCancel) self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(ProjectDialog) self.btnCancel.clicked.connect(ProjectDialog.close) QtCore.QMetaObject.connectSlotsByName(ProjectDialog) def retranslateUi(self, ProjectDialog): _translate = QtCore.QCoreApplication.translate ProjectDialog.setWindowTitle( _translate("ProjectDialog", "Create a new project")) self.label_4.setText(_translate("ProjectDialog", "New Project")) self.lblName.setText(_translate("ProjectDialog", "<Name>")) self.label.setText(_translate("ProjectDialog", "Choose a path:")) self.btnSelectPath.setText(_translate("ProjectDialog", "...")) self.label_2.setText( _translate("ProjectDialog", "Default sample rate:")) self.label_5.setText(_translate("ProjectDialog", "Sps")) self.label_3.setText(_translate("ProjectDialog", "Default frequency:")) self.label_6.setText(_translate("ProjectDialog", "Hz")) self.lblNewPath.setText( _translate( "ProjectDialog", "<html><head/><body><p><span style=\" font-style:italic;\">Note: A new directory will be created.</span></p></body></html>" )) self.btnOK.setText(_translate("ProjectDialog", "Create new project")) self.btnCancel.setText(_translate("ProjectDialog", "Cancel"))