#include <CSVFormatDialog.h>

Inheritance diagram for CSVFormatDialog:
Inheritance graph
Collaboration diagram for CSVFormatDialog:
Collaboration graph

Public Member Functions

 CSVFormatDialog (QWidget *parent, CSVFormat initialFormat, int maxDisplayCols)
 
 CSVFormatDialog (QWidget *parent, QString csvFilePath, sv_samplerate_t referenceSampleRate, int maxDisplayCols)
 
 ~CSVFormatDialog ()
 
CSVFormat getFormat () const
 

Protected Types

enum  TimingOption { TimingExplicitSeconds = 0, TimingExplicitMsec, TimingExplicitSamples, TimingImplicit }
 

Protected Slots

void headerChanged (bool)
 
void separatorChanged (QString)
 
void timingTypeChanged (int type)
 
void sampleRateChanged (QString)
 
void windowSizeChanged (QString)
 
void columnPurposeChanged (int purpose)
 
void updateFormatFromDialog ()
 
void updateModelLabel ()
 

Protected Member Functions

void init ()
 
void repopulate ()
 
void columnPurposeChangedForAnnotationType (QComboBox *, int purpose)
 
void updateComboVisibility ()
 
void applyStartTimePurpose ()
 
void removeStartTimePurpose ()
 

Protected Attributes

QString m_csvFilePath
 
sv_samplerate_t m_referenceSampleRate
 
CSVFormat m_format
 
int m_maxDisplayCols
 
std::map< TimingOption, QString > m_timingLabels
 
TimingOption m_initialTimingOption
 
QString m_tabText
 
QString m_whitespaceText
 
QFrame * m_exampleFrame
 
int m_exampleFrameRow
 
QCheckBox * m_headerCheckBox
 
QComboBox * m_separatorCombo
 
QComboBox * m_timingTypeCombo
 
QLabel * m_sampleRateLabel
 
QComboBox * m_sampleRateCombo
 
QLabel * m_windowSizeLabel
 
QComboBox * m_windowSizeCombo
 
QLabel * m_modelLabel
 
QList< QComboBox * > m_columnPurposeCombos
 
int m_fuzzyColumn
 

Detailed Description

Definition at line 29 of file CSVFormatDialog.h.

Member Enumeration Documentation

Enumerator
TimingExplicitSeconds 
TimingExplicitMsec 
TimingExplicitSamples 
TimingImplicit 

Definition at line 64 of file CSVFormatDialog.h.

Constructor & Destructor Documentation

CSVFormatDialog::CSVFormatDialog ( QWidget *  parent,
CSVFormat  initialFormat,
int  maxDisplayCols 
)

Definition at line 38 of file CSVFormatDialog.cpp.

References init().

CSVFormatDialog::CSVFormatDialog ( QWidget *  parent,
QString  csvFilePath,
sv_samplerate_t  referenceSampleRate,
int  maxDisplayCols 
)

Definition at line 51 of file CSVFormatDialog.cpp.

References init(), and m_format.

CSVFormatDialog::~CSVFormatDialog ( )

Definition at line 66 of file CSVFormatDialog.cpp.

Member Function Documentation

CSVFormat CSVFormatDialog::getFormat ( ) const

Definition at line 322 of file CSVFormatDialog.cpp.

References m_format.

void CSVFormatDialog::headerChanged ( bool  header)
protectedslot

Definition at line 422 of file CSVFormatDialog.cpp.

References m_csvFilePath, m_format, and repopulate().

Referenced by init().

void CSVFormatDialog::separatorChanged ( QString  sep)
protectedslot

Definition at line 433 of file CSVFormatDialog.cpp.

References m_csvFilePath, m_format, m_tabText, m_whitespaceText, and repopulate().

Referenced by init().

void CSVFormatDialog::timingTypeChanged ( int  type)
protectedslot
void CSVFormatDialog::sampleRateChanged ( QString  rateString)
protectedslot

Definition at line 465 of file CSVFormatDialog.cpp.

References m_format.

Referenced by init().

void CSVFormatDialog::windowSizeChanged ( QString  sizeString)
protectedslot

