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

#include <card_database_setup_page.h>

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

Signals

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

Public Member Functions

 CardDatabaseSetupPage (QWidget *parent=nullptr)
void initializePage () override
 Called every time the page becomes visible, including navigating back to it.
bool isComplete () const override
 Whether Next/Finish should currently be enabled. Pages doing async work can flip this mid-step; emit completeChanged() when they do.
bool isSkippable () const override
 Whether the wizard's "Skip" button should be offered on this page.
QString stepTitle () const override
QString stepSubtitle () const override
QString nextButtonText () const override
 Override to replace the "Next"/"Finish" button text on this page. Return an empty string to use the default label.
bool handleNextClick () override
 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).
void retranslateUi () override
void onUpdateFinished (bool success)
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.

Private Types

enum class  State { NotStarted , Running , Succeeded , Failed }

Private Member Functions

void setState (State newState)
bool alreadyHaveDatabase () const
QString oracleSettingsFilePath () const
QString readCustomUrl () const
void writeCustomUrl (const QString &url)
void onToggleAdvanced (bool open)
void onApplyCustomUrl ()
void onRestoreDefaultUrl ()

Private Attributes

QLabel * statusLabel
QProgressBar * progressBar
QPushButton * retryButton
QPushButton * manualButton
QPushButton * advancedToggleButton
QWidget * advancedPanel
QLineEdit * urlLineEdit
QLabel * urlHintLabel
QPushButton * restoreDefaultUrlButton
QPushButton * applyAndRetryButton
QLabel * startupBehaviorLabel
QComboBox * startupBehaviorCombo
QLabel * checkIntervalLabel
QSpinBox * checkIntervalSpinBox
State state = State::NotStarted
QSize windowSizeBeforeExpansion

Member Enumeration Documentation

◆ State

enum class CardDatabaseSetupPage::State
strongprivate
Enumerator
NotStarted 
Running 
Succeeded 
Failed 

Constructor & Destructor Documentation

◆ CardDatabaseSetupPage()

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

Member Function Documentation

◆ alreadyHaveDatabase()

bool CardDatabaseSetupPage::alreadyHaveDatabase ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleNextClick()

bool CardDatabaseSetupPage::handleNextClick ( )
overridevirtual

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).

Reimplemented from FirstRunWizardPage.

Here is the call graph for this function:

◆ initializePage()

void CardDatabaseSetupPage::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:

◆ isComplete()

bool CardDatabaseSetupPage::isComplete ( ) const
overridevirtual

Whether Next/Finish should currently be enabled. Pages doing async work can flip this mid-step; emit completeChanged() when they do.

Reimplemented from FirstRunWizardPage.

◆ isSkippable()

bool CardDatabaseSetupPage::isSkippable ( ) const
overridevirtual

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

Reimplemented from FirstRunWizardPage.

◆ manualSetupRequested

void CardDatabaseSetupPage::manualSetupRequested ( )
signal
Here is the caller graph for this function:

◆ nextButtonText()

QString CardDatabaseSetupPage::nextButtonText ( ) const
overridevirtual

Override to replace the "Next"/"Finish" button text on this page. Return an empty string to use the default label.

Reimplemented from FirstRunWizardPage.

◆ onApplyCustomUrl()

void CardDatabaseSetupPage::onApplyCustomUrl ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onRestoreDefaultUrl()

void CardDatabaseSetupPage::onRestoreDefaultUrl ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onToggleAdvanced()

void CardDatabaseSetupPage::onToggleAdvanced ( bool open)
private
Here is the caller graph for this function:

◆ onUpdateFinished()

void CardDatabaseSetupPage::onUpdateFinished ( bool success)
Here is the call graph for this function:

◆ oracleSettingsFilePath()

QString CardDatabaseSetupPage::oracleSettingsFilePath ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readCustomUrl()

QString CardDatabaseSetupPage::readCustomUrl ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void CardDatabaseSetupPage::retranslateUi ( )
overridevirtual

Implements FirstRunWizardPage.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setState()

void CardDatabaseSetupPage::setState ( State newState)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stepSubtitle()

QString CardDatabaseSetupPage::stepSubtitle ( ) const
overridevirtual

Reimplemented from FirstRunWizardPage.

◆ stepTitle()

QString CardDatabaseSetupPage::stepTitle ( ) const
overridevirtual

Implements FirstRunWizardPage.

◆ updateRequested

void CardDatabaseSetupPage::updateRequested ( )
signal
Here is the caller graph for this function:

◆ writeCustomUrl()

void CardDatabaseSetupPage::writeCustomUrl ( const QString & url)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ advancedPanel

QWidget* CardDatabaseSetupPage::advancedPanel
private

◆ advancedToggleButton

QPushButton* CardDatabaseSetupPage::advancedToggleButton
private

◆ applyAndRetryButton

QPushButton* CardDatabaseSetupPage::applyAndRetryButton
private

◆ checkIntervalLabel

QLabel* CardDatabaseSetupPage::checkIntervalLabel
private

◆ checkIntervalSpinBox

QSpinBox* CardDatabaseSetupPage::checkIntervalSpinBox
private

◆ manualButton

QPushButton* CardDatabaseSetupPage::manualButton
private

◆ progressBar

QProgressBar* CardDatabaseSetupPage::progressBar
private

◆ restoreDefaultUrlButton

QPushButton* CardDatabaseSetupPage::restoreDefaultUrlButton
private

◆ retryButton

QPushButton* CardDatabaseSetupPage::retryButton
private

◆ startupBehaviorCombo

QComboBox* CardDatabaseSetupPage::startupBehaviorCombo
private

◆ startupBehaviorLabel

QLabel* CardDatabaseSetupPage::startupBehaviorLabel
private

◆ state

State CardDatabaseSetupPage::state = State::NotStarted
private

◆ statusLabel

QLabel* CardDatabaseSetupPage::statusLabel
private

◆ urlHintLabel

QLabel* CardDatabaseSetupPage::urlHintLabel
private

◆ urlLineEdit

QLineEdit* CardDatabaseSetupPage::urlLineEdit
private

◆ windowSizeBeforeExpansion

QSize CardDatabaseSetupPage::windowSizeBeforeExpansion
private

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