]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/debug/opbrowser.h
Added Object Processor browser window for debug mode.
[virtualjaguar] / src / gui / debug / opbrowser.h
1 //
2 // opbrowser.h: Jaguar memory browser
3 //
4 // by James Hammons
5 // (C) 2012 Underground Software
6 //
7
8 #ifndef __OPBROWSER_H__
9 #define __OPBROWSER_H__
10
11 #include <QtGui>
12 #include <stdint.h>
13
14 class OPBrowserWindow: public QWidget
15 {
16         Q_OBJECT
17
18         public:
19                 OPBrowserWindow(QWidget * parent = 0);
20
21
22         public slots:
23                 void RefreshContents(void);
24
25         protected:
26                 void keyPressEvent(QKeyEvent *);
27
28                 bool ObjectExists(uint32_t address);
29                 void DiscoverObjects(uint32_t address);
30                 void DumpObjectList(QString &);
31                 void DumpScaledObject(QString &, uint64_t p0, uint64_t p1, uint64_t p2);
32                 void DumpFixedObject(QString &, uint64_t p0, uint64_t p1);
33                 void DumpBitmapCore(QString &, uint64_t p0, uint64_t p1);
34
35         private:
36                 QVBoxLayout * layout;
37 //              QTextBrowser * text;
38                 QLabel * text;
39                 QPushButton * refresh;
40
41 //              int32_t memBase;
42                 uint32_t object[8192];
43                 uint32_t numberOfObjects;
44 };
45
46 #endif  // __OPBROWSER_H__