Owns the main window actions and exposes them to QML.
More...
#include <AppActions.h>
|
| void | importBrowseRequested (const QString &filter) |
| | Emitted when QML requests an import file dialog.
|
| void | importFileSelected (const QString &path) |
| | Emitted after a single import file was selected by the user.
|
| void | importFilesSelected (const QStringList &paths) |
| | Emitted after multiple import files were selected by the user.
|
| void | importFileDropped (const QString &path) |
| | Emitted when a file was dropped onto an import target in QML.
|
| void | importFilesDropped (const QStringList &paths) |
| | Emitted when multiple files were dropped onto an import target in QML.
|
| void | exportBrowseRequested (const QString &filter) |
| | Emitted when QML requests an export file dialog.
|
| void | exportDirectoryBrowseRequested (const QString &title) |
| | Emitted when QML requests an export directory dialog.
|
| void | exportFileSelected (const QString &path) |
| | Emitted after an export path was chosen by the user.
|
| void | exportDirectorySelected (const QString &path) |
| | Emitted after an export directory was chosen by the user.
|
|
| | Actions (QObject *parent=nullptr) |
| | Construct the actions container.
|
| QAction * | newFileAction () const |
| | Return the QAction for creating a new file.
|
| QAction * | openFileAction () const |
| | Return the QAction for opening a file.
|
| QAction * | saveFileAction () const |
| | Return the QAction for saving the current file.
|
| QAction * | saveFileAsAction () const |
| | Return the QAction for saving the current file under a new name.
|
| QAction * | quitAction () const |
| | Return the QAction for quitting the application.
|
| QAction * | aboutAction () const |
| | Return the QAction for showing the about dialog.
|
| Q_INVOKABLE void | newFile () |
| | Requests creation of a new workspace file.
|
| Q_INVOKABLE void | openFile () |
| | Requests opening an existing workspace file.
|
| Q_INVOKABLE void | saveFile () |
| | Requests saving the current workspace file.
|
| Q_INVOKABLE void | saveFileAs () |
| | Requests saving the current workspace file under a new path.
|
| Q_INVOKABLE void | browseImportPdf () |
| | Requests an import PDF file picker.
|
| Q_INVOKABLE void | browseExportFile () |
| | Requests an export file picker.
|
| Q_INVOKABLE void | browseExportDirectory () |
| | Requests an export directory picker.
|
Owns the main window actions and exposes them to QML.
Definition at line 18 of file AppActions.h.
◆ Actions()
| ui::Actions::Actions |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
Construct the actions container.
- Parameters
-
Definition at line 17 of file AppActions.cpp.
◆ aboutAction()
| QAction * ui::Actions::aboutAction |
( |
| ) |
const |
Return the QAction for showing the about dialog.
- Returns
- Pointer to the QAction
Definition at line 53 of file AppActions.cpp.
◆ browseExportDirectory()
| void ui::Actions::browseExportDirectory |
( |
| ) |
|
Requests an export directory picker.
Definition at line 82 of file AppActions.cpp.
◆ browseExportFile()
| void ui::Actions::browseExportFile |
( |
| ) |
|
◆ browseImportPdf()
| void ui::Actions::browseImportPdf |
( |
| ) |
|
Requests an import PDF file picker.
Definition at line 74 of file AppActions.cpp.
◆ exportBrowseRequested
| void ui::Actions::exportBrowseRequested |
( |
const QString & | filter | ) |
|
|
signal |
Emitted when QML requests an export file dialog.
- Parameters
-
| filter | Native file dialog filter string (e.g. "All Files (*.*)"). |
◆ exportDirectoryBrowseRequested
| void ui::Actions::exportDirectoryBrowseRequested |
( |
const QString & | title | ) |
|
|
signal |
Emitted when QML requests an export directory dialog.
- Parameters
-
| title | Native file dialog title. |
◆ exportDirectorySelected
| void ui::Actions::exportDirectorySelected |
( |
const QString & | path | ) |
|
|
signal |
Emitted after an export directory was chosen by the user.
- Parameters
-
| path | Absolute path of the target directory. |
◆ exportFileSelected
| void ui::Actions::exportFileSelected |
( |
const QString & | path | ) |
|
|
signal |
Emitted after an export path was chosen by the user.
- Parameters
-
| path | Absolute path of the target file. |
◆ importBrowseRequested
| void ui::Actions::importBrowseRequested |
( |
const QString & | filter | ) |
|
|
signal |
Emitted when QML requests an import file dialog.
- Parameters
-
| filter | Native file dialog filter string (e.g. "PDF Files (*.pdf)"). |
◆ importFileDropped
| void ui::Actions::importFileDropped |
( |
const QString & | path | ) |
|
|
signal |
Emitted when a file was dropped onto an import target in QML.
- Parameters
-
| path | Absolute path of the dropped file. |
◆ importFilesDropped
| void ui::Actions::importFilesDropped |
( |
const QStringList & | paths | ) |
|
|
signal |
Emitted when multiple files were dropped onto an import target in QML.
- Parameters
-
| paths | List of absolute file paths. |
◆ importFileSelected
| void ui::Actions::importFileSelected |
( |
const QString & | path | ) |
|
|
signal |
Emitted after a single import file was selected by the user.
- Parameters
-
| path | Absolute path of the selected file. |
◆ importFilesSelected
| void ui::Actions::importFilesSelected |
( |
const QStringList & | paths | ) |
|
|
signal |
Emitted after multiple import files were selected by the user.
- Parameters
-
| paths | List of absolute file paths. |
◆ newFile()
| void ui::Actions::newFile |
( |
| ) |
|
Requests creation of a new workspace file.
Definition at line 57 of file AppActions.cpp.
◆ newFileAction()
| QAction * ui::Actions::newFileAction |
( |
| ) |
const |
Return the QAction for creating a new file.
- Returns
- Pointer to the QAction
Definition at line 38 of file AppActions.cpp.
◆ openFile()
| void ui::Actions::openFile |
( |
| ) |
|
Requests opening an existing workspace file.
Definition at line 61 of file AppActions.cpp.
◆ openFileAction()
| QAction * ui::Actions::openFileAction |
( |
| ) |
const |
Return the QAction for opening a file.
- Returns
- Pointer to the QAction
Definition at line 41 of file AppActions.cpp.
◆ quitAction()
| QAction * ui::Actions::quitAction |
( |
| ) |
const |
Return the QAction for quitting the application.
- Returns
- Pointer to the QAction
Definition at line 50 of file AppActions.cpp.
◆ saveFile()
| void ui::Actions::saveFile |
( |
| ) |
|
Requests saving the current workspace file.
Definition at line 65 of file AppActions.cpp.
◆ saveFileAction()
| QAction * ui::Actions::saveFileAction |
( |
| ) |
const |
Return the QAction for saving the current file.
- Returns
- Pointer to the QAction
Definition at line 44 of file AppActions.cpp.
◆ saveFileAs()
| void ui::Actions::saveFileAs |
( |
| ) |
|
Requests saving the current workspace file under a new path.
Definition at line 69 of file AppActions.cpp.
◆ saveFileAsAction()
| QAction * ui::Actions::saveFileAsAction |
( |
| ) |
const |
Return the QAction for saving the current file under a new name.
- Returns
- Pointer to the QAction
Definition at line 47 of file AppActions.cpp.
◆ aboutAction
| QAction* ui::Actions::aboutAction |
|
read |
◆ newFileAction
| QAction* ui::Actions::newFileAction |
|
read |
◆ openFileAction
| QAction* ui::Actions::openFileAction |
|
read |
◆ quitAction
| QAction* ui::Actions::quitAction |
|
read |
◆ saveFileAction
| QAction* ui::Actions::saveFileAction |
|
read |
◆ saveFileAsAction
| QAction* ui::Actions::saveFileAsAction |
|
read |
The documentation for this class was generated from the following files: