20#ifndef LIBREPCB_EDITOR_CMDBOARDADD_H
21#define LIBREPCB_EDITOR_CMDBOARDADD_H
26#include "../../undocommand.h"
53 const Board* boardToCopy =
nullptr)
noexcept;
The Board class represents a PCB of a project and is always part of a circuit.
Definition board.h:73
The Project class represents a whole (opened) project with all its content.
Definition project.h:71
The CmdBoardAdd class.
Definition cmdboardadd.h:49
void performRedo() override
Redo the command.
Definition cmdboardadd.cpp:79
QString mDirName
Definition cmdboardadd.h:74
void performUndo() override
Undo the command.
Definition cmdboardadd.cpp:75
const Board * mBoardToCopy
Definition cmdboardadd.h:76
ElementName mName
Definition cmdboardadd.h:75
Board * getBoard() const noexcept
Definition cmdboardadd.h:57
Board * mBoard
Definition cmdboardadd.h:78
int mPageIndex
Definition cmdboardadd.h:79
Project & mProject
Definition cmdboardadd.h:73
~CmdBoardAdd() noexcept
Definition cmdboardadd.cpp:52
bool performExecute() override
Execute the command the first time.
Definition cmdboardadd.cpp:59
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