From 40dfec9ae067d3f8e3868d259bfc4251aeca8724 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 21 Apr 2025 15:56:38 -0400 Subject: Add functionality to toggle button. --- gui/gui.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gui/gui.h') diff --git a/gui/gui.h b/gui/gui.h index 7efde1f..0b10145 100644 --- a/gui/gui.h +++ b/gui/gui.h @@ -58,6 +58,7 @@ class GUI : public QMainWindow const QString &img = "idle.png"); signals: + void hex_toggled(bool is_hex); void sendRunSteps(int steps); void sendConfigure( std::vector ways, vector program, bool is_pipelined); @@ -92,6 +93,9 @@ class GUI : public QMainWindow void on_enable_pipeline_checkbox_checkStateChanged(const Qt::CheckState &arg1); + void + on_base_toggle_checkbox_checkStateChanged(const Qt::CheckState &state); + void on_step_btn_clicked(); void on_save_program_state_btn_clicked(); @@ -112,6 +116,11 @@ class GUI : public QMainWindow */ bool ready; + /** + * Whether or not numerical values are currently displaying in hex. + */ + bool is_hex = true; + /** * The message displayed on the status bar. */ -- cgit v1.2.3