20#ifndef LIBREPCB_EDITOR_CMDASSEMBLYVARIANTADD_H
21#define LIBREPCB_EDITOR_CMDASSEMBLYVARIANTADD_H
26#include "../../undocommand.h"
54 std::shared_ptr<AssemblyVariant> copyFromAv,
55 int index = -1) noexcept;
The AssemblyVariant class.
Definition assemblyvariant.h:44
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition circuit.h:70
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
The CmdAssemblyVariantAdd class.
Definition cmdassemblyvariantadd.h:48
void performRedo() override
Redo the command.
Definition cmdassemblyvariantadd.cpp:93
QList< std::pair< Uuid, int > > mComponentAssemblyOptions
Definition cmdassemblyvariantadd.h:75
Circuit & mCircuit
Definition cmdassemblyvariantadd.h:72
int mIndex
Definition cmdassemblyvariantadd.h:76
CmdAssemblyVariantAdd(const CmdAssemblyVariantAdd &other)=delete
void performUndo() override
Undo the command.
Definition cmdassemblyvariantadd.cpp:75
std::shared_ptr< AssemblyVariant > mAssemblyVariant
Definition cmdassemblyvariantadd.h:73
CmdAssemblyVariantAdd()=delete
bool performExecute() override
Execute the command the first time.
Definition cmdassemblyvariantadd.cpp:59
std::shared_ptr< AssemblyVariant > mCopyFromAv
Definition cmdassemblyvariantadd.h:74
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76