Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
first_run_wizard_page.h
Go to the documentation of this file.
1#ifndef FIRST_RUN_WIZARD_PAGE_H
2#define FIRST_RUN_WIZARD_PAGE_H
3
4#include <QWidget>
5
13class FirstRunWizardPage : public QWidget
14{
15 Q_OBJECT
16
17public:
18 explicit FirstRunWizardPage(QWidget *parent = nullptr) : QWidget(parent)
19 {
20 }
21
23 virtual void initializePage()
24 {
25 }
26
29 virtual bool validatePage()
30 {
31 return true;
32 }
33
36 virtual bool isComplete() const
37 {
38 return true;
39 }
40
42 virtual bool isSkippable() const
43 {
44 return false;
45 }
46
47 virtual QString stepTitle() const = 0;
48 virtual QString stepSubtitle() const
49 {
50 return {};
51 }
52
55 virtual QString nextButtonText() const
56 {
57 return {};
58 }
59
63 virtual bool handleNextClick()
64 {
65 return true;
66 }
67
68 virtual void retranslateUi() = 0;
69
70signals:
73};
74
75#endif // FIRST_RUN_WIZARD_PAGE_H
virtual QString nextButtonText() const
Override to replace the "Next"/"Finish" button text on this page. Return an empty string to use the d...
Definition first_run_wizard_page.h:55
virtual bool isComplete() const
Whether Next/Finish should currently be enabled. Pages doing async work can flip this mid-step; emit ...
Definition first_run_wizard_page.h:36
virtual bool validatePage()
Called before advancing past this page. Return false to block navigation; the page itself is responsi...
Definition first_run_wizard_page.h:29
FirstRunWizardPage(QWidget *parent=nullptr)
Definition first_run_wizard_page.h:18
virtual bool isSkippable() const
Whether the wizard's "Skip" button should be offered on this page.
Definition first_run_wizard_page.h:42
virtual void initializePage()
Called every time the page becomes visible, including navigating back to it.
Definition first_run_wizard_page.h:23
virtual QString stepTitle() const =0
virtual void retranslateUi()=0
virtual QString stepSubtitle() const
Definition first_run_wizard_page.h:48
virtual bool handleNextClick()
Called when the user presses the Next button. Return true to allow advancing to the next page,...
Definition first_run_wizard_page.h:63