Added a Local browser window for local variables
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / localbrowser.h
1 //
2 // localbrowser.h: All Watch
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 struct WatchInfo
19 {
20 //size_t TypeEncoding;
21 //size_t TypeByteSize;
22 size_t Op;
23 size_t Adr;
24 int Offset;
25 size_t TypeTag;
26 size_t TypeEncoding;
27 size_t TypeByteSize;
28 char *PtrVariableName;
29 char *PtrVariableBaseTypeName;
30 }S_WatchInfo;
31
32 public:
33 LocalBrowserWindow(QWidget *parent = 0);
34 ~LocalBrowserWindow(void);
35
36 public slots:
37 // void DefineAllKeys(void);
38 void RefreshContents(void);
39 bool UpdateInfos(void);
40 // void GoToAddress(void);
41
42 protected:
43 // void keyPressEvent(QKeyEvent *);
44
45 private:
46 QVBoxLayout *layout;
47 // QTextBrowser * text;
48 // QLabel *text;
49 QTextBrowser *text;
50 // QPushButton *refresh;
51 // QLineEdit *address;
52 // QPushButton *go;
53 WatchInfo *LocalInfo;
54 // int32_t memBase;
55 size_t NbLocal;
56 char *FuncName;
57 };
58
59 #endif // __LOCALBROWSER_H__