Added detection for the unsigned/signed short type
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / localbrowser.h
CommitLineData
0203b5fd 1//\r
570dad92 2// localbrowser.h: Local variables\r
0203b5fd
JPM
3//\r
4// by Jean-Paul Mari\r
5//\r
6\r
7#ifndef __LOCALBROWSER_H__\r
8#define __LOCALBROWSER_H__\r
9\r
2b91c435
JPM
10//#define LOCAL_LAYOUTTEXTS // Use a layout with just texts\r
11//#define LOCAL_SUPPORTARRAY // Support array\r
12//#define LOCAL_SUPPORTSTRUCTURE // Support structure\r
13\r
0203b5fd
JPM
14#include <QtWidgets>\r
15#include <stdint.h>\r
2b91c435
JPM
16
17// Error code definitions\r
18#define LOCAL_NOERROR 0x00\r
19#define LOCAL_ERROR 0x80
20#define LOCAL_WARNING 0x40\r
21#define LOCAL_NOLOCALS (0x01 | LOCAL_WARNING)\r
22\r
0203b5fd 23\r
2b91c435 24// \r
0203b5fd
JPM
25class LocalBrowserWindow: public QWidget\r
26{\r
27 Q_OBJECT\r
28\r
29 //\r
570dad92 30 typedef struct WatchInfo\r
0203b5fd 31 {\r
0203b5fd
JPM
32 size_t Op;\r
33 size_t Adr;\r
34 int Offset;\r
35 size_t TypeTag;\r
36 size_t TypeEncoding;\r
37 size_t TypeByteSize;\r
38 char *PtrVariableName;\r
39 char *PtrVariableBaseTypeName;\r
e857856a 40 char *PtrCPURegisterName;\r
2b91c435
JPM
41 }\r
42 S_WatchInfo;\r
0203b5fd
JPM
43\r
44 public:\r
45 LocalBrowserWindow(QWidget *parent = 0);\r
46 ~LocalBrowserWindow(void);\r
47\r
48 public slots:\r
0203b5fd
JPM
49 void RefreshContents(void);\r
50 bool UpdateInfos(void);\r
0203b5fd
JPM
51\r
52 protected:\r
a2dfb8e5 53 void keyPressEvent(QKeyEvent *);\r
0203b5fd
JPM
54\r
55 private:\r
56 QVBoxLayout *layout;\r
2b91c435 57#ifdef LOCAL_LAYOUTTEXTS\r
0203b5fd 58 QTextBrowser *text;\r
2b91c435
JPM
59#else\r
60 QTableView *TableView;\r
61 QStandardItemModel *model;\r
62#endif\r
0203b5fd 63 WatchInfo *LocalInfo;\r
2b91c435 64 QStatusBar *statusbar;\r
0203b5fd
JPM
65 size_t NbLocal;\r
66 char *FuncName;\r
67};\r
68\r
69#endif // __LOCALBROWSER_H__\r