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@378: CSVFormatDialog(QWidget *parent, CSVFormat initialFormat, Chris@378: size_t defaultSampleRate); Chris@378: ~CSVFormatDialog(); Chris@378: Chris@378: CSVFormat getFormat() const; Chris@378: Chris@378: protected slots: Chris@378: void modelTypeChanged(int type); Chris@378: void timingTypeChanged(int type); Chris@378: void sampleRateChanged(QString); Chris@378: void windowSizeChanged(QString); Chris@378: Chris@378: protected: Chris@378: CSVFormat::ModelType m_modelType; Chris@378: CSVFormat::TimingType m_timingType; Chris@378: CSVFormat::TimeUnits m_timeUnits; Chris@378: Chris@378: QString m_separator; Chris@378: size_t m_sampleRate; Chris@378: size_t m_windowSize; Chris@378: Chris@378: QString::SplitBehavior m_behaviour; Chris@378: Chris@378: QList m_example; Chris@378: int m_maxExampleCols; Chris@378: QTableWidget *m_exampleWidget; Chris@378: Chris@378: QComboBox *m_modelTypeCombo; 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@378: Chris@378: void populateExample(); Chris@378: }; Chris@378: Chris@378: #endif