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

#include <diagramInteractionController.hpp>

Inheritance diagram for DiagramInteractionController:
Collaboration diagram for DiagramInteractionController:

Public Member Functions

 DiagramInteractionController (ProjectSession &session, CircuitEditor &circuit, ComponentCatalogOverlay &catalog, QUndoStack &undoStack, QWidget &window)
void bindActions (const CircuitActions &actions)
 Connects the main-window diagram actions to their diagram commands.
void selectAll ()
void rotate ()
void autoPlace ()
void centerView ()
void editActiveSubcircuitShape ()
 Opens the graphical shape editor for the active circuit document.
void setNormalMode ()
void setPanMode ()
void setWireCreationMode ()
void setSimulationMode ()
void setComponentPlacingMode ()
void showComponentCatalog ()
void cancelCurrentInteraction ()

Private Attributes

ProjectSession & session
CircuitEditor & circuit
ComponentCatalogOverlay & catalog
QUndoStack & undoStack
QWidget & window

Detailed Description

Diagram editing commands and interaction mode changes.

Definition at line 35 of file diagramInteractionController.hpp.

Constructor & Destructor Documentation

◆ DiagramInteractionController()

DiagramInteractionController ( ProjectSession & session,
CircuitEditor & circuit,
ComponentCatalogOverlay & catalog,
QUndoStack & undoStack,
QWidget & window )

Definition at line 45 of file diagramInteractionController.cpp.

Member Function Documentation

◆ autoPlace()

void autoPlace ( )

Definition at line 133 of file diagramInteractionController.cpp.

◆ bindActions()

void bindActions ( const CircuitActions & actions)

Connects the main-window diagram actions to their diagram commands.

Definition at line 57 of file diagramInteractionController.cpp.

◆ cancelCurrentInteraction()

void cancelCurrentInteraction ( )

Definition at line 201 of file diagramInteractionController.cpp.

◆ centerView()

void centerView ( )

Definition at line 138 of file diagramInteractionController.cpp.

◆ editActiveSubcircuitShape()

void editActiveSubcircuitShape ( )

Opens the graphical shape editor for the active circuit document.

Definition at line 143 of file diagramInteractionController.cpp.

◆ rotate()

void rotate ( )

Definition at line 98 of file diagramInteractionController.cpp.

◆ selectAll()

void selectAll ( )

Definition at line 85 of file diagramInteractionController.cpp.

◆ setComponentPlacingMode()

void setComponentPlacingMode ( )

Definition at line 190 of file diagramInteractionController.cpp.

◆ setNormalMode()

void setNormalMode ( )

Definition at line 164 of file diagramInteractionController.cpp.

◆ setPanMode()

void setPanMode ( )

Definition at line 169 of file diagramInteractionController.cpp.

◆ setSimulationMode()

void setSimulationMode ( )

Definition at line 179 of file diagramInteractionController.cpp.

◆ setWireCreationMode()

void setWireCreationMode ( )

Definition at line 174 of file diagramInteractionController.cpp.

◆ showComponentCatalog()

void showComponentCatalog ( )

Definition at line 195 of file diagramInteractionController.cpp.

Member Data Documentation

◆ catalog

ComponentCatalogOverlay& catalog
private

Definition at line 63 of file diagramInteractionController.hpp.

◆ circuit

CircuitEditor& circuit
private

Definition at line 62 of file diagramInteractionController.hpp.

◆ session

ProjectSession& session
private

Definition at line 61 of file diagramInteractionController.hpp.

◆ undoStack

QUndoStack& undoStack
private

Definition at line 64 of file diagramInteractionController.hpp.

◆ window

QWidget& window
private

Definition at line 65 of file diagramInteractionController.hpp.


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