Mercurial > hg > svgui
comparison widgets/CSVFormatDialog.h @ 378:22b72f0f6a4e
* More work to abstract out interactive components used in the data library,
so that it does not need to depend on QtGui.
author | Chris Cannam |
---|---|
date | Fri, 14 Mar 2008 17:14:21 +0000 |
parents | |
children | 5bcfc5606528 |
comparison
equal
deleted
inserted
replaced
377:0bcb449d15f4 | 378:22b72f0f6a4e |
---|---|
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 size_t defaultSampleRate); | |
34 ~CSVFormatDialog(); | |
35 | |
36 CSVFormat getFormat() const; | |
37 | |
38 protected slots: | |
39 void modelTypeChanged(int type); | |
40 void timingTypeChanged(int type); | |
41 void sampleRateChanged(QString); | |
42 void windowSizeChanged(QString); | |
43 | |
44 protected: | |
45 CSVFormat::ModelType m_modelType; | |
46 CSVFormat::TimingType m_timingType; | |
47 CSVFormat::TimeUnits m_timeUnits; | |
48 | |
49 QString m_separator; | |
50 size_t m_sampleRate; | |
51 size_t m_windowSize; | |
52 | |
53 QString::SplitBehavior m_behaviour; | |
54 | |
55 QList<QStringList> m_example; | |
56 int m_maxExampleCols; | |
57 QTableWidget *m_exampleWidget; | |
58 | |
59 QComboBox *m_modelTypeCombo; | |
60 QComboBox *m_timingTypeCombo; | |
61 QLabel *m_sampleRateLabel; | |
62 QComboBox *m_sampleRateCombo; | |
63 QLabel *m_windowSizeLabel; | |
64 QComboBox *m_windowSizeCombo; | |
65 | |
66 void populateExample(); | |
67 }; | |
68 | |
69 #endif |