From 9fe7235d7c06677f152e20b9deac85e633f429a6 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 21 Apr 2025 13:41:45 -0400 Subject: Add some expression --- gui/gui.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'gui/gui.h') diff --git a/gui/gui.h b/gui/gui.h index 7c5b440..7efde1f 100644 --- a/gui/gui.h +++ b/gui/gui.h @@ -51,15 +51,16 @@ class GUI : public QMainWindow /** * Uses `func' to set the current status. * @param a function which returns a string. + * @param a path to the desired avatar */ - void set_status(const std::function &func); + void set_status( + const std::function &func, + const QString &img = "idle.png"); signals: void sendRunSteps(int steps); void sendConfigure( - std::vector ways, - vector program, - bool is_pipelined); + std::vector ways, vector program, bool is_pipelined); private slots: void on_worker_refresh_gui(int value, int pc); @@ -116,6 +117,11 @@ class GUI : public QMainWindow */ QLabel *status_label; + /** + * The robot image displayed on the status bar. + */ + QLabel *avatar; + /** * The currently loaded program. */ -- cgit v1.2.3