summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/pyqt_plot.py
blob: 2724d85461ca51099228a33917ce00d99d1a5c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'pyqt_plot.ui'
#
# Created: Tue Aug 25 15:28:55 2009
#      by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(927, 696)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.plotHBar = QtGui.QScrollBar(self.centralwidget)
        self.plotHBar.setOrientation(QtCore.Qt.Horizontal)
        self.plotHBar.setObjectName("plotHBar")
        self.gridLayout.addWidget(self.plotHBar, 2, 0, 1, 2)
        self.tabGroup = QtGui.QTabWidget(self.centralwidget)
        self.tabGroup.setObjectName("tabGroup")
        self.timeTab = QtGui.QWidget()
        self.timeTab.setObjectName("timeTab")
        self.horizontalLayout = QtGui.QHBoxLayout(self.timeTab)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.timePlot = Qwt5.QwtPlot(self.timeTab)
        self.timePlot.setObjectName("timePlot")
        self.horizontalLayout.addWidget(self.timePlot)
        self.tabGroup.addTab(self.timeTab, "")
        self.freqTab = QtGui.QWidget()
        self.freqTab.setObjectName("freqTab")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.freqTab)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.fftPropBox = QtGui.QGroupBox(self.freqTab)
        self.fftPropBox.setMinimumSize(QtCore.QSize(160, 0))
        self.fftPropBox.setObjectName("fftPropBox")
        self.formLayout_4 = QtGui.QFormLayout(self.fftPropBox)
        self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName("formLayout_4")
        self.psdFFTComboBox = QtGui.QComboBox(self.fftPropBox)
        self.psdFFTComboBox.setMinimumSize(QtCore.QSize(96, 0))
        self.psdFFTComboBox.setMaximumSize(QtCore.QSize(96, 16777215))
        self.psdFFTComboBox.setObjectName("psdFFTComboBox")
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.psdFFTComboBox)
        self.psdFFTSizeLabel = QtGui.QLabel(self.fftPropBox)
        self.psdFFTSizeLabel.setObjectName("psdFFTSizeLabel")
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.psdFFTSizeLabel)
        self.horizontalLayout_2.addWidget(self.fftPropBox)
        self.freqPlot = Qwt5.QwtPlot(self.freqTab)
        self.freqPlot.setObjectName("freqPlot")
        self.horizontalLayout_2.addWidget(self.freqPlot)
        self.tabGroup.addTab(self.freqTab, "")
        self.specTab = QtGui.QWidget()
        self.specTab.setObjectName("specTab")
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.specTab)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox = QtGui.QGroupBox(self.specTab)
        self.groupBox.setObjectName("groupBox")
        self.formLayout_3 = QtGui.QFormLayout(self.groupBox)
        self.formLayout_3.setObjectName("formLayout_3")
        self.specFFTLabel = QtGui.QLabel(self.groupBox)
        self.specFFTLabel.setObjectName("specFFTLabel")
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.specFFTLabel)
        self.specFFTComboBox = QtGui.QComboBox(self.groupBox)
        self.specFFTComboBox.setMinimumSize(QtCore.QSize(96, 0))
        self.specFFTComboBox.setMaximumSize(QtCore.QSize(96, 16777215))
        self.specFFTComboBox.setObjectName("specFFTComboBox")
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.specFFTComboBox)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.specPlot = Qwt5.QwtPlot(self.specTab)
        self.specPlot.setObjectName("specPlot")
        self.horizontalLayout_3.addWidget(self.specPlot)
        self.tabGroup.addTab(self.specTab, "")
        self.gridLayout.addWidget(self.tabGroup, 1, 0, 1, 1)
        self.filePosBox = QtGui.QGroupBox(self.centralwidget)
        self.filePosBox.setMinimumSize(QtCore.QSize(0, 120))
        self.filePosBox.setObjectName("filePosBox")
        self.formLayoutWidget_2 = QtGui.QWidget(self.filePosBox)
        self.formLayoutWidget_2.setGeometry(QtCore.QRect(0, 20, 160, 92))
        self.formLayoutWidget_2.setObjectName("formLayoutWidget_2")
        self.filePosLayout = QtGui.QFormLayout(self.formLayoutWidget_2)
        self.filePosLayout.setObjectName("filePosLayout")
        self.filePosStartLabel = QtGui.QLabel(self.formLayoutWidget_2)
        self.filePosStartLabel.setObjectName("filePosStartLabel")
        self.filePosLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.filePosStartLabel)
        self.filePosStartLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2)
        self.filePosStartLineEdit.setObjectName("filePosStartLineEdit")
        self.filePosLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.filePosStartLineEdit)
        self.filePosStopLabel = QtGui.QLabel(self.formLayoutWidget_2)
        self.filePosStopLabel.setObjectName("filePosStopLabel")
        self.filePosLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.filePosStopLabel)
        self.filePosStopLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2)
        self.filePosStopLineEdit.setObjectName("filePosStopLineEdit")
        self.filePosLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.filePosStopLineEdit)
        self.filePosLengthLabel = QtGui.QLabel(self.formLayoutWidget_2)
        self.filePosLengthLabel.setObjectName("filePosLengthLabel")
        self.filePosLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.filePosLengthLabel)
        self.filePosLengthLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2)
        self.filePosLengthLineEdit.setObjectName("filePosLengthLineEdit")
        self.filePosLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.filePosLengthLineEdit)
        self.formLayoutWidget_4 = QtGui.QWidget(self.filePosBox)
        self.formLayoutWidget_4.setGeometry(QtCore.QRect(180, 20, 231, 92))
        self.formLayoutWidget_4.setObjectName("formLayoutWidget_4")
        self.fileTimeLayout = QtGui.QFormLayout(self.formLayoutWidget_4)
        self.fileTimeLayout.setObjectName("fileTimeLayout")
        self.fileTimeStartLabel = QtGui.QLabel(self.formLayoutWidget_4)
        self.fileTimeStartLabel.setObjectName("fileTimeStartLabel")
        self.fileTimeLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.fileTimeStartLabel)
        self.fileTimeStartLineEdit = QtGui.QLineEdit(self.formLayoutWidget_4)
        self.fileTimeStartLineEdit.setObjectName("fileTimeStartLineEdit")
        self.fileTimeLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.fileTimeStartLineEdit)
        self.fileTimeStopLabel = QtGui.QLabel(self.formLayoutWidget_4)
        self.fileTimeStopLabel.setObjectName("fileTimeStopLabel")
        self.fileTimeLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.fileTimeStopLabel)
        self.fileTimeStopLineEdit = QtGui.QLineEdit(self.formLayoutWidget_4)
        self.fileTimeStopLineEdit.setObjectName("fileTimeStopLineEdit")
        self.fileTimeLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.fileTimeStopLineEdit)
        self.fileTimeLengthLabel = QtGui.QLabel(self.formLayoutWidget_4)
        self.fileTimeLengthLabel.setObjectName("fileTimeLengthLabel")
        self.fileTimeLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.fileTimeLengthLabel)
        self.fileTimeLengthLineEdit = QtGui.QLineEdit(self.formLayoutWidget_4)
        self.fileTimeLengthLineEdit.setObjectName("fileTimeLengthLineEdit")
        self.fileTimeLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.fileTimeLengthLineEdit)
        self.sysGroupBox = QtGui.QGroupBox(self.filePosBox)
        self.sysGroupBox.setGeometry(QtCore.QRect(530, 0, 200, 120))
        self.sysGroupBox.setMinimumSize(QtCore.QSize(200, 0))
        self.sysGroupBox.setObjectName("sysGroupBox")
        self.formLayoutWidget_3 = QtGui.QWidget(self.sysGroupBox)
        self.formLayoutWidget_3.setGeometry(QtCore.QRect(0, 20, 191, 91))
        self.formLayoutWidget_3.setObjectName("formLayoutWidget_3")
        self.formLayout_2 = QtGui.QFormLayout(self.formLayoutWidget_3)
        self.formLayout_2.setObjectName("formLayout_2")
        self.sampleRateLabel = QtGui.QLabel(self.formLayoutWidget_3)
        self.sampleRateLabel.setObjectName("sampleRateLabel")
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.sampleRateLabel)
        self.sampleRateLineEdit = QtGui.QLineEdit(self.formLayoutWidget_3)
        self.sampleRateLineEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.sampleRateLineEdit.setObjectName("sampleRateLineEdit")
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.sampleRateLineEdit)
        self.displayGroupBox = QtGui.QGroupBox(self.filePosBox)
        self.displayGroupBox.setGeometry(QtCore.QRect(730, 0, 170, 120))
        self.displayGroupBox.setMinimumSize(QtCore.QSize(170, 0))
        self.displayGroupBox.setObjectName("displayGroupBox")
        self.verticalLayoutWidget = QtGui.QWidget(self.displayGroupBox)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 20, 160, 91))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.colorComboBox = QtGui.QComboBox(self.verticalLayoutWidget)
        self.colorComboBox.setObjectName("colorComboBox")
        self.verticalLayout.addWidget(self.colorComboBox)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.gridLayout.addWidget(self.filePosBox, 3, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 927, 24))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtGui.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.action_open = QtGui.QAction(MainWindow)
        self.action_open.setObjectName("action_open")
        self.action_exit = QtGui.QAction(MainWindow)
        self.action_exit.setObjectName("action_exit")
        self.menu_File.addAction(self.action_open)
        self.menu_File.addAction(self.action_exit)
        self.menubar.addAction(self.menu_File.menuAction())

        self.retranslateUi(MainWindow)
        self.tabGroup.setCurrentIndex(2)
        QtCore.QObject.connect(self.action_exit, QtCore.SIGNAL("activated()"), MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.tabGroup.setTabText(self.tabGroup.indexOf(self.timeTab), QtGui.QApplication.translate("MainWindow", "Time Domain", None, QtGui.QApplication.UnicodeUTF8))
        self.fftPropBox.setTitle(QtGui.QApplication.translate("MainWindow", "FFT Properties", None, QtGui.QApplication.UnicodeUTF8))
        self.psdFFTSizeLabel.setText(QtGui.QApplication.translate("MainWindow", "FFT Size", None, QtGui.QApplication.UnicodeUTF8))
        self.tabGroup.setTabText(self.tabGroup.indexOf(self.freqTab), QtGui.QApplication.translate("MainWindow", "Frequency Domain", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Spectrogram Properties", None, QtGui.QApplication.UnicodeUTF8))
        self.specFFTLabel.setText(QtGui.QApplication.translate("MainWindow", "FFT Size", None, QtGui.QApplication.UnicodeUTF8))
        self.tabGroup.setTabText(self.tabGroup.indexOf(self.specTab), QtGui.QApplication.translate("MainWindow", "Spectrogram", None, QtGui.QApplication.UnicodeUTF8))
        self.filePosBox.setTitle(QtGui.QApplication.translate("MainWindow", "File Position", None, QtGui.QApplication.UnicodeUTF8))
        self.filePosStartLabel.setText(QtGui.QApplication.translate("MainWindow", "Start", None, QtGui.QApplication.UnicodeUTF8))
        self.filePosStopLabel.setText(QtGui.QApplication.translate("MainWindow", "Stop", None, QtGui.QApplication.UnicodeUTF8))
        self.filePosLengthLabel.setText(QtGui.QApplication.translate("MainWindow", "Length", None, QtGui.QApplication.UnicodeUTF8))
        self.fileTimeStartLabel.setText(QtGui.QApplication.translate("MainWindow", "time start (sec)", None, QtGui.QApplication.UnicodeUTF8))
        self.fileTimeStopLabel.setText(QtGui.QApplication.translate("MainWindow", "time stop (sec)", None, QtGui.QApplication.UnicodeUTF8))
        self.fileTimeLengthLabel.setText(QtGui.QApplication.translate("MainWindow", "time length (sec)", None, QtGui.QApplication.UnicodeUTF8))
        self.sysGroupBox.setTitle(QtGui.QApplication.translate("MainWindow", "System Properties", None, QtGui.QApplication.UnicodeUTF8))
        self.sampleRateLabel.setText(QtGui.QApplication.translate("MainWindow", "Sample Rate", None, QtGui.QApplication.UnicodeUTF8))
        self.displayGroupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Display Properties", None, QtGui.QApplication.UnicodeUTF8))
        self.menu_File.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8))
        self.action_open.setText(QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8))
        self.action_open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
        self.action_exit.setText(QtGui.QApplication.translate("MainWindow", "E&xit", None, QtGui.QApplication.UnicodeUTF8))

from PyQt4 import Qwt5