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