Engauge Digitizer 2
|
Persist the directory between successive Import/Open operations, or successive Export/Save operations. More...
#include <MainDirectoryPersist.h>
Public Member Functions | |
MainDirectoryPersist () | |
Default constructor. | |
QDir | getDirectoryExportSave () const |
Get the current Export/Save directory. | |
QDir | getDirectoryImportOpen () const |
Get the current Import/Open directory. | |
void | setDirectoryExportSaveFromFilename (const QString &fileName) |
Save the current Export/Save directory, after user has accepted the Export/Save dialog. | |
void | setDirectoryExportSaveFromSavedPath (const QString &path) |
Set the current Export/Save directory at startup to path from previous execution. | |
void | setDirectoryImportOpenFromFilename (const QString &fileName) |
Save the current Import/Open directory, after user has accepted the Import/Open dialog. | |
void | setDirectoryImportLoadFromSavedPath (const QString &path) |
Set the current Import/Open directory at startup to path from previous execution. | |
Persist the directory between successive Import/Open operations, or successive Export/Save operations.
The Export/Import/Open/Save operations are performed by the MainWindow class. This functionality is for the convenience of users who want to return to the same directory automatically rather than manually move from the Engauge startup directory to a user directory
Definition at line 17 of file MainDirectoryPersist.h.
MainDirectoryPersist::MainDirectoryPersist | ( | ) |
QDir MainDirectoryPersist::getDirectoryExportSave | ( | ) | const |
Get the current Export/Save directory.
Definition at line 19 of file MainDirectoryPersist.cpp.
QDir MainDirectoryPersist::getDirectoryImportOpen | ( | ) | const |
Get the current Import/Open directory.
Definition at line 24 of file MainDirectoryPersist.cpp.
Save the current Export/Save directory, after user has accepted the Export/Save dialog.
Definition at line 29 of file MainDirectoryPersist.cpp.
Set the current Export/Save directory at startup to path from previous execution.
When called within this class the path is not saved from the previous execution
Definition at line 35 of file MainDirectoryPersist.cpp.
Set the current Import/Open directory at startup to path from previous execution.
When called within this class the path is not saved from the previous execution
Definition at line 60 of file MainDirectoryPersist.cpp.
Save the current Import/Open directory, after user has accepted the Import/Open dialog.
Definition at line 54 of file MainDirectoryPersist.cpp.