|
wiRedPanda
Logic Circuit Simulator
|
#include <TourEngine.h>
Public Member Functions | |
| void | advanceStep () |
| int | currentStep () const |
| const TourStep & | currentStepData () const |
| Returns the data for the current step. | |
| void | goToPreviousStep () |
| bool | isActive () const |
| bool | loadFromResource (const QString &resourcePath) |
| void | retranslate () |
| void | retranslated () |
| void | start () |
| void | stepChanged (int step, int total, const TourStep &data) |
| void | stop () |
| int | totalSteps () const |
| void | tourCompleted () |
| TourEngine (QObject *parent=nullptr) | |
| QString | tourId () const |
| void | tourStopped () |
| QString | tourTitle () const |
Definition at line 11 of file TourEngine.h.
|
explicit |
Definition at line 32 of file TourEngine.cpp.
References Settings::completedTours(), Settings::setCompletedTours(), Settings::setTourProgress(), and Settings::tourProgress().
| void TourEngine::advanceStep | ( | ) |
Definition at line 71 of file TourEngine.cpp.
|
inline |
Definition at line 25 of file TourEngine.h.
| const TourStep & TourEngine::currentStepData | ( | ) | const |
Returns the data for the current step.
Definition at line 45 of file TourEngine.cpp.
| void TourEngine::goToPreviousStep | ( | ) |
Definition at line 64 of file TourEngine.cpp.
|
inline |
Definition at line 27 of file TourEngine.h.
| bool TourEngine::loadFromResource | ( | const QString & | resourcePath | ) |
Loads a tour from a Qt resource path (e.g. ":/Tours/ui-overview.json"). Returns false and leaves the engine inactive if the resource is missing or malformed.
Definition at line 40 of file TourEngine.cpp.
| void TourEngine::retranslate | ( | ) |
Re-translates the title and all steps' title/body text for the current language, preserving currentStep()/isActive(). No-op if never loaded or inactive. Emits retranslated() (never stepChanged()) so listeners can't replay step-entry side effects like MainWindow's click-target handling.
Definition at line 83 of file TourEngine.cpp.
References retranslated().
| void TourEngine::retranslated | ( | ) |
Referenced by retranslate().
| void TourEngine::start | ( | ) |
Definition at line 50 of file TourEngine.cpp.
| void TourEngine::stepChanged | ( | int | step, |
| int | total, | ||
| const TourStep & | data ) |
| void TourEngine::stop | ( | ) |
Definition at line 57 of file TourEngine.cpp.
References tourStopped().
|
inline |
Definition at line 26 of file TourEngine.h.
| void TourEngine::tourCompleted | ( | ) |
|
inline |
Definition at line 22 of file TourEngine.h.
| void TourEngine::tourStopped | ( | ) |
Referenced by stop().
|
inline |
Definition at line 23 of file TourEngine.h.