20#ifndef LIBREPCB_EDITOR_CMDPACKAGEMODELEDIT_H
21#define LIBREPCB_EDITOR_CMDPACKAGEMODELEDIT_H
26#include "../../cmd/cmdlistelementsswap.h"
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 CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
The CmdPackageModelEdit class.
Definition: cmdpackagemodeledit.h:48
virtual void performRedo() override
Redo the command.
Definition: cmdpackagemodeledit.cpp:95
void setName(const ElementName &name) noexcept
Definition: cmdpackagemodeledit.cpp:57
QByteArray mOldStepContent
Definition: cmdpackagemodeledit.h:79
virtual ~CmdPackageModelEdit() noexcept
Definition: cmdpackagemodeledit.cpp:50
PackageModel & mModel
Definition: cmdpackagemodeledit.h:75
CmdPackageModelEdit(const CmdPackageModelEdit &other)=delete
virtual void performUndo() override
Undo the command.
Definition: cmdpackagemodeledit.cpp:84
void setStepContent(const QByteArray &content) noexcept
Definition: cmdpackagemodeledit.cpp:62
Package & mPackage
Definition: cmdpackagemodeledit.h:74
CmdPackageModelEdit()=delete
ElementName mNewName
Definition: cmdpackagemodeledit.h:78
ElementName mOldName
Definition: cmdpackagemodeledit.h:77
QByteArray mNewStepContent
Definition: cmdpackagemodeledit.h:80
virtual bool performExecute() override
Execute the command the first time.
Definition: cmdpackagemodeledit.cpp:71
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
Definition: packagemodel.h:95