diff widgets/CSVFormatDialog.h @ 1318:b149b53df365 import-audio-data

Support audio-format CSV format selection in dialog
author Chris Cannam
date Thu, 06 Sep 2018 11:49:31 +0100
parents fcc1f45f7bd5
children fbda05431ce0
line wrap: on
line diff
--- a/widgets/CSVFormatDialog.h	Tue Sep 04 13:19:32 2018 +0100
+++ b/widgets/CSVFormatDialog.h	Thu Sep 06 11:49:31 2018 +0100
@@ -29,7 +29,8 @@
     Q_OBJECT
     
 public:
-    CSVFormatDialog(QWidget *parent, CSVFormat initialFormat,
+    CSVFormatDialog(QWidget *parent,
+                    CSVFormat initialFormat,
                     int maxDisplayCols = 5);
     ~CSVFormatDialog();
 
@@ -45,9 +46,15 @@
     void updateModelLabel();
 
 protected:
+    enum DialogType {
+        AnnotationDataDialog,
+        AudioDataDialog
+    };
+    DialogType m_dialogType;
+
     CSVFormat m_format;
     int m_maxDisplayCols;
-
+    
     enum TimingOption {
         TimingExplicitSeconds = 0,
         TimingExplicitMsec,
@@ -57,6 +64,7 @@
     std::map<TimingOption, QString> m_timingLabels;
     TimingOption m_initialTimingOption;
 
+    void columnPurposeChangedForAnnotationType(QComboBox *, int purpose);
     void updateComboVisibility();
     void applyStartTimePurpose();
     void removeStartTimePurpose();