X-Git-Url: http://git.hcoop.net/clinton/Virtual-Jaguar-Rx.git/blobdiff_plain/a2dfb8e5bb39bb55441bcce1e4522f0dbe20ba3a..0e699c1255f04f5c332632eef475ebcef4200305:/src/debugger/localbrowser.h diff --git a/src/debugger/localbrowser.h b/src/debugger/localbrowser.h index 6ee2a60..249350f 100644 --- a/src/debugger/localbrowser.h +++ b/src/debugger/localbrowser.h @@ -1,5 +1,5 @@ // -// localbrowser.h: All Watch +// localbrowser.h: Local variables // // by Jean-Paul Mari // @@ -7,52 +7,50 @@ #ifndef __LOCALBROWSER_H__ #define __LOCALBROWSER_H__ -#include -#include +//#define LOCAL_FONTS // Support for fonts modifications +#include +#include + +// Error code definitions +#define LOCAL_NOERROR 0x00 +#define LOCAL_WARNING 0x40 +#define LOCAL_ERROR 0x80 +#define LOCAL_NOLOCALS (0x01 | LOCAL_WARNING) + +// class LocalBrowserWindow: public QWidget { Q_OBJECT // - struct WatchInfo + typedef struct LocalInfo { - //size_t TypeEncoding; - //size_t TypeByteSize; - size_t Op; size_t Adr; - int Offset; - size_t TypeTag; - size_t TypeEncoding; - size_t TypeByteSize; - char *PtrVariableName; - char *PtrVariableBaseTypeName; char *PtrCPURegisterName; - }S_WatchInfo; + void *PtrVariable; + } + S_LocalInfo; public: LocalBrowserWindow(QWidget *parent = 0); ~LocalBrowserWindow(void); public slots: -// void DefineAllKeys(void); void RefreshContents(void); bool UpdateInfos(void); -// void GoToAddress(void); protected: + QList prepareRow(void* Info); + void setValueRow(QStandardItem *Row, size_t Adr, char* Value, void* Info); void keyPressEvent(QKeyEvent *); private: QVBoxLayout *layout; -// QTextBrowser * text; -// QLabel *text; - QTextBrowser *text; -// QPushButton *refresh; -// QLineEdit *address; -// QPushButton *go; - WatchInfo *LocalInfo; -// int32_t memBase; + QTreeView *TableView; + QStandardItemModel *model; + S_LocalInfo *LocalInfo; + QStatusBar *statusbar; size_t NbLocal; char *FuncName; };