X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fdebug%2Fopbrowser.h;fp=src%2Fgui%2Fdebug%2Fopbrowser.h;h=b2a4028a0527fd19ff912f52075cbaa848250192;hb=cdc64706c10d3fe005fecff5d000fe60b3980a3b;hp=0000000000000000000000000000000000000000;hpb=26044acf8a4fe70772bd6e69afb8b8d20b5a6af5;p=virtualjaguar diff --git a/src/gui/debug/opbrowser.h b/src/gui/debug/opbrowser.h new file mode 100644 index 0000000..b2a4028 --- /dev/null +++ b/src/gui/debug/opbrowser.h @@ -0,0 +1,46 @@ +// +// opbrowser.h: Jaguar memory browser +// +// by James Hammons +// (C) 2012 Underground Software +// + +#ifndef __OPBROWSER_H__ +#define __OPBROWSER_H__ + +#include +#include + +class OPBrowserWindow: public QWidget +{ + Q_OBJECT + + public: + OPBrowserWindow(QWidget * parent = 0); + + + public slots: + void RefreshContents(void); + + protected: + void keyPressEvent(QKeyEvent *); + + bool ObjectExists(uint32_t address); + void DiscoverObjects(uint32_t address); + void DumpObjectList(QString &); + void DumpScaledObject(QString &, uint64_t p0, uint64_t p1, uint64_t p2); + void DumpFixedObject(QString &, uint64_t p0, uint64_t p1); + void DumpBitmapCore(QString &, uint64_t p0, uint64_t p1); + + private: + QVBoxLayout * layout; +// QTextBrowser * text; + QLabel * text; + QPushButton * refresh; + +// int32_t memBase; + uint32_t object[8192]; + uint32_t numberOfObjects; +}; + +#endif // __OPBROWSER_H__