#include <CSVExportDialog.h>

Inheritance diagram for CSVExportDialog:
Inheritance graph
Collaboration diagram for CSVExportDialog:
Collaboration graph

Classes

struct  Configuration
 

Public Member Functions

 CSVExportDialog (Configuration config, QWidget *parent)
 !! todo: remember & re-apply last set of options chosen for this layer type More...
 
QString getDelimiter () const
 Return the column delimiter to use in the exported file. More...
 
bool shouldIncludeHeader () const
 Return true if we should include a header row at the top of the exported file. More...
 
bool shouldIncludeTimestamps () const
 Return true if we should write a timestamp column. More...
 
bool shouldWriteTimeInFrames () const
 Return true if we should use sample frames rather than seconds for the timestamp column (and duration where present). More...
 
bool shouldConstrainToViewHeight () const
 Return true if we should constrain the vertical range to the visible area only. More...
 
bool shouldConstrainToSelection () const
 Return true if we should export the selected time range(s) only. More...
 

Private Slots

void timestampsToggled (bool)
 

Private Attributes

Configuration m_config
 
QComboBox * m_separatorCombo
 
QCheckBox * m_header
 
QCheckBox * m_timestamps
 
QRadioButton * m_seconds
 
QRadioButton * m_frames
 
QRadioButton * m_selectionOnly
 
QRadioButton * m_viewOnly
 

Detailed Description

Definition at line 25 of file CSVExportDialog.h.

Constructor & Destructor Documentation

Member Function Documentation

QString CSVExportDialog::getDelimiter ( ) const

Return the column delimiter to use in the exported file.

Either the default for the supplied file extension, or some other option chosen by the user.

Definition at line 200 of file CSVExportDialog.cpp.

References m_separatorCombo.

bool CSVExportDialog::shouldIncludeHeader ( ) const

Return true if we should include a header row at the top of the exported file.

Definition at line 206 of file CSVExportDialog.cpp.

References m_header.

bool CSVExportDialog::shouldIncludeTimestamps ( ) const

Return true if we should write a timestamp column.

This is always true for non-dense models, but is a user option for dense ones.

Definition at line 212 of file CSVExportDialog.cpp.

References m_timestamps.

Referenced by shouldWriteTimeInFrames().

bool CSVExportDialog::shouldWriteTimeInFrames ( ) const

Return true if we should use sample frames rather than seconds for the timestamp column (and duration where present).

Definition at line 218 of file CSVExportDialog.cpp.

References m_frames, and shouldIncludeTimestamps().

bool CSVExportDialog::shouldConstrainToViewHeight ( ) const

Return true if we should constrain the vertical range to the visible area only.

Otherwise we should export the full vertical range of the model.

Definition at line 224 of file CSVExportDialog.cpp.

References m_viewOnly.

bool CSVExportDialog::shouldConstrainToSelection ( ) const

Return true if we should export the selected time range(s) only.

Otherwise we should export the full length of the model.

Definition at line 230 of file CSVExportDialog.cpp.

References m_selectionOnly.

void CSVExportDialog::timestampsToggled ( bool  on)
privateslot

Definition at line 193 of file CSVExportDialog.cpp.

References m_frames, and m_seconds.

Referenced by CSVExportDialog().

Member Data Documentation

Configuration CSVExportDialog::m_config
private

Definition at line 111 of file CSVExportDialog.h.

Referenced by CSVExportDialog().

QComboBox* CSVExportDialog::m_separatorCombo
private

Definition at line 113 of file CSVExportDialog.h.

Referenced by CSVExportDialog(), and getDelimiter().

QCheckBox* CSVExportDialog::m_header
private

Definition at line 114 of file CSVExportDialog.h.

Referenced by CSVExportDialog(), and shouldIncludeHeader().

QCheckBox* CSVExportDialog::m_timestamps
private

Definition at line 115 of file CSVExportDialog.h.

Referenced by CSVExportDialog(), and shouldIncludeTimestamps().

QRadioButton* CSVExportDialog::m_seconds
private

Definition at line 116 of file CSVExportDialog.h.

Referenced by CSVExportDialog(), and timestampsToggled().

QRadioButton* CSVExportDialog::m_frames
private

Definition at line 117 of file CSVExportDialog.h.

Referenced by CSVExportDialog(), shouldWriteTimeInFrames(), and timestampsToggled().

QRadioButton* CSVExportDialog::m_selectionOnly
private

Definition at line 118 of file CSVExportDialog.h.

Referenced by CSVExportDialog(), and shouldConstrainToSelection().

QRadioButton* CSVExportDialog::m_viewOnly
private

Definition at line 119 of file CSVExportDialog.h.

Referenced by CSVExportDialog(), and shouldConstrainToViewHeight().


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