|
wiRedPanda
Logic Circuit Simulator
|
Owns the circuit-export workflow: Arduino / SystemVerilog code, PDF / PNG images, and beWavedDolphin waveform output. More...
#include <ExportController.h>
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. | |
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.
|
explicit |
Definition at line 24 of file ExportController.cpp.
| void ExportController::exportArduinoDialog | ( | ) |
Definition at line 112 of file ExportController.cpp.
References exportToArduino(), FileDialogResult::fileName, FileDialogProvider::getSaveFileName(), Application::guardedSlot(), FileDialogs::provider(), and sentryBreadcrumb().
| void ExportController::exportImageDialog | ( | ) |
Definition at line 185 of file ExportController.cpp.
References FileDialogResult::fileName, FileDialogProvider::getSaveFileName(), Application::guardedSlot(), FileDialogs::provider(), CircuitExporter::renderToImage(), and sentryBreadcrumb().
| void ExportController::exportPdfDialog | ( | ) |
Definition at line 156 of file ExportController.cpp.
References FileDialogResult::fileName, FileDialogProvider::getSaveFileName(), Application::guardedSlot(), FileDialogs::provider(), CircuitExporter::renderToPdf(), and sentryBreadcrumb().
| void ExportController::exportSystemVerilogDialog | ( | ) |
Definition at line 134 of file ExportController.cpp.
References exportToSystemVerilog(), FileDialogResult::fileName, FileDialogProvider::getSaveFileName(), Application::guardedSlot(), FileDialogs::provider(), and sentryBreadcrumb().
| 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().
| 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().
| 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().
| 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().