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:102
LocalizedDescriptionMap mNewDescriptions
Definition cmdcomponentsymbolvariantedit.h:86
ComponentSymbolVariant & mVariant
Definition cmdcomponentsymbolvariantedit.h:79
LocalizedDescriptionMap mOldDescriptions
Definition cmdcomponentsymbolvariantedit.h:85
CmdComponentSymbolVariantEdit(const CmdComponentSymbolVariantEdit &other)=delete
ComponentSymbolVariantItemList mNewSymbolItems
Definition cmdcomponentsymbolvariantedit.h:88
void setNames(const LocalizedNameMap &names) noexcept
Definition cmdcomponentsymbolvariantedit.cpp:63
void performUndo() override
Undo the command.
Definition cmdcomponentsymbolvariantedit.cpp:95
~CmdComponentSymbolVariantEdit() noexcept
Definition cmdcomponentsymbolvariantedit.cpp:51
void setNorm(const QString &norm) noexcept
Definition cmdcomponentsymbolvariantedit.cpp:58
LocalizedNameMap mOldNames
Definition cmdcomponentsymbolvariantedit.h:83
LocalizedNameMap mNewNames
Definition cmdcomponentsymbolvariantedit.h:84
CmdComponentSymbolVariantEdit()=delete
void setSymbolItems(const ComponentSymbolVariantItemList &items) noexcept
Definition cmdcomponentsymbolvariantedit.cpp:75
void setDescriptions(const LocalizedDescriptionMap &descriptions) noexcept
Definition cmdcomponentsymbolvariantedit.cpp:69
QString mNewNorm
Definition cmdcomponentsymbolvariantedit.h:82
bool performExecute() override
Execute the command the first time.
Definition cmdcomponentsymbolvariantedit.cpp:85
ComponentSymbolVariantItemList mOldSymbolItems
Definition cmdcomponentsymbolvariantedit.h:87
QString mOldNorm
Definition cmdcomponentsymbolvariantedit.h:81
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:102
CmdListElementsSwap< ComponentSymbolVariant, ComponentSymbolVariantListNameProvider, ComponentSymbolVariant::Event > CmdComponentSymbolVariantsSwap
Definition cmdcomponentsymbolvariantedit.h:106
CmdListElementInsert< ComponentSymbolVariant, ComponentSymbolVariantListNameProvider, ComponentSymbolVariant::Event > CmdComponentSymbolVariantInsert
Definition cmdcomponentsymbolvariantedit.h:98
Definition occmodel.cpp:76
Definition componentsymbolvariant.h:142