Update the breakpoint feature
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / callstackbrowser.h
CommitLineData
0718b3f2
JPM
1//
2// callstackbrowser.h: Call Stack
3//
4// by Jean-Paul Mari
5//
6
7#ifndef __CALLSTACKBROWSER_H__
8#define __CALLSTACKBROWSER_H__
9
2b91c435
JPM
10//#define CS_LAYOUTTEXTS // Use a layout with just texts
11
8646ea44 12#include <QtWidgets/QtWidgets>
0718b3f2
JPM
13#include <stdint.h>
14
2b91c435
JPM
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//
0718b3f2
JPM
23class 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;
2b91c435
JPM
39 QStatusBar *statusbar;
40#ifdef CS_LAYOUTTEXTS
0718b3f2 41 QTextBrowser * text;
2b91c435
JPM
42#else
43 QTableView *TableView;
44 QStandardItemModel *model;
45#endif
0718b3f2
JPM
46};
47
48#endif // __CALLSTACKBROWSER_H__