20#ifndef LIBREPCB_EDITOR_CMDNETCLASSADD_H
21#define LIBREPCB_EDITOR_CMDNETCLASSADD_H
26#include "../../undocommand.h"
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 CmdNetClassAdd class.
Definition cmdnetclassadd.h:49
void performRedo() override
Redo the command.
Definition cmdnetclassadd.cpp:67
NetClass * getNetClass() const noexcept
Definition cmdnetclassadd.h:56
Circuit & mCircuit
Definition cmdnetclassadd.h:72
~CmdNetClassAdd() noexcept
Definition cmdnetclassadd.cpp:48
void performUndo() override
Undo the command.
Definition cmdnetclassadd.cpp:63
ElementName mName
Definition cmdnetclassadd.h:73
bool performExecute() override
Execute the command the first time.
Definition cmdnetclassadd.cpp:55
NetClass * mNetClass
Definition cmdnetclassadd.h:74
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition elementname.h:84