// wavewidget_test.h // // Test harness for RDWaveWidget // // (C) Copyright 2021 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public // License along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // #ifndef WAVEWIDGET_TEST_H #define WAVEWIDGET_TEST_H #include #include #include #include #include #include #include #include #include #define WAVEWIDGET_TEST_USAGE "--cart-number= --cut-number= --track-mode=single|multi\n" class MainWidget : public QWidget { Q_OBJECT public: MainWidget(QWidget *parent=0); QSize sizeHint() const; private slots: void userData(); void upShrinkData(); void downShrinkData(); void gainChangedData(int db); protected: void resizeEvent(QResizeEvent *e); private: RDWaveWidget *d_wave_widget; RDCut *d_cut; unsigned d_cart_number; int d_cut_number; RDWaveWidget::TrackMode d_track_mode; RDFontEngine *d_font_engine; RDTransportButton *d_up_button; RDTransportButton *d_down_button; QLineEdit *d_shrink_factor_edit; QGroupBox *d_shrink_factor_group; QLabel *d_audio_gain_label; QSpinBox *d_audio_gain_spin; QLabel *d_audio_gain_unit; }; #endif // WAVEWIDGET_TEST_H