summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/digital/qt_rx_window.py
blob: e2488eb3d3e456dcb3d21ca5e37310803f40ce1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'qt_rx_window.ui'
#
# Created: Tue May 11 21:03:07 2010
#      by: PyQt4 UI code generator 4.6.1
#
# 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(999, 519)
        self.centralwidget = QtGui.QWidget(DigitalWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.sinkLayout = QtGui.QHBoxLayout()
        self.sinkLayout.setObjectName("sinkLayout")
        self.verticalLayout.addLayout(self.sinkLayout)
        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, 190))
        self.rxBox.setObjectName("rxBox")
        self.gainMuEdit = QtGui.QLineEdit(self.rxBox)
        self.gainMuEdit.setGeometry(QtCore.QRect(120, 120, 113, 23))
        self.gainMuEdit.setObjectName("gainMuEdit")
        self.gainMuLabel = QtGui.QLabel(self.rxBox)
        self.gainMuLabel.setGeometry(QtCore.QRect(10, 120, 111, 20))
        self.gainMuLabel.setObjectName("gainMuLabel")
        self.alphaEdit = QtGui.QLineEdit(self.rxBox)
        self.alphaEdit.setGeometry(QtCore.QRect(120, 150, 113, 23))
        self.alphaEdit.setObjectName("alphaEdit")
        self.alphaLabel = QtGui.QLabel(self.rxBox)
        self.alphaLabel.setGeometry(QtCore.QRect(10, 150, 111, 20))
        self.alphaLabel.setObjectName("alphaLabel")
        self.gainLabel = QtGui.QLabel(self.rxBox)
        self.gainLabel.setGeometry(QtCore.QRect(10, 60, 101, 17))
        self.gainLabel.setObjectName("gainLabel")
        self.freqEdit = QtGui.QLineEdit(self.rxBox)
        self.freqEdit.setGeometry(QtCore.QRect(120, 30, 113, 23))
        self.freqEdit.setObjectName("freqEdit")
        self.freqLabel = QtGui.QLabel(self.rxBox)
        self.freqLabel.setGeometry(QtCore.QRect(10, 30, 141, 17))
        self.freqLabel.setObjectName("freqLabel")
        self.gainEdit = QtGui.QLineEdit(self.rxBox)
        self.gainEdit.setGeometry(QtCore.QRect(120, 60, 113, 23))
        self.gainEdit.setObjectName("gainEdit")
        self.decimLabel = QtGui.QLabel(self.rxBox)
        self.decimLabel.setGeometry(QtCore.QRect(10, 90, 101, 17))
        self.decimLabel.setObjectName("decimLabel")
        self.decimEdit = QtGui.QLineEdit(self.rxBox)
        self.decimEdit.setGeometry(QtCore.QRect(120, 90, 113, 23))
        self.decimEdit.setObjectName("decimEdit")
        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.verticalLayout.addLayout(self.horizontalLayout)
        DigitalWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(DigitalWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 999, 23))
        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.gainMuLabel.setText(QtGui.QApplication.translate("DigitalWindow", "mu\'s gain", None, QtGui.QApplication.UnicodeUTF8))
        self.alphaLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Alpha", None, QtGui.QApplication.UnicodeUTF8))
        self.gainLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Gain (dB)", None, QtGui.QApplication.UnicodeUTF8))
        self.freqLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Frequency (Hz)", None, QtGui.QApplication.UnicodeUTF8))
        self.decimLabel.setText(QtGui.QApplication.translate("DigitalWindow", "Decimation", 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))