20#ifndef LIBREPCB_EDITOR_CMDCOMPONENTEDIT_H
21#define LIBREPCB_EDITOR_CMDCOMPONENTEDIT_H
The Component class represents a "generic" device in the library.
Definition: component.h:73
The CmdComponentEdit class.
Definition: cmdcomponentedit.h:45
virtual void performRedo() override
Redo the command.
Definition: cmdcomponentedit.cpp:96
QString mOldDefaultValue
Definition: cmdcomponentedit.h:77
bool mOldSchematicOnly
Definition: cmdcomponentedit.h:75
NormDependentPrefixMap mOldPrefixes
Definition: cmdcomponentedit.h:79
CmdComponentEdit(const CmdComponentEdit &other)=delete
virtual void performUndo() override
Undo the command.
Definition: cmdcomponentedit.cpp:89
void setPrefix(const QString &norm, const ComponentPrefix &prefix) noexcept
Definition: cmdcomponentedit.cpp:65
void setDefaultValue(const QString &value) noexcept
Definition: cmdcomponentedit.cpp:60
CmdComponentEdit()=delete
bool mNewSchematicOnly
Definition: cmdcomponentedit.h:76
virtual ~CmdComponentEdit() noexcept
Definition: cmdcomponentedit.cpp:48
QString mNewDefaultValue
Definition: cmdcomponentedit.h:78
Component & mComponent
Definition: cmdcomponentedit.h:73
void setIsSchematicOnly(bool schematicOnly) noexcept
Definition: cmdcomponentedit.cpp:55
virtual bool performExecute() override
Execute the command the first time.
Definition: cmdcomponentedit.cpp:81
NormDependentPrefixMap mNewPrefixes
Definition: cmdcomponentedit.h:80
void setPrefixes(const NormDependentPrefixMap &prefixes) noexcept
Definition: cmdcomponentedit.cpp:71
The CmdLibraryElementEdit class.
Definition: cmdlibraryelementedit.h:45
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, ComponentPrefixConstraint, ComponentPrefixVerifier > ComponentPrefix
Definition: componentprefix.h:85