wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ExportController Class Reference

Owns the circuit-export workflow: Arduino / SystemVerilog code, PDF / PNG images, and beWavedDolphin waveform output. More...

#include <ExportController.h>

Inheritance diagram for ExportController:
[legend]

Public Member Functions

void exportArduinoDialog ()
 ExportController (MainWindowHost &host, QObject *parent=nullptr)
void exportImageDialog ()
void exportPdfDialog ()
void exportSystemVerilogDialog ()
void exportToArduino (QString fileName)
 Generates an Arduino sketch for the current circuit at fileName.
void exportToSystemVerilog (QString fileName)
 Generates SystemVerilog for the current circuit at fileName.
void exportToWaveFormFile (const QString &fileName)
 Writes the beWavedDolphin waveform of the current circuit to fileName.
void exportToWaveFormTerminal ()
 Prints the beWavedDolphin waveform of the current circuit to the terminal.

Detailed Description

Owns the circuit-export workflow: Arduino / SystemVerilog code, PDF / PNG images, and beWavedDolphin waveform output.

Extracted from MainWindow. The export* methods are the headless cores (used by the CLI batch mode and the MCP server); the dialog slots add file-picker and status-bar glue on top of them. All circuit state is reached through a MainWindowHost so the controller never depends on a concrete MainWindow.

Definition at line 25 of file ExportController.h.

Constructor & Destructor Documentation

◆ ExportController()

ExportController::ExportController ( MainWindowHost & host,
QObject * parent = nullptr )
explicit

Definition at line 24 of file ExportController.cpp.

Member Function Documentation

◆ exportArduinoDialog()

◆ exportImageDialog()

◆ exportPdfDialog()

◆ exportSystemVerilogDialog()

◆ exportToArduino()

void ExportController::exportToArduino ( QString fileName)

Generates an Arduino sketch for the current circuit at fileName.

Definition at line 30 of file ExportController.cpp.

References ArduinoCodeGen::generate(), PANDACEPTION, and qCDebug.

Referenced by exportArduinoDialog().

◆ exportToSystemVerilog()

void ExportController::exportToSystemVerilog ( QString fileName)

Generates SystemVerilog for the current circuit at fileName.

Definition at line 62 of file ExportController.cpp.

References SystemVerilogCodeGen::generate(), PANDACEPTION, and qCDebug.

Referenced by exportSystemVerilogDialog().

◆ exportToWaveFormFile()

void ExportController::exportToWaveFormFile ( const QString & fileName)

Writes the beWavedDolphin waveform of the current circuit to fileName.

Definition at line 92 of file ExportController.cpp.

References BewavedDolphin::createWaveform(), PANDACEPTION, and BewavedDolphin::print().

◆ exportToWaveFormTerminal()

void ExportController::exportToWaveFormTerminal ( )

Prints the beWavedDolphin waveform of the current circuit to the terminal.

Definition at line 105 of file ExportController.cpp.

References BewavedDolphin::createWaveform(), and BewavedDolphin::print().


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