Merge branch 'develop'
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / allwatchbrowser.h
1 //
2 // allwatchbrowser.h: All Watch
3 //
4 // by Jean-Paul Mari
5 //
6
7 #ifndef __ALLWATCHBROWSER_H__
8 #define __ALLWATCHBROWSER_H__
9
10 //#define AW_LAYOUTTEXTS // Use a layout with just texts
11 //#define AW_SUPPORTARRAY // Support array
12 //#define AW_SUPPORTSTRUCTURE // Support structure
13
14 #include <QtWidgets/QtWidgets>
15 #include <stdint.h>
16
17 // Error code definitions
18 #define AW_NOERROR 0x00
19 #define AW_ERROR 0x80
20 #define AW_WARNING 0x40
21 #define AW_NOALLWATCH (0x01 | AW_WARNING)
22
23
24 //
25 class AllWatchBrowserWindow: public QWidget
26 {
27 Q_OBJECT
28
29 #if 0
30 //
31 typedef struct WatchInfo
32 {
33 #ifdef AW_LAYOUTTEXTS
34 size_t addr;
35 #endif
36 size_t TypeTag;
37 size_t Adr;
38 char *PtrVariableName;
39 char *PtrVariableBaseTypeName;
40 }S_WatchInfo;
41 #endif
42
43 public:
44 AllWatchBrowserWindow(QWidget *parent = 0);
45 ~AllWatchBrowserWindow(void);
46 void Reset(void);
47
48 public slots:
49 void RefreshContents(void);
50
51 protected:
52 void keyPressEvent(QKeyEvent *);
53
54 protected slots:
55 void SearchSymbol(void);
56 void SelectSearchSymbol(void);
57
58 private:
59 QVBoxLayout *layout;
60 #ifdef AW_LAYOUTTEXTS
61 QTextBrowser *text;
62 #else
63 QTableView *TableView;
64 QStandardItemModel *model;
65 #endif
66 QStatusBar *statusbar;
67 //WatchInfo *PtrWatchInfo;
68 void **PtrWatchInfo;
69 size_t NbWatch;
70 QPushButton *search;
71 QLineEdit* symbol;
72 size_t CurrentWatch;
73 };
74
75 #endif // __ALLWATCHBROWSER_H__