20#ifndef LIBREPCB_EDITOR_CMDPACKAGEMODELADD_H
21#define LIBREPCB_EDITOR_CMDPACKAGEMODELADD_H
26#include "../../undocommand.h"
56 const QByteArray& fileContent,
57 bool addToFootprints)
noexcept;
The Package class represents a package of a component (including footprint and 3D model)
Definition package.h:59
Represents a 3D model of a librepcb::Package.
Definition packagemodel.h:43
The CmdPackageModelAdd class.
Definition cmdpackagemodeladd.h:50
void performRedo() override
Redo the command.
Definition cmdpackagemodeladd.cpp:84
CmdPackageModelAdd(const CmdPackageModelAdd &other)=delete
QVector< std::shared_ptr< Footprint > > mAddedToFootprints
Definition cmdpackagemodeladd.h:78
bool mAddToFootprints
Definition cmdpackagemodeladd.h:77
~CmdPackageModelAdd() noexcept
Definition cmdpackagemodeladd.cpp:51
CmdPackageModelAdd()=delete
std::shared_ptr< PackageModel > mModel
Definition cmdpackagemodeladd.h:75
void performUndo() override
Undo the command.
Definition cmdpackagemodeladd.cpp:72
Package & mPackage
Definition cmdpackagemodeladd.h:74
QByteArray mFileContent
Definition cmdpackagemodeladd.h:76
bool performExecute() override
Execute the command the first time.
Definition cmdpackagemodeladd.cpp:58
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76