58 const std::string& activePath);
61 std::optional<std::ptrdiff_t> insertAt,
bool activate);
93 const QString& commandText);
95 std::vector<SILICON::project::Document> before,
96 std::string beforeActive,
97 std::vector<SILICON::project::Document> after,
98 std::string afterActive);
103 const QString& commandText);
105 const std::string& sourcePath,
106 const std::string& activatePath,
const QString& commandText,
107 const QString& errorTitle);
Selects and hosts editors while preserving detached document preparation.
void exportSelectedDocument()
ComponentCatalogOverlay & catalog
void notifyActiveDocumentActivated()
Publishes the active document to observers.
void renameSelectedDocument()
void importProjectDocument()
void pushCreateDocumentCommand(SILICON::project::Document document, const QString &commandText)
void removeDocument(const std::string &path)
void createArchitecture()
ProjectDocumentController(ProjectSession &session, EditorWorkspace &workspace, ProjectTree &tree, ComponentCatalogOverlay &catalog, QUndoStack &undoStack, QWidget *dialogParent)
EditorWorkspace & workspace
const std::string & currentDocumentPath() const noexcept override
void insertDocument(SILICON::project::Document document, std::optional< std::ptrdiff_t > insertAt, bool activate)
void showArchitectureTabContextMenu(const QPoint &position)
void reportLoadFailure(SILICON::project::DocumentType type, const std::string &reason)
Reports a rejected document activation to the user.
void pushDocumentSnapshotCommand(QString commandText, std::vector< SILICON::project::Document > before, std::string beforeActive, std::vector< SILICON::project::Document > after, std::string afterActive)
void convertActiveDocumentTo(SILICON::project::DocumentType target)
void renameArchitecture(const std::string &name)
void createDocument(SILICON::project::DocumentType type)
bool switchToDocument(const std::string &path, bool selectInTree)
void commitDocumentChanges(std::vector< SILICON::project::Document > documents, const std::string &sourcePath, const std::string &activatePath, const QString &commandText, const QString &errorTitle)
void projectDocumentsChanged()
Emitted when the set of project documents was added to, changed, or removed.
void activeDocumentChanged(const QString &path, SILICON::project::DocumentCategory category)
Emitted after a document was loaded and made visible.
ProjectTree * projectTree
void selectDocument(const std::string &path)
void deleteSelectedDocument()
bool activateDocument(const std::string &path) override
void deleteArchitectureComponent(const std::string &path)
void restoreProjectDocuments(const std::vector< SILICON::project::Document > &documents, const std::string &activePath)
void deleteArchitecture(const std::string &name)
void removeProjectDocuments(const std::vector< std::string > &paths, const QString &commandText)
void convertActiveDocument()
Project document navigator used by the SILICON editor.