root / gr-utils / src / python / pyqt_plot.py @ 785cacd4
History | View | Annotate | Download (13.9 kB)
| 1 | # -*- coding: utf-8 -*-
|
|---|---|
| 2 | |
| 3 | # Form implementation generated from reading ui file 'pyqt_plot.ui'
|
| 4 | #
|
| 5 | # Created: Tue Aug 25 18:18:14 2009
|
| 6 | # by: PyQt4 UI code generator 4.4.3
|
| 7 | #
|
| 8 | # WARNING! All changes made in this file will be lost!
|
| 9 | |
| 10 | from PyQt4 import QtCore, QtGui |
| 11 | |
| 12 | class Ui_MainWindow(object): |
| 13 | def setupUi(self, MainWindow): |
| 14 | MainWindow.setObjectName("MainWindow")
|
| 15 | MainWindow.resize(927, 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.plotHBar = QtGui.QScrollBar(self.centralwidget) |
| 21 | self.plotHBar.setOrientation(QtCore.Qt.Horizontal)
|
| 22 | self.plotHBar.setObjectName("plotHBar") |
| 23 | self.gridLayout.addWidget(self.plotHBar, 2, 0, 1, 2) |
| 24 | self.tabGroup = QtGui.QTabWidget(self.centralwidget) |
| 25 | self.tabGroup.setObjectName("tabGroup") |
| 26 | self.timeTab = QtGui.QWidget()
|
| 27 | self.timeTab.setObjectName("timeTab") |
| 28 | self.horizontalLayout = QtGui.QHBoxLayout(self.timeTab) |
| 29 | self.horizontalLayout.setObjectName("horizontalLayout") |
| 30 | self.timePlot = Qwt5.QwtPlot(self.timeTab) |
| 31 | self.timePlot.setObjectName("timePlot") |
| 32 | self.horizontalLayout.addWidget(self.timePlot) |
| 33 | self.tabGroup.addTab(self.timeTab, "") |
| 34 | self.freqTab = QtGui.QWidget()
|
| 35 | self.freqTab.setObjectName("freqTab") |
| 36 | self.horizontalLayout_2 = QtGui.QHBoxLayout(self.freqTab) |
| 37 | self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 38 | self.fftPropBox = QtGui.QGroupBox(self.freqTab) |
| 39 | self.fftPropBox.setMinimumSize(QtCore.QSize(160, 0)) |
| 40 | self.fftPropBox.setObjectName("fftPropBox") |
| 41 | self.formLayout_4 = QtGui.QFormLayout(self.fftPropBox) |
| 42 | self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
|
| 43 | self.formLayout_4.setObjectName("formLayout_4") |
| 44 | self.psdFFTComboBox = QtGui.QComboBox(self.fftPropBox) |
| 45 | self.psdFFTComboBox.setMinimumSize(QtCore.QSize(96, 0)) |
| 46 | self.psdFFTComboBox.setMaximumSize(QtCore.QSize(96, 16777215)) |
| 47 | self.psdFFTComboBox.setObjectName("psdFFTComboBox") |
| 48 | self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.psdFFTComboBox) |
| 49 | self.psdFFTSizeLabel = QtGui.QLabel(self.fftPropBox) |
| 50 | self.psdFFTSizeLabel.setObjectName("psdFFTSizeLabel") |
| 51 | self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.psdFFTSizeLabel) |
| 52 | self.horizontalLayout_2.addWidget(self.fftPropBox) |
| 53 | self.freqPlot = Qwt5.QwtPlot(self.freqTab) |
| 54 | self.freqPlot.setObjectName("freqPlot") |
| 55 | self.horizontalLayout_2.addWidget(self.freqPlot) |
| 56 | self.tabGroup.addTab(self.freqTab, "") |
| 57 | self.specTab = QtGui.QWidget()
|
| 58 | self.specTab.setObjectName("specTab") |
| 59 | self.horizontalLayout_3 = QtGui.QHBoxLayout(self.specTab) |
| 60 | self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
| 61 | self.groupBox = QtGui.QGroupBox(self.specTab) |
| 62 | self.groupBox.setObjectName("groupBox") |
| 63 | self.formLayout_3 = QtGui.QFormLayout(self.groupBox) |
| 64 | self.formLayout_3.setObjectName("formLayout_3") |
| 65 | self.specFFTLabel = QtGui.QLabel(self.groupBox) |
| 66 | self.specFFTLabel.setObjectName("specFFTLabel") |
| 67 | self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.specFFTLabel) |
| 68 | self.specFFTComboBox = QtGui.QComboBox(self.groupBox) |
| 69 | self.specFFTComboBox.setMinimumSize(QtCore.QSize(96, 0)) |
| 70 | self.specFFTComboBox.setMaximumSize(QtCore.QSize(96, 16777215)) |
| 71 | self.specFFTComboBox.setObjectName("specFFTComboBox") |
| 72 | self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.specFFTComboBox) |
| 73 | self.horizontalLayout_3.addWidget(self.groupBox) |
| 74 | self.specPlot = Qwt5.QwtPlot(self.specTab) |
| 75 | self.specPlot.setObjectName("specPlot") |
| 76 | self.horizontalLayout_3.addWidget(self.specPlot) |
| 77 | self.tabGroup.addTab(self.specTab, "") |
| 78 | self.gridLayout.addWidget(self.tabGroup, 1, 0, 1, 1) |
| 79 | self.filePosBox = QtGui.QGroupBox(self.centralwidget) |
| 80 | self.filePosBox.setMinimumSize(QtCore.QSize(0, 120)) |
| 81 | self.filePosBox.setObjectName("filePosBox") |
| 82 | self.formLayoutWidget_2 = QtGui.QWidget(self.filePosBox) |
| 83 | self.formLayoutWidget_2.setGeometry(QtCore.QRect(0, 20, 160, 92)) |
| 84 | self.formLayoutWidget_2.setObjectName("formLayoutWidget_2") |
| 85 | self.filePosLayout = QtGui.QFormLayout(self.formLayoutWidget_2) |
| 86 | self.filePosLayout.setObjectName("filePosLayout") |
| 87 | self.filePosStartLabel = QtGui.QLabel(self.formLayoutWidget_2) |
| 88 | self.filePosStartLabel.setObjectName("filePosStartLabel") |
| 89 | self.filePosLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.filePosStartLabel) |
| 90 | self.filePosStartLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2) |
| 91 | self.filePosStartLineEdit.setObjectName("filePosStartLineEdit") |
| 92 | self.filePosLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.filePosStartLineEdit) |
| 93 | self.filePosStopLabel = QtGui.QLabel(self.formLayoutWidget_2) |
| 94 | self.filePosStopLabel.setObjectName("filePosStopLabel") |
| 95 | self.filePosLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.filePosStopLabel) |
| 96 | self.filePosStopLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2) |
| 97 | self.filePosStopLineEdit.setObjectName("filePosStopLineEdit") |
| 98 | self.filePosLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.filePosStopLineEdit) |
| 99 | self.filePosLengthLabel = QtGui.QLabel(self.formLayoutWidget_2) |
| 100 | self.filePosLengthLabel.setObjectName("filePosLengthLabel") |
| 101 | self.filePosLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.filePosLengthLabel) |
| 102 | self.filePosLengthLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2) |
| 103 | self.filePosLengthLineEdit.setObjectName("filePosLengthLineEdit") |
| 104 | self.filePosLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.filePosLengthLineEdit) |
| 105 | self.formLayoutWidget_4 = QtGui.QWidget(self.filePosBox) |
| 106 | self.formLayoutWidget_4.setGeometry(QtCore.QRect(180, 20, 231, 92)) |
| 107 | self.formLayoutWidget_4.setObjectName("formLayoutWidget_4") |
| 108 | self.fileTimeLayout = QtGui.QFormLayout(self.formLayoutWidget_4) |
| 109 | self.fileTimeLayout.setObjectName("fileTimeLayout") |
| 110 | self.fileTimeStartLabel = QtGui.QLabel(self.formLayoutWidget_4) |
| 111 | self.fileTimeStartLabel.setObjectName("fileTimeStartLabel") |
| 112 | self.fileTimeLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.fileTimeStartLabel) |
| 113 | self.fileTimeStartLineEdit = QtGui.QLineEdit(self.formLayoutWidget_4) |
| 114 | self.fileTimeStartLineEdit.setObjectName("fileTimeStartLineEdit") |
| 115 | self.fileTimeLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.fileTimeStartLineEdit) |
| 116 | self.fileTimeStopLabel = QtGui.QLabel(self.formLayoutWidget_4) |
| 117 | self.fileTimeStopLabel.setObjectName("fileTimeStopLabel") |
| 118 | self.fileTimeLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.fileTimeStopLabel) |
| 119 | self.fileTimeStopLineEdit = QtGui.QLineEdit(self.formLayoutWidget_4) |
| 120 | self.fileTimeStopLineEdit.setObjectName("fileTimeStopLineEdit") |
| 121 | self.fileTimeLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.fileTimeStopLineEdit) |
| 122 | self.fileTimeLengthLabel = QtGui.QLabel(self.formLayoutWidget_4) |
| 123 | self.fileTimeLengthLabel.setObjectName("fileTimeLengthLabel") |
| 124 | self.fileTimeLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.fileTimeLengthLabel) |
| 125 | self.fileTimeLengthLineEdit = QtGui.QLineEdit(self.formLayoutWidget_4) |
| 126 | self.fileTimeLengthLineEdit.setObjectName("fileTimeLengthLineEdit") |
| 127 | self.fileTimeLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.fileTimeLengthLineEdit) |
| 128 | self.sysGroupBox = QtGui.QGroupBox(self.filePosBox) |
| 129 | self.sysGroupBox.setGeometry(QtCore.QRect(530, 0, 200, 120)) |
| 130 | self.sysGroupBox.setMinimumSize(QtCore.QSize(200, 0)) |
| 131 | self.sysGroupBox.setObjectName("sysGroupBox") |
| 132 | self.formLayoutWidget_3 = QtGui.QWidget(self.sysGroupBox) |
| 133 | self.formLayoutWidget_3.setGeometry(QtCore.QRect(0, 20, 191, 91)) |
| 134 | self.formLayoutWidget_3.setObjectName("formLayoutWidget_3") |
| 135 | self.formLayout_2 = QtGui.QFormLayout(self.formLayoutWidget_3) |
| 136 | self.formLayout_2.setObjectName("formLayout_2") |
| 137 | self.sampleRateLabel = QtGui.QLabel(self.formLayoutWidget_3) |
| 138 | self.sampleRateLabel.setObjectName("sampleRateLabel") |
| 139 | self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.sampleRateLabel) |
| 140 | self.sampleRateLineEdit = QtGui.QLineEdit(self.formLayoutWidget_3) |
| 141 | self.sampleRateLineEdit.setMinimumSize(QtCore.QSize(0, 0)) |
| 142 | self.sampleRateLineEdit.setObjectName("sampleRateLineEdit") |
| 143 | self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.sampleRateLineEdit) |
| 144 | self.displayGroupBox = QtGui.QGroupBox(self.filePosBox) |
| 145 | self.displayGroupBox.setGeometry(QtCore.QRect(730, 0, 170, 120)) |
| 146 | self.displayGroupBox.setMinimumSize(QtCore.QSize(170, 0)) |
| 147 | self.displayGroupBox.setObjectName("displayGroupBox") |
| 148 | self.verticalLayoutWidget = QtGui.QWidget(self.displayGroupBox) |
| 149 | self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 20, 160, 91)) |
| 150 | self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") |
| 151 | self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) |
| 152 | self.verticalLayout.setObjectName("verticalLayout") |
| 153 | self.colorComboBox = QtGui.QComboBox(self.verticalLayoutWidget) |
| 154 | self.colorComboBox.setObjectName("colorComboBox") |
| 155 | self.verticalLayout.addWidget(self.colorComboBox) |
| 156 | spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
| 157 | self.verticalLayout.addItem(spacerItem)
|
| 158 | self.gridLayout.addWidget(self.filePosBox, 3, 0, 1, 1) |
| 159 | MainWindow.setCentralWidget(self.centralwidget)
|
| 160 | self.menubar = QtGui.QMenuBar(MainWindow)
|
| 161 | self.menubar.setGeometry(QtCore.QRect(0, 0, 927, 24)) |
| 162 | self.menubar.setObjectName("menubar") |
| 163 | self.menu_File = QtGui.QMenu(self.menubar) |
| 164 | self.menu_File.setObjectName("menu_File") |
| 165 | MainWindow.setMenuBar(self.menubar)
|
| 166 | self.statusbar = QtGui.QStatusBar(MainWindow)
|
| 167 | self.statusbar.setObjectName("statusbar") |
| 168 | MainWindow.setStatusBar(self.statusbar)
|
| 169 | self.action_open = QtGui.QAction(MainWindow)
|
| 170 | self.action_open.setObjectName("action_open") |
| 171 | self.action_exit = QtGui.QAction(MainWindow)
|
| 172 | self.action_exit.setObjectName("action_exit") |
| 173 | self.menu_File.addAction(self.action_open) |
| 174 | self.menu_File.addAction(self.action_exit) |
| 175 | self.menubar.addAction(self.menu_File.menuAction()) |
| 176 | |
| 177 | self.retranslateUi(MainWindow)
|
| 178 | self.tabGroup.setCurrentIndex(0) |
| 179 | QtCore.QObject.connect(self.action_exit, QtCore.SIGNAL("activated()"), MainWindow.close) |
| 180 | QtCore.QMetaObject.connectSlotsByName(MainWindow) |
| 181 | |
| 182 | def retranslateUi(self, MainWindow): |
| 183 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) |
| 184 | self.tabGroup.setTabText(self.tabGroup.indexOf(self.timeTab), QtGui.QApplication.translate("MainWindow", "Time Domain", None, QtGui.QApplication.UnicodeUTF8)) |
| 185 | self.fftPropBox.setTitle(QtGui.QApplication.translate("MainWindow", "FFT Properties", None, QtGui.QApplication.UnicodeUTF8)) |
| 186 | self.psdFFTSizeLabel.setText(QtGui.QApplication.translate("MainWindow", "FFT Size", None, QtGui.QApplication.UnicodeUTF8)) |
| 187 | self.tabGroup.setTabText(self.tabGroup.indexOf(self.freqTab), QtGui.QApplication.translate("MainWindow", "Frequency Domain", None, QtGui.QApplication.UnicodeUTF8)) |
| 188 | self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Spectrogram Properties", None, QtGui.QApplication.UnicodeUTF8)) |
| 189 | self.specFFTLabel.setText(QtGui.QApplication.translate("MainWindow", "FFT Size", None, QtGui.QApplication.UnicodeUTF8)) |
| 190 | self.tabGroup.setTabText(self.tabGroup.indexOf(self.specTab), QtGui.QApplication.translate("MainWindow", "Spectrogram", None, QtGui.QApplication.UnicodeUTF8)) |
| 191 | self.filePosBox.setTitle(QtGui.QApplication.translate("MainWindow", "File Position", None, QtGui.QApplication.UnicodeUTF8)) |
| 192 | self.filePosStartLabel.setText(QtGui.QApplication.translate("MainWindow", "Start", None, QtGui.QApplication.UnicodeUTF8)) |
| 193 | self.filePosStopLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop", None, QtGui.QApplication.UnicodeUTF8)) |
| 194 | self.filePosLengthLabel.setText(QtGui.QApplication.translate("MainWindow", "Length", None, QtGui.QApplication.UnicodeUTF8)) |
| 195 | self.fileTimeStartLabel.setText(QtGui.QApplication.translate("MainWindow", "time start (sec)", None, QtGui.QApplication.UnicodeUTF8)) |
| 196 | self.fileTimeStopLabel.setText(QtGui.QApplication.translate("MainWindow", "time stop (sec)", None, QtGui.QApplication.UnicodeUTF8)) |
| 197 | self.fileTimeLengthLabel.setText(QtGui.QApplication.translate("MainWindow", "time length (sec)", None, QtGui.QApplication.UnicodeUTF8)) |
| 198 | self.sysGroupBox.setTitle(QtGui.QApplication.translate("MainWindow", "System Properties", None, QtGui.QApplication.UnicodeUTF8)) |
| 199 | self.sampleRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Sample Rate", None, QtGui.QApplication.UnicodeUTF8)) |
| 200 | self.displayGroupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Display Properties", None, QtGui.QApplication.UnicodeUTF8)) |
| 201 | self.menu_File.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8)) |
| 202 | self.action_open.setText(QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8)) |
| 203 | self.action_open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8)) |
| 204 | self.action_exit.setText(QtGui.QApplication.translate("MainWindow", "E&xit", None, QtGui.QApplication.UnicodeUTF8)) |
| 205 | |
| 206 | from PyQt4 import Qwt5 |