20#ifndef LIBREPCB_EDITOR_CMDNETSIGNALADD_H
21#define LIBREPCB_EDITOR_CMDNETSIGNALADD_H
26#include "../../undocommand.h"
57 const std::optional<CircuitIdentifier>& name = std::nullopt)
noexcept;
79 std::optional<CircuitIdentifier>
mName;
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition circuit.h:70
The NetClass class.
Definition netclass.h:46
The NetSignal class.
Definition netsignal.h:50
The CmdNetSignalAdd class.
Definition cmdnetsignaladd.h:52
void performRedo() override
Redo the command.
Definition cmdnetsignaladd.cpp:76
Circuit & mCircuit
Definition cmdnetsignaladd.h:77
NetClass & mNetClass
Definition cmdnetsignaladd.h:78
NetSignal * mNetSignal
Definition cmdnetsignaladd.h:80
std::optional< CircuitIdentifier > mName
Definition cmdnetsignaladd.h:79
void performUndo() override
Undo the command.
Definition cmdnetsignaladd.cpp:72
NetSignal * getNetSignal() const noexcept
Definition cmdnetsignaladd.h:61
~CmdNetSignalAdd() noexcept
Definition cmdnetsignaladd.cpp:50
bool performExecute() override
Execute the command the first time.
Definition cmdnetsignaladd.cpp:57
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76