20#ifndef LIBREPCB_EDITOR_CMDPARTEDIT_H
21#define LIBREPCB_EDITOR_CMDPARTEDIT_H
26#include "../../cmd/cmdlistelementinsert.h"
27#include "../../cmd/cmdlistelementremove.h"
28#include "../../cmd/cmdlistelementsswap.h"
29#include "../../undocommand.h"
The Part class.
Definition: part.h:46
The CmdListElementInsert class.
Definition: cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition: cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
The CmdPartEdit class.
Definition: cmdpartedit.h:48
void performRedo() override
Redo the command.
Definition: cmdpartedit.cpp:80
void setManufacturer(const SimpleString &value) noexcept
Definition: cmdpartedit.cpp:58
SimpleString mNewMpn
Definition: cmdpartedit.h:77
void performUndo() override
Undo the command.
Definition: cmdpartedit.cpp:75
SimpleString mNewManufacturer
Definition: cmdpartedit.h:79
Part & mPart
Definition: cmdpartedit.h:74
~CmdPartEdit() noexcept
Definition: cmdpartedit.cpp:46
SimpleString mOldManufacturer
Definition: cmdpartedit.h:78
bool performExecute() override
Execute the command the first time.
Definition: cmdpartedit.cpp:67
CmdPartEdit(const CmdPartEdit &other)=delete
void setMpn(const SimpleString &value) noexcept
Definition: cmdpartedit.cpp:53
SimpleString mOldMpn
Definition: cmdpartedit.h:76
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, SimpleStringConstraint, SimpleStringVerifier > SimpleString
Definition: simplestring.h:80