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

#include <waveformController.hpp>

Inheritance diagram for WaveformController:
Collaboration diagram for WaveformController:

Public Member Functions

 WaveformController (ProjectSession &session, DiagramScene &scene, ProjectDocumentController &documents, QWidget *window)
 ~WaveformController () override
void bindActions (const WaveformActions &actions)
 Connects the main-window waveform actions to their viewer commands.
void toggle (bool enabled)

Private Member Functions

void handleActiveDocumentChanged (const QString &path, SILICON::project::DocumentCategory category)
 Keeps the viewer bound to the diagram that is now active.
void closeViewer ()
 Hides the viewer and leaves the scene in a non-simulating state.
void setTraceActionChecked (bool checked)

Private Attributes

DiagramScene & scene
QAction * toggleAction = nullptr
waveform::Viewer * viewer = nullptr
QString activeDocumentPath
bool activeIsDiagram = false
std::unique_ptr< QDialog > window
CallbackScope callbacks

Detailed Description

Owns the waveform window and its scene connections.

Definition at line 36 of file waveformController.hpp.

Constructor & Destructor Documentation

◆ WaveformController()

WaveformController ( ProjectSession & session,
DiagramScene & scene,
ProjectDocumentController & documents,
QWidget * window )

Definition at line 36 of file waveformController.cpp.

◆ ~WaveformController()

~WaveformController ( )
overridedefault

Member Function Documentation

◆ bindActions()

void bindActions ( const WaveformActions & actions)

Connects the main-window waveform actions to their viewer commands.

Definition at line 74 of file waveformController.cpp.

◆ closeViewer()

void closeViewer ( )
private

Hides the viewer and leaves the scene in a non-simulating state.

Definition at line 126 of file waveformController.cpp.

◆ handleActiveDocumentChanged()

void handleActiveDocumentChanged ( const QString & path,
SILICON::project::DocumentCategory category )
private

Keeps the viewer bound to the diagram that is now active.

Definition at line 99 of file waveformController.cpp.

◆ setTraceActionChecked()

void setTraceActionChecked ( bool checked)
private

Definition at line 118 of file waveformController.cpp.

◆ toggle()

void toggle ( bool enabled)

Definition at line 83 of file waveformController.cpp.

Member Data Documentation

◆ activeDocumentPath

QString activeDocumentPath
private

Definition at line 58 of file waveformController.hpp.

◆ activeIsDiagram

bool activeIsDiagram = false
private

Definition at line 59 of file waveformController.hpp.

◆ callbacks

CallbackScope callbacks
private

Definition at line 61 of file waveformController.hpp.

◆ scene

DiagramScene& scene
private

Definition at line 55 of file waveformController.hpp.

◆ toggleAction

QAction* toggleAction = nullptr
private

Definition at line 56 of file waveformController.hpp.

◆ viewer

waveform::Viewer* viewer = nullptr
private

Definition at line 57 of file waveformController.hpp.

◆ window

std::unique_ptr<QDialog> window
private

Definition at line 60 of file waveformController.hpp.


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