SILICON
Loading...
Searching...
No Matches
SiliconWindow Class Reference

Main window for the SILICON graphical circuit editor. More...

#include <siliconWindow.hpp>

Inheritance diagram for SiliconWindow:
Collaboration diagram for SiliconWindow:

Public Member Functions

 SiliconWindow ()
 Constructs and initializes the SILICON editor window.
 ~SiliconWindow () override
 Releases scoped callbacks and UI owners in dependency order.

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *event) override
 Opens the diagram context menu for mode and editing actions.
bool eventFilter (QObject *watched, QEvent *event) override
 Handles viewport events needed by floating child widgets.
void resizeEvent (QResizeEvent *event) override
 Keeps floating overlays aligned when the main window is resized.
void closeEvent (QCloseEvent *event) override

Private Slots

void exportImage ()
 Placeholder slot for exporting the diagram as an image.
void about () const
 Shows the application about dialog.
void updateStatus () const
 Refreshes the status bar text for the current scene mode.
void selectionChanged ()
 Updates action enabled states and property UI after selection changes.
void projectTreeSelectionChanged ()
 Handles user selection changes in the project circuit tree.
void showProjectTreeContextMenu (const QPoint &position)
 Shows the context menu for project-tree circuit actions.
void updatePropertyDock ()
 Rebuilds the property dock for the current selection or active circuit.

Private Member Functions

void wireActions ()
void updateComponentCatalogGeometry ()
 Repositions and resizes the component catalog overlay.
void initializeProjectTree ()
 Creates and wires the project tree widget shown in the project dock.
void refreshActiveDocumentUi ()
 Refreshes actions and docks that depend on the active document.
void refreshProjectUi ()
 Refreshes the property dock after a project-level change.

Private Attributes

QDockWidget * documentDock = nullptr
 Dock containing the project document tree.
QDockWidget * propertyDock = nullptr
 Dock containing the current property editor.
QDockWidget * logDock = nullptr
 Dock containing application log output.
ProjectTree * projectTree = nullptr
 Borrowed handles into the workspace and Qt widget hierarchy.
LogSideView * logSideView = nullptr
CircuitEditor * circuitEditor = nullptr
ComponentCatalogOverlay * componentCatalogOverlay = nullptr
AboutDialog * aboutDialog = nullptr
bool closeAfterSaveConfirmation = false
 Allows the close event triggered after an accepted dirty-file prompt.
ProjectSession projectSession
std::unique_ptr< QUndoStack > undoStack
std::unique_ptr< ProjectDocumentController > documentController
std::unique_ptr< EditorWorkspace > workspace
std::unique_ptr< DiagramInteractionController > interactionController
std::unique_ptr< ProjectFileController > fileController
std::unique_ptr< WindowActions > actionSet
std::unique_ptr< ArchitectureController > architectureController
std::unique_ptr< WaveformController > waveformController
std::unique_ptr< PropertyPanel > propertyPanel
std::unique_ptr< GraphicalLogStream > graphicalLogStream
ScopedEventFilter viewportFilter
std::unique_ptr< WindowLifetime > windowLifetime
CallbackScope callbacks

Detailed Description

Main window for the SILICON graphical circuit editor.

Composes the editor, project, action, and dock controllers.

Definition at line 60 of file siliconWindow.hpp.

Constructor & Destructor Documentation

◆ SiliconWindow()

SiliconWindow ( )

Constructs and initializes the SILICON editor window.

Definition at line 98 of file siliconWindow.cpp.

◆ ~SiliconWindow()

~SiliconWindow ( )
overridedefault

Releases scoped callbacks and UI owners in dependency order.

Member Function Documentation

◆ about

void about ( ) const
privateslot

Shows the application about dialog.

Definition at line 259 of file siliconWindow.cpp.

◆ closeEvent()

void closeEvent ( QCloseEvent * event)
overrideprotected

Definition at line 326 of file siliconWindow.cpp.

◆ contextMenuEvent()

void contextMenuEvent ( QContextMenuEvent * event)
overrideprotected

Opens the diagram context menu for mode and editing actions.

Parameters
eventQt context-menu event delivered to the main window

Definition at line 265 of file siliconWindow.cpp.

◆ eventFilter()

bool eventFilter ( QObject * watched,
QEvent * event )
overrideprotected

Handles viewport events needed by floating child widgets.

Parameters
watchedObject that received the event
eventEvent being filtered
Returns
True when the event was consumed

Definition at line 289 of file siliconWindow.cpp.

◆ exportImage

void exportImage ( )
inlineprivateslot

Placeholder slot for exporting the diagram as an image.

Definition at line 98 of file siliconWindow.hpp.

◆ initializeProjectTree()

void initializeProjectTree ( )
private

Creates and wires the project tree widget shown in the project dock.

Definition at line 369 of file siliconWindow.cpp.

◆ projectTreeSelectionChanged

void projectTreeSelectionChanged ( )
privateslot

Handles user selection changes in the project circuit tree.

Definition at line 380 of file siliconWindow.cpp.

