Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DlgSettings Class Reference

Main application settings dialog hosting the shared SettingsView. More...

#include <dlg_settings.h>

Inheritance diagram for DlgSettings:
[legend]
Collaboration diagram for DlgSettings:
[legend]

Public Types

using SettingsPage = SettingsView::SettingsPage

Public Member Functions

 DlgSettings (QWidget *parent=nullptr)
void setTab (int index)
AbstractSettingsPage * page (SettingsPage which) const

Static Public Attributes

static constexpr SettingsPage GeneralPage = SettingsView::GeneralPage
static constexpr SettingsPage AppearancePage = SettingsView::AppearancePage
static constexpr SettingsPage UserInterfacePage = SettingsView::UserInterfacePage
static constexpr SettingsPage DeckEditorPage = SettingsView::DeckEditorPage
static constexpr SettingsPage StoragePage = SettingsView::StoragePage
static constexpr SettingsPage MessagesPage = SettingsView::MessagesPage
static constexpr SettingsPage SoundPage = SettingsView::SoundPage
static constexpr SettingsPage ShortcutsPage = SettingsView::ShortcutsPage
static constexpr SettingsPage NumPages = SettingsView::NumPages

Protected Member Functions

void closeEvent (QCloseEvent *event) override

Private Slots

void updateLanguage ()

Private Member Functions

void retranslateUi ()

Private Attributes

SettingsView * settingsView
 Shared settings content.
QPushButton * okButton
 Button to close the dialog.

Detailed Description

Main application settings dialog hosting the shared SettingsView.

Thin QDialog frame around SettingsView: only the window title, the OK button and the close validation live here. All pages, navigation and search are owned by SettingsView. The dialog fills ~90% of the main window so dense pages stay visible without losing the modal adjust-and-return flow.

Member Typedef Documentation

◆ SettingsPage

Constructor & Destructor Documentation

◆ DlgSettings()

DlgSettings::DlgSettings ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ closeEvent()

void DlgSettings::closeEvent ( QCloseEvent * event)
overrideprotected
Here is the call graph for this function:

◆ page()

AbstractSettingsPage * DlgSettings::page ( SettingsPage which) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void DlgSettings::retranslateUi ( )
private
Here is the caller graph for this function:

◆ setTab()

void DlgSettings::setTab ( int index)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateLanguage

void DlgSettings::updateLanguage ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ AppearancePage

SettingsPage DlgSettings::AppearancePage = SettingsView::AppearancePage
staticconstexpr

◆ DeckEditorPage

SettingsPage DlgSettings::DeckEditorPage = SettingsView::DeckEditorPage
staticconstexpr

◆ GeneralPage

SettingsPage DlgSettings::GeneralPage = SettingsView::GeneralPage
staticconstexpr

◆ MessagesPage

SettingsPage DlgSettings::MessagesPage = SettingsView::MessagesPage
staticconstexpr

◆ NumPages

SettingsPage DlgSettings::NumPages = SettingsView::NumPages
staticconstexpr

◆ okButton

QPushButton* DlgSettings::okButton
private

Button to close the dialog.

◆ settingsView

SettingsView* DlgSettings::settingsView
private

Shared settings content.

◆ ShortcutsPage

SettingsPage DlgSettings::ShortcutsPage = SettingsView::ShortcutsPage
staticconstexpr

◆ SoundPage

SettingsPage DlgSettings::SoundPage = SettingsView::SoundPage
staticconstexpr

◆ StoragePage

SettingsPage DlgSettings::StoragePage = SettingsView::StoragePage
staticconstexpr

◆ UserInterfacePage

SettingsPage DlgSettings::UserInterfacePage = SettingsView::UserInterfacePage
staticconstexpr

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