CSVFormatDialog Class Reference

#include <CSVFileReader.h>

List of all members.


Detailed Description

Definition at line 48 of file CSVFileReader.h.

Public Types

enum  ModelType { OneDimensionalModel, TwoDimensionalModel, ThreeDimensionalModel }
enum  TimingType { ExplicitTiming, ImplicitTiming }
enum  TimeUnits { TimeSeconds, TimeAudioFrames, TimeWindows }

Public Member Functions

 CSVFormatDialog (QWidget *parent, QFile *file, size_t defaultSampleRate)
 ~CSVFormatDialog ()
ModelType getModelType () const
TimingType getTimingType () const
TimeUnits getTimeUnits () const
QString getSeparator () const
size_t getSampleRate () const
size_t getWindowSize () const

Protected Slots

void modelTypeChanged (int type)
void timingTypeChanged (int type)
void sampleRateChanged (QString)
void windowSizeChanged (QString)

Protected Member Functions

bool guessFormat (QFile *file)
void populateExample ()

Protected Attributes

ModelType m_modelType
TimingType m_timingType
TimeUnits m_timeUnits
QString m_separator
size_t m_sampleRate
size_t m_windowSize
QList< QStringList > m_example
int m_maxExampleCols
QTableWidget * m_exampleWidget
QComboBox * m_modelTypeCombo
QComboBox * m_timingTypeCombo
QLabel * m_sampleRateLabel
QComboBox * m_sampleRateCombo
QLabel * m_windowSizeLabel
QComboBox * m_windowSizeCombo


Member Enumeration Documentation

enum CSVFormatDialog::ModelType

Enumerator:
OneDimensionalModel 
TwoDimensionalModel 
ThreeDimensionalModel 

Definition at line 57 of file CSVFileReader.h.

enum CSVFormatDialog::TimingType

Enumerator:
ExplicitTiming 
ImplicitTiming 

Definition at line 63 of file CSVFileReader.h.

enum CSVFormatDialog::TimeUnits

Enumerator:
TimeSeconds 
TimeAudioFrames 
TimeWindows 

Definition at line 68 of file CSVFileReader.h.


Constructor & Destructor Documentation

CSVFormatDialog::CSVFormatDialog ( QWidget *  parent,
QFile *  file,
size_t  defaultSampleRate 
)

Definition at line 293 of file CSVFileReader.cpp.

References ExplicitTiming, guessFormat(), m_example, m_exampleWidget, m_maxExampleCols, m_modelType, m_modelTypeCombo, m_sampleRate, m_sampleRateCombo, m_sampleRateLabel, m_timeUnits, m_timingType, m_timingTypeCombo, m_windowSize, m_windowSizeCombo, m_windowSizeLabel, modelTypeChanged(), sampleRateChanged(), TimeSeconds, timingTypeChanged(), and windowSizeChanged().

CSVFormatDialog::~CSVFormatDialog (  ) 

Definition at line 404 of file CSVFileReader.cpp.


Member Function Documentation

ModelType CSVFormatDialog::getModelType (  )  const [inline]

Definition at line 74 of file CSVFileReader.h.

References m_modelType.

Referenced by CSVFileReader::load().

TimingType CSVFormatDialog::getTimingType (  )  const [inline]

Definition at line 75 of file CSVFileReader.h.

References m_timingType.

Referenced by CSVFileReader::load().

TimeUnits CSVFormatDialog::getTimeUnits (  )  const [inline]

Definition at line 76 of file CSVFileReader.h.

References m_timeUnits.

Referenced by CSVFileReader::load().

QString CSVFormatDialog::getSeparator (  )  const [inline]

Definition at line 77 of file CSVFileReader.h.

References m_separator.

Referenced by CSVFileReader::load().

size_t CSVFormatDialog::getSampleRate (  )  const [inline]

Definition at line 78 of file CSVFileReader.h.

References m_sampleRate.

Referenced by CSVFileReader::load().

size_t CSVFormatDialog::getWindowSize (  )  const [inline]

Definition at line 79 of file CSVFileReader.h.

References m_windowSize.

Referenced by CSVFileReader::load().

void CSVFormatDialog::modelTypeChanged ( int  type  )  [protected, slot]

