|
SILICON
|
#include <projectFileController.hpp>
Signals | |
| void | projectChanged () |
Public Member Functions | |
| ProjectFileController (ProjectSession &session, EditorWorkspace &workspace, ProjectDocumentController &documents, QUndoStack &undoStack, QWidget *dialogParent) | |
| void | newFile () |
| void | open () |
| bool | save () |
| void | confirmSaveIfDirty (std::function< void()> continuation) |
| void | resetProjectState () |
| void | setFileName (const QString &fileName) |
Private Member Functions | |
| void | loadProjectContent (const QString &fileName, const QByteArray &fileContent) |
Private Attributes | |
| ProjectSession & | session |
| EditorWorkspace & | workspace |
| ProjectDocumentController & | documents |
| QUndoStack & | undoStack |
| QWidget * | dialogParent |
Handles project archive persistence and unsaved change prompts.
Definition at line 28 of file projectFileController.hpp.
| ProjectFileController | ( | ProjectSession & | session, |
| EditorWorkspace & | workspace, | ||
| ProjectDocumentController & | documents, | ||
| QUndoStack & | undoStack, | ||
| QWidget * | dialogParent ) |
Definition at line 60 of file projectFileController.cpp.
| void confirmSaveIfDirty | ( | std::function< void()> | continuation | ) |
Definition at line 242 of file projectFileController.cpp.
|
private |
Definition at line 107 of file projectFileController.cpp.
| void newFile | ( | ) |
Definition at line 84 of file projectFileController.cpp.
| void open | ( | ) |
Definition at line 153 of file projectFileController.cpp.
|
signal |
| void resetProjectState | ( | ) |
Definition at line 94 of file projectFileController.cpp.
| bool save | ( | ) |
Definition at line 165 of file projectFileController.cpp.
| void setFileName | ( | const QString & | fileName | ) |
Definition at line 73 of file projectFileController.cpp.
|
private |
Definition at line 53 of file projectFileController.hpp.
|
private |
Definition at line 51 of file projectFileController.hpp.
|
private |
Definition at line 49 of file projectFileController.hpp.
|
private |
Definition at line 52 of file projectFileController.hpp.
|
private |
Definition at line 50 of file projectFileController.hpp.