qse
0.5.4
|
#include <qsedataexport.h>
Public Types | |
enum | Option { NoOptions = 0, SaveHeader = 0x01, BriefHeader = 0x02, SingleFile = 0x04, FileHeaderInEach = 0x08, ColumnHeaderLine = 0x10, AutoRename = 0x20 } |
Signals | |
void | dataChanged () |
Public Member Functions | |
QseDataExport (const QString &id, QseDataSet *data, QList< int > selections, QWidget *parent=0) | |
Q_DECLARE_FLAGS (Options, Option) | |
Static Public Member Functions | |
static void | exportSelectedData (const QString &id, QseDataSet *data, QList< int > selections) |
Private Slots | |
void | newDirectory () |
void | upDirectory () |
void | homeDirectory () |
void | directoryChanged (const QModelIndex &index) |
void | directoryChanged (const QString &newdir) |
void | scanSelectAll () |
void | scanSelectNone () |
void | scanRevert () |
void | exportPressed () |
void | cancelPressed () |
void | previewPressed () |
void | newOutputPattern (const QString &patt) |
void | saveHeaderOptionChanged (bool opt) |
void | briefHeaderOptionChanged (bool opt) |
void | singleFileOptionChanged (bool opt) |
void | fileHeaderInEachOptionChanged (bool opt) |
void | columnHeaderLineOptionChanged (bool opt) |
void | autoRenameOptionChanged (bool opt) |
Private Member Functions | |
void | setupConnections () |
void | updateNewDirectory () |
void | readSettings () |
void | writeSettings () |
QList< int > | selectedScans () const |
bool | checkForOverwriting () |
QString | substituteFilenamePatterns (const QString &patt, int index, const QseDataSet *ds) |
void | autoRenameFiles () |
void | updatePreview () |
void | writePreview () |
Private Attributes | |
Ui::QseDataExport | ui |
QString | m_Identifier |
QList< int > | m_Selections |
QseDataSet * | m_DataSet |
int | m_Options |
QDir | m_OutputDir |
QString | m_OutputPattern |
QDirModel | m_DirModel |
QPushButton * | m_PreviewButton |
QseDataExportPreview * | m_Preview |
QseDataExportPreviewUI * | m_PreviewUI |
Definition at line 15 of file qsedataexport.h.
Enumerator | |
---|---|
NoOptions | |
SaveHeader | |
BriefHeader | |
SingleFile | |
FileHeaderInEach | |
ColumnHeaderLine | |
AutoRename |
Definition at line 25 of file qsedataexport.h.
QseDataExport::QseDataExport | ( | const QString & | id, |
QseDataSet * | data, | ||
QList< int > | selections, | ||
QWidget * | parent = 0 |
||
) |
Definition at line 12 of file qsedataexport.cpp.
References AutoRename, BriefHeader, ColumnHeaderLine, FileHeaderInEach, QseDataSet::fileName(), m_DirModel, m_Options, m_OutputPattern, m_Preview, QseScan::name(), readSettings(), SaveHeader, QseDataSet::scan(), QseDataSet::scanCount(), scanRevert(), setupConnections(), SingleFile, ui, and updateNewDirectory().
|
private |
Definition at line 249 of file qsedataexport.cpp.
References m_OutputDir, and m_Preview.
Referenced by checkForOverwriting(), and updatePreview().
|
privateslot |
Definition at line 138 of file qsedataexport.cpp.
References AutoRename, and m_Options.
Referenced by setupConnections().
|
privateslot |
Definition at line 102 of file qsedataexport.cpp.
References BriefHeader, and m_Options.
Referenced by setupConnections().
|
privateslot |
Definition at line 366 of file qsedataexport.cpp.
Referenced by setupConnections().
|
private |
Definition at line 276 of file qsedataexport.cpp.
References autoRenameFiles(), m_OutputDir, and m_Preview.
Referenced by exportPressed().
|
privateslot |
Definition at line 129 of file qsedataexport.cpp.
References ColumnHeaderLine, and m_Options.
Referenced by setupConnections().
|
signal |
Referenced by previewPressed(), and setupConnections().
|
privateslot |
Definition at line 196 of file qsedataexport.cpp.
References m_DirModel.
Referenced by setupConnections().
|
privateslot |
|
privateslot |
Definition at line 356 of file qsedataexport.cpp.
References checkForOverwriting(), updatePreview(), and writePreview().
Referenced by setupConnections().
|
static |
Definition at line 147 of file qsedataexport.cpp.
Referenced by QseGraphController::saveSelectedScans().
|
privateslot |
Definition at line 120 of file qsedataexport.cpp.
References FileHeaderInEach, and m_Options.
Referenced by setupConnections().
|
privateslot |
Definition at line 189 of file qsedataexport.cpp.
References m_OutputDir, and updateNewDirectory().
Referenced by setupConnections().
|
privateslot |
Definition at line 171 of file qsedataexport.cpp.
References m_OutputDir, and updateNewDirectory().
Referenced by setupConnections().
|
privateslot |
Definition at line 88 of file qsedataexport.cpp.
References m_OutputPattern.
Referenced by setupConnections().
|
privateslot |
Definition at line 343 of file qsedataexport.cpp.
References dataChanged(), m_Preview, m_PreviewUI, and updatePreview().
Referenced by setupConnections().
QseDataExport::Q_DECLARE_FLAGS | ( | Options | , |
Option | |||
) |
|
private |
Definition at line 520 of file qsedataexport.cpp.
References m_Identifier, m_Options, m_OutputDir, and m_OutputPattern.
Referenced by QseDataExport().
|
privateslot |
Definition at line 93 of file qsedataexport.cpp.
References m_Options, and SaveHeader.
Referenced by setupConnections().
|
privateslot |
Definition at line 224 of file qsedataexport.cpp.
References m_Selections, and ui.
Referenced by QseDataExport(), and setupConnections().
|
privateslot |
|
privateslot |
|
private |
|
private |
Definition at line 58 of file qsedataexport.cpp.
References autoRenameOptionChanged(), briefHeaderOptionChanged(), cancelPressed(), columnHeaderLineOptionChanged(), dataChanged(), directoryChanged(), exportPressed(), fileHeaderInEachOptionChanged(), homeDirectory(), m_Preview, newDirectory(), newOutputPattern(), previewPressed(), saveHeaderOptionChanged(), scanRevert(), scanSelectAll(), scanSelectNone(), singleFileOptionChanged(), ui, and upDirectory().
Referenced by QseDataExport().
|
privateslot |
Definition at line 111 of file qsedataexport.cpp.
References m_Options, and SingleFile.
Referenced by setupConnections().
|
private |
Definition at line 501 of file qsedataexport.cpp.
References QseDataSet::fileName(), and QseDataSet::scan().
Referenced by updatePreview().
|
private |
Definition at line 154 of file qsedataexport.cpp.
References m_DirModel, m_OutputDir, and ui.
Referenced by directoryChanged(), homeDirectory(), newDirectory(), QseDataExport(), and upDirectory().
|
private |
Definition at line 387 of file qsedataexport.cpp.
References AutoRename, autoRenameFiles(), BriefHeader, QseScan::column(), ColumnHeaderLine, QseColumn::data(), FileHeaderInEach, QseDataSet::header(), QseScan::header(), m_DataSet, m_Options, m_Preview, QseColumn::name(), SaveHeader, QseScan::scanColumnCountLine(), QseScan::scanColumnNamesLine(), QseScan::scanCommand(), QseScan::scanDateLine(), selectedScans(), SingleFile, substituteFilenamePatterns(), ui, and writeSettings().
Referenced by exportPressed(), and previewPressed().
|
privateslot |
Definition at line 182 of file qsedataexport.cpp.
References m_OutputDir, and updateNewDirectory().
Referenced by setupConnections().
|
private |
Definition at line 371 of file qsedataexport.cpp.
References m_OutputDir, and m_Preview.
Referenced by exportPressed().
|
private |
Definition at line 529 of file qsedataexport.cpp.
References m_Identifier, m_Options, m_OutputDir, and m_OutputPattern.
Referenced by updatePreview().
|
private |
Definition at line 79 of file qsedataexport.h.
Referenced by updatePreview().
|
private |
Definition at line 83 of file qsedataexport.h.
Referenced by directoryChanged(), QseDataExport(), and updateNewDirectory().
|
private |
Definition at line 77 of file qsedataexport.h.
Referenced by readSettings(), and writeSettings().
|
private |
Definition at line 80 of file qsedataexport.h.
Referenced by autoRenameOptionChanged(), briefHeaderOptionChanged(), columnHeaderLineOptionChanged(), fileHeaderInEachOptionChanged(), QseDataExport(), readSettings(), saveHeaderOptionChanged(), singleFileOptionChanged(), updatePreview(), and writeSettings().
|
private |
Definition at line 81 of file qsedataexport.h.
Referenced by autoRenameFiles(), checkForOverwriting(), directoryChanged(), homeDirectory(), newDirectory(), readSettings(), updateNewDirectory(), upDirectory(), writePreview(), and writeSettings().
|
private |
Definition at line 82 of file qsedataexport.h.
Referenced by newOutputPattern(), QseDataExport(), readSettings(), and writeSettings().
|
private |
Definition at line 85 of file qsedataexport.h.
Referenced by autoRenameFiles(), checkForOverwriting(), previewPressed(), QseDataExport(), setupConnections(), updatePreview(), and writePreview().
|
private |
Definition at line 84 of file qsedataexport.h.
|
private |
Definition at line 86 of file qsedataexport.h.
Referenced by previewPressed().
|
private |
Definition at line 78 of file qsedataexport.h.
Referenced by scanRevert().
|
private |
Definition at line 76 of file qsedataexport.h.
Referenced by QseDataExport(), scanRevert(), scanSelectAll(), scanSelectNone(), selectedScans(), setupConnections(), updateNewDirectory(), and updatePreview().