summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/mainwindow.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-08-21 20:16:26 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-08-21 20:18:37 +0200
commitc323381f0b3ee68b0093442335e8e7cbb112858a (patch)
treeac27964bd0da6bc56f05ad965ce4de957ef22d59 /utils/regtools/qeditor/mainwindow.h
parent902306378e38ce571f4595ae8dabb2acd2412faa (diff)
downloadrockbox-c323381f0b3ee68b0093442335e8e7cbb112858a.tar.gz
rockbox-c323381f0b3ee68b0093442335e8e7cbb112858a.tar.bz2
rockbox-c323381f0b3ee68b0093442335e8e7cbb112858a.zip
regtools: add graphical register explorer + analyser
This tool allows one to explore any register map. Register dumps (like produced by hwstub tools) can be loaded and decoded by the tool. Finally some analysers are provided for specific soc analysis like clock tree and emi on imx233 for example. Change-Id: Iaf81bd52d15f3e44ab4fe9bc039153fcf60cf92a
Diffstat (limited to 'utils/regtools/qeditor/mainwindow.h')
-rw-r--r--utils/regtools/qeditor/mainwindow.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/utils/regtools/qeditor/mainwindow.h b/utils/regtools/qeditor/mainwindow.h
new file mode 100644
index 0000000000..2897cde1ca
--- /dev/null
+++ b/utils/regtools/qeditor/mainwindow.h
@@ -0,0 +1,44 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <QTabWidget>
+#include <QSettings>
+#include "backend.h"
+#include "settings.h"
+
+class MyTabWidget : public QTabWidget
+{
+ Q_OBJECT
+public:
+ MyTabWidget();
+
+private slots:
+ void OnCloseTab(int index);
+};
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ MainWindow(Backend *backend);
+ void center();
+ void ReadSettings();
+ void WriteSettings();
+
+private:
+ void closeEvent(QCloseEvent *event);
+
+private slots:
+ void OnQuit();
+ void OnAbout();
+ void OnLoadDesc();
+ void OnNewRegTab();
+
+private:
+ QTabWidget *m_tab;
+ Backend *m_backend;
+};
+
+#endif