X-Git-Url: http://git.hcoop.net/clinton/Virtual-Jaguar-Rx.git/blobdiff_plain/0203b5fd6f49dbc4f4244417c095882eb9882d49..c54ac1d3baabc2ff545d624d16059950aa4a3981:/src/debugger/allwatchbrowser.h diff --git a/src/debugger/allwatchbrowser.h b/src/debugger/allwatchbrowser.h index 7c4391c..4f56817 100644 --- a/src/debugger/allwatchbrowser.h +++ b/src/debugger/allwatchbrowser.h @@ -7,47 +7,69 @@ #ifndef __ALLWATCHBROWSER_H__ #define __ALLWATCHBROWSER_H__ -#include +//#define AW_LAYOUTTEXTS // Use a layout with just texts +//#define AW_SUPPORTARRAY // Support array +//#define AW_SUPPORTSTRUCTURE // Support structure + +#include #include + +// Error code definitions +#define AW_NOERROR 0x00 +#define AW_ERROR 0x80 +#define AW_WARNING 0x40 +#define AW_NOALLWATCH (0x01 | AW_WARNING) + +// class AllWatchBrowserWindow: public QWidget { Q_OBJECT +#if 0 // - struct WatchInfo + typedef struct WatchInfo { - //size_t TypeEncoding; - //size_t TypeByteSize; +#ifdef AW_LAYOUTTEXTS size_t addr; +#endif size_t TypeTag; + size_t Adr; char *PtrVariableName; char *PtrVariableBaseTypeName; }S_WatchInfo; +#endif public: AllWatchBrowserWindow(QWidget *parent = 0); ~AllWatchBrowserWindow(void); + void Reset(void); public slots: -// void DefineAllKeys(void); void RefreshContents(void); -// void GoToAddress(void); protected: -// void keyPressEvent(QKeyEvent *); + void keyPressEvent(QKeyEvent *); + + protected slots: + void SearchSymbol(void); + void SelectSearchSymbol(void); private: QVBoxLayout *layout; -// QTextBrowser * text; -// QLabel *text; +#ifdef AW_LAYOUTTEXTS QTextBrowser *text; -// QPushButton *refresh; -// QLineEdit *address; -// QPushButton *go; - WatchInfo *PtrWatchInfo; -// int32_t memBase; +#else + QTableView *TableView; + QStandardItemModel *model; +#endif + QStatusBar *statusbar; + //WatchInfo *PtrWatchInfo; + void **PtrWatchInfo; size_t NbWatch; + QPushButton *search; + QLineEdit* symbol; + size_t CurrentWatch; }; #endif // __ALLWATCHBROWSER_H__