00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_SPECTRALMETERCONFIGWIDGET_H
00011 #define UI_SPECTRALMETERCONFIGWIDGET_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QCheckBox>
00018 #include <QtGui/QComboBox>
00019 #include <QtGui/QGridLayout>
00020 #include <QtGui/QGroupBox>
00021 #include <QtGui/QHBoxLayout>
00022 #include <QtGui/QHeaderView>
00023 #include <QtGui/QLabel>
00024 #include <QtGui/QPushButton>
00025 #include <QtGui/QSpacerItem>
00026 #include <QtGui/QSpinBox>
00027 #include <QtGui/QVBoxLayout>
00028 #include <QtGui/QWidget>
00029
00030 QT_BEGIN_NAMESPACE
00031
00032 class Ui_SpectralMeterConfigWidget
00033 {
00034 public:
00035 QVBoxLayout *vboxLayout;
00036 QGroupBox *groupBox;
00037 QGridLayout *gridLayout;
00038 QCheckBox *checkBoxAverage;
00039 QSpinBox *spinBoxNumBands;
00040 QLabel *label_2;
00041 QSpinBox *spinBoxLowerDb;
00042 QLabel *label_6;
00043 QSpinBox *spinBoxUpperDb;
00044 QLabel *label_7;
00045 QSpinBox *spinBoxLowerFreq;
00046 QLabel *label;
00047 QSpinBox *spinBoxUpperFreq;
00048 QLabel *label_3;
00049 QGroupBox *groupBoxAdvanced;
00050 QGridLayout *gridLayout1;
00051 QLabel *label_4;
00052 QComboBox *comboBoxFftSize;
00053 QComboBox *comboBoxWindowing;
00054 QLabel *label_5;
00055 QHBoxLayout *hboxLayout;
00056 QPushButton *buttonAdvanced;
00057 QSpacerItem *spacerItem;
00058 QPushButton *buttonApply;
00059 QPushButton *buttonClose;
00060
00061 void setupUi(QWidget *SpectralMeterConfigWidget)
00062 {
00063 if (SpectralMeterConfigWidget->objectName().isEmpty())
00064 SpectralMeterConfigWidget->setObjectName(QString::fromUtf8("SpectralMeterConfigWidget"));
00065 SpectralMeterConfigWidget->resize(377, 364);
00066 vboxLayout = new QVBoxLayout(SpectralMeterConfigWidget);
00067 #ifndef Q_OS_MAC
00068 vboxLayout->setSpacing(6);
00069 #endif
00070 #ifndef Q_OS_MAC
00071 vboxLayout->setMargin(9);
00072 #endif
00073 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00074 groupBox = new QGroupBox(SpectralMeterConfigWidget);
00075 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00076 gridLayout = new QGridLayout(groupBox);
00077 #ifndef Q_OS_MAC
00078 gridLayout->setSpacing(6);
00079 #endif
00080 #ifndef Q_OS_MAC
00081 gridLayout->setMargin(9);
00082 #endif
00083 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00084 checkBoxAverage = new QCheckBox(groupBox);
00085 checkBoxAverage->setObjectName(QString::fromUtf8("checkBoxAverage"));
00086
00087 gridLayout->addWidget(checkBoxAverage, 5, 0, 1, 2);
00088
00089 spinBoxNumBands = new QSpinBox(groupBox);
00090 spinBoxNumBands->setObjectName(QString::fromUtf8("spinBoxNumBands"));
00091 spinBoxNumBands->setMaximum(2048);
00092 spinBoxNumBands->setMinimum(4);
00093 spinBoxNumBands->setValue(16);
00094
00095 gridLayout->addWidget(spinBoxNumBands, 4, 1, 1, 1);
00096
00097 label_2 = new QLabel(groupBox);
00098 label_2->setObjectName(QString::fromUtf8("label_2"));
00099
00100 gridLayout->addWidget(label_2, 4, 0, 1, 1);
00101
00102 spinBoxLowerDb = new QSpinBox(groupBox);
00103 spinBoxLowerDb->setObjectName(QString::fromUtf8("spinBoxLowerDb"));
00104 spinBoxLowerDb->setMaximum(0);
00105 spinBoxLowerDb->setMinimum(-140);
00106 spinBoxLowerDb->setValue(-140);
00107
00108 gridLayout->addWidget(spinBoxLowerDb, 3, 1, 1, 1);
00109
00110 label_6 = new QLabel(groupBox);
00111 label_6->setObjectName(QString::fromUtf8("label_6"));
00112
00113 gridLayout->addWidget(label_6, 3, 0, 1, 1);
00114
00115 spinBoxUpperDb = new QSpinBox(groupBox);
00116 spinBoxUpperDb->setObjectName(QString::fromUtf8("spinBoxUpperDb"));
00117 spinBoxUpperDb->setMaximum(12);
00118 spinBoxUpperDb->setMinimum(-24);
00119
00120 gridLayout->addWidget(spinBoxUpperDb, 2, 1, 1, 1);
00121
00122 label_7 = new QLabel(groupBox);
00123 label_7->setObjectName(QString::fromUtf8("label_7"));
00124
00125 gridLayout->addWidget(label_7, 2, 0, 1, 1);
00126
00127 spinBoxLowerFreq = new QSpinBox(groupBox);
00128 spinBoxLowerFreq->setObjectName(QString::fromUtf8("spinBoxLowerFreq"));
00129 spinBoxLowerFreq->setMaximum(20000);
00130 spinBoxLowerFreq->setMinimum(1);
00131 spinBoxLowerFreq->setValue(20);
00132
00133 gridLayout->addWidget(spinBoxLowerFreq, 1, 1, 1, 1);
00134
00135 label = new QLabel(groupBox);
00136 label->setObjectName(QString::fromUtf8("label"));
00137
00138 gridLayout->addWidget(label, 1, 0, 1, 1);
00139
00140 spinBoxUpperFreq = new QSpinBox(groupBox);
00141 spinBoxUpperFreq->setObjectName(QString::fromUtf8("spinBoxUpperFreq"));
00142 spinBoxUpperFreq->setMaximum(96000);
00143 spinBoxUpperFreq->setMinimum(100);
00144 spinBoxUpperFreq->setValue(20000);
00145
00146 gridLayout->addWidget(spinBoxUpperFreq, 0, 1, 1, 1);
00147
00148 label_3 = new QLabel(groupBox);
00149 label_3->setObjectName(QString::fromUtf8("label_3"));
00150
00151 gridLayout->addWidget(label_3, 0, 0, 1, 1);
00152
00153
00154 vboxLayout->addWidget(groupBox);
00155
00156 groupBoxAdvanced = new QGroupBox(SpectralMeterConfigWidget);
00157 groupBoxAdvanced->setObjectName(QString::fromUtf8("groupBoxAdvanced"));
00158 gridLayout1 = new QGridLayout(groupBoxAdvanced);
00159 #ifndef Q_OS_MAC
00160 gridLayout1->setSpacing(6);
00161 #endif
00162 #ifndef Q_OS_MAC
00163 gridLayout1->setMargin(9);
00164 #endif
00165 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00166 label_4 = new QLabel(groupBoxAdvanced);
00167 label_4->setObjectName(QString::fromUtf8("label_4"));
00168
00169 gridLayout1->addWidget(label_4, 0, 0, 1, 1);
00170
00171 comboBoxFftSize = new QComboBox(groupBoxAdvanced);
00172 comboBoxFftSize->setObjectName(QString::fromUtf8("comboBoxFftSize"));
00173
00174 gridLayout1->addWidget(comboBoxFftSize, 0, 1, 1, 1);
00175
00176 comboBoxWindowing = new QComboBox(groupBoxAdvanced);
00177 comboBoxWindowing->setObjectName(QString::fromUtf8("comboBoxWindowing"));
00178
00179 gridLayout1->addWidget(comboBoxWindowing, 1, 1, 1, 1);
00180
00181 label_5 = new QLabel(groupBoxAdvanced);
00182 label_5->setObjectName(QString::fromUtf8("label_5"));
00183
00184 gridLayout1->addWidget(label_5, 1, 0, 1, 1);
00185
00186
00187 vboxLayout->addWidget(groupBoxAdvanced);
00188
00189 hboxLayout = new QHBoxLayout();
00190 #ifndef Q_OS_MAC
00191 hboxLayout->setSpacing(6);
00192 #endif
00193 hboxLayout->setMargin(0);
00194 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00195 buttonAdvanced = new QPushButton(SpectralMeterConfigWidget);
00196 buttonAdvanced->setObjectName(QString::fromUtf8("buttonAdvanced"));
00197 buttonAdvanced->setCheckable(true);
00198
00199 hboxLayout->addWidget(buttonAdvanced);
00200
00201 spacerItem = new QSpacerItem(271, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00202
00203 hboxLayout->addItem(spacerItem);
00204
00205 buttonApply = new QPushButton(SpectralMeterConfigWidget);
00206 buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
00207 buttonApply->setAutoDefault(true);
00208
00209 hboxLayout->addWidget(buttonApply);
00210
00211 buttonClose = new QPushButton(SpectralMeterConfigWidget);
00212 buttonClose->setObjectName(QString::fromUtf8("buttonClose"));
00213
00214 hboxLayout->addWidget(buttonClose);
00215
00216
00217 vboxLayout->addLayout(hboxLayout);
00218
00219 QWidget::setTabOrder(spinBoxUpperFreq, spinBoxLowerFreq);
00220 QWidget::setTabOrder(spinBoxLowerFreq, spinBoxUpperDb);
00221 QWidget::setTabOrder(spinBoxUpperDb, spinBoxLowerDb);
00222 QWidget::setTabOrder(spinBoxLowerDb, spinBoxNumBands);
00223 QWidget::setTabOrder(spinBoxNumBands, checkBoxAverage);
00224 QWidget::setTabOrder(checkBoxAverage, comboBoxFftSize);
00225 QWidget::setTabOrder(comboBoxFftSize, comboBoxWindowing);
00226 QWidget::setTabOrder(comboBoxWindowing, buttonApply);
00227 QWidget::setTabOrder(buttonApply, buttonClose);
00228 QWidget::setTabOrder(buttonClose, buttonAdvanced);
00229
00230 retranslateUi(SpectralMeterConfigWidget);
00231 QObject::connect(checkBoxAverage, SIGNAL(clicked()), buttonApply, SLOT(animateClick()));
00232
00233 comboBoxFftSize->setCurrentIndex(3);
00234
00235
00236 QMetaObject::connectSlotsByName(SpectralMeterConfigWidget);
00237 }
00238
00239 void retranslateUi(QWidget *SpectralMeterConfigWidget)
00240 {
00241 SpectralMeterConfigWidget->setWindowTitle(QApplication::translate("SpectralMeterConfigWidget", "FFT-Spectrum Configuration", 0, QApplication::UnicodeUTF8));
00242 groupBox->setTitle(QApplication::translate("SpectralMeterConfigWidget", "Frequency Range", 0, QApplication::UnicodeUTF8));
00243 checkBoxAverage->setText(QApplication::translate("SpectralMeterConfigWidget", "Show average spectrum", 0, QApplication::UnicodeUTF8));
00244 label_2->setText(QApplication::translate("SpectralMeterConfigWidget", "Number of bands:", 0, QApplication::UnicodeUTF8));
00245 label_6->setText(QApplication::translate("SpectralMeterConfigWidget", "Lower dB value:", 0, QApplication::UnicodeUTF8));
00246 label_7->setText(QApplication::translate("SpectralMeterConfigWidget", "Upper dB value:", 0, QApplication::UnicodeUTF8));
00247 spinBoxLowerFreq->setSuffix(QApplication::translate("SpectralMeterConfigWidget", " Hz", 0, QApplication::UnicodeUTF8));
00248 label->setText(QApplication::translate("SpectralMeterConfigWidget", "Lower Limit:", 0, QApplication::UnicodeUTF8));
00249 spinBoxUpperFreq->setSuffix(QApplication::translate("SpectralMeterConfigWidget", " Hz", 0, QApplication::UnicodeUTF8));
00250 label_3->setText(QApplication::translate("SpectralMeterConfigWidget", "Upper Limit:", 0, QApplication::UnicodeUTF8));
00251 groupBoxAdvanced->setTitle(QApplication::translate("SpectralMeterConfigWidget", "Advanced FFT Options", 0, QApplication::UnicodeUTF8));
00252 label_4->setText(QApplication::translate("SpectralMeterConfigWidget", "FFT Size:", 0, QApplication::UnicodeUTF8));
00253 comboBoxFftSize->clear();
00254 comboBoxFftSize->insertItems(0, QStringList()
00255 << QApplication::translate("SpectralMeterConfigWidget", "256", 0, QApplication::UnicodeUTF8)
00256 << QApplication::translate("SpectralMeterConfigWidget", "512", 0, QApplication::UnicodeUTF8)
00257 << QApplication::translate("SpectralMeterConfigWidget", "1024", 0, QApplication::UnicodeUTF8)
00258 << QApplication::translate("SpectralMeterConfigWidget", "2048", 0, QApplication::UnicodeUTF8)
00259 << QApplication::translate("SpectralMeterConfigWidget", "4096", 0, QApplication::UnicodeUTF8)
00260 << QApplication::translate("SpectralMeterConfigWidget", "8192", 0, QApplication::UnicodeUTF8)
00261 );
00262 comboBoxWindowing->clear();
00263 comboBoxWindowing->insertItems(0, QStringList()
00264 << QApplication::translate("SpectralMeterConfigWidget", "Rectangle", 0, QApplication::UnicodeUTF8)
00265 << QApplication::translate("SpectralMeterConfigWidget", "Hanning", 0, QApplication::UnicodeUTF8)
00266 << QApplication::translate("SpectralMeterConfigWidget", "Hamming", 0, QApplication::UnicodeUTF8)
00267 << QApplication::translate("SpectralMeterConfigWidget", "Blackman", 0, QApplication::UnicodeUTF8)
00268 );
00269 label_5->setText(QApplication::translate("SpectralMeterConfigWidget", "Windowing function:", 0, QApplication::UnicodeUTF8));
00270 buttonAdvanced->setText(QApplication::translate("SpectralMeterConfigWidget", "Advanced", 0, QApplication::UnicodeUTF8));
00271 buttonApply->setText(QApplication::translate("SpectralMeterConfigWidget", "Apply", 0, QApplication::UnicodeUTF8));
00272 buttonClose->setText(QApplication::translate("SpectralMeterConfigWidget", "&Close", 0, QApplication::UnicodeUTF8));
00273 Q_UNUSED(SpectralMeterConfigWidget);
00274 }
00275
00276 };
00277
00278 namespace Ui {
00279 class SpectralMeterConfigWidget: public Ui_SpectralMeterConfigWidget {};
00280 }
00281
00282 QT_END_NAMESPACE
00283
00284 #endif // UI_SPECTRALMETERCONFIGWIDGET_H