Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
first_run_wizard.h
Go to the documentation of this file.
1#ifndef FIRST_RUN_WIZARD_H
2#define FIRST_RUN_WIZARD_H
3
5
6#include <QDialog>
7#include <QList>
8#include <QString>
9#include <QtGlobal>
10#include <qtmetamacros.h>
11
12class BannerHost;
16class QLabel;
17class QPushButton;
18class QStackedWidget;
19class QWidget;
20
29class FirstRunWizard : public QDialog
30{
31 Q_OBJECT
32
33public:
34 explicit FirstRunWizard(QWidget *parent = nullptr);
35
36signals:
41
42public slots:
44 void onCardDatabaseUpdateFinished(bool success);
45
48
49protected:
50 void closeEvent(QCloseEvent *event) override;
51 void changeEvent(QEvent *event) override;
52
53private slots:
54 void goNext();
55 void goBack();
56 void skip();
57 void updateChrome();
58
59private:
60 void addPage(FirstRunWizardPage *page);
61 void showPage(int index);
62 void retranslateUi();
63 void finish();
64
65 QStackedWidget *stack;
68 QLabel *titleLabel;
70 QPushButton *backButton;
71 QPushButton *skipButton;
72 QPushButton *nextButton;
73
75
77 int currentIndex = -1;
78};
79
80#endif // FIRST_RUN_WIZARD_H
Onboarding banner: a subtle, looping brand-shader animation, one of six per-page "motifs" driving the...
Definition shader_banner_widget.h:33
Definition card_database_setup_page.h:21
Base class for a single step of FirstRunWizard.
Definition first_run_wizard_page.h:16
void showPage(int index)
Definition first_run_wizard.cpp:116
void onCardDatabaseUpdateProgress(const CardUpdateProgress &progress)
Forwarded from MainWindow while the background card database update process runs.
Definition first_run_wizard.cpp:188
void addPage(FirstRunWizardPage *page)
Definition first_run_wizard.cpp:109
QStackedWidget * stack
Definition first_run_wizard.h:65
void retranslateUi()
Definition first_run_wizard.cpp:215
void goNext()
Definition first_run_wizard.cpp:158
void cardDatabaseUpdateRequested()
void changeEvent(QEvent *event) override
Definition first_run_wizard.cpp:207
void goBack()
Definition first_run_wizard.cpp:171
FirstRunWizard(QWidget *parent=nullptr)
Definition first_run_wizard.cpp:25
QPushButton * nextButton
Definition first_run_wizard.h:72
void closeEvent(QCloseEvent *event) override
Definition first_run_wizard.cpp:200
QPushButton * skipButton
Definition first_run_wizard.h:71
void registerRequested()
void connectRequested()
StepIndicatorWidget * stepIndicator
Definition first_run_wizard.h:66
void updateChrome()
Definition first_run_wizard.cpp:138
QLabel * titleLabel
Definition first_run_wizard.h:68
void skip()
Definition first_run_wizard.cpp:176
QPushButton * backButton
Definition first_run_wizard.h:70
QList< FirstRunWizardPage * > pages
Definition first_run_wizard.h:76
BannerHost * bannerHost
Definition first_run_wizard.h:67
int currentIndex
Definition first_run_wizard.h:77
CardDatabaseSetupPage * cardDatabasePage
Definition first_run_wizard.h:74
void manualCardDatabaseSetupRequested()
void onCardDatabaseUpdateFinished(bool success)
Forwarded from MainWindow once the background card database update process exits.
Definition first_run_wizard.cpp:181
void finish()
Definition first_run_wizard.cpp:195
QLabel * subtitleLabel
Definition first_run_wizard.h:69
Definition remote_connection_controller.h:20
Row of dots showing progress through a fixed-length sequence of steps, in the style of a mobile/OS se...
Definition step_indicator_widget.h:10
One progress line read from the card database updater's stdout.
Definition card_update_progress.h:24