20#ifndef LIBREPCB_EDITOR_CMDNETSIGNALADD_H
21#define LIBREPCB_EDITOR_CMDNETSIGNALADD_H
26#include "../../undocommand.h"
32#include <optional.hpp>
57 const tl::optional<CircuitIdentifier>& name = tl::nullopt)
noexcept;
79 tl::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
tl::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(Circuit &circuit, NetClass &netclass, const tl::optional< CircuitIdentifier > &name=tl::nullopt) noexcept
Definition: cmdnetsignaladd.cpp:40
~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:77