20#ifndef LIBREPCB_EDITOR_CMDSCHEMATICADD_H
21#define LIBREPCB_EDITOR_CMDSCHEMATICADD_H
26#include "../../undocommand.h"
The Project class represents a whole (opened) project with all its content.
Definition: project.h:71
The Schematic class represents one schematic page of a project and is always part of a circuit.
Definition: schematic.h:74
The CmdSchematicAdd class.
Definition: cmdschematicadd.h:49
void performRedo() override
Redo the command.
Definition: cmdschematicadd.cpp:72
QString mDirName
Definition: cmdschematicadd.h:74
void performUndo() override
Undo the command.
Definition: cmdschematicadd.cpp:68
ElementName mName
Definition: cmdschematicadd.h:75
int mPageIndex
Definition: cmdschematicadd.h:77
Schematic * mSchematic
Definition: cmdschematicadd.h:76
Project & mProject
Definition: cmdschematicadd.h:73
~CmdSchematicAdd() noexcept
Definition: cmdschematicadd.cpp:50
bool performExecute() override
Execute the command the first time.
Definition: cmdschematicadd.cpp:57
CmdSchematicAdd(Project &project, const QString &dirName, const ElementName &name) noexcept
Definition: cmdschematicadd.cpp:40
Schematic * getSchematic() const noexcept
Definition: cmdschematicadd.h:57
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