wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
DolphinModelBuilder.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 <QStringList>
11#include <QVector>
12
13class GraphicElement;
15class Scene;
16
25namespace DolphinModelBuilder {
26
28struct Signals {
29 QVector<GraphicElementInput *> inputs;
30 QVector<GraphicElement *> outputs;
31 int inputPorts = 0;
32 QStringList inputLabels;
33 QStringList outputLabels;
34};
35
39Signals collect(Scene *scene);
40
41} // namespace DolphinModelBuilder
Abstract base for all interactive input elements (switches, buttons, clocks, etc.).
Abstract base class for all graphical circuit elements in wiRedPanda.
Main circuit editing scene.
Definition Scene.h:56
Collects and orders the input/output elements of a circuit scene and derives the waveform table's row...
Signals collect(Scene *scene)
The input/output elements (label-sorted) and the row labels for a waveform table.
QVector< GraphicElement * > outputs
Output elements, sorted by label.
QStringList inputLabels
Row label per input port (indexed for multi-port).
QVector< GraphicElementInput * > inputs
Input elements, sorted by label.
QStringList outputLabels
Row label per output port (indexed for multi-port).
int inputPorts
Total input rows (sum of input output-port counts).