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@378: This file copyright 2006 Chris Cannam. 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@378: #ifndef _CSV_FORMAT_DIALOG_H_ Chris@378: #define _CSV_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@378: class CSVFormatDialog : public QDialog Chris@378: { Chris@378: Q_OBJECT Chris@378: Chris@378: public: Chris@581: CSVFormatDialog(QWidget *parent, CSVFormat initialFormat, Chris@581: int maxDisplayCols = 5); Chris@378: ~CSVFormatDialog(); Chris@378: Chris@378: CSVFormat getFormat() const; Chris@378: Chris@378: protected slots: Chris@378: void timingTypeChanged(int type); Chris@378: void sampleRateChanged(QString); Chris@378: void windowSizeChanged(QString); Chris@560: void columnPurposeChanged(int purpose); Chris@561: void updateModelLabel(); Chris@378: Chris@378: protected: Chris@560: CSVFormat m_format; Chris@581: int m_maxDisplayCols; Chris@378: Chris@378: QComboBox *m_timingTypeCombo; Chris@378: QLabel *m_sampleRateLabel; Chris@378: QComboBox *m_sampleRateCombo; Chris@378: QLabel *m_windowSizeLabel; Chris@378: QComboBox *m_windowSizeCombo; Chris@561: QLabel *m_modelLabel; Chris@378: Chris@560: QList m_columnPurposeCombos; Chris@581: int m_fuzzyColumn; Chris@378: }; Chris@378: Chris@378: #endif