summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/backend.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-09-18 21:36:17 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-19 10:58:33 +0200
commit970c2482dd22a84a5973b73621d0dd06e6f45a25 (patch)
tree3131c033b3f3e385eceed7beb16e8b143ff0caf1 /utils/regtools/qeditor/backend.h
parentdbb59291e745c7cc640a35fc40faa083648793bf (diff)
downloadrockbox-970c2482dd22a84a5973b73621d0dd06e6f45a25.tar.gz
rockbox-970c2482dd22a84a5973b73621d0dd06e6f45a25.tar.bz2
rockbox-970c2482dd22a84a5973b73621d0dd06e6f45a25.zip
qeditor: rework modified indicator, register tab names depend on content
Because Qt doesn't support QObject multiple inherance, it is a bit tricky to have a base class which interact with the UI. The register tab name now display: - file dump name (for dumps) - hwstub device path (for hwstub) And the register editor display the filename Change-Id: If2579992098c02627c67d560c824f1668e73bc45 Reviewed-on: http://gerrit.rockbox.org/979 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'utils/regtools/qeditor/backend.h')
-rw-r--r--utils/regtools/qeditor/backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/regtools/qeditor/backend.h b/utils/regtools/qeditor/backend.h
index e876e9d286..de450143f1 100644
--- a/utils/regtools/qeditor/backend.h
+++ b/utils/regtools/qeditor/backend.h
@@ -99,6 +99,7 @@ public:
{ Q_UNUSED(addr); Q_UNUSED(value); Q_UNUSED(mode); return false; }
virtual bool IsDirty() { return m_dirty; }
virtual bool Commit();
+ QString GetFileName() { return m_filename; }
protected:
QString m_filename;
@@ -164,6 +165,7 @@ public:
virtual bool WriteRegister(soc_addr_t addr, soc_word_t value, WriteMode mode);
virtual bool IsDirty() { return false; }
virtual bool Commit() { return true; }
+ HWStubDevice *GetDevice() { return m_dev; }
protected:
QString m_soc;