20 #ifndef LIBREPCB_EDITOR_CMDNETCLASSADD_H 21 #define LIBREPCB_EDITOR_CMDNETCLASSADD_H 26 #include "../../undocommand.h" bool performExecute() override
Execute the command the first time.
Definition: cmdnetclassadd.cpp:55
Definition: occmodel.cpp:77
Circuit & mCircuit
Definition: cmdnetclassadd.h:72
The CmdNetClassAdd class.
Definition: cmdnetclassadd.h:49
~CmdNetClassAdd() noexcept
Definition: cmdnetclassadd.cpp:48
void performUndo() override
Undo the command.
Definition: cmdnetclassadd.cpp:63
The Circuit class represents all electrical connections in a project (drawn in the schematics) ...
Definition: circuit.h:70
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
The NetClass class.
Definition: netclass.h:46
void performRedo() override
Redo the command.
Definition: cmdnetclassadd.cpp:67
ElementName mName
Definition: cmdnetclassadd.h:73
CmdNetClassAdd(Circuit &circuit, const ElementName &name) noexcept
Definition: cmdnetclassadd.cpp:40
NetClass * getNetClass() const noexcept
Definition: cmdnetclassadd.h:56
NetClass * mNetClass
Definition: cmdnetclassadd.h:74
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:84