e10ba93ad5adf57dfb51f08833871cba13e1a30f
[clinton/Virtual-Jaguar-Rx.git] / src / debugger / m68kDasmWin.h
1 //
2 // m68kDasmWin.h: M68K disassembly window
3 //
4 // JPM = Jean-Paul Mari <djipi.mari@gmail.com>
5 //
6 // Who When What
7 // --- ---------- -------------------------------------------------------------
8 // JPM 06/27/2016 Created this file
9 // JPM Aug./2020 Added different layouts
10 //
11
12 #ifndef __M68KDASMWIN_H__
13 #define __M68KDASMWIN_H__
14
15 #define MD_LAYOUTTEXTS // Use a layout with just texts otherwise the new layout is used
16 #ifdef MD_LAYOUTTEXTS
17 #define MD_LAYOUTFILE 1 // Display the filenames (1: display only the first filename)
18 #else
19 #define MD_LAYOUTFILE 1 // Must display only the first filename
20 #endif
21
22 #include <QtWidgets>
23 #include <stdint.h>
24
25 class m68KDasmWindow: public QWidget
26 {
27 Q_OBJECT
28
29 public:
30 m68KDasmWindow(QWidget * parent = 0);
31
32 public slots:
33 void RefreshContents(void);
34 void SetAddress(int address);
35 void Use68KPCAddress(void);
36
37 protected:
38
39 private:
40 QVBoxLayout *layout;
41 #ifdef MD_LAYOUTTEXTS
42 QTextBrowser *text;
43 #endif
44 size_t memBase;
45 };
46
47 #endif // __M68KDASMWIN_H__