![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Main application settings dialog hosting the shared SettingsView. More...
#include <dlg_settings.h>
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. | |
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.
|
explicit |
|
overrideprotected |
| AbstractSettingsPage * DlgSettings::page | ( | SettingsPage | which | ) | const |
|
private |
| void DlgSettings::setTab | ( | int | index | ) |
|
privateslot |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
private |
Button to close the dialog.
|
private |
Shared settings content.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |