20#ifndef LIBREPCB_EDITOR_CMDLIBRARYEDIT_H
21#define LIBREPCB_EDITOR_CMDLIBRARYEDIT_H
54 void setUrl(const QUrl& url) noexcept;
56 void setIcon(const QByteArray& png) noexcept;
The Library class represents a library directory.
Definition: library.h:46
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The CmdLibraryBaseElementEdit class.
Definition: cmdlibrarybaseelementedit.h:45
The CmdLibraryEdit class.
Definition: cmdlibraryedit.h:45
void setIcon(const QByteArray &png) noexcept
Definition: cmdlibraryedit.cpp:67
virtual void performRedo() override
Redo the command.
Definition: cmdlibraryedit.cpp:98
void setManufacturer(const SimpleString &value) noexcept
Definition: cmdlibraryedit.cpp:72
void setUrl(const QUrl &url) noexcept
Definition: cmdlibraryedit.cpp:57
void setDependencies(const QSet< Uuid > &deps) noexcept
Definition: cmdlibraryedit.cpp:62
Library & mLibrary
Definition: cmdlibraryedit.h:73
QUrl mNewUrl
Definition: cmdlibraryedit.h:76
virtual void performUndo() override
Undo the command.
Definition: cmdlibraryedit.cpp:90
virtual ~CmdLibraryEdit() noexcept
Definition: cmdlibraryedit.cpp:50
QSet< Uuid > mNewDependencies
Definition: cmdlibraryedit.h:78
QUrl mOldUrl
Definition: cmdlibraryedit.h:75
SimpleString mNewManufacturer
Definition: cmdlibraryedit.h:82
QByteArray mNewIcon
Definition: cmdlibraryedit.h:80
CmdLibraryEdit(const CmdLibraryEdit &other)=delete
QByteArray mOldIcon
Definition: cmdlibraryedit.h:79
SimpleString mOldManufacturer
Definition: cmdlibraryedit.h:81
virtual bool performExecute() override
Execute the command the first time.
Definition: cmdlibraryedit.cpp:81
QSet< Uuid > mOldDependencies
Definition: cmdlibraryedit.h:77
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, SimpleStringConstraint, SimpleStringVerifier > SimpleString
Definition: simplestring.h:80