svgui  1.9
CSVFormatDialog.h
Go to the documentation of this file.
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
00002 
00003 /*
00004     Sonic Visualiser
00005     An audio file viewer and annotation editor.
00006     Centre for Digital Music, Queen Mary, University of London.
00007     This file copyright 2006 Chris Cannam.
00008     
00009     This program is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU General Public License as
00011     published by the Free Software Foundation; either version 2 of the
00012     License, or (at your option) any later version.  See the file
00013     COPYING included with this distribution for more information.
00014 */
00015 
00016 #ifndef _CSV_FORMAT_DIALOG_H_
00017 #define _CSV_FORMAT_DIALOG_H_
00018 
00019 #include "data/fileio/CSVFormat.h"
00020 
00021 class QTableWidget;
00022 class QComboBox;
00023 class QLabel;
00024     
00025 #include <QDialog>
00026 
00027 class CSVFormatDialog : public QDialog
00028 {
00029     Q_OBJECT
00030     
00031 public:
00032     CSVFormatDialog(QWidget *parent, CSVFormat initialFormat,
00033                     int maxDisplayCols = 5);
00034     ~CSVFormatDialog();
00035 
00036     CSVFormat getFormat() const;
00037     
00038 protected slots:
00039     void timingTypeChanged(int type);
00040     void sampleRateChanged(QString);
00041     void windowSizeChanged(QString);
00042     void columnPurposeChanged(int purpose);
00043     void updateModelLabel();
00044 
00045 protected:
00046     CSVFormat m_format;
00047     int m_maxDisplayCols;
00048     
00049     QComboBox *m_timingTypeCombo;
00050     QLabel *m_sampleRateLabel;
00051     QComboBox *m_sampleRateCombo;
00052     QLabel *m_windowSizeLabel;
00053     QComboBox *m_windowSizeCombo;
00054     QLabel *m_modelLabel;
00055 
00056     QList<QComboBox *> m_columnPurposeCombos;
00057     int m_fuzzyColumn;
00058 };
00059 
00060 #endif