35 bool isActive()
const {
return m_core.isActive(); }
61 void onCircuitChanged();
66 bool validateCurrentStep()
const;
68 bool validateElements(
const QVector<ExerciseElementRequirement> &reqs)
const;
69 bool validateConnections(
const QVector<ExerciseConnectionRequirement> &reqs)
const;
71 void emitCurrentStep();
76 void performAdvance();
79 QPointer<Scene> m_scene;
Shared step-navigation state machine for ExerciseEngine/TourEngine.
void setScene(Scene *scene)
bool loadFromResource(const QString &resourcePath)
void advanceStep()
Manually advances one step (used by the overlay Next/Finish button for observe steps).
void stepChanged(int step, int total, const ExerciseStep &data)
void stepCompleted(int step)
QString exerciseId() const
const ExerciseStep & currentStepData() const
Returns the data for the current step. Caller must check isActive() first.
QString exerciseTitle() const
ExerciseEngine(QObject *parent=nullptr)
Main circuit editing scene.
Owns the id/title/step-list/progress state machine shared by ExerciseEngine and TourEngine,...