2019-12-19 11:58:52 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-02-05 21:17:51 +00:00
|
|
|
#include <QWidget>
|
2019-12-19 11:58:52 +00:00
|
|
|
#include "MIPS.h"
|
|
|
|
#include "VirtualMachineStateView.h"
|
|
|
|
|
|
|
|
class QResizeEvent;
|
2020-01-06 12:40:18 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class CMemoryViewMIPSWnd;
|
|
|
|
}
|
2019-12-19 11:58:52 +00:00
|
|
|
|
2020-02-05 21:17:51 +00:00
|
|
|
class CMemoryViewMIPSWnd : public QWidget, public CVirtualMachineStateView
|
2019-12-19 11:58:52 +00:00
|
|
|
{
|
|
|
|
public:
|
2024-03-20 15:25:42 -04:00
|
|
|
CMemoryViewMIPSWnd(QWidget*, CVirtualMachine&, CMIPS*, uint64);
|
2019-12-19 11:58:52 +00:00
|
|
|
~CMemoryViewMIPSWnd();
|
|
|
|
|
|
|
|
void HandleMachineStateChange() override;
|
|
|
|
|
|
|
|
int GetBytesPerLine();
|
|
|
|
void SetBytesPerLine(int);
|
|
|
|
|
2023-08-12 10:31:28 -04:00
|
|
|
void SetAddress(uint32);
|
|
|
|
|
2019-12-19 11:58:52 +00:00
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent*) Q_DECL_OVERRIDE;
|
|
|
|
void resizeEvent(QResizeEvent*) Q_DECL_OVERRIDE;
|
|
|
|
|
|
|
|
private:
|
2020-01-05 22:46:47 +00:00
|
|
|
void UpdateStatusBar(uint32);
|
2019-12-19 11:58:52 +00:00
|
|
|
|
2020-01-06 12:40:18 +00:00
|
|
|
Ui::CMemoryViewMIPSWnd* ui;
|
|
|
|
|
2019-12-19 11:58:52 +00:00
|
|
|
Framework::CSignal<void(uint32)>::Connection m_OnSelectionChangeConnection;
|
|
|
|
};
|