svgui  1.9
CSVFormatDialog.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Sonic Visualiser
5  An audio file viewer and annotation editor.
6  Centre for Digital Music, Queen Mary, University of London.
7  This file copyright 2006 Chris Cannam.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14 */
15 
16 #ifndef _CSV_FORMAT_DIALOG_H_
17 #define _CSV_FORMAT_DIALOG_H_
18 
19 #include "data/fileio/CSVFormat.h"
20 
21 class QTableWidget;
22 class QComboBox;
23 class QLabel;
24 
25 #include <QDialog>
26 
27 class CSVFormatDialog : public QDialog
28 {
29  Q_OBJECT
30 
31 public:
32  CSVFormatDialog(QWidget *parent, CSVFormat initialFormat,
33  int maxDisplayCols = 5);
35 
36  CSVFormat getFormat() const;
37 
38 protected slots:
39  void timingTypeChanged(int type);
40  void sampleRateChanged(QString);
41  void windowSizeChanged(QString);
42  void columnPurposeChanged(int purpose);
43  void updateModelLabel();
44 
45 protected:
46  CSVFormat m_format;
48 
49  QComboBox *m_timingTypeCombo;
51  QComboBox *m_sampleRateCombo;
53  QComboBox *m_windowSizeCombo;
54  QLabel *m_modelLabel;
55 
56  QList<QComboBox *> m_columnPurposeCombos;
58 };
59 
60 #endif
void windowSizeChanged(QString)
void timingTypeChanged(int type)
CSVFormat getFormat() const
QLabel * m_modelLabel
QComboBox * m_timingTypeCombo
CSVFormat m_format
CSVFormatDialog(QWidget *parent, CSVFormat initialFormat, int maxDisplayCols=5)
void columnPurposeChanged(int purpose)
QLabel * m_sampleRateLabel
QComboBox * m_sampleRateCombo
QComboBox * m_windowSizeCombo
void sampleRateChanged(QString)
QList< QComboBox * > m_columnPurposeCombos
QLabel * m_windowSizeLabel