Potential fix to compile on Linux
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / callstackbrowser.h
1 //
2 // callstackbrowser.h: Call Stack
3 //
4 // by Jean-Paul Mari
5 //
6
7 #ifndef __CALLSTACKBROWSER_H__
8 #define __CALLSTACKBROWSER_H__
9
10 //#define CS_LAYOUTTEXTS // Use a layout with just texts
11
12 #include <QtWidgets/QtWidgets>
13 #include <stdint.h>
14
15 // Error code definitions
16 #define CS_NOERROR 0x00
17 #define CS_ERROR 0x80
18 #define CS_WARNING 0x40
19 #define CS_NOCALLSTACK (0x01 | CS_WARNING)
20
21
22 //
23 class CallStackBrowserWindow : public QWidget
24 {
25 Q_OBJECT
26
27 public:
28 CallStackBrowserWindow(QWidget *parent = 0);
29 ~CallStackBrowserWindow(void);
30
31 public slots:
32 void RefreshContents(void);
33
34 protected:
35 void keyPressEvent(QKeyEvent *);
36
37 private:
38 QVBoxLayout *layout;
39 QStatusBar *statusbar;
40 #ifdef CS_LAYOUTTEXTS
41 QTextBrowser * text;
42 #else
43 QTableView *TableView;
44 QStandardItemModel *model;
45 #endif
46 };
47
48 #endif // __CALLSTACKBROWSER_H__