![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <card_database_setup_page.h>
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) |
| void | onUpdateProgress (const CardUpdateProgress &progress) |
| 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 |
|
strongprivate |
|
explicit |
|
private |
|
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.
|
overridevirtual |
Called every time the page becomes visible, including navigating back to it.
Reimplemented from FirstRunWizardPage.
|
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.
|
overridevirtual |
Whether the wizard's "Skip" button should be offered on this page.
Reimplemented from FirstRunWizardPage.
|
signal |
|
overridevirtual |
Override to replace the "Next"/"Finish" button text on this page. Return an empty string to use the default label.
Reimplemented from FirstRunWizardPage.
|
private |
|
private |
|
private |
| void CardDatabaseSetupPage::onUpdateFinished | ( | bool | success | ) |
| void CardDatabaseSetupPage::onUpdateProgress | ( | const CardUpdateProgress & | progress | ) |
|
private |
|
private |
|
overridevirtual |
Implements FirstRunWizardPage.
|
private |
|
overridevirtual |
Reimplemented from FirstRunWizardPage.
|
overridevirtual |
Implements FirstRunWizardPage.
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |