1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'pyqt_filter.ui'
5 # Created: Mon Aug 24 17:59:37 2009
6 # by: PyQt4 UI code generator 4.4.3
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.bnfPassBandRippleEdit = QtGui.QLineEdit(self.firbnfPage)
161 self.bnfPassBandRippleEdit.setObjectName("bnfPassBandRippleEdit")
162 self.formLayout_5.setWidget(4, QtGui.QFormLayout.FieldRole, self.bnfPassBandRippleEdit)
163 self.bnfPassBandRippleLabel = QtGui.QLabel(self.firbnfPage)
164 self.bnfPassBandRippleLabel.setObjectName("bnfPassBandRippleLabel")
165 self.formLayout_5.setWidget(4, QtGui.QFormLayout.LabelRole, self.bnfPassBandRippleLabel)
166 self.filterTypeWidget.addWidget(self.firbnfPage)
167 self.firhpfPage = QtGui.QWidget()
168 self.firhpfPage.setObjectName("firhpfPage")
169 self.formLayout_3 = QtGui.QFormLayout(self.firhpfPage)
170 self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
171 self.formLayout_3.setObjectName("formLayout_3")
172 self.endofHpfStopBandLabel = QtGui.QLabel(self.firhpfPage)
173 self.endofHpfStopBandLabel.setObjectName("endofHpfStopBandLabel")
174 self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.endofHpfStopBandLabel)
175 self.endofHpfStopBandEdit = QtGui.QLineEdit(self.firhpfPage)
176 self.endofHpfStopBandEdit.setObjectName("endofHpfStopBandEdit")
177 self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.endofHpfStopBandEdit)
178 self.startofHpfPassBandLabel = QtGui.QLabel(self.firhpfPage)
179 self.startofHpfPassBandLabel.setObjectName("startofHpfPassBandLabel")
180 self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.startofHpfPassBandLabel)
181 self.startofHpfPassBandEdit = QtGui.QLineEdit(self.firhpfPage)
182 self.startofHpfPassBandEdit.setObjectName("startofHpfPassBandEdit")
183 self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.startofHpfPassBandEdit)
184 self.hpfStopBandAttenLabel = QtGui.QLabel(self.firhpfPage)
185 self.hpfStopBandAttenLabel.setObjectName("hpfStopBandAttenLabel")
186 self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.hpfStopBandAttenLabel)
187 self.hpfStopBandAttenEdit = QtGui.QLineEdit(self.firhpfPage)
188 self.hpfStopBandAttenEdit.setObjectName("hpfStopBandAttenEdit")
189 self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.hpfStopBandAttenEdit)
190 self.hpfPassBandRippleLabel = QtGui.QLabel(self.firhpfPage)
191 self.hpfPassBandRippleLabel.setObjectName("hpfPassBandRippleLabel")
192 self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.hpfPassBandRippleLabel)
193 self.hpfPassBandRippleEdit = QtGui.QLineEdit(self.firhpfPage)
194 self.hpfPassBandRippleEdit.setObjectName("hpfPassBandRippleEdit")
195 self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.hpfPassBandRippleEdit)
196 self.filterTypeWidget.addWidget(self.firhpfPage)
197 self.rrcPage = QtGui.QWidget()
198 self.rrcPage.setObjectName("rrcPage")
199 self.formLayout_6 = QtGui.QFormLayout(self.rrcPage)
200 self.formLayout_6.setObjectName("formLayout_6")
201 self.rrcSymbolRateLabel = QtGui.QLabel(self.rrcPage)
202 self.rrcSymbolRateLabel.setObjectName("rrcSymbolRateLabel")
203 self.formLayout_6.setWidget(0, QtGui.QFormLayout.LabelRole, self.rrcSymbolRateLabel)
204 self.rrcAlphaLabel = QtGui.QLabel(self.rrcPage)
205 self.rrcAlphaLabel.setObjectName("rrcAlphaLabel")
206 self.formLayout_6.setWidget(1, QtGui.QFormLayout.LabelRole, self.rrcAlphaLabel)
207 self.rrcNumTapsLabel = QtGui.QLabel(self.rrcPage)
208 self.rrcNumTapsLabel.setObjectName("rrcNumTapsLabel")
209 self.formLayout_6.setWidget(2, QtGui.QFormLayout.LabelRole, self.rrcNumTapsLabel)
210 self.rrcSymbolRateEdit = QtGui.QLineEdit(self.rrcPage)
211 self.rrcSymbolRateEdit.setObjectName("rrcSymbolRateEdit")
212 self.formLayout_6.setWidget(0, QtGui.QFormLayout.FieldRole, self.rrcSymbolRateEdit)
213 self.rrcAlphaEdit = QtGui.QLineEdit(self.rrcPage)
214 self.rrcAlphaEdit.setObjectName("rrcAlphaEdit")
215 self.formLayout_6.setWidget(1, QtGui.QFormLayout.FieldRole, self.rrcAlphaEdit)
216 self.rrcNumTapsEdit = QtGui.QLineEdit(self.rrcPage)
217 self.rrcNumTapsEdit.setObjectName("rrcNumTapsEdit")
218 self.formLayout_6.setWidget(2, QtGui.QFormLayout.FieldRole, self.rrcNumTapsEdit)
219 self.filterTypeWidget.addWidget(self.rrcPage)
220 self.gausPage = QtGui.QWidget()
221 self.gausPage.setObjectName("gausPage")
222 self.formLayout_7 = QtGui.QFormLayout(self.gausPage)
223 self.formLayout_7.setObjectName("formLayout_7")
224 self.gausSymbolRateLabel = QtGui.QLabel(self.gausPage)
225 self.gausSymbolRateLabel.setObjectName("gausSymbolRateLabel")
226 self.formLayout_7.setWidget(0, QtGui.QFormLayout.LabelRole, self.gausSymbolRateLabel)
227 self.gausSymbolRateEdit = QtGui.QLineEdit(self.gausPage)
228 self.gausSymbolRateEdit.setObjectName("gausSymbolRateEdit")
229 self.formLayout_7.setWidget(0, QtGui.QFormLayout.FieldRole, self.gausSymbolRateEdit)
230 self.gausBTLabel = QtGui.QLabel(self.gausPage)
231 self.gausBTLabel.setObjectName("gausBTLabel")
232 self.formLayout_7.setWidget(1, QtGui.QFormLayout.LabelRole, self.gausBTLabel)
233 self.gausBTEdit = QtGui.QLineEdit(self.gausPage)
234 self.gausBTEdit.setObjectName("gausBTEdit")
235 self.formLayout_7.setWidget(1, QtGui.QFormLayout.FieldRole, self.gausBTEdit)
236 self.gausNumTapsLabel = QtGui.QLabel(self.gausPage)
237 self.gausNumTapsLabel.setObjectName("gausNumTapsLabel")
238 self.formLayout_7.setWidget(2, QtGui.QFormLayout.LabelRole, self.gausNumTapsLabel)
239 self.gausNumTapsEdit = QtGui.QLineEdit(self.gausPage)
240 self.gausNumTapsEdit.setObjectName("gausNumTapsEdit")
241 self.formLayout_7.setWidget(2, QtGui.QFormLayout.FieldRole, self.gausNumTapsEdit)
242 self.filterTypeWidget.addWidget(self.gausPage)
243 self.verticalLayout.addWidget(self.filterTypeWidget)
244 self.sysParamsBox = QtGui.QGroupBox(self.filterFrame)
245 self.sysParamsBox.setObjectName("sysParamsBox")
246 self.formLayout_4 = QtGui.QFormLayout(self.sysParamsBox)
247 self.formLayout_4.setObjectName("formLayout_4")
248 self.nfftEdit = QtGui.QLineEdit(self.sysParamsBox)
249 self.nfftEdit.setObjectName("nfftEdit")
250 self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.nfftEdit)
251 self.nfftLabel = QtGui.QLabel(self.sysParamsBox)
252 self.nfftLabel.setObjectName("nfftLabel")
253 self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.nfftLabel)
254 self.verticalLayout.addWidget(self.sysParamsBox)
255 self.designButton = QtGui.QPushButton(self.filterFrame)
256 self.designButton.setMinimumSize(QtCore.QSize(0, 0))
257 self.designButton.setMaximumSize(QtCore.QSize(200, 16777215))
258 self.designButton.setAutoDefault(True)
259 self.designButton.setDefault(True)
260 self.designButton.setObjectName("designButton")
261 self.verticalLayout.addWidget(self.designButton)
262 self.gridLayout.addWidget(self.filterFrame, 1, 0, 1, 1)
263 self.tabGroup = QtGui.QTabWidget(self.centralwidget)
264 self.tabGroup.setMinimumSize(QtCore.QSize(800, 0))
265 self.tabGroup.setObjectName("tabGroup")
266 self.freqTab = QtGui.QWidget()
267 self.freqTab.setObjectName("freqTab")
268 self.horizontalLayout_2 = QtGui.QHBoxLayout(self.freqTab)
269 self.horizontalLayout_2.setObjectName("horizontalLayout_2")
270 self.freqPlot = Qwt5.QwtPlot(self.freqTab)
271 self.freqPlot.setObjectName("freqPlot")
272 self.horizontalLayout_2.addWidget(self.freqPlot)
273 self.tabGroup.addTab(self.freqTab, "")
274 self.timeTab = QtGui.QWidget()
275 self.timeTab.setObjectName("timeTab")
276 self.horizontalLayout = QtGui.QHBoxLayout(self.timeTab)
277 self.horizontalLayout.setObjectName("horizontalLayout")
278 self.timePlot = Qwt5.QwtPlot(self.timeTab)
279 self.timePlot.setObjectName("timePlot")
280 self.horizontalLayout.addWidget(self.timePlot)
281 self.tabGroup.addTab(self.timeTab, "")
282 self.phaseTab = QtGui.QWidget()
283 self.phaseTab.setObjectName("phaseTab")
284 self.horizontalLayout_3 = QtGui.QHBoxLayout(self.phaseTab)
285 self.horizontalLayout_3.setObjectName("horizontalLayout_3")
286 self.phasePlot = Qwt5.QwtPlot(self.phaseTab)
287 self.phasePlot.setObjectName("phasePlot")
288 self.horizontalLayout_3.addWidget(self.phasePlot)
289 self.tabGroup.addTab(self.phaseTab, "")
290 self.groupTab = QtGui.QWidget()
291 self.groupTab.setObjectName("groupTab")
292 self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupTab)
293 self.horizontalLayout_4.setObjectName("horizontalLayout_4")
294 self.groupPlot = Qwt5.QwtPlot(self.groupTab)
295 self.groupPlot.setObjectName("groupPlot")
296 self.horizontalLayout_4.addWidget(self.groupPlot)
297 self.tabGroup.addTab(self.groupTab, "")
298 self.gridLayout.addWidget(self.tabGroup, 1, 1, 1, 1)
299 MainWindow.setCentralWidget(self.centralwidget)
300 self.menubar = QtGui.QMenuBar(MainWindow)
301 self.menubar.setGeometry(QtCore.QRect(0, 0, 1124, 24))
302 self.menubar.setObjectName("menubar")
303 self.menu_File = QtGui.QMenu(self.menubar)
304 self.menu_File.setObjectName("menu_File")
305 MainWindow.setMenuBar(self.menubar)
306 self.statusbar = QtGui.QStatusBar(MainWindow)
307 self.statusbar.setObjectName("statusbar")
308 MainWindow.setStatusBar(self.statusbar)
309 self.action_open = QtGui.QAction(MainWindow)
310 self.action_open.setObjectName("action_open")
311 self.action_exit = QtGui.QAction(MainWindow)
312 self.action_exit.setObjectName("action_exit")
313 self.menu_File.addAction(self.action_exit)
314 self.menubar.addAction(self.menu_File.menuAction())
316 self.retranslateUi(MainWindow)
317 self.filterTypeWidget.setCurrentIndex(2)
318 self.tabGroup.setCurrentIndex(0)
319 QtCore.QObject.connect(self.action_exit, QtCore.SIGNAL("activated()"), MainWindow.close)
320 QtCore.QMetaObject.connectSlotsByName(MainWindow)
321 MainWindow.setTabOrder(self.filterTypeComboBox, self.filterDesignTypeComboBox)
322 MainWindow.setTabOrder(self.filterDesignTypeComboBox, self.sampleRateEdit)
323 MainWindow.setTabOrder(self.sampleRateEdit, self.filterGainEdit)
324 MainWindow.setTabOrder(self.filterGainEdit, self.endofLpfPassBandEdit)
325 MainWindow.setTabOrder(self.endofLpfPassBandEdit, self.startofLpfStopBandEdit)
326 MainWindow.setTabOrder(self.startofLpfStopBandEdit, self.lpfStopBandAttenEdit)
327 MainWindow.setTabOrder(self.lpfStopBandAttenEdit, self.lpfPassBandRippleEdit)
328 MainWindow.setTabOrder(self.lpfPassBandRippleEdit, self.startofBpfPassBandEdit)
329 MainWindow.setTabOrder(self.startofBpfPassBandEdit, self.endofBpfPassBandEdit)
330 MainWindow.setTabOrder(self.endofBpfPassBandEdit, self.bpfTransitionEdit)
331 MainWindow.setTabOrder(self.bpfTransitionEdit, self.bpfStopBandAttenEdit)
332 MainWindow.setTabOrder(self.bpfStopBandAttenEdit, self.bpfPassBandRippleEdit)
333 MainWindow.setTabOrder(self.bpfPassBandRippleEdit, self.endofHpfStopBandEdit)
334 MainWindow.setTabOrder(self.endofHpfStopBandEdit, self.startofHpfPassBandEdit)
335 MainWindow.setTabOrder(self.startofHpfPassBandEdit, self.hpfStopBandAttenEdit)
336 MainWindow.setTabOrder(self.hpfStopBandAttenEdit, self.hpfPassBandRippleEdit)
337 MainWindow.setTabOrder(self.hpfPassBandRippleEdit, self.designButton)
338 MainWindow.setTabOrder(self.designButton, self.tabGroup)
340 def retranslateUi(self, MainWindow):
341 MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "GNU Radio Filter Design Tool", None, QtGui.QApplication.UnicodeUTF8))
342 self.filterTypeComboBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Low Pass", None, QtGui.QApplication.UnicodeUTF8))
343 self.filterTypeComboBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Band Pass", None, QtGui.QApplication.UnicodeUTF8))
344 self.filterTypeComboBox.setItemText(2, QtGui.QApplication.translate("MainWindow", "Complex Band Pass", None, QtGui.QApplication.UnicodeUTF8))
345 self.filterTypeComboBox.setItemText(3, QtGui.QApplication.translate("MainWindow", "Band Notch", None, QtGui.QApplication.UnicodeUTF8))
346 self.filterTypeComboBox.setItemText(4, QtGui.QApplication.translate("MainWindow", "High Pass", None, QtGui.QApplication.UnicodeUTF8))
347 self.filterTypeComboBox.setItemText(5, QtGui.QApplication.translate("MainWindow", "Root Raised Cosine", None, QtGui.QApplication.UnicodeUTF8))
348 self.filterTypeComboBox.setItemText(6, QtGui.QApplication.translate("MainWindow", "Gaussian", None, QtGui.QApplication.UnicodeUTF8))
349 self.filterDesignTypeComboBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Hamming Window", None, QtGui.QApplication.UnicodeUTF8))
350 self.filterDesignTypeComboBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Hann Window", None, QtGui.QApplication.UnicodeUTF8))
351 self.filterDesignTypeComboBox.setItemText(2, QtGui.QApplication.translate("MainWindow", "Blackman Window", None, QtGui.QApplication.UnicodeUTF8))
352 self.filterDesignTypeComboBox.setItemText(3, QtGui.QApplication.translate("MainWindow", "Rectangular Window", None, QtGui.QApplication.UnicodeUTF8))
353 self.filterDesignTypeComboBox.setItemText(4, QtGui.QApplication.translate("MainWindow", "Kaiser Window", None, QtGui.QApplication.UnicodeUTF8))
354 self.filterDesignTypeComboBox.setItemText(5, QtGui.QApplication.translate("MainWindow", "Blackman-harris Window", None, QtGui.QApplication.UnicodeUTF8))
355 self.filterDesignTypeComboBox.setItemText(6, QtGui.QApplication.translate("MainWindow", "Equiripple", None, QtGui.QApplication.UnicodeUTF8))
356 self.sampleRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Sample Rate (sps)", None, QtGui.QApplication.UnicodeUTF8))
357 self.filterGainLabel.setText(QtGui.QApplication.translate("MainWindow", "Filter Gain", None, QtGui.QApplication.UnicodeUTF8))
358 self.endofLpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
359 self.startofLpfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
360 self.lpfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
361 self.lpfPassBandRippleLabel.setText(QtGui.QApplication.translate("MainWindow", "Pass Band Ripple (dB)", None, QtGui.QApplication.UnicodeUTF8))
362 self.startofBpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
363 self.endofBpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
364 self.bpfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
365 self.bpfTransitionLabel.setText(QtGui.QApplication.translate("MainWindow", "Transition Width (Hz)", None, QtGui.QApplication.UnicodeUTF8))
366 self.bpfPassBandRippleLabel.setText(QtGui.QApplication.translate("MainWindow", "Pass Band Ripple (dB)", None, QtGui.QApplication.UnicodeUTF8))
367 self.startofBnfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
368 self.endofBnfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
369 self.bnfTransitionLabel.setText(QtGui.QApplication.translate("MainWindow", "Transition Width (Hz)", None, QtGui.QApplication.UnicodeUTF8))
370 self.bnfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
371 self.bnfPassBandRippleLabel.setText(QtGui.QApplication.translate("MainWindow", "Pass Band Ripple (dB)", None, QtGui.QApplication.UnicodeUTF8))
372 self.endofHpfStopBandLabel.setText(QtGui.QApplication.translate("MainWindow", "End of Stop Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
373 self.startofHpfPassBandLabel.setText(QtGui.QApplication.translate("MainWindow", "Start of Pass Band (Hz)", None, QtGui.QApplication.UnicodeUTF8))
374 self.hpfStopBandAttenLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop Band Attenuation (dB)", None, QtGui.QApplication.UnicodeUTF8))
375 self.hpfPassBandRippleLabel.setText(QtGui.QApplication.translate("MainWindow", "Pass Band Ripple (dB)", None, QtGui.QApplication.UnicodeUTF8))
376 self.rrcSymbolRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Symbol Rate (sps)", None, QtGui.QApplication.UnicodeUTF8))
377 self.rrcAlphaLabel.setText(QtGui.QApplication.translate("MainWindow", "Roll-off Factor", None, QtGui.QApplication.UnicodeUTF8))
378 self.rrcNumTapsLabel.setText(QtGui.QApplication.translate("MainWindow", "Number of Taps", None, QtGui.QApplication.UnicodeUTF8))
379 self.gausSymbolRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Symbol Rate (sps)", None, QtGui.QApplication.UnicodeUTF8))
380 self.gausBTLabel.setText(QtGui.QApplication.translate("MainWindow", "Roll-off Factor", None, QtGui.QApplication.UnicodeUTF8))
381 self.gausNumTapsLabel.setText(QtGui.QApplication.translate("MainWindow", "Number of Taps", None, QtGui.QApplication.UnicodeUTF8))
382 self.sysParamsBox.setTitle(QtGui.QApplication.translate("MainWindow", "System Parameters", None, QtGui.QApplication.UnicodeUTF8))
383 self.nfftLabel.setText(QtGui.QApplication.translate("MainWindow", "Num FFT points", None, QtGui.QApplication.UnicodeUTF8))
384 self.designButton.setText(QtGui.QApplication.translate("MainWindow", "Design", None, QtGui.QApplication.UnicodeUTF8))
385 self.tabGroup.setTabText(self.tabGroup.indexOf(self.freqTab), QtGui.QApplication.translate("MainWindow", "Frequency Domain", None, QtGui.QApplication.UnicodeUTF8))
386 self.tabGroup.setTabText(self.tabGroup.indexOf(self.timeTab), QtGui.QApplication.translate("MainWindow", "Time Domain", None, QtGui.QApplication.UnicodeUTF8))
387 self.tabGroup.setTabText(self.tabGroup.indexOf(self.phaseTab), QtGui.QApplication.translate("MainWindow", "Phase", None, QtGui.QApplication.UnicodeUTF8))
388 self.tabGroup.setTabText(self.tabGroup.indexOf(self.groupTab), QtGui.QApplication.translate("MainWindow", "Group Delay", None, QtGui.QApplication.UnicodeUTF8))
389 self.menu_File.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8))
390 self.action_open.setText(QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8))
391 self.action_open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
392 self.action_exit.setText(QtGui.QApplication.translate("MainWindow", "E&xit", None, QtGui.QApplication.UnicodeUTF8))
394 from PyQt4 import Qwt5