rlm@1
|
1 #if !defined(AFX_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_)
|
rlm@1
|
2 #define AFX_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_
|
rlm@1
|
3
|
rlm@1
|
4 #if _MSC_VER > 1000
|
rlm@1
|
5 #pragma once
|
rlm@1
|
6 #endif // _MSC_VER > 1000
|
rlm@1
|
7 // -*- C++ -*-
|
rlm@1
|
8 // GBMemoryViewerDlg.h : header file
|
rlm@1
|
9 //
|
rlm@1
|
10 #include "MemoryViewer.h"
|
rlm@1
|
11 #include "ResizeDlg.h"
|
rlm@1
|
12 #include "IUpdate.h"
|
rlm@1
|
13
|
rlm@1
|
14 class GBMemoryViewer : public MemoryViewer
|
rlm@1
|
15 {
|
rlm@1
|
16 public:
|
rlm@1
|
17 GBMemoryViewer();
|
rlm@1
|
18 virtual void readData(u32, int, u8 *);
|
rlm@1
|
19 virtual void editData(u32, int, int, u32);
|
rlm@1
|
20 };
|
rlm@1
|
21
|
rlm@1
|
22 /////////////////////////////////////////////////////////////////////////////
|
rlm@1
|
23 // GBMemoryViewerDlg dialog
|
rlm@1
|
24
|
rlm@1
|
25 class GBMemoryViewerDlg : public ResizeDlg, IUpdateListener, IMemoryViewerDlg
|
rlm@1
|
26 {
|
rlm@1
|
27 GBMemoryViewer m_viewer;
|
rlm@1
|
28 bool autoUpdate;
|
rlm@1
|
29 int decimalDisplay;
|
rlm@1
|
30 int align;
|
rlm@1
|
31 // Construction
|
rlm@1
|
32 public:
|
rlm@1
|
33 void setCurrentAddress(u32 address);
|
rlm@1
|
34 GBMemoryViewerDlg(CWnd*pParent = NULL); // standard constructor
|
rlm@1
|
35
|
rlm@1
|
36 virtual void update();
|
rlm@1
|
37
|
rlm@1
|
38 // Dialog Data
|
rlm@1
|
39 //{{AFX_DATA(GBMemoryViewerDlg)
|
rlm@1
|
40 enum { IDD = IDD_MEM_VIEWER };
|
rlm@1
|
41 CEdit m_current;
|
rlm@1
|
42 CEdit m_address;
|
rlm@1
|
43 CComboBox m_addresses;
|
rlm@1
|
44 int m_size;
|
rlm@1
|
45 //}}AFX_DATA
|
rlm@1
|
46
|
rlm@1
|
47 // Overrides
|
rlm@1
|
48 // ClassWizard generated virtual function overrides
|
rlm@1
|
49 //{{AFX_VIRTUAL(GBMemoryViewerDlg)
|
rlm@1
|
50 protected:
|
rlm@1
|
51 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
|
rlm@1
|
52 virtual void PostNcDestroy();
|
rlm@1
|
53 //}}AFX_VIRTUAL
|
rlm@1
|
54
|
rlm@1
|
55 // Implementation
|
rlm@1
|
56 protected:
|
rlm@1
|
57 // Generated message map functions
|
rlm@1
|
58 //{{AFX_MSG(GBMemoryViewerDlg)
|
rlm@1
|
59 virtual BOOL OnInitDialog();
|
rlm@1
|
60 afx_msg void OnClose();
|
rlm@1
|
61 afx_msg void OnRefresh();
|
rlm@1
|
62 afx_msg void On8Bit();
|
rlm@1
|
63 afx_msg void On16Bit();
|
rlm@1
|
64 afx_msg void On32Bit();
|
rlm@1
|
65 afx_msg void OnAutoUpdate();
|
rlm@1
|
66 afx_msg void OnDecimalDisplay();
|
rlm@1
|
67 afx_msg void OnAlign();
|
rlm@1
|
68 afx_msg void OnGo();
|
rlm@1
|
69 afx_msg void OnSelchangeAddresses();
|
rlm@1
|
70 afx_msg void OnSave();
|
rlm@1
|
71 afx_msg void OnLoad();
|
rlm@1
|
72 //}}AFX_MSG
|
rlm@1
|
73 DECLARE_MESSAGE_MAP()
|
rlm@1
|
74 };
|
rlm@1
|
75
|
rlm@1
|
76 //{{AFX_INSERT_LOCATION}}
|
rlm@1
|
77 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
rlm@1
|
78
|
rlm@1
|
79 #endif // !defined(AFX_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_)
|