diff options
author | bd <bdunahu@operationnull.com> | 2025-04-21 13:41:45 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-21 13:41:45 -0400 |
commit | 9fe7235d7c06677f152e20b9deac85e633f429a6 (patch) | |
tree | 3277706d1e8893c75872c1710bd0a375809f925e /gui/gui.h | |
parent | dbf5d3986e5fe271b072cd3d32e73e4fa26a5fae (diff) |
Add some expression
Diffstat (limited to 'gui/gui.h')
-rw-r--r-- | gui/gui.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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<std::string()> &func); + void set_status( + const std::function<std::string()> &func, + const QString &img = "idle.png"); signals: void sendRunSteps(int steps); void sendConfigure( - std::vector<unsigned int> ways, - vector<int> program, - bool is_pipelined); + std::vector<unsigned int> ways, vector<int> program, bool is_pipelined); private slots: void on_worker_refresh_gui(int value, int pc); @@ -117,6 +118,11 @@ class GUI : public QMainWindow QLabel *status_label; /** + * The robot image displayed on the status bar. + */ + QLabel *avatar; + + /** * The currently loaded program. */ std::vector<signed int> p; |