20#ifndef LIBREPCB_EDITOR_CMDASSEMBLYVARIANTEDIT_H
21#define LIBREPCB_EDITOR_CMDASSEMBLYVARIANTEDIT_H
26#include "../../cmd/cmdlistelementsswap.h"
27#include "../../undocommand.h"
55 std::shared_ptr<AssemblyVariant> av)
noexcept;
The AssemblyVariant class.
Definition: assemblyvariant.h:45
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition: circuit.h:70
The CmdAssemblyVariantEdit class.
Definition: cmdassemblyvariantedit.h:49
void performRedo() override
Redo the command.
Definition: cmdassemblyvariantedit.cpp:84
FileProofName mOldName
Definition: cmdassemblyvariantedit.h:79
CmdAssemblyVariantEdit(const CmdAssemblyVariantEdit &other)=delete
Circuit & mCircuit
Definition: cmdassemblyvariantedit.h:76
void performUndo() override
Undo the command.
Definition: cmdassemblyvariantedit.cpp:79
FileProofName mNewName
Definition: cmdassemblyvariantedit.h:80
std::shared_ptr< AssemblyVariant > mAssemblyVariant
Definition: cmdassemblyvariantedit.h:77
void setDescription(const QString &value) noexcept
Definition: cmdassemblyvariantedit.cpp:62
void setName(const FileProofName &value) noexcept
Definition: cmdassemblyvariantedit.cpp:57
QString mOldDescription
Definition: cmdassemblyvariantedit.h:81
~CmdAssemblyVariantEdit() noexcept
Definition: cmdassemblyvariantedit.cpp:50
CmdAssemblyVariantEdit()=delete
bool performExecute() override
Execute the command the first time.
Definition: cmdassemblyvariantedit.cpp:71
QString mNewDescription
Definition: cmdassemblyvariantedit.h:82
The CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, FileProofNameConstraint, FileProofNameVerifier > FileProofName
Definition: fileproofname.h:89
Definition: assemblyvariant.h:105