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