Chris@378: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@378: Chris@378: /* Chris@378: Sonic Visualiser Chris@378: An audio file viewer and annotation editor. Chris@378: Centre for Digital Music, Queen Mary, University of London. Chris@1319: This file copyright 2006-2018 Chris Cannam and QMUL. Chris@378: Chris@378: This program is free software; you can redistribute it and/or Chris@378: modify it under the terms of the GNU General Public License as Chris@378: published by the Free Software Foundation; either version 2 of the Chris@378: License, or (at your option) any later version. See the file Chris@378: COPYING included with this distribution for more information. Chris@378: */ Chris@378: Chris@1319: #ifndef SV_CSV_AUDIO_FORMAT_DIALOG_H Chris@1319: #define SV_CSV_AUDIO_FORMAT_DIALOG_H Chris@378: Chris@378: #include "data/fileio/CSVFormat.h" Chris@378: Chris@378: class QTableWidget; Chris@378: class QComboBox; Chris@378: class QLabel; Chris@378: Chris@378: #include Chris@378: Chris@1319: class CSVAudioFormatDialog : public QDialog Chris@378: { Chris@378: Q_OBJECT Chris@378: Chris@378: public: Chris@1319: CSVAudioFormatDialog(QWidget *parent, Chris@1319: CSVFormat initialFormat, Chris@1319: int maxDisplayCols = 5); Chris@1319: ~CSVAudioFormatDialog(); Chris@378: Chris@378: CSVFormat getFormat() const; Chris@378: Chris@378: protected slots: Chris@378: void sampleRateChanged(QString); Chris@560: void columnPurposeChanged(int purpose); Chris@959: Chris@959: void updateFormatFromDialog(); Chris@378: Chris@378: protected: Chris@560: CSVFormat m_format; Chris@581: int m_maxDisplayCols; Chris@1318: Chris@378: QLabel *m_sampleRateLabel; Chris@378: QComboBox *m_sampleRateCombo; Chris@378: Chris@560: QList m_columnPurposeCombos; Chris@581: int m_fuzzyColumn; Chris@378: }; Chris@378: Chris@378: #endif