42 TaskUI(QVBoxLayout *subtaskListLayout, QLabel *mainTitleLabel,
43 QLabel *difficultyLabel, QLabel *folderLabel, QLabel *topicLabel,
44 QPushButton *nextButton, QPushButton *previousButton, QToolButton *menuButton,
45 QToolButton *resetRobotStartButton,
QFrame *resetRobotFrame,
QWidget *centralwidget,
QWidget *parent =
nullptr);
98 void toggleSidebarVisibility();
102 QVBoxLayout *subtaskListLayout;
103 QLabel *mainTitleLabel;
104 QLabel *difficultyLabel;
107 QPushButton *nextButton;
108 QPushButton *previousButton;
109 QToolButton *menuButton;
110 QToolButton *resetRobotStartButton;
114 QVector<QSharedPointer<Task>> tasks;
121 void setSubtaskItems(
int currentTaskIndex);
126 void addLineBetweenWidgets();
131 void setupSplitterAndLayout();
A custom QFrame that displays an image and text. For logging and task execution.
Definition execute_frame.hpp:14
Manages tasks and their execution within the application.
Definition task_manager.hpp:21
Manages the user interface for tasks and subtasks.
Definition task_ui.hpp:24
void startedRobotResetUI(bool noSubtasksLeft)
Update the UI to show that the robot reset has been started.
void setTaskManager(TaskManager *manager)
Sets the TaskManager object.
void initializeUI(const QVector< QSharedPointer< Task > > &tasks)
Initializes the UI with the loaded tasks.
void finishedRobotResetUI()
Update the UI to show that the robot reset has finished.
TaskUI(QVBoxLayout *subtaskListLayout, QLabel *mainTitleLabel, QLabel *difficultyLabel, QLabel *folderLabel, QLabel *topicLabel, QPushButton *nextButton, QPushButton *previousButton, QToolButton *menuButton, QToolButton *resetRobotStartButton, QFrame *resetRobotFrame, QWidget *centralwidget, QWidget *parent=nullptr)
Constructs a TaskUI object.
void failedRobotResetUI(const QString &error)
Update the UI to show that the robot reset has failed.
void updateSubtaskItemsUI()
Updates the UI elements for the subtasks.
void setTaskUI(int currentTaskIndex)
Sets the UI elements for the current task.
void taskSelected(int index)
Signal emitted when a task is selected.