|
SILICON
|
#include <architectureWorkspace.hpp>
Signals | |
| void | documentModified () |
Public Member Functions | |
| ArchitectureWorkspace (QWidget *parent=nullptr) | |
| CodeEditor * | editor (SILICON::project::DocumentType type) const noexcept |
| const std::map< SILICON::project::DocumentType, CodeEditor * > & | editors () const noexcept |
| bool | hasModifiedEditors () const |
| bool | isVisualizerActive () const noexcept |
| bool | isVisualizerTab (int index) const noexcept |
| void | resetLoadedArchitecture () noexcept |
| void | loadDocument (const SILICON::project::Document &document, const SILICON::project::DocumentStore &store) |
| std::shared_ptr< ArchitectureLoadPlan > | prepareLoadPlan (const SILICON::project::Document &document, const SILICON::project::DocumentStore &store) |
Resolves the architecture tabs of document without touching the tabs. | |
| void | applyLoadPlan (const ArchitectureLoadPlan &plan) |
| Rebuilds the architecture tabs from a prepared plan. | |
| void | showVisualization (sisl::IsaDescription description) |
Private Attributes | |
| std::map< SILICON::project::DocumentType, CodeEditor * > | codeEditors |
| SislVisualizer * | visualizer = nullptr |
| std::string | loadedArchitectureName |
| CallbackScope | callbacks |
Owns the codeEditors, tabs, and visualization for architecture documents.
Definition at line 35 of file architectureWorkspace.hpp.
|
explicit |
Definition at line 48 of file architectureWorkspace.cpp.
| void applyLoadPlan | ( | const ArchitectureLoadPlan & | plan | ) |
Rebuilds the architecture tabs from a prepared plan.
| plan | Plan produced by prepareLoadPlan |
Definition at line 136 of file architectureWorkspace.cpp.
|
signal |
|
nodiscardnoexcept |
Definition at line 73 of file architectureWorkspace.cpp.
|
inlinenodiscardnoexcept |
Definition at line 43 of file architectureWorkspace.hpp.
|
nodiscard |
Definition at line 79 of file architectureWorkspace.cpp.
|
nodiscardnoexcept |
Definition at line 85 of file architectureWorkspace.cpp.
|
nodiscardnoexcept |
Definition at line 90 of file architectureWorkspace.cpp.
| void loadDocument | ( | const SILICON::project::Document & | document, |
| const SILICON::project::DocumentStore & | store ) |
Definition at line 95 of file architectureWorkspace.cpp.
|
nodiscard |
Resolves the architecture tabs of document without touching the tabs.
Every failure mode of loadDocument() is detected here, so a rejected document leaves the currently displayed architecture untouched.
| document | Architecture document that should become active |
| store | Project documents providing the architecture files |
| std::exception | when the architecture is incomplete or invalid |
Definition at line 102 of file architectureWorkspace.cpp.
|
inlinenoexcept |
Definition at line 50 of file architectureWorkspace.hpp.
| void showVisualization | ( | sisl::IsaDescription | description | ) |
Definition at line 161 of file architectureWorkspace.cpp.
|
private |
Definition at line 85 of file architectureWorkspace.hpp.
|
private |
Definition at line 82 of file architectureWorkspace.hpp.
|
private |
Definition at line 84 of file architectureWorkspace.hpp.
|
private |
Definition at line 83 of file architectureWorkspace.hpp.