1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'pyqt_filter.ui'
5 # Created: Mon Aug 24 00:28:45 2009
6 # by: PyQt4 UI code generator 4.4.4
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4 import QtCore, QtGui
12 class Ui_MainWindow(object):
13 def setupUi(self, MainWindow):
14 MainWindow.setObjectName("MainWindow")
15 MainWindow.resize(1124, 696)
16 self.centralwidget = QtGui.QWidget(MainWindow)
17 self.centralwidget.setObjectName("centralwidget")
18 self.gridLayout = QtGui.QGridLayout(self.centralwidget)
19 self.gridLayout.setObjectName("gridLayout")
20 self.filterFrame = QtGui.QFrame(self.centralwidget)
21 self.filterFrame.setMinimumSize(QtCore.QSize(300, 0))
22 self.filterFrame.setMaximumSize(QtCore.QSize(300, 16777215))
23 self.filterFrame.setFrameShape(QtGui.QFrame.StyledPanel)
24 self.filterFrame.setFrameShadow(QtGui.QFrame.Raised)
25 self.filterFrame.setObjectName("filterFrame")
26 self.verticalLayout = QtGui.QVBoxLayout(self.filterFrame)
27 self.verticalLayout.setObjectName("verticalLayout")
28 self.filterTypeComboBox = QtGui.QComboBox(self.filterFrame)
29 self.filterTypeComboBox.setObjectName("filterTypeComboBox")
30 self.filterTypeComboBox.addItem(QtCore.QString())
31 self.filterTypeComboBox.addItem(QtCore.QString())
32 self.filterTypeComboBox.addItem(QtCore.QString())
33 self.filterTypeComboBox.addItem(QtCore.QString())
34 self.filterTypeComboBox.addItem(QtCore.QString())
35 self.filterTypeComboBox.addItem(QtCore.QString())
36 self.filterTypeComboBox.addItem(QtCore.QString())
37 self.verticalLayout.addWidget(self.filterTypeComboBox)
38 self.filterDesignTypeComboBox = QtGui.QComboBox(self.filterFrame)
39 self.filterDesignTypeComboBox.setObjectName("filterDesignTypeComboBox")
40 self.filterDesignTypeComboBox.addItem(QtCore.QString())
41 self.filterDesignTypeComboBox.addItem(QtCore.QString())
42 self.filterDesignTypeComboBox.addItem(QtCore.QString())
43 self.filterDesignTypeComboBox.addItem(QtCore.QString())
44 self.filterDesignTypeComboBox.addItem(QtCore.QString())
45 self.filterDesignTypeComboBox.addItem(QtCore.QString())
46 self.filterDesignTypeComboBox.addItem(QtCore.QString())
47 self.verticalLayout.addWidget(self.filterDesignTypeComboBox)
48 self.globalParamsLayout = QtGui.QFormLayout()
49 self.globalParamsLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
50 self.globalParamsLayout.setObjectName("globalParamsLayout")
51 self.sampleRateLabel = QtGui.QLabel(self.filterFrame)
52 self.sampleRateLabel.setMaximumSize(QtCore.QSize(16777215, 30))
53 self.sampleRateLabel.setObjectName("sampleRateLabel")
54 self.globalParamsLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.sampleRateLabel)
55 self.sampleRateEdit = QtGui.QLineEdit(self.filterFrame)
56 self.sampleRateEdit.setMaximumSize(QtCore.QSize(16777215, 30))
57 self.sampleRateEdit.setObjectName("sampleRateEdit")
58 self.globalParamsLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.sampleRateEdit)
59 self.filterGainLabel = QtGui.QLabel(self.filterFrame)
60 self.filterGainLabel.setObjectName("filterGainLabel")
61 self.globalParamsLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.filterGainLabel)
62 self.filterGainEdit = QtGui.QLineEdit(self.filterFrame)
63 self.filterGainEdit.setObjectName("filterGainEdit")
64 self.globalParamsLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.filterGainEdit)
65 self.verticalLayout.addLayout(self.globalParamsLayout)
66 self.filterTypeWidget = QtGui.QStackedWidget(self.filterFrame)
67 self.filterTypeWidget.setObjectName("filterTypeWidget")
68 self.firlpfPage = QtGui.QWidget()
69 self.firlpfPage.setObjectName("firlpfPage")
70 self.formLayout = QtGui.QFormLayout(self.firlpfPage)
71 self.formLayout.setObjectName("formLayout")
72 self.endofLpfPassBandLabel = QtGui.QLabel(self.firlpfPage)
73 self.endofLpfPassBandLabel.setObjectName("endofLpfPassBandLabel")
74 self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.endofLpfPassBandLabel)
75 self.endofLpfPassBandEdit = QtGui.QLineEdit(self.firlpfPage)
76 self.endofLpfPassBandEdit.setObjectName("endofLpfPassBandEdit")
77 self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.endofLpfPassBandEdit)
78 self.startofLpfStopBandLabel = QtGui.QLabel(self.firlpfPage)
79 self.startofLpfStopBandLabel.setObjectName("startofLpfStopBandLabel")
80 self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.startofLpfStopBandLabel)
81 self.startofLpfStopBandEdit = QtGui.QLineEdit(self.firlpfPage)
82 self.startofLpfStopBandEdit.setObjectName("startofLpfStopBandEdit")
83 self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.startofLpfStopBandEdit)
84 self.lpfStopBandAttenLabel = QtGui.QLabel(self.firlpfPage)
85 self.lpfStopBandAttenLabel.setObjectName("lpfStopBandAttenLabel")
86 self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.lpfStopBandAttenLabel)
87 self.lpfStopBandAttenEdit = QtGui.QLineEdit(self.firlpfPage)
88 self.lpfStopBandAttenEdit.setObjectName("lpfStopBandAttenEdit")
89 self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.lpfStopBandAttenEdit)
90 self.lpfPassBandRippleEdit = QtGui.QLineEdit(self.firlpfPage)
91 self.lpfPassBandRippleEdit.setObjectName("lpfPassBandRippleEdit")
92 self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.lpfPassBandRippleEdit)
93 self.lpfPassBandRippleLabel = QtGui.QLabel(self.firlpfPage)
94 self.lpfPassBandRippleLabel.setObjectName("lpfPassBandRippleLabel")
95 self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.lpfPassBandRippleLabel)
96 self.filterTypeWidget.addWidget(self.firlpfPage)
97 self.firbpfPage = QtGui.QWidget()
98 self.firbpfPage.setObjectName("firbpfPage")
99 self.formLayout_2 = QtGui.QFormLayout(self.firbpfPage)
100 self.formLayout_2.setObjectName("formLayout_2")
101 self.startofBpfPassBandLabel = QtGui.QLabel(self.firbpfPage)
102 self.startofBpfPassBandLabel.setObjectName("startofBpfPassBandLabel")
103 self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.startofBpfPassBandLabel)
104 self.startofBpfPassBandEdit = QtGui.QLineEdit(self.firbpfPage)
105 self.startofBpfPassBandEdit.setObjectName("startofBpfPassBandEdit")
106 self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.startofBpfPassBandEdit)
107 self.endofBpfPassBandLabel = QtGui.QLabel(self.firbpfPage)
108 self.endofBpfPassBandLabel.setObjectName("endofBpfPassBandLabel")
109 self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.endofBpfPassBandLabel)
110 self.endofBpfPassBandEdit = QtGui.QLineEdit(self.firbpfPage)
111 self.endofBpfPassBandEdit.setObjectName("endofBpfPassBandEdit")
112 self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.endofBpfPassBandEdit)
113 self.bpfStopBandAttenEdit = QtGui.QLineEdit(self.firbpfPage)
114 self.bpfStopBandAttenEdit.setObjectName("bpfStopBandAttenEdit")
115 self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.bpfStopBandAttenEdit)
116 self.bpfStopBandAttenLabel = QtGui.QLabel(self.firbpfPage)
117 self.bpfStopBandAttenLabel.setObjectName("bpfStopBandAttenLabel")
118 self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.bpfStopBandAttenLabel)
119 self.bpfTransitionLabel = QtGui.QLabel(self.firbpfPage)
120 self.bpfTransitionLabel.setObjectName("bpfTransitionLabel")
121 self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.bpfTransitionLabel)
122 self.bpfTransitionEdit = QtGui.QLineEdit(self.firbpfPage)
123 self.bpfTransitionEdit.setObjectName("bpfTransitionEdit")
124 self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.bpfTransitionEdit)
125 self.bpfPassBandRippleEdit = QtGui.QLineEdit(self.firbpfPage)
126 self.bpfPassBandRippleEdit.setObjectName("bpfPassBandRippleEdit")
127 self.formLayout_2.setWidget(4, QtGui.QFormLayout.FieldRole, self.bpfPassBandRippleEdit)
128 self.bpfPassBandRippleLabel = QtGui.QLabel(self.firbpfPage)
129 self.bpfPassBandRippleLabel.setObjectName("bpfPassBandRippleLabel")
130 self.formLayout_2.setWidget(4, QtGui.QFormLayout.LabelRole, self.bpfPassBandRippleLabel)
131 self.filterTypeWidget.addWidget(self.firbpfPage)
132 self.firbnfPage = QtGui.QWidget()
133 self.firbnfPage.setObjectName("firbnfPage")
134 self.formLayout_5 = QtGui.QFormLayout(self.firbnfPage)
135 self.formLayout_5.setObjectName("formLayout_5")
136 self.startofBnfStopBandLabel = QtGui.QLabel(self.firbnfPage)
137 self.startofBnfStopBandLabel.setObjectName("startofBnfStopBandLabel")
138 self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole, self.startofBnfStopBandLabel)
139 self.startofBnfStopBandEdit = QtGui.QLineEdit(self.firbnfPage)
140 self.startofBnfStopBandEdit.setObjectName("startofBnfStopBandEdit")
141 self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole, self.startofBnfStopBandEdit)
142 self.endofBnfStopBandEdit = QtGui.QLineEdit(self.firbnfPage)
143 self.endofBnfStopBandEdit.setObjectName("endofBnfStopBandEdit")
144 self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.endofBnfStopBandEdit)
145 self.bnfTransitionEdit = QtGui.QLineEdit(self.firbnfPage)
146 self.bnfTransitionEdit.setObjectName("bnfTransitionEdit")
147 self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.bnfTransitionEdit)
148 self.bnfStopBandAttenEdit = QtGui.QLineEdit(self.firbnfPage)
149 self.bnfStopBandAttenEdit.setObjectName("bnfStopBandAttenEdit")
150 self.formLayout_5.setWidget(3, QtGui.QFormLayout.FieldRole, self.bnfStopBandAttenEdit)
151 self.endofBnfStopBandLabel = QtGui.QLabel(self.firbnfPage)
152 self.endofBnfStopBandLabel.setObjectName("endofBnfStopBandLabel")
153 self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.endofBnfStopBandLabel)
154 self.bnfTransitionLabel = QtGui.QLabel(self.firbnfPage)
155 self.bnfTransitionLabel.setObjectName("bnfTransitionLabel")
156 self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.bnfTransitionLabel)
157 self.bnfStopBandAttenLabel = QtGui.QLabel(self.firbnfPage)
158 self.bnfStopBandAttenLabel.setObjectName("bnfStopBandAttenLabel")
159 self.formLayout_5.setWidget(3, QtGui.QFormLayout.LabelRole, self.bnfStopBandAttenLabel)
160 self.filterTypeWidget.addWidget(self.firbnfPage)
161 self.firhpfPage = QtGui.QWidget()
162 self.firhpfPage.setObjectName("firhpfPage")
163 self.formLayout_3 = QtGui.QFormLayout(self.firhpfPage)
164 self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
165 self.formLayout_3.setObjectName("formLayout_3")
166 self.endofHpfStopBandLabel = QtGui.QLabel(self.firhpfPage)
167 self.endofHpfStopBandLabel.setObjectName("endofHpfStopBandLabel")
168 self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.endofHpfStopBandLabel)
169 self.endofHpfStopBandEdit = QtGui.QLineEdit(self.firhpfPage)
170 self.endofHpfStopBandEdit.setObjectName("endofHpfStopBandEdit")
171 self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.endofHpfStopBandEdit)
172 self.startofHpfPassBandLabel = QtGui.QLabel(self.firhpfPage)
173 self.startofHpfPassBandLabel.setObjectName("startofHpfPassBandLabel")
174 self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.startofHpfPassBandLabel)
175 self.startofHpfPassBandEdit = QtGui.QLineEdit(self.firhpfPage)
176 self.startofHpfPassBandEdit.setObjectName("startofHpfPassBandEdit")
177 self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.startofHpfPassBandEdit)
178 self.hpfStopBandAttenLabel = QtGui.QLabel(self.firhpfPage)
179 self.hpfStopBandAttenLabel.setObjectName("hpfStopBandAttenLabel")
180 self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.hpfStopBandAttenLabel)
181 self.hpfStopBandAttenEdit = QtGui.QLineEdit(self.firhpfPage)
182 self.hpfStopBandAttenEdit.setObjectName("hpfStopBandAttenEdit")
183 self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.hpfStopBandAttenEdit)
184 self.hpfPassBandRippleLabel = QtGui.QLabel(self.firhpfPage)
185 self.hpfPassBandRippleLabel.setObjectName("hpfPassBandRippleLabel")
186 self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.hpfPassBandRippleLabel)
187 self.hpfPassBandRippleEdit = QtGui.QLineEdit(self.firhpfPage)
188 self.hpfPassBandRippleEdit.setObjectName("hpfPassBandRippleEdit")
189 self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.hpfPassBandRippleEdit)
190 self.filterTypeWidget.addWidget(self.firhpfPage)
191 self.rrcPage = QtGui.QWidget()
192 self.rrcPage.setObjectName("rrcPage")
193 self.formLayout_6 = QtGui.QFormLayout(self.rrcPage)
194 self.formLayout_6.setObjectName("formLayout_6")
195 self.rrcSymbolRateLabel = QtGui.QLabel(self.rrcPage)
196 self.rrcSymbolRateLabel.setObjectName("rrcSymbolRateLabel")
197 self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole, self.rrcSymbolRateLabel)
198 self.rrcAlphaLabel = QtGui.QLabel(self.rrcPage)
199 self.rrcAlphaLabel.setObjectName("rrcAlphaLabel")
200 self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole, self.rrcAlphaLabel)
201 self.rrcNumTapsLabel = QtGui.QLabel(self.rrcPage)
202 self.rrcNumTapsLabel.setObjectName("rrcNumTapsLabel")
203 self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole, self.rrcNumTapsLabel)
204 self.rrcSymbolRateEdit = QtGui.QLineEdit(self.rrcPage)
205 self.rrcSymbolRateEdit.setObjectName("rrcSymbolRateEdit")
206 self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole, self.rrcSymbolRateEdit)
207 self.rrcAlphaEdit = QtGui.QLineEdit(self.rrcPage)
208 self.rrcAlphaEdit.setObjectName("rrcAlphaEdit")
209 self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole, self.rrcAlphaEdit)
210 self.rrcNumTapsEdit = QtGui.QLineEdit(self.rrcPage)
211 self.rrcNumTapsEdit.setObjectName("rrcNumTapsEdit")
212 self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole, self.rrcNumTapsEdit)
213 self.filterTypeWidget.addWidget(self.rrcPage)
214 self.gausPage = QtGui.QWidget()
215 self.gausPage.setObjectName("gausPage")
216 self.formLayout_7 = QtGui.QFormLayout(self.gausPage)
217 self.formLayout_7.setObjectName("formLayout_7")
218 self.gausSymbolRateLabel = QtGui.QLabel(self.gausPage)
219 self.gausSymbolRateLabel.setObjectName("gausSymbolRateLabel")
220 self.formLayout_7.setWidget(0, QtGui.QFormLayout.LabelRole, self.gausSymbolRateLabel)
221 self.gausSymbolRateEdit = QtGui.QLineEdit(self.gausPage)
222 self.gausSymbolRateEdit.setObjectName("gausSymbolRateEdit")
223 self.formLayout_7.setWidget(0, QtGui.QFormLayout.FieldRole, self.gausSymbolRateEdit)
224 self.gausBTLabel = QtGui.QLabel(self.gausPage)
225 self.gausBTLabel.setObjectName("gausBTLabel")
226 self.formLayout_7.setWidget(1, QtGui.QFormLayout.LabelRole, self.gausBTLabel)
227 self.gausBTEdit = QtGui.QLineEdit(self.gausPage)
228 self.gausBTEdit.setObjectName("gausBTEdit")
229 self.formLayout_7.setWidget(1, QtGui.QFormLayout.FieldRole, self.gausBTEdit)
230 self.gausNumTapsLabel = QtGui.QLabel(self.gausPage)
231 self.gausNumTapsLabel.setObjectName("gausNumTapsLabel")
232 self.formLayout_7.setWidget(2, QtGui.QFormLayout.LabelRole, self.gausNumTapsLabel)
233 self.gausNumTapsEdit = QtGui.QLineEdit(self.gausPage)
234 self.gausNumTapsEdit.setObjectName("gausNumTapsEdit")
235 self.formLayout_7.setWidget(2, QtGui.QFormLayout.FieldRole, self.gausNumTapsEdit)
236 self.filterTypeWidget.addWidget(self.gausPage)
237 self.verticalLayout.addWidget(self.filterTypeWidget)
238 self.sysParamsBox = QtGui.QGroupBox(self.filterFrame)
239 self.sysParamsBox.setObjectName("sysParamsBox")
240 self.formLayout_4 = QtGui.QFormLayout(self.sysParamsBox)
241 self.formLayout_4.setObjectName("formLayout_4")
242 self.nfftEdit = QtGui.QLineEdit(self.sysParamsBox)
243 self.nfftEdit.setObjectName("nfftEdit")
244 self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.nfftEdit)
245 self.nfftLabel = QtGui.QLabel(self.sysParamsBox)
246 self.nfftLabel.setObjectName("nfftLabel")
247 self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.nfftLabel)
248 self.verticalLayout.addWidget(self.sysParamsBox)
249 self.designButton = QtGui.QPushButton(self.filterFrame)
250 self.designButton.setMinimumSize(QtCore.QSize(0, 0))
251 self.designButton.setMaximumSize(QtCore.QSize(200, 16777215))
252 self.designButton.setAutoDefault(True)
253 self.designButton.setDefault(True)
254 self.designButton.setObjectName("designButton")
255 self.verticalLayout.addWidget(self.designButton)
256 self.gridLayout.addWidget(self.filterFrame, 1, 0, 1, 1)
257 self.tabGroup = QtGui.QTabWidget(self.centralwidget)
258 self.tabGroup.setMinimumSize(QtCore.QSize(800, 0))
259 self.tabGroup.setObjectName("tabGroup")
260 self.freqTab = QtGui.QWidget()
261 self.freqTab.setObjectName("freqTab")
262 self.horizontalLayout_2 = QtGui.QHBoxLayout(self.freqTab)
263 self.horizontalLayout_2.setObjectName("horizontalLayout_2")
264 self.freqPlot = Qwt5.QwtPlot(self.freqTab)
265 self.freqPlot.setObjectName("freqPlot")
266 self.horizontalLayout_2.addWidget(self.freqPlot)
267 self.tabGroup.addTab(self.freqTab, "")
268 self.timeTab = QtGui.QWidget()
269 self.timeTab.setObjectName("timeTab")
270 self.horizontalLayout = QtGui.QHBoxLayout(self.timeTab)
271 self.horizontalLayout.setObjectName("horizontalLayout")
272 self.timePlot = Qwt5.QwtPlot(self.timeTab)
273 self.timePlot.setObjectName("timePlot")
274 self.horizontalLayout.addWidget(self.timePlot)
275 self.tabGroup.addTab(self.timeTab, "")
276 self.phaseTab = QtGui.QWidget()
277 self.phaseTab.setObjectName("phaseTab")
278 self.horizontalLayout_3 = QtGui.QHBoxLayout(self.phaseTab)
279 self.horizontalLayout_3.setObjectName("horizontalLayout_3")
280 self.phasePlot = Qwt5.QwtPlot(self.phaseTab)
281 self.phasePlot.setObjectName("phasePlot")
282 self.horizontalLayout_3.addWidget(self.phasePlot)
283 self.tabGroup.addTab(self.phaseTab, "")
284 self.groupTab = QtGui.QWidget()
285 self.groupTab.setObjectName("groupTab")
286 self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupTab)
287 self.horizontalLayout_4.setObjectName("horizontalLayout_4")
288 self.groupPlot = Qwt5.QwtPlot(self.groupTab)
289 self.groupPlot.setObjectName("groupPlot")
290 self.horizontalLayout_4.addWidget(self.groupPlot)
291 self.tabGroup.addTab(self.groupTab, "")
292 self.gridLayout.addWidget(self.tabGroup, 1, 1, 1, 1)
293 MainWindow.setCentralWidget(self.centralwidget)
294 self.menubar = QtGui.QMenuBar(MainWindow)
295 self.menubar.setGeometry(QtCore.QRect(0, 0, 1124, 25))
296 self.menubar.setObjectName("menubar")
297 self.menu_File = QtGui.QMenu(self.menubar)
298 self.menu_File.setObjectName("menu_File")
299 MainWindow.setMenuBar(self.menubar)
300 self.statusbar = QtGui.QStatusBar(MainWindow)
301 self.statusbar.setObjectName("statusbar")
302 MainWindow.setStatusBar(self.statusbar)
303 self.action_open = QtGui.QAction(MainWindow)
304 self.action_open.setObjectName("action_open")
305 self.action_exit = QtGui.QAction(MainWindow)
306 self.action_exit.setObjectName("action_exit")
307 self.menu_File.addAction(self.action_exit)
308 self.menubar.addAction(self.menu_File.menuAction())
310 self.retranslateUi(MainWindow)
311 self.filterTypeWidget.setCurrentIndex(5)
312 self.tabGroup.setCurrentIndex(0)
313 QtCore.QObject.connect(self.action_exit, QtCore.SIGNAL("activated()"), MainWindow.close)
314 QtCore.QMetaObject.connectSlotsByName(MainWindow)
315 MainWindow.setTabOrder(self.filterTypeComboBox, self.filterDesignTypeComboBox)
316 MainWindow.setTabOrder(self.filterDesignTypeComboBox, self.sampleRateEdit)
317 MainWindow.setTabOrder(self.sampleRateEdit, self.filterGainEdit)
318 MainWindow.setTabOrder(self.filterGainEdit, self.endofLpfPassBandEdit)
319 MainWindow.setTabOrder(self.endofLpfPassBandEdit, self.startofLpfStopBandEdit)
320 MainWindow.setTabOrder(self.startofLpfStopBandEdit, self.lpfStopBandAttenEdit)
321 MainWindow.setTabOrder(self.lpfStopBandAttenEdit, self.lpfPassBandRippleEdit)
322 MainWindow.setTabOrder(self.lpfPassBandRippleEdit, self.startofBpfPassBandEdit)
323 MainWindow.setTabOrder(self.startofBpfPassBandEdit, self.endofBpfPassBandEdit)
324 MainWindow.setTabOrder(self.endofBpfPassBandEdit, self.bpfTransitionEdit)
325 MainWindow.setTabOrder(self.bpfTransitionEdit, self.bpfStopBandAttenEdit)
326 MainWindow.setTabOrder(self.bpfStopBandAttenEdit, self.bpfPassBandRippleEdit)
327 MainWindow.setTabOrder(self.bpfPassBandRippleEdit, self.endofHpfStopBandEdit)
328 MainWindow.setTabOrder(self.endofHpfStopBandEdit, self.startofHpfPassBandEdit)
329 MainWindow.setTabOrder(self.startofHpfPassBandEdit, self.hpfStopBandAttenEdit)
330 MainWindow.setTabOrder(self.hpfStopBandAttenEdit, self.hpfPassBandRippleEdit)
331 MainWindow.setTabOrder(self.hpfPassBandRippleEdit, self.designButton)
332 MainWindow.setTabOrder(self.designButton, self.tabGroup)
334 def retranslateUi(self, MainWindow):
335 MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "GNU Radio Filter Design Tool", None, QtGui.QApplication.UnicodeUTF8))
336 self.filterTypeComboBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Low Pass", None, QtGui.QApplication.UnicodeUTF8))
337 self.filterTypeComboBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Band Pass", None, QtGui.QApplication.UnicodeUTF8))
338 self.filterTypeComboBox.setItemText(2, QtGui.QApplication.translate("MainWindow", "Complex Band Pass", None, QtGui.QApplication.UnicodeUTF8))
339 self.filterTypeComboBox.setItemText(3, QtGui.QApplication.translate("MainWindow", "Band Notch", None, QtGui.QApplication.UnicodeUTF8))
340 self.filterTypeComboBox.setItemText(4, QtGui.QApplication.translate("MainWindow", "High Pass", None, QtGui.QApplication.UnicodeUTF8))
341 self.filterTypeComboBox.setItemText(5, QtGui.QApplication.translate("MainWindow", "Root Raised Cosine", None, QtGui.QApplication.UnicodeUTF8))
342 self.filterTypeComboBox.setItemText(6, QtGui.QApplication.translate("MainWindow", "Gaussian", None, QtGui.QApplication.UnicodeUTF8))
343 self.filterDesignTypeComboBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Hamming Window", None, QtGui.QApplication.UnicodeUTF8))
344 self.filterDesignTypeComboBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Hann Window", None, QtGui.QApplication.UnicodeUTF8))
345 self.filterDesignTypeComboBox.setItemText(2, QtGui.QApplication.translate("MainWindow", "Blackman Window", None, QtGui.QApplication.UnicodeUTF8))
346 self.filterDesignTypeComboBox.setItemText(3, QtGui.QApplication.translate("MainWindow", "Rectangular Window", None, QtGui.QApplication.UnicodeUTF8))
347 self.filterDesignTypeComboBox.setItemText(4, QtGui.QApplication.translate("MainWindow", "Kaiser Window", None, QtGui.QApplication.UnicodeUTF8))
348 self.filterDesignTypeComboBox.setItemText(5, QtGui.QApplication.translate("MainWindow", "Blackman-harris Window", None, QtGui.QApplication.UnicodeUTF8))
349 self.filterDesignTypeComboBox.setItemText(6, QtGui.QApplication.translate("MainWindow", "Equiripple", None, QtGui.QApplication.UnicodeUTF8))
350 self.sampleRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Sample Rate (sps)", None, QtGui.QApplication.UnicodeUTF8))
351 self.filterGainLabel.setText(QtGui.QApplication.translate("MainWindow", "Filter Gain", None, QtGui.QApplication.UnicodeUTF8))
352 self.endofLpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
353 self.startofLpfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
354 self.lpfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
355 self.lpfPassBandRippleLabel.setText(QtGui.QApplication.translate("MainWindow", "Pass Band Ripple (dB)", None, QtGui.QApplication.UnicodeUTF8))
356 self.startofBpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
357 self.endofBpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
358 self.bpfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
359 self.bpfTransitionLabel.setText(QtGui.QApplication.translate("MainWindow", "Transition Width (Hz)", None, QtGui.QApplication.UnicodeUTF8))
360 self.bpfPassBandRippleLabel.setText(QtGui.QApplication.translate("MainWindow", "Pass Band Ripple (dB)", None, QtGui.QApplication.UnicodeUTF8))
361 self.startofBnfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
362 self.endofBnfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
363 self.bnfTransitionLabel.setText(QtGui.QApplication.translate("MainWindow", "Transition Width (Hz)", None, QtGui.QApplication.UnicodeUTF8))
364 self.bnfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
365 self.endofHpfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
366 self.startofHpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
367 self.hpfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
368 self.hpfPassBandRippleLabel.setText(QtGui.QApplication.translate("MainWindow", "Pass Band Ripple (dB)", None, QtGui.QApplication.UnicodeUTF8))
369 self.rrcSymbolRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Symbol Rate (sps)", None, QtGui.QApplication.UnicodeUTF8))
370 self.rrcAlphaLabel.setText(QtGui.QApplication.translate("MainWindow", "Roll-off Factor", None, QtGui.QApplication.UnicodeUTF8))
371 self.rrcNumTapsLabel.setText(QtGui.QApplication.translate("MainWindow", "Number of Taps", None, QtGui.QApplication.UnicodeUTF8))
372 self.gausSymbolRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Symbol Rate (sps)", None, QtGui.QApplication.UnicodeUTF8))
373 self.gausBTLabel.setText(QtGui.QApplication.translate("MainWindow", "Roll-off Factor", None, QtGui.QApplication.UnicodeUTF8))
374 self.gausNumTapsLabel.setText(QtGui.QApplication.translate("MainWindow", "Number of Taps", None, QtGui.QApplication.UnicodeUTF8))
375 self.sysParamsBox.setTitle(QtGui.QApplication.translate("MainWindow", "System Parameters", None, QtGui.QApplication.UnicodeUTF8))
376 self.nfftLabel.setText(QtGui.QApplication.translate("MainWindow", "Num FFT points", None, QtGui.QApplication.UnicodeUTF8))
377 self.designButton.setText(QtGui.QApplication.translate("MainWindow", "Design", None, QtGui.QApplication.UnicodeUTF8))
378 self.tabGroup.setTabText(self.tabGroup.indexOf(self.freqTab), QtGui.QApplication.translate("MainWindow", "Frequency Domain", None, QtGui.QApplication.UnicodeUTF8))
379 self.tabGroup.setTabText(self.tabGroup.indexOf(self.timeTab), QtGui.QApplication.translate("MainWindow", "Time Domain", None, QtGui.QApplication.UnicodeUTF8))
380 self.tabGroup.setTabText(self.tabGroup.indexOf(self.phaseTab), QtGui.QApplication.translate("MainWindow", "Phase", None, QtGui.QApplication.UnicodeUTF8))
381 self.tabGroup.setTabText(self.tabGroup.indexOf(self.groupTab), QtGui.QApplication.translate("MainWindow", "Group Delay", None, QtGui.QApplication.UnicodeUTF8))
382 self.menu_File.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8))
383 self.action_open.setText(QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8))
384 self.action_open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
385 self.action_exit.setText(QtGui.QApplication.translate("MainWindow", "E&xit", None, QtGui.QApplication.UnicodeUTF8))
387 from PyQt4 import Qwt5