Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PreferencesSetupPage Class Reference

A curated subset of settings for the user to adjust. More...

#include <preferences_setup_page.h>

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

Public Member Functions

 PreferencesSetupPage (QWidget *parent=nullptr)
void initializePage () override
 Called every time the page becomes visible, including navigating back to it.
bool isSkippable () const override
 Whether the wizard's "Skip" button should be offered on this page.
QString stepTitle () const override
QString stepSubtitle () const override
void retranslateUi () override
Public Member Functions inherited from FirstRunWizardPage
 FirstRunWizardPage (QWidget *parent=nullptr)
virtual bool validatePage ()
 Called before advancing past this page. Return false to block navigation; the page itself is responsible for telling the user why.
virtual bool isComplete () const
 Whether Next/Finish should currently be enabled. Pages doing async work can flip this mid-step; emit completeChanged() when they do.
virtual QString nextButtonText () const
 Override to replace the "Next"/"Finish" button text on this page. Return an empty string to use the default label.
virtual bool handleNextClick ()
 Called when the user presses the Next button. Return true to allow advancing to the next page, false to stay on this page (e.g. to trigger an async action first).

Private Attributes

QGroupBox * gameplayGroup
QCheckBox * doubleClickToPlayCheckBox
QCheckBox * horizontalHandCheckBox
QCheckBox * playToStackCheckBox
QGroupBox * notificationsGroup
QCheckBox * notificationsEnabledCheckBox
QCheckBox * soundEnabledCheckBox
QGroupBox * startupGroup
QLabel * startupTabLabel
QComboBox * startupTabSelector

Additional Inherited Members

Signals inherited from FirstRunWizardPage
void completeChanged ()
void advanceRequested ()

Detailed Description

A curated subset of settings for the user to adjust.

Constructor & Destructor Documentation

◆ PreferencesSetupPage()

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

Member Function Documentation

◆ initializePage()

void PreferencesSetupPage::initializePage ( )
overridevirtual

Called every time the page becomes visible, including navigating back to it.

Reimplemented from FirstRunWizardPage.

Here is the call graph for this function:

◆ isSkippable()

bool PreferencesSetupPage::isSkippable ( ) const
overridevirtual

Whether the wizard's "Skip" button should be offered on this page.

Reimplemented from FirstRunWizardPage.

◆ retranslateUi()

void PreferencesSetupPage::retranslateUi ( )
overridevirtual

Implements FirstRunWizardPage.

Here is the caller graph for this function:

◆ stepSubtitle()

QString PreferencesSetupPage::stepSubtitle ( ) const
overridevirtual

Reimplemented from FirstRunWizardPage.

◆ stepTitle()

QString PreferencesSetupPage::stepTitle ( ) const
overridevirtual

Implements FirstRunWizardPage.

Member Data Documentation

◆ doubleClickToPlayCheckBox

QCheckBox* PreferencesSetupPage::doubleClickToPlayCheckBox
private

◆ gameplayGroup

QGroupBox* PreferencesSetupPage::gameplayGroup
private

◆ horizontalHandCheckBox

QCheckBox* PreferencesSetupPage::horizontalHandCheckBox
private

◆ notificationsEnabledCheckBox

QCheckBox* PreferencesSetupPage::notificationsEnabledCheckBox
private

◆ notificationsGroup

QGroupBox* PreferencesSetupPage::notificationsGroup
private

◆ playToStackCheckBox

QCheckBox* PreferencesSetupPage::playToStackCheckBox
private

◆ soundEnabledCheckBox

QCheckBox* PreferencesSetupPage::soundEnabledCheckBox
private

◆ startupGroup

QGroupBox* PreferencesSetupPage::startupGroup
private

◆ startupTabLabel

QLabel* PreferencesSetupPage::startupTabLabel
private

◆ startupTabSelector

QComboBox* PreferencesSetupPage::startupTabSelector
private

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