20#ifndef LIBREPCB_EDITOR_CMDLIBRARYBASEELEMENTEDIT_H
21#define LIBREPCB_EDITOR_CMDLIBRARYBASEELEMENTEDIT_H
26#include "../../undocommand.h"
51 const QString& text)
noexcept;
57 void setDescription(const QString& locale, const QString& desc) noexcept;
59 void setKeywords(const QString& locale, const QString& keywords) noexcept;
62 void setAuthor(const QString& author) noexcept;
The LibraryBaseElement class.
Definition: librarybaseelement.h:48
The Version class represents a version number in the format "1.42.7".
Definition: version.h:58
The CmdLibraryBaseElementEdit class.
Definition: cmdlibrarybaseelementedit.h:45
virtual void performRedo() override
Redo the command.
Definition: cmdlibrarybaseelementedit.cpp:138
void setName(const QString &locale, const ElementName &name) noexcept
Definition: cmdlibrarybaseelementedit.cpp:62
void setVersion(const Version &version) noexcept
Definition: cmdlibrarybaseelementedit.cpp:98
LocalizedDescriptionMap mNewDescriptions
Definition: cmdlibrarybaseelementedit.h:85
LocalizedKeywordsMap mNewKeywords
Definition: cmdlibrarybaseelementedit.h:87
void setDeprecated(bool deprecated) noexcept
Definition: cmdlibrarybaseelementedit.cpp:108
LocalizedDescriptionMap mOldDescriptions
Definition: cmdlibrarybaseelementedit.h:84
void setNames(const LocalizedNameMap &names) noexcept
Definition: cmdlibrarybaseelementedit.cpp:68
virtual void performUndo() override
Undo the command.
Definition: cmdlibrarybaseelementedit.cpp:129
Version mNewVersion
Definition: cmdlibrarybaseelementedit.h:89
bool mOldDeprecated
Definition: cmdlibrarybaseelementedit.h:92
CmdLibraryBaseElementEdit()=delete
LibraryBaseElement & mElement
Definition: cmdlibrarybaseelementedit.h:80
Version mOldVersion
Definition: cmdlibrarybaseelementedit.h:88
LocalizedNameMap mOldNames
Definition: cmdlibrarybaseelementedit.h:82
LocalizedNameMap mNewNames
Definition: cmdlibrarybaseelementedit.h:83
bool mNewDeprecated
Definition: cmdlibrarybaseelementedit.h:93
virtual ~CmdLibraryBaseElementEdit() noexcept
Definition: cmdlibrarybaseelementedit.cpp:55
QString mOldAuthor
Definition: cmdlibrarybaseelementedit.h:90
void setDescriptions(const LocalizedDescriptionMap &descriptions) noexcept
Definition: cmdlibrarybaseelementedit.cpp:80
void setKeywords(const QString &locale, const QString &keywords) noexcept
Definition: cmdlibrarybaseelementedit.cpp:86
virtual bool performExecute() override
Execute the command the first time.
Definition: cmdlibrarybaseelementedit.cpp:117
LocalizedKeywordsMap mOldKeywords
Definition: cmdlibrarybaseelementedit.h:86
CmdLibraryBaseElementEdit(const CmdLibraryBaseElementEdit &other)=delete
void setDescription(const QString &locale, const QString &desc) noexcept
Definition: cmdlibrarybaseelementedit.cpp:74
void setAuthor(const QString &author) noexcept
Definition: cmdlibrarybaseelementedit.cpp:103
QString mNewAuthor
Definition: cmdlibrarybaseelementedit.h:91
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:84