Mercurial > vba-linux
view src/win32/GBMemoryViewerDlg.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_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_)2 #define AFX_GBMEMORYVIEWERDLG_H__23AD2804_EFA5_4900_AEC5_47196A41C50D__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // GBMemoryViewerDlg.h : header file9 //10 #include "MemoryViewer.h"11 #include "ResizeDlg.h"12 #include "IUpdate.h"14 class GBMemoryViewer : public MemoryViewer15 {16 public:17 GBMemoryViewer();18 virtual void readData(u32, int, u8 *);19 virtual void editData(u32, int, int, u32);20 };22 /////////////////////////////////////////////////////////////////////////////23 // GBMemoryViewerDlg dialog25 class GBMemoryViewerDlg : public ResizeDlg, IUpdateListener, IMemoryViewerDlg26 {27 GBMemoryViewer m_viewer;28 bool autoUpdate;29 int decimalDisplay;30 int align;31 // Construction32 public:33 void setCurrentAddress(u32 address);34 GBMemoryViewerDlg(CWnd*pParent = NULL); // standard constructor36 virtual void update();38 // Dialog Data39 //{{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_DATA47 // Overrides48 // ClassWizard generated virtual function overrides49 //{{AFX_VIRTUAL(GBMemoryViewerDlg)50 protected:51 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support52 virtual void PostNcDestroy();53 //}}AFX_VIRTUAL55 // Implementation56 protected:57 // Generated message map functions58 //{{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_MSG73 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_)