Add the source level tracing
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / SourceCWin.h
CommitLineData
aae93d86
JPM
1//
2// SourcesWin.h: Source C tracing window
3//
4// JPM = Jean-Paul Mari <djipi.mari@gmail.com>
5//
6// Who When What
7// --- ---------- -------------------------------------------------------------
8// JPM 08/23/2019 Created this file
9//
10
11#ifndef __SOURCECWIN_H__
12#define __SOURCECWIN_H__
13
14//#define SC_LAYOUTTEXTS // Use a layout with just texts
15
16#include <QtWidgets>
17//#include <stdint.h>
18
19
20class SourceCWindow : public QWidget
21{
22 Q_OBJECT
23
24public:
25 SourceCWindow(QWidget * parent = 0);
26 void FillTab(size_t index, char **TextLines, size_t NbLines[], size_t *NumLinesUsed);
27 void SetCursorTrace(int NumLineSrc, bool Remove);
28
29public slots:
30 void RefreshContents(void);
31
32protected:
33
34private:
35 size_t FileIndex;
36 int CurrentNumLineSrc;
37 QVBoxLayout *layout;
38#ifdef SC_LAYOUTTEXTS
39 QTextBrowser *text;
40#else
41 QTableView *TableView;
42 QStandardItemModel *model;
43#endif
44 char **PtrTextLines;
45 size_t NbLinesText[2];
46 size_t *PtrNumLinesUsed;
47};
48
49#endif