diff options
author | Tom | 2010-01-02 16:34:20 -0500 |
---|---|---|
committer | Tom | 2010-01-02 16:34:20 -0500 |
commit | 991ffe1dcc5ddacc4e2083d8494a9e92034aa70a (patch) | |
tree | 05d8aa2c12812f8ba7bddfde4ecffa199fb3bceb | |
parent | 4f03e43efdc8736c39ff6dad10052d0e31aca62f (diff) | |
download | gnuradio-991ffe1dcc5ddacc4e2083d8494a9e92034aa70a.tar.gz gnuradio-991ffe1dcc5ddacc4e2083d8494a9e92034aa70a.tar.bz2 gnuradio-991ffe1dcc5ddacc4e2083d8494a9e92034aa70a.zip |
UIC files to go along with previous commit (for QT receiver code).
-rw-r--r-- | gnuradio-examples/python/digital/qt_rx_window2.py | 179 | ||||
-rw-r--r-- | gnuradio-examples/python/digital/qt_rx_window2.ui | 379 |
2 files changed, 558 insertions, 0 deletions
diff --git a/gnuradio-examples/python/digital/qt_rx_window2.py b/gnuradio-examples/python/digital/qt_rx_window2.py new file mode 100644 index 000000000..14c961ab2 --- /dev/null +++ b/gnuradio-examples/python/digital/qt_rx_window2.py @@ -0,0 +1,179 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'qt_rx_window2.ui' +# +# Created: Sat Jan 2 12:54:51 2010 +# by: PyQt4 UI code generator 4.4.3 +# +# WARNING! All changes made in this file will be lost! + +from PyQt4 import QtCore, QtGui + +class Ui_DigitalWindow(object): + def setupUi(self, DigitalWindow): + DigitalWindow.setObjectName("DigitalWindow") + DigitalWindow.resize(1000, 816) + self.centralwidget = QtGui.QWidget(DigitalWindow) + self.centralwidget.setObjectName("centralwidget") + self.gridLayout = QtGui.QGridLayout(self.centralwidget) + self.gridLayout.setObjectName("gridLayout") + self.horizontalLayout = QtGui.QHBoxLayout() + self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetFixedSize) + self.horizontalLayout.setObjectName("horizontalLayout") + self.rxBox = QtGui.QGroupBox(self.centralwidget) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.rxBox.sizePolicy().hasHeightForWidth()) + self.rxBox.setSizePolicy(sizePolicy) + self.rxBox.setMinimumSize(QtCore.QSize(250, 190)) + self.rxBox.setMaximumSize(QtCore.QSize(250, 250)) + self.rxBox.setObjectName("rxBox") + self.formLayout = QtGui.QFormLayout(self.rxBox) + self.formLayout.setObjectName("formLayout") + self.freqLabel = QtGui.QLabel(self.rxBox) + self.freqLabel.setObjectName("freqLabel") + self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.freqLabel) + self.freqEdit = QtGui.QLineEdit(self.rxBox) + self.freqEdit.setObjectName("freqEdit") + self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.freqEdit) + self.gainLabel = QtGui.QLabel(self.rxBox) + self.gainLabel.setObjectName("gainLabel") + self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.gainLabel) + self.gainEdit = QtGui.QLineEdit(self.rxBox) + self.gainEdit.setObjectName("gainEdit") + self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.gainEdit) + self.decimLabel = QtGui.QLabel(self.rxBox) + self.decimLabel.setObjectName("decimLabel") + self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.decimLabel) + self.decimEdit = QtGui.QLineEdit(self.rxBox) + self.decimEdit.setObjectName("decimEdit") + self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.decimEdit) + self.gainClockLabel = QtGui.QLabel(self.rxBox) + self.gainClockLabel.setObjectName("gainClockLabel") + self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.gainClockLabel) + self.gainClockEdit = QtGui.QLineEdit(self.rxBox) + self.gainClockEdit.setObjectName("gainClockEdit") + self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.gainClockEdit) + self.gainPhaseLabel = QtGui.QLabel(self.rxBox) + self.gainPhaseLabel.setObjectName("gainPhaseLabel") + self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.gainPhaseLabel) + self.gainPhaseEdit = QtGui.QLineEdit(self.rxBox) + self.gainPhaseEdit.setObjectName("gainPhaseEdit") + self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.gainPhaseEdit) + self.gainFreqEdit = QtGui.QLineEdit(self.rxBox) + self.gainFreqEdit.setObjectName("gainFreqEdit") + self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.gainFreqEdit) + self.gainFreqLabel = QtGui.QLabel(self.rxBox) + self.gainFreqLabel.setObjectName("gainFreqLabel") + self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.gainFreqLabel) + self.horizontalLayout.addWidget(self.rxBox) + self.verticalLayout_3 = QtGui.QVBoxLayout() + self.verticalLayout_3.setObjectName("verticalLayout_3") + self.rxPacketBox = QtGui.QGroupBox(self.centralwidget) + self.rxPacketBox.setEnabled(True) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.rxPacketBox.sizePolicy().hasHeightForWidth()) + self.rxPacketBox.setSizePolicy(sizePolicy) + self.rxPacketBox.setMinimumSize(QtCore.QSize(250, 130)) + self.rxPacketBox.setMaximumSize(QtCore.QSize(250, 130)) + font = QtGui.QFont() + font.setWeight(50) + font.setBold(False) + self.rxPacketBox.setFont(font) + self.rxPacketBox.setObjectName("rxPacketBox") + self.pktsRcvdEdit = QtGui.QLineEdit(self.rxPacketBox) + self.pktsRcvdEdit.setGeometry(QtCore.QRect(120, 30, 113, 23)) + self.pktsRcvdEdit.setObjectName("pktsRcvdEdit") + self.pktsRcvdLabel = QtGui.QLabel(self.rxPacketBox) + self.pktsRcvdLabel.setGeometry(QtCore.QRect(10, 30, 111, 20)) + self.pktsRcvdLabel.setObjectName("pktsRcvdLabel") + self.pktsCorrectEdit = QtGui.QLineEdit(self.rxPacketBox) + self.pktsCorrectEdit.setGeometry(QtCore.QRect(120, 60, 113, 23)) + self.pktsCorrectEdit.setObjectName("pktsCorrectEdit") + self.pktsCorrectLabel = QtGui.QLabel(self.rxPacketBox) + self.pktsCorrectLabel.setGeometry(QtCore.QRect(10, 60, 111, 20)) + self.pktsCorrectLabel.setObjectName("pktsCorrectLabel") + self.perLabel = QtGui.QLabel(self.rxPacketBox) + self.perLabel.setGeometry(QtCore.QRect(10, 90, 111, 20)) + self.perLabel.setObjectName("perLabel") + self.perEdit = QtGui.QLineEdit(self.rxPacketBox) + self.perEdit.setGeometry(QtCore.QRect(120, 90, 113, 23)) + self.perEdit.setObjectName("perEdit") + self.verticalLayout_3.addWidget(self.rxPacketBox) + spacerItem = QtGui.QSpacerItem(20, 60, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) + self.verticalLayout_3.addItem(spacerItem) + self.horizontalLayout.addLayout(self.verticalLayout_3) + spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) + self.horizontalLayout.addItem(spacerItem1) + self.verticalLayout_5 = QtGui.QVBoxLayout() + self.verticalLayout_5.setObjectName("verticalLayout_5") + spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) + self.verticalLayout_5.addItem(spacerItem2) + self.closeButton = QtGui.QPushButton(self.centralwidget) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.closeButton.sizePolicy().hasHeightForWidth()) + self.closeButton.setSizePolicy(sizePolicy) + self.closeButton.setMinimumSize(QtCore.QSize(80, 30)) + self.closeButton.setMaximumSize(QtCore.QSize(80, 30)) + self.closeButton.setObjectName("closeButton") + self.verticalLayout_5.addWidget(self.closeButton) + self.horizontalLayout.addLayout(self.verticalLayout_5) + self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1) + self.sinkFrame = QtGui.QFrame(self.centralwidget) + sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(1) + sizePolicy.setHeightForWidth(self.sinkFrame.sizePolicy().hasHeightForWidth()) + self.sinkFrame.setSizePolicy(sizePolicy) + self.sinkFrame.setMinimumSize(QtCore.QSize(800, 500)) + self.sinkFrame.setFrameShape(QtGui.QFrame.StyledPanel) + self.sinkFrame.setFrameShadow(QtGui.QFrame.Raised) + self.sinkFrame.setObjectName("sinkFrame") + self.horizontalLayout_2 = QtGui.QHBoxLayout(self.sinkFrame) + self.horizontalLayout_2.setObjectName("horizontalLayout_2") + self.sinkLayout = QtGui.QHBoxLayout() + self.sinkLayout.setObjectName("sinkLayout") + self.horizontalLayout_2.addLayout(self.sinkLayout) + self.gridLayout.addWidget(self.sinkFrame, 0, 0, 1, 1) + DigitalWindow.setCentralWidget(self.centralwidget) + self.menubar = QtGui.QMenuBar(DigitalWindow) + self.menubar.setGeometry(QtCore.QRect(0, 0, 1000, 24)) + self.menubar.setObjectName("menubar") + self.menuFile = QtGui.QMenu(self.menubar) + self.menuFile.setObjectName("menuFile") + DigitalWindow.setMenuBar(self.menubar) + self.statusbar = QtGui.QStatusBar(DigitalWindow) + self.statusbar.setObjectName("statusbar") + DigitalWindow.setStatusBar(self.statusbar) + self.actionExit = QtGui.QAction(DigitalWindow) + self.actionExit.setObjectName("actionExit") + self.menuFile.addAction(self.actionExit) + self.menubar.addAction(self.menuFile.menuAction()) + + self.retranslateUi(DigitalWindow) + QtCore.QObject.connect(self.actionExit, QtCore.SIGNAL("triggered()"), DigitalWindow.close) + QtCore.QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), DigitalWindow.close) + QtCore.QMetaObject.connectSlotsByName(DigitalWindow) + + def retranslateUi(self, DigitalWindow): + DigitalWindow.setWindowTitle(QtGui.QApplication.translate("DigitalWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) + self.rxBox.setTitle(QtGui.QApplication.translate("DigitalWindow", "Receiver Parameters", None, QtGui.QApplication.UnicodeUTF8)) + self.freqLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Frequency (Hz)", None, QtGui.QApplication.UnicodeUTF8)) + self.gainLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Gain (dB)", None, QtGui.QApplication.UnicodeUTF8)) + self.decimLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Decimation", None, QtGui.QApplication.UnicodeUTF8)) + self.gainClockLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Clock Loop Gain", None, QtGui.QApplication.UnicodeUTF8)) + self.gainPhaseLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Phase Loop Gain", None, QtGui.QApplication.UnicodeUTF8)) + self.gainFreqLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Freq. Loop Gain", None, QtGui.QApplication.UnicodeUTF8)) + self.rxPacketBox.setTitle(QtGui.QApplication.translate("DigitalWindow", "Received Packet Info", None, QtGui.QApplication.UnicodeUTF8)) + self.pktsRcvdLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Packets Rcvd.", None, QtGui.QApplication.UnicodeUTF8)) + self.pktsCorrectLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Packets Correct", None, QtGui.QApplication.UnicodeUTF8)) + self.perLabel.setText(QtGui.QApplication.translate("DigitalWindow", "PER", None, QtGui.QApplication.UnicodeUTF8)) + self.closeButton.setText(QtGui.QApplication.translate("DigitalWindow", "Close", None, QtGui.QApplication.UnicodeUTF8)) + self.menuFile.setTitle(QtGui.QApplication.translate("DigitalWindow", "&File", None, QtGui.QApplication.UnicodeUTF8)) + self.actionExit.setText(QtGui.QApplication.translate("DigitalWindow", "E&xit", None, QtGui.QApplication.UnicodeUTF8)) + diff --git a/gnuradio-examples/python/digital/qt_rx_window2.ui b/gnuradio-examples/python/digital/qt_rx_window2.ui new file mode 100644 index 000000000..5a83471b8 --- /dev/null +++ b/gnuradio-examples/python/digital/qt_rx_window2.ui @@ -0,0 +1,379 @@ +<ui version="4.0" > + <class>DigitalWindow</class> + <widget class="QMainWindow" name="DigitalWindow" > + <property name="geometry" > + <rect> + <x>0</x> + <y>0</y> + <width>1000</width> + <height>816</height> + </rect> + </property> + <property name="windowTitle" > + <string>MainWindow</string> + </property> + <widget class="QWidget" name="centralwidget" > + <layout class="QGridLayout" name="gridLayout" > + <item row="1" column="0" > + <layout class="QHBoxLayout" name="horizontalLayout" > + <property name="sizeConstraint" > + <enum>QLayout::SetFixedSize</enum> + </property> + <item> + <widget class="QGroupBox" name="rxBox" > + <property name="sizePolicy" > + <sizepolicy vsizetype="Fixed" hsizetype="Fixed" > + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize" > + <size> + <width>250</width> + <height>190</height> + </size> + </property> + <property name="maximumSize" > + <size> + <width>250</width> + <height>250</height> + </size> + </property> + <property name="title" > + <string>Receiver Parameters</string> + </property> + <layout class="QFormLayout" name="formLayout" > + <item row="0" column="0" > + <widget class="QLabel" name="freqLabel" > + <property name="text" > + <string>Frequency (Hz)</string> + </property> + </widget> + </item> + <item row="0" column="1" > + <widget class="QLineEdit" name="freqEdit" /> + </item> + <item row="1" column="0" > + <widget class="QLabel" name="gainLabel" > + <property name="text" > + <string>Gain (dB)</string> + </property> + </widget> + </item> + <item row="1" column="1" > + <widget class="QLineEdit" name="gainEdit" /> + </item> + <item row="2" column="0" > + <widget class="QLabel" name="decimLabel" > + <property name="text" > + <string>Decimation</string> + </property> + </widget> + </item> + <item row="2" column="1" > + <widget class="QLineEdit" name="decimEdit" /> + </item> + <item row="3" column="0" > + <widget class="QLabel" name="gainClockLabel" > + <property name="text" > + <string>Clock Loop Gain</string> + </property> + </widget> + </item> + <item row="3" column="1" > + <widget class="QLineEdit" name="gainClockEdit" /> + </item> + <item row="4" column="0" > + <widget class="QLabel" name="gainPhaseLabel" > + <property name="text" > + <string>Phase Loop Gain</string> + </property> + </widget> + </item> + <item row="4" column="1" > + <widget class="QLineEdit" name="gainPhaseEdit" /> + </item> + <item row="5" column="1" > + <widget class="QLineEdit" name="gainFreqEdit" /> + </item> + <item row="5" column="0" > + <widget class="QLabel" name="gainFreqLabel" > + <property name="text" > + <string>Freq. Loop Gain</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_3" > + <item> + <widget class="QGroupBox" name="rxPacketBox" > + <property name="enabled" > + <bool>true</bool> + </property> + <property name="sizePolicy" > + <sizepolicy vsizetype="Fixed" hsizetype="Fixed" > + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize" > + <size> + <width>250</width> + <height>130</height> + </size> + </property> + <property name="maximumSize" > + <size> + <width>250</width> + <height>130</height> + </size> + </property> + <property name="font" > + <font> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="title" > + <string>Received Packet Info</string> + </property> + <widget class="QLineEdit" name="pktsRcvdEdit" > + <property name="geometry" > + <rect> + <x>120</x> + <y>30</y> + <width>113</width> + <height>23</height> + </rect> + </property> + </widget> + <widget class="QLabel" name="pktsRcvdLabel" > + <property name="geometry" > + <rect> + <x>10</x> + <y>30</y> + <width>111</width> + <height>20</height> + </rect> + </property> + <property name="text" > + <string>Packets Rcvd.</string> + </property> + </widget> + <widget class="QLineEdit" name="pktsCorrectEdit" > + <property name="geometry" > + <rect> + <x>120</x> + <y>60</y> + <width>113</width> + <height>23</height> + </rect> + </property> + </widget> + <widget class="QLabel" name="pktsCorrectLabel" > + <property name="geometry" > + <rect> + <x>10</x> + <y>60</y> + <width>111</width> + <height>20</height> + </rect> + </property> + <property name="text" > + <string>Packets Correct</string> + </property> + </widget> + <widget class="QLabel" name="perLabel" > + <property name="geometry" > + <rect> + <x>10</x> + <y>90</y> + <width>111</width> + <height>20</height> + </rect> + </property> + <property name="text" > + <string>PER</string> + </property> + </widget> + <widget class="QLineEdit" name="perEdit" > + <property name="geometry" > + <rect> + <x>120</x> + <y>90</y> + <width>113</width> + <height>23</height> + </rect> + </property> + </widget> + </widget> + </item> + <item> + <spacer name="verticalSpacer_2" > + <property name="orientation" > + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType" > + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0" > + <size> + <width>20</width> + <height>60</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <spacer name="horizontalSpacer" > + <property name="orientation" > + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0" > + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_5" > + <item> + <spacer name="verticalSpacer_3" > + <property name="orientation" > + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0" > + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="closeButton" > + <property name="sizePolicy" > + <sizepolicy vsizetype="Fixed" hsizetype="Fixed" > + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize" > + <size> + <width>80</width> + <height>30</height> + </size> + </property> + <property name="maximumSize" > + <size> + <width>80</width> + <height>30</height> + </size> + </property> + <property name="text" > + <string>Close</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + <item row="0" column="0" > + <widget class="QFrame" name="sinkFrame" > + <property name="sizePolicy" > + <sizepolicy vsizetype="Preferred" hsizetype="Preferred" > + <horstretch>0</horstretch> + <verstretch>1</verstretch> + </sizepolicy> + </property> + <property name="minimumSize" > + <size> + <width>800</width> + <height>500</height> + </size> + </property> + <property name="frameShape" > + <enum>QFrame::StyledPanel</enum> + </property> + <property name="frameShadow" > + <enum>QFrame::Raised</enum> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2" > + <item> + <layout class="QHBoxLayout" name="sinkLayout" /> + </item> + </layout> + </widget> + </item> + </layout> + <zorder>sinkFrame</zorder> + <zorder>verticalSpacer</zorder> + </widget> + <widget class="QMenuBar" name="menubar" > + <property name="geometry" > + <rect> + <x>0</x> + <y>0</y> + <width>1000</width> + <height>24</height> + </rect> + </property> + <widget class="QMenu" name="menuFile" > + <property name="title" > + <string>&File</string> + </property> + <addaction name="actionExit" /> + </widget> + <addaction name="menuFile" /> + </widget> + <widget class="QStatusBar" name="statusbar" /> + <action name="actionExit" > + <property name="text" > + <string>E&xit</string> + </property> + </action> + </widget> + <resources/> + <connections> + <connection> + <sender>actionExit</sender> + <signal>triggered()</signal> + <receiver>DigitalWindow</receiver> + <slot>close()</slot> + <hints> + <hint type="sourcelabel" > + <x>-1</x> + <y>-1</y> + </hint> + <hint type="destinationlabel" > + <x>617</x> + <y>327</y> + </hint> + </hints> + </connection> + <connection> + <sender>closeButton</sender> + <signal>clicked()</signal> + <receiver>DigitalWindow</receiver> + <slot>close()</slot> + <hints> + <hint type="sourcelabel" > + <x>960</x> + <y>694</y> + </hint> + <hint type="destinationlabel" > + <x>66</x> + <y>561</y> + </hint> + </hints> + </connection> + </connections> +</ui> |