summaryrefslogtreecommitdiff
path: root/gui/gui.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-21 15:56:38 -0400
committerbd <bdunahu@operationnull.com>2025-04-21 15:56:38 -0400
commit40dfec9ae067d3f8e3868d259bfc4251aeca8724 (patch)
tree28316cbc00a8e89ead3225d80b9199381a996d86 /gui/gui.h
parent89763e6f696a96ad310f031c66960bcaaba3ffdb (diff)
Add functionality to toggle button.
Diffstat (limited to 'gui/gui.h')
-rw-r--r--gui/gui.h9
1 files changed, 9 insertions, 0 deletions
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<unsigned int> ways, vector<int> 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();
@@ -113,6 +117,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.
*/
QLabel *status_label;