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

First-run account step. Does NOT embed DlgRegister's fields: they exist to be handed to ConnectionController's network registration flow, which this wizard has no visibility into. Reimplementing the fields here without that wiring would look functional and silently do nothing – worse than reuse. So: a friendly landing spot that opens the existing DlgRegister / connect flow via signals FirstRunWizard forwards. More...

#include <account_setup_page.h>

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

Signals

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

Public Member Functions

 AccountSetupPage (QWidget *parent=nullptr)
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 void initializePage ()
 Called every time the page becomes visible, including navigating back to it.
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

QLabel * bodyLabel
QPushButton * registerButton
QPushButton * connectButton
QLabel * skipHintLabel

Detailed Description

First-run account step. Does NOT embed DlgRegister's fields: they exist to be handed to ConnectionController's network registration flow, which this wizard has no visibility into. Reimplementing the fields here without that wiring would look functional and silently do nothing – worse than reuse. So: a friendly landing spot that opens the existing DlgRegister / connect flow via signals FirstRunWizard forwards.

Constructor & Destructor Documentation

◆ AccountSetupPage()

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

Member Function Documentation

◆ connectRequested

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

◆ isSkippable()

bool AccountSetupPage::isSkippable ( ) const
overridevirtual

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

Reimplemented from FirstRunWizardPage.

◆ registerRequested

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

◆ retranslateUi()

void AccountSetupPage::retranslateUi ( )
overridevirtual

Implements FirstRunWizardPage.

Here is the caller graph for this function:

◆ stepSubtitle()

QString AccountSetupPage::stepSubtitle ( ) const
overridevirtual

Reimplemented from FirstRunWizardPage.

◆ stepTitle()

QString AccountSetupPage::stepTitle ( ) const
overridevirtual

Implements FirstRunWizardPage.

Member Data Documentation

◆ bodyLabel

QLabel* AccountSetupPage::bodyLabel
private

◆ connectButton

QPushButton* AccountSetupPage::connectButton
private

◆ registerButton

QPushButton* AccountSetupPage::registerButton
private

◆ skipHintLabel

QLabel* AccountSetupPage::skipHintLabel
private

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