view src/win32/GBMemoryViewerDlg.h @ 7:c0a590a394c3

ignore generated files
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:50:33 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #if !defined(AFX_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_)
2 #define AFX_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // GBMemoryViewerDlg.h : header file
9 //
10 #include "MemoryViewer.h"
11 #include "ResizeDlg.h"
12 #include "IUpdate.h"
14 class GBMemoryViewer : public MemoryViewer
15 {
16 public:
17 GBMemoryViewer();
18 virtual void readData(u32, int, u8 *);
19 virtual void editData(u32, int, int, u32);
20 };
22 /////////////////////////////////////////////////////////////////////////////
23 // GBMemoryViewerDlg dialog
25 class GBMemoryViewerDlg : public ResizeDlg, IUpdateListener, IMemoryViewerDlg
26 {
27 GBMemoryViewer m_viewer;
28 bool autoUpdate;
29 int decimalDisplay;
30 int align;
31 // Construction
32 public:
33 void setCurrentAddress(u32 address);
34 GBMemoryViewerDlg(CWnd*pParent = NULL); // standard constructor
36 virtual void update();
38 // Dialog Data
39 //{{AFX_DATA(GBMemoryViewerDlg)
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(GBMemoryViewerDlg)
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(GBMemoryViewerDlg)
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_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_)