Add "Sequence" option to the first run wizard

This commit is contained in:
WarmUpTill
2026-06-17 21:16:51 +02:00
committed by WarmUpTill
parent 5438a6a364
commit cd6ff4d52b
6 changed files with 684 additions and 3 deletions

View File

@@ -19,9 +19,13 @@ namespace wiz {
// ---------------------------------------------------------------------------
enum WizardPageId {
PAGE_WELCOME = 0,
PAGE_TEMPLATE,
PAGE_WINDOW_SCENE,
PAGE_WINDOW_CONDITION,
PAGE_WINDOW_REVIEW,
PAGE_SEQ_TRIGGER,
PAGE_SEQ_SCENES,
PAGE_SEQ_REVIEW,
PAGE_DONE,
};
@@ -32,7 +36,22 @@ class WelcomePage : public QWizardPage {
Q_OBJECT
public:
explicit WelcomePage(QWidget *parent = nullptr);
int nextId() const override { return PAGE_WINDOW_SCENE; }
int nextId() const override { return PAGE_TEMPLATE; }
};
// ---------------------------------------------------------------------------
// TemplatePage
// Lets the user choose which kind of automation to create.
// ---------------------------------------------------------------------------
class TemplatePage : public QWizardPage {
Q_OBJECT
public:
explicit TemplatePage(QWidget *parent = nullptr);
int nextId() const override;
private:
QRadioButton *_windowRadio;
QRadioButton *_sequenceRadio;
};
// ---------------------------------------------------------------------------