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

Polished first-run onboarding flow: card database setup, theme selection, server account setup, and a handful of key preferences. More...

#include <first_run_wizard.h>

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

Public Slots

void onCardDatabaseUpdateFinished (bool success)
 Forwarded from MainWindow once the background card database update process exits.

Signals

void registerRequested ()
void connectRequested ()
void cardDatabaseUpdateRequested ()
void manualCardDatabaseSetupRequested ()

Public Member Functions

 FirstRunWizard (QWidget *parent=nullptr)

Protected Member Functions

void closeEvent (QCloseEvent *event) override
void changeEvent (QEvent *event) override

Private Slots

void goNext ()
void goBack ()
void skip ()
void updateChrome ()

Private Member Functions

void addPage (FirstRunWizardPage *page)
void showPage (int index)
void retranslateUi ()
void finish ()

Private Attributes

QStackedWidget * stack
StepIndicatorWidgetstepIndicator
BannerHostbannerHost
QLabel * titleLabel
QLabel * subtitleLabel
QPushButton * backButton
QPushButton * skipButton
QPushButton * nextButton
CardDatabaseSetupPagecardDatabasePage = nullptr
QList< FirstRunWizardPage * > pages
int currentIndex = -1

Detailed Description

Polished first-run onboarding flow: card database setup, theme selection, server account setup, and a handful of key preferences.

Deliberately ignorant of network/registration/download internals – pages that need them emit request signals for MainWindow to fulfill. Every choice is written to SettingsCache as it's made (via the pages themselves, same as AppearanceSettingsPage does), so "Skip" or closing the window never discards anything already confirmed.

Constructor & Destructor Documentation

◆ FirstRunWizard()

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

Member Function Documentation

◆ addPage()

void FirstRunWizard::addPage ( FirstRunWizardPage * page)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cardDatabaseUpdateRequested

void FirstRunWizard::cardDatabaseUpdateRequested ( )
signal
Here is the caller graph for this function:

◆ changeEvent()

void FirstRunWizard::changeEvent ( QEvent * event)
overrideprotected
Here is the call graph for this function:

◆ closeEvent()

void FirstRunWizard::closeEvent ( QCloseEvent * event)
overrideprotected

◆ connectRequested

void FirstRunWizard::connectRequested ( )
signal
Here is the caller graph for this function:

◆ finish()

void FirstRunWizard::finish ( )
private
Here is the caller graph for this function:

◆ goBack

void FirstRunWizard::goBack ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ goNext

void FirstRunWizard::goNext ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ manualCardDatabaseSetupRequested

void FirstRunWizard::manualCardDatabaseSetupRequested ( )
signal
Here is the caller graph for this function:

◆ onCardDatabaseUpdateFinished

void FirstRunWizard::onCardDatabaseUpdateFinished ( bool success)
slot

Forwarded from MainWindow once the background card database update process exits.

Here is the caller graph for this function:

◆ registerRequested

void FirstRunWizard::registerRequested ( )
signal
Here is the caller graph for this function:

◆ retranslateUi()

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

◆ showPage()

void FirstRunWizard::showPage ( int index)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ skip

void FirstRunWizard::skip ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateChrome

void FirstRunWizard::updateChrome ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ backButton

QPushButton* FirstRunWizard::backButton
private

◆ bannerHost

BannerHost* FirstRunWizard::bannerHost
private

◆ cardDatabasePage

CardDatabaseSetupPage* FirstRunWizard::cardDatabasePage = nullptr
private

◆ currentIndex

int FirstRunWizard::currentIndex = -1
private

◆ nextButton

QPushButton* FirstRunWizard::nextButton
private

◆ pages

QList<FirstRunWizardPage *> FirstRunWizard::pages
private

◆ skipButton

QPushButton* FirstRunWizard::skipButton
private

◆ stack

QStackedWidget* FirstRunWizard::stack
private

◆ stepIndicator

StepIndicatorWidget* FirstRunWizard::stepIndicator
private

◆ subtitleLabel

QLabel* FirstRunWizard::subtitleLabel
private

◆ titleLabel

QLabel* FirstRunWizard::titleLabel
private

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