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
13class MainWindowHost;
14
25class ExportController : public QObject
26{
27 Q_OBJECT
28
29public:
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
45
46public slots:
47 // --- Interactive dialog handlers (wired to the Export menu actions) ---
48
51 void exportImageDialog();
52 void exportPdfDialog();
53
54private:
55 MainWindowHost &m_host;
56};
ExportController(MainWindowHost &host, QObject *parent=nullptr)
void exportToArduino(QString fileName)
Generates an Arduino sketch for the current circuit at fileName.
void exportToWaveFormTerminal()
Prints the beWavedDolphin waveform of the current circuit to the terminal.
void exportToWaveFormFile(const QString &fileName)
Writes the beWavedDolphin waveform of the current circuit to fileName.
void exportToSystemVerilog(QString fileName)
Generates SystemVerilog for the current circuit at fileName.
Interface MainWindow provides to its extracted controllers (export, IC, …).