Mercurial > hg > svgui
comparison widgets/CSVFormatDialog.h @ 1324:13d9b422f7fe zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:31 +0100 |
parents | fbda05431ce0 |
children | 0930a27ebea2 |
comparison
equal
deleted
inserted
replaced
1183:57d192e26331 | 1324:13d9b422f7fe |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _CSV_FORMAT_DIALOG_H_ | 16 #ifndef SV_CSV_FORMAT_DIALOG_H |
17 #define _CSV_FORMAT_DIALOG_H_ | 17 #define SV_CSV_FORMAT_DIALOG_H |
18 | 18 |
19 #include "data/fileio/CSVFormat.h" | 19 #include "data/fileio/CSVFormat.h" |
20 | 20 |
21 class QTableWidget; | 21 class QTableWidget; |
22 class QComboBox; | 22 class QComboBox; |
27 class CSVFormatDialog : public QDialog | 27 class CSVFormatDialog : public QDialog |
28 { | 28 { |
29 Q_OBJECT | 29 Q_OBJECT |
30 | 30 |
31 public: | 31 public: |
32 CSVFormatDialog(QWidget *parent, CSVFormat initialFormat, | 32 CSVFormatDialog(QWidget *parent, |
33 CSVFormat initialFormat, | |
33 int maxDisplayCols = 5); | 34 int maxDisplayCols = 5); |
34 ~CSVFormatDialog(); | 35 ~CSVFormatDialog(); |
35 | 36 |
36 CSVFormat getFormat() const; | 37 CSVFormat getFormat() const; |
37 | 38 |
45 void updateModelLabel(); | 46 void updateModelLabel(); |
46 | 47 |
47 protected: | 48 protected: |
48 CSVFormat m_format; | 49 CSVFormat m_format; |
49 int m_maxDisplayCols; | 50 int m_maxDisplayCols; |
50 | 51 |
51 enum TimingOption { | 52 enum TimingOption { |
52 TimingExplicitSeconds = 0, | 53 TimingExplicitSeconds = 0, |
53 TimingExplicitMsec, | 54 TimingExplicitMsec, |
54 TimingExplicitSamples, | 55 TimingExplicitSamples, |
55 TimingImplicit | 56 TimingImplicit |
56 }; | 57 }; |
57 std::map<TimingOption, QString> m_timingLabels; | 58 std::map<TimingOption, QString> m_timingLabels; |
58 TimingOption m_initialTimingOption; | 59 TimingOption m_initialTimingOption; |
59 | 60 |
61 void columnPurposeChangedForAnnotationType(QComboBox *, int purpose); | |
60 void updateComboVisibility(); | 62 void updateComboVisibility(); |
61 void applyStartTimePurpose(); | 63 void applyStartTimePurpose(); |
62 void removeStartTimePurpose(); | 64 void removeStartTimePurpose(); |
63 | 65 |
64 QComboBox *m_timingTypeCombo; | 66 QComboBox *m_timingTypeCombo; |