Definition at line 442 of file CSVFileReader.cpp.

References m_modelType, m_timingTypeCombo, ThreeDimensionalModel, and timingTypeChanged().

Referenced by CSVFormatDialog(), and timingTypeChanged().

void CSVFormatDialog::timingTypeChanged ( int  type  )  [protected, slot]

Definition at line 455 of file CSVFileReader.cpp.

References ExplicitTiming, ImplicitTiming, m_modelType, m_modelTypeCombo, m_sampleRateCombo, m_sampleRateLabel, m_timeUnits, m_timingType, m_windowSizeCombo, m_windowSizeLabel, modelTypeChanged(), populateExample(), ThreeDimensionalModel, TimeAudioFrames, TimeSeconds, and TimeWindows.

Referenced by CSVFormatDialog(), and modelTypeChanged().

void CSVFormatDialog::sampleRateChanged ( QString   )  [protected, slot]

Definition at line 499 of file CSVFileReader.cpp.

References m_sampleRate.

Referenced by CSVFormatDialog().

void CSVFormatDialog::windowSizeChanged ( QString   )  [protected, slot]

Definition at line 507 of file CSVFileReader.cpp.

References m_windowSize.

Referenced by CSVFormatDialog().

bool CSVFormatDialog::guessFormat ( QFile *  file  )  [protected]

Definition at line 515 of file CSVFileReader.cpp.

References ExplicitTiming, ImplicitTiming, m_example, m_maxExampleCols, m_modelType, m_separator, m_timeUnits, m_timingType, OneDimensionalModel, ThreeDimensionalModel, TimeAudioFrames, TimeSeconds, TimeWindows, and TwoDimensionalModel.

Referenced by CSVFormatDialog().

void CSVFormatDialog::populateExample (  )  [protected]

Definition at line 409 of file CSVFileReader.cpp.

References ExplicitTiming, m_example, m_exampleWidget, m_maxExampleCols, and m_timingType.

Referenced by timingTypeChanged().


Member Data Documentation

ModelType CSVFormatDialog::m_modelType [protected]

Definition at line 88 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), getModelType(), guessFormat(), modelTypeChanged(), and timingTypeChanged().

TimingType CSVFormatDialog::m_timingType [protected]

Definition at line 89 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), getTimingType(), guessFormat(), populateExample(), and timingTypeChanged().

TimeUnits CSVFormatDialog::m_timeUnits [protected]

Definition at line 90 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), getTimeUnits(), guessFormat(), and timingTypeChanged().

QString CSVFormatDialog::m_separator [protected]

Definition at line 91 of file CSVFileReader.h.

Referenced by getSeparator(), and guessFormat().

size_t CSVFormatDialog::m_sampleRate [protected]

Definition at line 92 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), getSampleRate(), and sampleRateChanged().

size_t CSVFormatDialog::m_windowSize [protected]

Definition at line 93 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), getWindowSize(), and windowSizeChanged().

QList<QStringList> CSVFormatDialog::m_example [protected]

Definition at line 95 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), guessFormat(), and populateExample().

int CSVFormatDialog::m_maxExampleCols [protected]

Definition at line 96 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), guessFormat(), and populateExample().

QTableWidget* CSVFormatDialog::m_exampleWidget [protected]

Definition at line 97 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), and populateExample().

QComboBox* CSVFormatDialog::m_modelTypeCombo [protected]

Definition at line 99 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), and timingTypeChanged().

QComboBox* CSVFormatDialog::m_timingTypeCombo [protected]

Definition at line 100 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), and modelTypeChanged().

QLabel* CSVFormatDialog::m_sampleRateLabel [protected]

Definition at line 101 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), and timingTypeChanged().

QComboBox* CSVFormatDialog::m_sampleRateCombo [protected]

Definition at line 102 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), and timingTypeChanged().

QLabel* CSVFormatDialog::m_windowSizeLabel [protected]

Definition at line 103 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), and timingTypeChanged().

QComboBox* CSVFormatDialog::m_windowSizeCombo [protected]

Definition at line 104 of file CSVFileReader.h.

Referenced by CSVFormatDialog(), and timingTypeChanged().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:32 2008 for SonicVisualiser by  doxygen 1.5.1