LibrePCB Developers Documentation
|
Implementation of librepcb::WorkspaceSettingsItem to store theme configurations. More...
#include <workspacesettingsitem_themes.h>
Public Member Functions | |
WorkspaceSettingsItem_Themes ()=delete | |
WorkspaceSettingsItem_Themes (const WorkspaceSettingsItem_Themes &other)=delete | |
WorkspaceSettingsItem_Themes (QObject *parent=nullptr) noexcept | |
~WorkspaceSettingsItem_Themes () noexcept | |
const QMap< Uuid, Theme > & | getAll () const noexcept |
const Uuid & | getActiveUuid () const noexcept |
const Theme & | getActive () const noexcept |
void | setAll (const QMap< Uuid, Theme > &themes) noexcept |
void | setActiveUuid (const Uuid &uuid) noexcept |
WorkspaceSettingsItem_Themes & | operator= (const WorkspaceSettingsItem_Themes &rhs)=delete |
Public Member Functions inherited from WorkspaceSettingsItem | |
WorkspaceSettingsItem ()=delete | |
WorkspaceSettingsItem (const QString &key, QObject *parent=nullptr) noexcept | |
WorkspaceSettingsItem (const WorkspaceSettingsItem &other)=delete | |
virtual | ~WorkspaceSettingsItem () noexcept |
const QString & | getKey () const noexcept |
Get the setting key used for serialization. More... | |
bool | isDefaultValue () const noexcept |
Check whether this setting is at its default value (not modified) More... | |
bool | isEdited () const noexcept |
Check whether this setting was edited sinc the last load or save. More... | |
void | restoreDefault () noexcept |
Restore default value. More... | |
void | load (const SExpression &root) |
Load value from S-Expression file. More... | |
void | serialize (SExpression &root) const |
Serialize the value into S-Expression nodes. More... | |
WorkspaceSettingsItem & | operator= (const WorkspaceSettingsItem &rhs)=delete |
Private Member Functions | |
virtual void | restoreDefaultImpl () noexcept override |
Restore default value. More... | |
void | loadImpl (const SExpression &root) override |
Load value from S-Expression node. More... | |
void | serializeImpl (SExpression &root) const override |
Serialize the value into S-Expression node. More... | |
void | addTheme (const Theme &theme) noexcept |
void | updateActiveTheme () noexcept |
Private Attributes | |
QMap< Uuid, Theme > | mThemes |
Uuid | mActiveUuid |
Theme | mActiveTheme |
Additional Inherited Members | |
Signals inherited from WorkspaceSettingsItem | |
void | edited () |
Signal to notify about changes of the settings value. More... | |
Protected Member Functions inherited from WorkspaceSettingsItem | |
void | valueModified () noexcept |
virtual void | restoreDefaultImpl () noexcept=0 |
Restore default value. More... | |
virtual void | loadImpl (const SExpression &root)=0 |
Load value from S-Expression node. More... | |
virtual void | serializeImpl (SExpression &root) const =0 |
Serialize the value into S-Expression node. More... | |
Implementation of librepcb::WorkspaceSettingsItem to store theme configurations.
|
delete |
|
delete |
|
explicitnoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
delete |
|
overrideprivatevirtualnoexcept |
Restore default value.
Implements WorkspaceSettingsItem.
|
overrideprivatevirtual |
Load value from S-Expression node.
root | S-Expression node of the settings element. |
Implements WorkspaceSettingsItem.
|
overrideprivatevirtual |
Serialize the value into S-Expression node.
root | S-Expression node to be updated. |
Implements WorkspaceSettingsItem.
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |