aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/registersdock.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/registersdock.h')
-rw-r--r--qtmips_gui/registersdock.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qtmips_gui/registersdock.h b/qtmips_gui/registersdock.h
index c56f375..dcc5e9b 100644
--- a/qtmips_gui/registersdock.h
+++ b/qtmips_gui/registersdock.h
@@ -41,6 +41,7 @@
#include <QFormLayout>
#include <QScrollArea>
#include <QPropertyAnimation>
+#include <QPalette>
#include "qtmipsmachine.h"
#include "statictable.h"
@@ -56,6 +57,9 @@ private slots:
void pc_changed(std::uint32_t val);
void gp_changed(std::uint8_t i, std::uint32_t val);
void hi_lo_changed(bool hi, std::uint32_t val);
+ void gp_read(std::uint8_t i, std::uint32_t val);
+ void hi_lo_read(bool hi, std::uint32_t val);
+ void clear_highlights();
private:
StaticTable *widg;
@@ -66,6 +70,14 @@ private:
QLabel *lo;
QLabel *gp[32];
+ std::uint32_t gp_highlighted;
+ bool hi_highlighted;
+ bool lo_highlighted;
+
+ QPalette pal_normal;
+ QPalette pal_updated;
+ QPalette pal_read;
+
void labelVal(QLabel *label, std::uint32_t val);
};