20#ifndef LIBREPCB_EDITOR_CMDPACKAGEMODELREMOVE_H
21#define LIBREPCB_EDITOR_CMDPACKAGEMODELREMOVE_H
26#include "../../undocommand.h"
56 std::shared_ptr<PackageModel> model)
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 CmdPackageModelRemove class.
Definition: cmdpackagemodelremove.h:50
void performRedo() override
Redo the command.
Definition: cmdpackagemodelremove.cpp:86
int mIndex
Definition: cmdpackagemodelremove.h:77
std::shared_ptr< PackageModel > mModel
Definition: cmdpackagemodelremove.h:74
void performUndo() override
Undo the command.
Definition: cmdpackagemodelremove.cpp:73
Package & mPackage
Definition: cmdpackagemodelremove.h:73
QByteArray mFileContent
Definition: cmdpackagemodelremove.h:75
QVector< std::shared_ptr< Footprint > > mRemovedFromFootprints
Definition: cmdpackagemodelremove.h:76
~CmdPackageModelRemove() noexcept
Definition: cmdpackagemodelremove.cpp:49
bool performExecute() override
Execute the command the first time.
Definition: cmdpackagemodelremove.cpp:56
CmdPackageModelRemove()=delete
CmdPackageModelRemove(const CmdPackageModelRemove &other)=delete
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77