20#ifndef LIBREPCB_EDITOR_CMDSCHEMATICEDIT_H
21#define LIBREPCB_EDITOR_CMDSCHEMATICEDIT_H
26#include "../../undocommand.h"
The Schematic class represents one schematic page of a project and is always part of a circuit.
Definition: schematic.h:74
The CmdSchematicEdit class.
Definition: cmdschematicedit.h:48
void performRedo() override
Redo the command.
Definition: cmdschematicedit.cpp:73
void setName(const ElementName &name) noexcept
Definition: cmdschematicedit.cpp:53
Schematic & mSchematic
Definition: cmdschematicedit.h:73
void performUndo() override
Undo the command.
Definition: cmdschematicedit.cpp:69
ElementName mNewName
Definition: cmdschematicedit.h:76
CmdSchematicEdit(const CmdSchematicEdit &other)=delete
ElementName mOldName
Definition: cmdschematicedit.h:75
CmdSchematicEdit()=delete
~CmdSchematicEdit() noexcept
Definition: cmdschematicedit.cpp:46
bool performExecute() override
Execute the command the first time.
Definition: cmdschematicedit.cpp:62
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:84