20#ifndef LIBREPCB_CORE_WORKSPACESETTINGS_H
21#define LIBREPCB_CORE_WORKSPACESETTINGS_H
26#include "../exceptions.h"
27#include "../types/lengthunit.h"
The LengthUnit class represents a length unit (millimeters, inches,...) and provides some useful meth...
Definition lengthunit.h:60
The SExpression class.
Definition sexpression.h:69
The Version class represents a version number in the format "1.42.7".
Definition version.h:58
Container for all workspace related settings.
Definition workspacesettings.h:60
~WorkspaceSettings() noexcept
Definition workspacesettings.cpp:68
WorkspaceSettingsItem_GenericValueList< QList< QUrl > > apiEndpoints
The list of API endpoint URLs in the right order.
Definition workspacesettings.h:209
std::unique_ptr< SExpression > serialize()
Serialize settings to librepcb::SExpression.
Definition workspacesettings.cpp:103
WorkspaceSettingsItem_GenericValue< bool > useOpenGl
Use OpenGL hardware acceleration.
Definition workspacesettings.h:177
WorkspaceSettingsItem_GenericValueList< QStringList > libraryLocaleOrder
Preferred library locales (like "de_CH") in the right order.
Definition workspacesettings.h:190
WorkspaceSettingsItem_GenericValue< bool > autofetchLivePartInformation
Enable auto-fetch of live parts information (through apiEndpoints)
Definition workspacesettings.h:216
WorkspaceSettingsItem_GenericValue< uint > projectAutosaveIntervalSeconds
Project autosave interval [seconds] (0 = autosave disabled)
Definition workspacesettings.h:170
WorkspaceSettingsItem_GenericValueList< QStringList > libraryNormOrder
Preferred library norms (like "DIN EN 81346") in the right order.
Definition workspacesettings.h:199
WorkspaceSettingsItem_GenericValueList< QSet< QString > > dismissedMessages
Dismissed messages.
Definition workspacesettings.h:288
WorkspaceSettingsItem_GenericValue< LengthUnit > defaultLengthUnit
The application's default length unit.
Definition workspacesettings.h:163
QList< WorkspaceSettingsItem * > getAllItems() const noexcept
Get all librepcb::WorkspaceSettingsItem objects.
Definition workspacesettings.cpp:130
WorkspaceSettingsItem_GenericValue< QString > applicationLocale
The application's locale (e.g. "en_US")
Definition workspacesettings.h:156
WorkspaceSettings(const WorkspaceSettings &other)=delete
void load(const SExpression &node, const Version &fileFormat)
Load settings from file.
Definition workspacesettings.cpp:75
WorkspaceSettingsItem_KeyboardShortcuts keyboardShortcuts
Keyboard shortcuts.
Definition workspacesettings.h:269
QMap< QString, SExpression > mFileContent
Settings nodes loaded by load()
Definition workspacesettings.h:124
WorkspaceSettingsItem_Themes themes
Themes.
Definition workspacesettings.h:276
WorkspaceSettingsItem_GenericValueList< QStringList > externalPdfReaderCommands
Custom command(s) to be used for opening PDF files.
Definition workspacesettings.h:257
WorkspaceSettingsItem_GenericValueList< QStringList > externalWebBrowserCommands
Custom command(s) to be used for opening web URLs.
Definition workspacesettings.h:230
bool mUpgradeRequired
Whether mFileContent needs to be upgraded or not.
Definition workspacesettings.h:129
WorkspaceSettingsItem_GenericValue< QString > userName
User name.
Definition workspacesettings.h:147
void restoreDefaults() noexcept
Reset all settings to their default value.
Definition workspacesettings.cpp:96
WorkspaceSettingsItem_GenericValueList< QStringList > externalFileManagerCommands
Custom command(s) to be used for opening directories.
Definition workspacesettings.h:244
Generic implementation of librepcb::WorkspaceSettingsItem for simple, value-type settings.
Definition workspacesettingsitem_genericvalue.h:44
Generic implementation of librepcb::WorkspaceSettingsItem for simple, value-in-list-type settings.
Definition workspacesettingsitem_genericvaluelist.h:47
Implementation of librepcb::WorkspaceSettingsItem to store keyboard shortcuts settings.
Definition workspacesettingsitem_keyboardshortcuts.h:44
Implementation of librepcb::WorkspaceSettingsItem to store theme configurations.
Definition workspacesettingsitem_themes.h:44
Base class for all workspace settings items.
Definition workspacesettingsitem.h:49
Definition occmodel.cpp:76