20 #ifndef LIBREPCB_CORE_WORKSPACESETTINGSITEM_THEMES_H 21 #define LIBREPCB_CORE_WORKSPACESETTINGSITEM_THEMES_H 61 void setAll(
const QMap<Uuid, Theme>& themes) noexcept;
void setActiveUuid(const Uuid &uuid) noexcept
Definition: workspacesettingsitem_themes.cpp:61
const QMap< Uuid, Theme > & getAll() const noexcept
Definition: workspacesettingsitem_themes.h:56
virtual void restoreDefaultImpl() noexcept override
Restore default value.
Definition: workspacesettingsitem_themes.cpp:73
Implementation of librepcb::WorkspaceSettingsItem to store theme configurations.
Definition: workspacesettingsitem_themes.h:44
void loadImpl(const SExpression &root) override
Load value from S-Expression node.
Definition: workspacesettingsitem_themes.cpp:81
const Uuid & getActiveUuid() const noexcept
Definition: workspacesettingsitem_themes.h:57
QMap< Uuid, Theme > mThemes
Definition: workspacesettingsitem_themes.h:88
Definition: occmodel.cpp:77
void serializeImpl(SExpression &root) const override
Serialize the value into S-Expression node.
Definition: workspacesettingsitem_themes.cpp:99
~WorkspaceSettingsItem_Themes() noexcept
Definition: workspacesettingsitem_themes.cpp:45
void updateActiveTheme() noexcept
Definition: workspacesettingsitem_themes.cpp:112
Uuid mActiveUuid
Definition: workspacesettingsitem_themes.h:89
WorkspaceSettingsItem_Themes & operator=(const WorkspaceSettingsItem_Themes &rhs)=delete
Theme mActiveTheme
Definition: workspacesettingsitem_themes.h:90
void addTheme(const Theme &theme) noexcept
Definition: workspacesettingsitem_themes.cpp:108
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Base class for all workspace settings items.
Definition: workspacesettingsitem.h:49
const Theme & getActive() const noexcept
Definition: workspacesettingsitem_themes.h:58
void setAll(const QMap< Uuid, Theme > &themes) noexcept
Definition: workspacesettingsitem_themes.cpp:52
Theme class as used by librepcb::WorkspaceSettingsItem_Themes.
Definition: theme.h:44
The SExpression class.
Definition: sexpression.h:69
WorkspaceSettingsItem_Themes()=delete