Definition at line 473 of file CSVFormatDialog.cpp.

References m_format.

Referenced by init().

void CSVFormatDialog::columnPurposeChanged ( int  purpose)
protectedslot
void CSVFormatDialog::updateFormatFromDialog ( )
protectedslot
void CSVFormatDialog::columnPurposeChangedForAnnotationType ( QComboBox *  ,
int  purpose 
)
protected
void CSVFormatDialog::updateComboVisibility ( )
protected
void CSVFormatDialog::applyStartTimePurpose ( )
protected

Definition at line 366 of file CSVFormatDialog.cpp.

References m_columnPurposeCombos, and m_fuzzyColumn.

Referenced by timingTypeChanged().

void CSVFormatDialog::removeStartTimePurpose ( )
protected

Definition at line 393 of file CSVFormatDialog.cpp.

References m_columnPurposeCombos, and m_fuzzyColumn.

Referenced by timingTypeChanged().

Member Data Documentation

QString CSVFormatDialog::m_csvFilePath
protected

Definition at line 59 of file CSVFormatDialog.h.

Referenced by headerChanged(), init(), and separatorChanged().

sv_samplerate_t CSVFormatDialog::m_referenceSampleRate
protected

Definition at line 60 of file CSVFormatDialog.h.

int CSVFormatDialog::m_maxDisplayCols
protected

Definition at line 62 of file CSVFormatDialog.h.

Referenced by repopulate().

std::map<TimingOption, QString> CSVFormatDialog::m_timingLabels
protected

Definition at line 70 of file CSVFormatDialog.h.

Referenced by init().

TimingOption CSVFormatDialog::m_initialTimingOption
protected

Definition at line 71 of file CSVFormatDialog.h.

Referenced by columnPurposeChanged(), and repopulate().

QString CSVFormatDialog::m_tabText
protected

Definition at line 80 of file CSVFormatDialog.h.

Referenced by init(), and separatorChanged().

QString CSVFormatDialog::m_whitespaceText
protected

Definition at line 81 of file CSVFormatDialog.h.

Referenced by init(), and separatorChanged().

QFrame* CSVFormatDialog::m_exampleFrame
protected

Definition at line 83 of file CSVFormatDialog.h.

Referenced by init(), and repopulate().

int CSVFormatDialog::m_exampleFrameRow
protected

Definition at line 84 of file CSVFormatDialog.h.

Referenced by init(), and repopulate().

QCheckBox* CSVFormatDialog::m_headerCheckBox
protected

Definition at line 86 of file CSVFormatDialog.h.

Referenced by init().

QComboBox* CSVFormatDialog::m_separatorCombo
protected

Definition at line 87 of file CSVFormatDialog.h.

Referenced by init().

QComboBox* CSVFormatDialog::m_timingTypeCombo
protected

Definition at line 88 of file CSVFormatDialog.h.

Referenced by columnPurposeChanged(), init(), repopulate(), and updateFormatFromDialog().

QLabel* CSVFormatDialog::m_sampleRateLabel
protected

Definition at line 89 of file CSVFormatDialog.h.

Referenced by init(), and updateComboVisibility().

QComboBox* CSVFormatDialog::m_sampleRateCombo
protected

Definition at line 90 of file CSVFormatDialog.h.

Referenced by init(), repopulate(), and updateComboVisibility().

QLabel* CSVFormatDialog::m_windowSizeLabel
protected

Definition at line 91 of file CSVFormatDialog.h.

Referenced by init(), and updateComboVisibility().

QComboBox* CSVFormatDialog::m_windowSizeCombo
protected

Definition at line 92 of file CSVFormatDialog.h.

Referenced by init(), repopulate(), and updateComboVisibility().

QLabel* CSVFormatDialog::m_modelLabel
protected

Definition at line 93 of file CSVFormatDialog.h.

Referenced by init(), and updateModelLabel().

QList<QComboBox *> CSVFormatDialog::m_columnPurposeCombos
protected
int CSVFormatDialog::m_fuzzyColumn
protected

The documentation for this class was generated from the following files: