view src/win32/MemoryViewerDlg.h @ 1:f9f4f1b99eed

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