Learn Environment
|
Manages tasks and their execution within the application. More...
#include <task_manager.hpp>
Public Slots | |
void | nextTask () |
Slot for changing to the next task. More... | |
void | previousTask () |
Slot for changing to the previous task. More... | |
void | selectTask (int index) |
Selects a task by its index. More... | |
void | startStopSubtask (const Subtask &subtask) |
Starts or stops a subtask. More... | |
void | forceResetRobot () |
Forces the reset of the robot to its initial state. More... | |
Public Member Functions | |
TaskManager (TaskUI *taskUI, QObject *parent=nullptr) | |
Constructs a TaskManager object. More... | |
void | startStopSubtask (Subtask &subtask, bool startSolution=false) |
Starts or stops a subtask. More... | |
void | toggleSolution (Subtask &subtask) |
Show or hide the solution of a subtask. More... | |
Manages tasks and their execution within the application.
The TaskManager class is responsible for loading tasks, managing their execution, and handling user interactions through the UI.
Constructs a TaskManager object.
|
slot |
Forces the reset of the robot to its initial state.
|
slot |
Slot for changing to the next task.
|
slot |
Slot for changing to the previous task.
|
slot |
Selects a task by its index.
index | The index of the task to be selected. |
|
slot |
Starts or stops a subtask.
subtask | Reference to the subtask to be started or stopped. |
void TaskManager::startStopSubtask | ( | Subtask & | subtask, |
bool | startSolution = false |
||
) |
Starts or stops a subtask.
subtask | Reference to the subtask to be started or stopped. |
startSolution | Flag indicating whether to start the solution or the users script. |
void TaskManager::toggleSolution | ( | Subtask & | subtask | ) |
Show or hide the solution of a subtask.
subtask | Reference to the subtask. |