summaryrefslogtreecommitdiff
path: root/gui/gui.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-21 13:41:45 -0400
committerbd <bdunahu@operationnull.com>2025-04-21 13:41:45 -0400
commit9fe7235d7c06677f152e20b9deac85e633f429a6 (patch)
tree3277706d1e8893c75872c1710bd0a375809f925e /gui/gui.h
parentdbf5d3986e5fe271b072cd3d32e73e4fa26a5fae (diff)
Add some expression
Diffstat (limited to 'gui/gui.h')
-rw-r--r--gui/gui.h14
1 files changed, 10 insertions, 4 deletions
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<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;