Engauge Digitizer  2
Public Member Functions | List of all members
ExportToFile Class Reference

Strategy class for exporting to a file. This strategy is external to the Document class so that class is simpler. More...

#include <ExportToFile.h>

Public Member Functions

 ExportToFile ()
 Single constructor.
 
void exportToFile (const DocumentModelExportFormat &modelExport, const Document &document, const MainWindowModel &modelMainWindow, const Transformation &transformation, QTextStream &str) const
 Export Document points according to the settings. More...
 
QString fileExtensionCsv () const
 File extension for csv export files.
 
QString fileExtensionTsv () const
 File extension for tsv export files.
 
QString filterCsv () const
 QFileDialog filter for CSV files.
 
QString filterTsv () const
 QFileDialog filter for TSV files.
 

Detailed Description

Strategy class for exporting to a file. This strategy is external to the Document class so that class is simpler.

Definition at line 25 of file ExportToFile.h.

Member Function Documentation

◆ exportToFile()

void ExportToFile::exportToFile ( const DocumentModelExportFormat modelExport,
const Document document,
const MainWindowModel modelMainWindow,
const Transformation transformation,
QTextStream &  str 
) const

Export Document points according to the settings.

The DocumentModelExportFormat inside the Document is ignored so DlgSettingsExport can supply its own DocumentModelExportFormat when previewing what would be exported.

Definition at line 23 of file ExportToFile.cpp.


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