LibrePCB Developers Documentation
WorkspaceSettingsDialog Class Referencefinal

Dialog (GUI) to view and modify workspace settings. More...

#include <workspacesettingsdialog.h>

Inherits QDialog.

+ Collaboration diagram for WorkspaceSettingsDialog:

Classes

struct  ExternalApplication
 

Signals

void desktopIntegrationStatusChanged ()
 

Public Member Functions

 WorkspaceSettingsDialog ()=delete
 
 WorkspaceSettingsDialog (const WorkspaceSettingsDialog &other)=delete
 
 WorkspaceSettingsDialog (Workspace &workspace, QWidget *parent=nullptr)
 
 ~WorkspaceSettingsDialog ()
 
WorkspaceSettingsDialogoperator= (const WorkspaceSettingsDialog &rhs)=delete
 

Private Types

using LibraryLocaleOrderModel = EditableListModel< QStringList, EditableListModelType::LOCALE >
 
using LibraryNormOrderModel = EditableListModel< QStringList >
 
using ApiEndpointModel = EditableListModel< QList< QUrl > >
 

Private Member Functions

void buttonBoxClicked (QAbstractButton *button) noexcept
 
void keyPressEvent (QKeyEvent *event) noexcept override
 
void externalApplicationListIndexChanged (int index) noexcept
 
void updateThemesList (const Uuid &selectedTheme) noexcept
 
void themeIndexChanged (int index) noexcept
 
void initColorTreeWidgetItem (QTreeWidgetItem &item, const ThemeColor &color) noexcept
 
ThemegetCurrentTheme () noexcept
 
void updateDismissedMessagesCount () noexcept
 
void updateDesktopIntegrationStatus () noexcept
 
void loadSettings () noexcept
 
void saveSettings () noexcept
 

Private Attributes

WorkspacemWorkspace
 
WorkspaceSettingsmSettings
 Reference to the Workspace object. More...
 
QScopedPointer< LibraryLocaleOrderModelmLibLocaleOrderModel
 
QScopedPointer< LibraryNormOrderModelmLibNormOrderModel
 
QScopedPointer< ApiEndpointModelmApiEndpointModel
 
QScopedPointer< KeyboardShortcutsModelmKeyboardShortcutsModel
 
QScopedPointer< QSortFilterProxyModel > mKeyboardShortcutsFilterModel
 
QScopedPointer< Ui::WorkspaceSettingsDialog > mUi
 
QVector< ExternalApplicationmExternalApplications
 
QMap< Uuid, ThememThemes
 

Detailed Description

Dialog (GUI) to view and modify workspace settings.

Member Typedef Documentation

◆ LibraryLocaleOrderModel

◆ LibraryNormOrderModel

using LibraryNormOrderModel = EditableListModel<QStringList>
private

◆ ApiEndpointModel

using ApiEndpointModel = EditableListModel<QList<QUrl> >
private

Constructor & Destructor Documentation

◆ WorkspaceSettingsDialog() [1/3]

◆ WorkspaceSettingsDialog() [2/3]

◆ WorkspaceSettingsDialog() [3/3]

WorkspaceSettingsDialog ( Workspace workspace,
QWidget *  parent = nullptr 
)
explicit
+ Here is the call graph for this function:

◆ ~WorkspaceSettingsDialog()

Member Function Documentation

◆ operator=()

WorkspaceSettingsDialog & operator= ( const WorkspaceSettingsDialog rhs)
delete

◆ desktopIntegrationStatusChanged

void desktopIntegrationStatusChanged ( )
signal

◆ buttonBoxClicked()

void buttonBoxClicked ( QAbstractButton *  button)
privatenoexcept

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent *  event)
overrideprivatenoexcept

◆ externalApplicationListIndexChanged()

void externalApplicationListIndexChanged ( int  index)
privatenoexcept
+ Here is the call graph for this function:

◆ updateThemesList()

void updateThemesList ( const Uuid selectedTheme)
privatenoexcept
+ Here is the call graph for this function:

◆ themeIndexChanged()

void themeIndexChanged ( int  index)
privatenoexcept
+ Here is the call graph for this function:

◆ initColorTreeWidgetItem()

void initColorTreeWidgetItem ( QTreeWidgetItem &  item,
const ThemeColor color 
)
privatenoexcept

◆ getCurrentTheme()

Theme * getCurrentTheme ( )
privatenoexcept

◆ updateDismissedMessagesCount()

void updateDismissedMessagesCount ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ updateDesktopIntegrationStatus()

void updateDesktopIntegrationStatus ( )
privatenoexcept

◆ loadSettings()

void loadSettings ( )
privatenoexcept
+ Here is the call graph for this function:

◆ saveSettings()

void saveSettings ( )
privatenoexcept
+ Here is the call graph for this function:

Member Data Documentation

◆ mWorkspace

Workspace& mWorkspace
private

◆ mSettings

WorkspaceSettings& mSettings
private

Reference to the Workspace object.

Reference to the WorkspaceSettings object

◆ mLibLocaleOrderModel

QScopedPointer<LibraryLocaleOrderModel> mLibLocaleOrderModel
private

◆ mLibNormOrderModel

QScopedPointer<LibraryNormOrderModel> mLibNormOrderModel
private

◆ mApiEndpointModel

QScopedPointer<ApiEndpointModel> mApiEndpointModel
private

◆ mKeyboardShortcutsModel

QScopedPointer<KeyboardShortcutsModel> mKeyboardShortcutsModel
private

◆ mKeyboardShortcutsFilterModel

QScopedPointer<QSortFilterProxyModel> mKeyboardShortcutsFilterModel
private

◆ mUi

QScopedPointer<Ui::WorkspaceSettingsDialog> mUi
private

◆ mExternalApplications

QVector<ExternalApplication> mExternalApplications
private

◆ mThemes

QMap<Uuid, Theme> mThemes
private

The documentation for this class was generated from the following files: