Debugger sources code clean-up
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / localbrowser.h
1 //
2 // localbrowser.h: Local variables
3 //
4 // by Jean-Paul Mari
5 //
6
7 #ifndef __LOCALBROWSER_H__
8 #define __LOCALBROWSER_H__
9
10 #include <QtWidgets>
11 #include <stdint.h>
12
13 class LocalBrowserWindow: public QWidget
14 {
15 Q_OBJECT
16
17 //
18 typedef struct WatchInfo
19 {
20 size_t Op;
21 size_t Adr;
22 int Offset;
23 size_t TypeTag;
24 size_t TypeEncoding;
25 size_t TypeByteSize;
26 char *PtrVariableName;
27 char *PtrVariableBaseTypeName;
28 char *PtrCPURegisterName;
29 }S_WatchInfo;
30
31 public:
32 LocalBrowserWindow(QWidget *parent = 0);
33 ~LocalBrowserWindow(void);
34
35 public slots:
36 void RefreshContents(void);
37 bool UpdateInfos(void);
38
39 protected:
40 void keyPressEvent(QKeyEvent *);
41
42 private:
43 QVBoxLayout *layout;
44 QTextBrowser *text;
45 WatchInfo *LocalInfo;
46 size_t NbLocal;
47 char *FuncName;
48 };
49
50 #endif // __LOCALBROWSER_H__