◆ refreshActiveDocumentUi()

void refreshActiveDocumentUi ( )
private

Refreshes actions and docks that depend on the active document.

Definition at line 354 of file siliconWindow.cpp.

◆ refreshProjectUi()

void refreshProjectUi ( )
private

Refreshes the property dock after a project-level change.

Definition at line 362 of file siliconWindow.cpp.

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
overrideprotected

Keeps floating overlays aligned when the main window is resized.

Parameters
eventQt resize event

Definition at line 298 of file siliconWindow.cpp.

◆ selectionChanged

void selectionChanged ( )
privateslot

Updates action enabled states and property UI after selection changes.

Definition at line 40 of file siliconWindowInteraction.cpp.

◆ showProjectTreeContextMenu

void showProjectTreeContextMenu ( const QPoint & position)
privateslot

Shows the context menu for project-tree circuit actions.

Parameters
positionPosition within the project tree viewport

Definition at line 397 of file siliconWindow.cpp.

◆ updateComponentCatalogGeometry()

void updateComponentCatalogGeometry ( )
private

Repositions and resizes the component catalog overlay.

Definition at line 341 of file siliconWindow.cpp.

◆ updatePropertyDock

void updatePropertyDock ( )
privateslot

Rebuilds the property dock for the current selection or active circuit.

Definition at line 349 of file siliconWindow.cpp.

◆ updateStatus

void updateStatus ( ) const
privateslot

Refreshes the status bar text for the current scene mode.

Definition at line 33 of file siliconWindowInteraction.cpp.

◆ wireActions()

void wireActions ( )
private

Connects the application-level actions to their command handlers.

Definition at line 222 of file siliconWindow.cpp.

Member Data Documentation

◆ aboutDialog

AboutDialog* aboutDialog = nullptr
private

Definition at line 151 of file siliconWindow.hpp.

◆ actionSet

std::unique_ptr<WindowActions> actionSet
private

Definition at line 164 of file siliconWindow.hpp.

◆ architectureController

std::unique_ptr<ArchitectureController> architectureController
private

Definition at line 165 of file siliconWindow.hpp.

◆ callbacks

CallbackScope callbacks
private

Definition at line 173 of file siliconWindow.hpp.

◆ circuitEditor

CircuitEditor* circuitEditor = nullptr
private

Definition at line 149 of file siliconWindow.hpp.

◆ closeAfterSaveConfirmation

bool closeAfterSaveConfirmation = false
private

Allows the close event triggered after an accepted dirty-file prompt.

Definition at line 154 of file siliconWindow.hpp.

◆ componentCatalogOverlay

ComponentCatalogOverlay* componentCatalogOverlay = nullptr
private

Definition at line 150 of file siliconWindow.hpp.

◆ documentController

std::unique_ptr<ProjectDocumentController> documentController
private

Definition at line 160 of file siliconWindow.hpp.

◆ documentDock

QDockWidget* documentDock = nullptr
private

Dock containing the project document tree.

Definition at line 138 of file siliconWindow.hpp.

◆ fileController

std::unique_ptr<ProjectFileController> fileController
private

Definition at line 163 of file siliconWindow.hpp.

◆ graphicalLogStream

std::unique_ptr<GraphicalLogStream> graphicalLogStream
private

Definition at line 168 of file siliconWindow.hpp.

◆ interactionController

std::unique_ptr<DiagramInteractionController> interactionController
private

Definition at line 162 of file siliconWindow.hpp.

◆ logDock

QDockWidget* logDock = nullptr
private

Dock containing application log output.

Definition at line 144 of file siliconWindow.hpp.

◆ logSideView

LogSideView* logSideView = nullptr
private

Definition at line 148 of file siliconWindow.hpp.

◆ projectSession

ProjectSession projectSession
private

Definition at line 158 of file siliconWindow.hpp.

◆ projectTree

ProjectTree* projectTree = nullptr
private

Borrowed handles into the workspace and Qt widget hierarchy.

Definition at line 147 of file siliconWindow.hpp.

◆ propertyDock

QDockWidget* propertyDock = nullptr
private

Dock containing the current property editor.

Definition at line 141 of file siliconWindow.hpp.

◆ propertyPanel

std::unique_ptr<PropertyPanel> propertyPanel
private

Definition at line 167 of file siliconWindow.hpp.

◆ undoStack

std::unique_ptr<QUndoStack> undoStack
private

Definition at line 159 of file siliconWindow.hpp.

◆ viewportFilter

ScopedEventFilter viewportFilter
private

Definition at line 170 of file siliconWindow.hpp.

◆ waveformController

std::unique_ptr<WaveformController> waveformController
private

Definition at line 166 of file siliconWindow.hpp.

◆ windowLifetime

std::unique_ptr<WindowLifetime> windowLifetime
private

Definition at line 171 of file siliconWindow.hpp.

◆ workspace

std::unique_ptr<EditorWorkspace> workspace
private

Definition at line 161 of file siliconWindow.hpp.


The documentation for this class was generated from the following files: