OGS
|
A list of selected files selected for conversion incl. an output directory.
Definition at line 32 of file FileListDialog.h.
#include <FileListDialog.h>
Public Member Functions | |
FileListDialog (FileType input, FileType output, QWidget *parent=nullptr) | |
Constructor. | |
~FileListDialog () override | |
Destructor. | |
const QStringList | getInputFileList () const |
Returns list of all selected files. | |
const QString | getOutputDir () const |
Returns selected output directory. | |
Private Slots | |
void | on_addButton_pressed () |
void | on_removeButton_pressed () |
void | on_browseButton_pressed () |
void | accept () override |
Instructions if the OK-Button has been pressed. | |
void | reject () override |
Instructions if the Cancel-Button has been pressed. | |
Private Member Functions | |
QString | getFileTypeString (FileType file_type) const |
Returns a string for the given file type enum. | |
void | displayWarningLabel () const |
Display a warning for vtu- to msh-conversion. | |
Private Attributes | |
QStringListModel | _allFiles |
QString | _output_dir |
const FileType | _input_file_type |
const FileType | _output_file_type |
Constructor.
Definition at line 25 of file FileListDialog.cpp.
References _allFiles, _input_file_type, _output_file_type, displayWarningLabel(), MSH, and VTU.
|
overridedefault |
Destructor.
|
overrideprivateslot |
Instructions if the OK-Button has been pressed.
Definition at line 87 of file FileListDialog.cpp.
References _allFiles, _output_dir, and OGSError::box().
|
private |
Display a warning for vtu- to msh-conversion.
Definition at line 132 of file FileListDialog.cpp.
Referenced by FileListDialog().
|
private |
Returns a string for the given file type enum.
Definition at line 111 of file FileListDialog.cpp.
References GLI, GML, MSH, and VTU.
Referenced by on_addButton_pressed().
|
inline |
Returns list of all selected files.
Definition at line 43 of file FileListDialog.h.
References _allFiles.
Referenced by OGSFileConverter::on_gli2gmlButton_pressed(), OGSFileConverter::on_gml2gliButton_pressed(), OGSFileConverter::on_msh2vtuButton_pressed(), and OGSFileConverter::on_vtu2mshButton_pressed().
|
inline |
Returns selected output directory.
Definition at line 45 of file FileListDialog.h.
References _output_dir.
Referenced by OGSFileConverter::on_gli2gmlButton_pressed(), OGSFileConverter::on_gml2gliButton_pressed(), OGSFileConverter::on_msh2vtuButton_pressed(), and OGSFileConverter::on_vtu2mshButton_pressed().
|
privateslot |
Definition at line 43 of file FileListDialog.cpp.
References _allFiles, _input_file_type, and getFileTypeString().
|
privateslot |
Definition at line 78 of file FileListDialog.cpp.
|
privateslot |
Definition at line 68 of file FileListDialog.cpp.
References _allFiles.
|
overrideprivateslot |
Instructions if the Cancel-Button has been pressed.
Definition at line 106 of file FileListDialog.cpp.
|
private |
Definition at line 53 of file FileListDialog.h.
Referenced by FileListDialog(), accept(), getInputFileList(), on_addButton_pressed(), and on_removeButton_pressed().
|
private |
Definition at line 55 of file FileListDialog.h.
Referenced by FileListDialog(), and on_addButton_pressed().
|
private |
Definition at line 54 of file FileListDialog.h.
Referenced by accept(), and getOutputDir().
|
private |
Definition at line 56 of file FileListDialog.h.
Referenced by FileListDialog().