20#ifndef LIBREPCB_EDITOR_CMDCOMPONENTINSTANCEEDIT_H
21#define LIBREPCB_EDITOR_CMDCOMPONENTINSTANCEEDIT_H
26#include "../../undocommand.h"
41class ComponentInstance;
42class ComponentSymbolVariant;
61 void setValue(
const QString& value)
noexcept;
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition: circuit.h:70
The ComponentInstance class.
Definition: componentinstance.h:54
The CmdComponentInstanceEdit class.
Definition: cmdcomponentinstanceedit.h:53
void performRedo() override
Redo the command.
Definition: cmdcomponentinstanceedit.cpp:105
void setAssemblyOptions(const ComponentAssemblyOptionList &options) noexcept
Definition: cmdcomponentinstanceedit.cpp:78
AttributeList mNewAttributes
Definition: cmdcomponentinstanceedit.h:89
Circuit & mCircuit
Definition: cmdcomponentinstanceedit.h:80
CircuitIdentifier mOldName
Definition: cmdcomponentinstanceedit.h:84
AttributeList mOldAttributes
Definition: cmdcomponentinstanceedit.h:88
void setValue(const QString &value) noexcept
Definition: cmdcomponentinstanceedit.cpp:67
ComponentInstance & mComponentInstance
Definition: cmdcomponentinstanceedit.h:81
void performUndo() override
Undo the command.
Definition: cmdcomponentinstanceedit.cpp:98
ComponentAssemblyOptionList mOldAssemblyOptions
Definition: cmdcomponentinstanceedit.h:90
ComponentAssemblyOptionList mNewAssemblyOptions
Definition: cmdcomponentinstanceedit.h:91
QString mNewValue
Definition: cmdcomponentinstanceedit.h:87
~CmdComponentInstanceEdit() noexcept
Definition: cmdcomponentinstanceedit.cpp:55
void setName(const CircuitIdentifier &name) noexcept
Definition: cmdcomponentinstanceedit.cpp:62
QString mOldValue
Definition: cmdcomponentinstanceedit.h:86
void setAttributes(const AttributeList &attributes) noexcept
Definition: cmdcomponentinstanceedit.cpp:72
bool performExecute() override
Execute the command the first time.
Definition: cmdcomponentinstanceedit.cpp:88
CmdComponentInstanceEdit(Circuit &circuit, ComponentInstance &cmp) noexcept
Definition: cmdcomponentinstanceedit.cpp:40
CircuitIdentifier mNewName
Definition: cmdcomponentinstanceedit.h:85
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition: circuitidentifier.h:96