1#ifndef TUTORIALMANAGER_H
2#define TUTORIALMANAGER_H
49 void addStep(QWidget *target,
const QString &htmlText);
86 bool eventFilter(QObject *obj, QEvent *ev)
override;
125 void repositionOverlay();
128 QVector<TutorialStep> m_steps;
131 QWidget *m_overlay =
nullptr;
132 QFrame *m_highlight =
nullptr;
133 QTextBrowser *m_textBox =
nullptr;
134 QPushButton *m_nextBtn =
nullptr;
void slr1Finished()
Emitted when the SLR(1) tutorial ends.
void start()
Starts the tutorial from the beginning.
Definition tutorialmanager.cpp:69
void setRootWindow(QWidget *newRoot)
Sets the root window (used for repositioning the overlay).
Definition tutorialmanager.cpp:32
void addStep(QWidget *target, const QString &htmlText)
Adds a new step to the tutorial sequence.
Definition tutorialmanager.cpp:65
void nextStep()
Advances to the next tutorial step.
Definition tutorialmanager.cpp:74
void clearSteps()
Clears all steps in the tutorial.
Definition tutorialmanager.cpp:25
void hideOverlay()
Hides the tutorial overlay immediately.
Definition tutorialmanager.cpp:165
void stepStarted(int index)
Emitted when a new tutorial step starts.
void ll1Finished()
Emitted when the LL(1) tutorial ends.
void tutorialFinished()
Emitted when the full tutorial is finished.
void finishLL1()
Ends the LL(1) tutorial sequence and emits its corresponding signal.
Definition tutorialmanager.cpp:9
bool eventFilter(QObject *obj, QEvent *ev) override
Intercepts UI events to handle overlay behavior.
Definition tutorialmanager.cpp:17
TutorialManager(QWidget *rootWindow)
Constructs a TutorialManager for a given window.
Definition tutorialmanager.cpp:4
void finishSLR1()
Ends the SLR(1) tutorial sequence and emits its corresponding signal.
Definition tutorialmanager.cpp:13
Represents a single step in the tutorial sequence.
Definition tutorialmanager.h:20
QWidget * target
Widget to highlight during the tutorial step.
Definition tutorialmanager.h:21
QString htmlText
HTML text to show as instruction or explanation.
Definition tutorialmanager.h:22