wiRedPanda
Home
About
Download
Try out
API Docs
wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ExportController.h
Go to the documentation of this file.
1
// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8
#pragma once
9
10
#include <QObject>
11
#include <QString>
12
13
class
MainWindowHost
;
14
25
class
ExportController
:
public
QObject
26
{
27
Q_OBJECT
28
29
public
:
30
explicit
ExportController
(
MainWindowHost
&host, QObject *parent =
nullptr
);
31
32
// --- Headless export cores (called by CLI batch mode and the MCP server) ---
33
35
void
exportToArduino
(QString fileName);
36
38
void
exportToSystemVerilog
(QString fileName);
39
41
void
exportToWaveFormFile
(
const
QString &fileName);
42
44
void
exportToWaveFormTerminal
();
45
46
public
slots:
47
// --- Interactive dialog handlers (wired to the Export menu actions) ---
48
49
void
exportArduinoDialog
();
50
void
exportSystemVerilogDialog
();
51
void
exportImageDialog
();
52
void
exportPdfDialog
();
53
54
private
:
55
MainWindowHost
&m_host;
56
};
ExportController::exportImageDialog
void exportImageDialog()
Definition
ExportController.cpp:185
ExportController::ExportController
ExportController(MainWindowHost &host, QObject *parent=nullptr)
Definition
ExportController.cpp:24
ExportController::exportToArduino
void exportToArduino(QString fileName)
Generates an Arduino sketch for the current circuit at fileName.
Definition
ExportController.cpp:30
ExportController::exportToWaveFormTerminal
void exportToWaveFormTerminal()
Prints the beWavedDolphin waveform of the current circuit to the terminal.
Definition
ExportController.cpp:105
ExportController::exportArduinoDialog
void exportArduinoDialog()
Definition
ExportController.cpp:112
ExportController::exportSystemVerilogDialog
void exportSystemVerilogDialog()
Definition
ExportController.cpp:134
ExportController::exportToWaveFormFile
void exportToWaveFormFile(const QString &fileName)
Writes the beWavedDolphin waveform of the current circuit to fileName.
Definition
ExportController.cpp:92
ExportController::exportPdfDialog
void exportPdfDialog()
Definition
ExportController.cpp:156
ExportController::exportToSystemVerilog
void exportToSystemVerilog(QString fileName)
Generates SystemVerilog for the current circuit at fileName.
Definition
ExportController.cpp:62
MainWindowHost
Interface MainWindow provides to its extracted controllers (export, IC, …).
Definition
MainWindowHost.h:29
App
UI
ExportController.h
Generated by
1.16.1