-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRegDumpViewCPU.h
58 lines (45 loc) · 1.04 KB
/
RegDumpViewCPU.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#include <QDockWidget>
#include "RegDumpCPUDlg.h"
#include "Debugger.h"
class CRegDumpViewCPU : public QDockWidget
{
Q_OBJECT
CRegDumpCPUDlg *m_RegDumpCPUDlg;
public:
CRegDumpViewCPU(QWidget *parent = nullptr);
virtual ~CRegDumpViewCPU();
void AttachDebugger(CDebugger *pDbgr)
{
m_RegDumpCPUDlg->AttachDebugger(pDbgr);
m_pDebugger = pDbgr;
}
void SetFreqParam()
{
m_RegDumpCPUDlg->DisplayFreqParam();
}
void UpdateFreq()
{
m_RegDumpCPUDlg->UpdateFreq();
}
void Toggle()
{
if(isHidden())
show();
else
hide();
}
void DisplayRegDump()
{
if (!this->isHidden())
{
m_RegDumpCPUDlg->DisplayRegisters();
m_RegDumpCPUDlg->DisplayPortRegs();
m_RegDumpCPUDlg->DisplayAltProData();
// выводим на экран данные FDD
}
}
inline void Update() { DisplayRegDump(); }
private:
CDebugger *m_pDebugger;
};