20#ifndef LIBREPCB_EDITOR_CMDCOMPONENTSYMBOLVARIANTEDIT_H
21#define LIBREPCB_EDITOR_CMDCOMPONENTSYMBOLVARIANTEDIT_H
26#include "../../cmd/cmdlistelementinsert.h"
27#include "../../cmd/cmdlistelementremove.h"
28#include "../../cmd/cmdlistelementsswap.h"
29#include "../../undocommand.h"
59 void setNorm(const QString& norm) noexcept;
The ComponentSymbolVariant class represents a symbol variant of a component.
Definition componentsymbolvariant.h:53
The CmdComponentSymbolVariantEdit class.
Definition cmdcomponentsymbolvariantedit.h:48
void performRedo() override
Redo the command.
Definition cmdcomponentsymbolvariantedit.cpp:92
LocalizedDescriptionMap mNewDescriptions
Definition cmdcomponentsymbolvariantedit.h:85
ComponentSymbolVariant & mVariant
Definition cmdcomponentsymbolvariantedit.h:78
LocalizedDescriptionMap mOldDescriptions
Definition cmdcomponentsymbolvariantedit.h:84
CmdComponentSymbolVariantEdit(const CmdComponentSymbolVariantEdit &other)=delete
void setNames(const LocalizedNameMap &names) noexcept
Definition cmdcomponentsymbolvariantedit.cpp:61
void performUndo() override
Undo the command.
Definition cmdcomponentsymbolvariantedit.cpp:86
~CmdComponentSymbolVariantEdit() noexcept
Definition cmdcomponentsymbolvariantedit.cpp:49
void setNorm(const QString &norm) noexcept
Definition cmdcomponentsymbolvariantedit.cpp:56
LocalizedNameMap mOldNames
Definition cmdcomponentsymbolvariantedit.h:82
LocalizedNameMap mNewNames
Definition cmdcomponentsymbolvariantedit.h:83
CmdComponentSymbolVariantEdit()=delete
void setDescriptions(const LocalizedDescriptionMap &descriptions) noexcept
Definition cmdcomponentsymbolvariantedit.cpp:67
QString mNewNorm
Definition cmdcomponentsymbolvariantedit.h:81
bool performExecute() override
Execute the command the first time.
Definition cmdcomponentsymbolvariantedit.cpp:77
QString mOldNorm
Definition cmdcomponentsymbolvariantedit.h:80
The CmdListElementInsert class.
Definition cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition cmdlistelementsswap.h:46
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
CmdListElementRemove< ComponentSymbolVariant, ComponentSymbolVariantListNameProvider, ComponentSymbolVariant::Event > CmdComponentSymbolVariantRemove
Definition cmdcomponentsymbolvariantedit.h:99
CmdListElementsSwap< ComponentSymbolVariant, ComponentSymbolVariantListNameProvider, ComponentSymbolVariant::Event > CmdComponentSymbolVariantsSwap
Definition cmdcomponentsymbolvariantedit.h:103
CmdListElementInsert< ComponentSymbolVariant, ComponentSymbolVariantListNameProvider, ComponentSymbolVariant::Event > CmdComponentSymbolVariantInsert
Definition cmdcomponentsymbolvariantedit.h:95
Definition occmodel.cpp:77
Definition componentsymbolvariant.h:142