20#ifndef LIBREPCB_EDITOR_CMDATTRIBUTEEDIT_H
21#define LIBREPCB_EDITOR_CMDATTRIBUTEEDIT_H
26#include "../undocommand.h"
59 void setValue(const QString& value) noexcept;
The Attribute class.
Definition attribute.h:46
The AttributeType class.
Definition attributetype.h:42
The AttributeUnit class.
Definition attributeunit.h:40
The CmdAttributeEdit class.
Definition cmdattributeedit.h:48
void performRedo() override
Redo the command.
Definition cmdattributeedit.cpp:99
AttributeKey mNewKey
Definition cmdattributeedit.h:84
void setType(const AttributeType &type) noexcept
Definition cmdattributeedit.cpp:62
const AttributeUnit * mOldUnit
Definition cmdattributeedit.h:89
CmdAttributeEdit(const CmdAttributeEdit &other)=delete
void setValue(const QString &value) noexcept
Definition cmdattributeedit.cpp:67
Attribute & mAttribute
Definition cmdattributeedit.h:80
const AttributeType * mOldType
Definition cmdattributeedit.h:85
void performUndo() override
Undo the command.
Definition cmdattributeedit.cpp:94
CmdAttributeEdit()=delete
void setKey(const AttributeKey &key) noexcept
Definition cmdattributeedit.cpp:57
const AttributeUnit * mNewUnit
Definition cmdattributeedit.h:90
QString mNewValue
Definition cmdattributeedit.h:88
AttributeKey mOldKey
Definition cmdattributeedit.h:83
QString mOldValue
Definition cmdattributeedit.h:87
~CmdAttributeEdit() noexcept
Definition cmdattributeedit.cpp:50
const AttributeType * mNewType
Definition cmdattributeedit.h:86
bool performExecute() override
Execute the command the first time.
Definition cmdattributeedit.cpp:81
void setUnit(const AttributeUnit *unit) noexcept
Definition cmdattributeedit.cpp:72
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< Attribute, AttributeListNameProvider, Attribute::Event > CmdAttributeRemove
Definition cmdattributeedit.h:102
CmdListElementsSwap< Attribute, AttributeListNameProvider, Attribute::Event > CmdAttributesSwap
Definition cmdattributeedit.h:104
CmdListElementInsert< Attribute, AttributeListNameProvider, Attribute::Event > CmdAttributeInsert
Definition cmdattributeedit.h:99
Definition occmodel.cpp:76
type_safe::constrained_type< QString, AttributeKeyConstraint, AttributeKeyVerifier > AttributeKey
Definition attributekey.h:83
Definition attribute.h:111