diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/MemoryViewerDlg.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,79 @@
     1.4 +#if !defined(AFX_MEMORYVIEWERDLG_H__15046D5B_D5A2_4C49_A969_2A77F803F2F1__INCLUDED_)
     1.5 +#define AFX_MEMORYVIEWERDLG_H__15046D5B_D5A2_4C49_A969_2A77F803F2F1__INCLUDED_
     1.6 +
     1.7 +#if _MSC_VER > 1000
     1.8 +#pragma once
     1.9 +#endif // _MSC_VER > 1000
    1.10 +// -*- C++ -*-
    1.11 +// MemoryViewerDlg.h : header file
    1.12 +//
    1.13 +
    1.14 +#include "MemoryViewer.h"
    1.15 +#include "ResizeDlg.h"
    1.16 +#include "IUpdate.h"
    1.17 +
    1.18 +class GBAMemoryViewer : public MemoryViewer
    1.19 +{
    1.20 +public:
    1.21 +	GBAMemoryViewer();
    1.22 +	virtual void readData(u32, int, u8 *);
    1.23 +	virtual void editData(u32, int, int, u32);
    1.24 +};
    1.25 +
    1.26 +/////////////////////////////////////////////////////////////////////////////
    1.27 +// MemoryViewerDlg dialog
    1.28 +
    1.29 +class MemoryViewerDlg : public ResizeDlg, IUpdateListener, IMemoryViewerDlg
    1.30 +{
    1.31 +	GBAMemoryViewer m_viewer;
    1.32 +	// Construction
    1.33 +public:
    1.34 +	void setCurrentAddress(u32 address);
    1.35 +	int autoUpdate;
    1.36 +	int decimalDisplay;
    1.37 +	int align;
    1.38 +	void update();
    1.39 +	MemoryViewerDlg(CWnd*pParent = NULL);  // standard constructor
    1.40 +
    1.41 +	// Dialog Data
    1.42 +	//{{AFX_DATA(MemoryViewerDlg)
    1.43 +	enum { IDD = IDD_MEM_VIEWER };
    1.44 +	CEdit     m_current;
    1.45 +	CEdit     m_address;
    1.46 +	CComboBox m_addresses;
    1.47 +	int       m_size;
    1.48 +	//}}AFX_DATA
    1.49 +
    1.50 +	// Overrides
    1.51 +	// ClassWizard generated virtual function overrides
    1.52 +	//{{AFX_VIRTUAL(MemoryViewerDlg)
    1.53 +protected:
    1.54 +	virtual void DoDataExchange(CDataExchange*pDX);   // DDX/DDV support
    1.55 +	virtual void PostNcDestroy();
    1.56 +	//}}AFX_VIRTUAL
    1.57 +
    1.58 +	// Implementation
    1.59 +protected:
    1.60 +	// Generated message map functions
    1.61 +	//{{AFX_MSG(MemoryViewerDlg)
    1.62 +	virtual BOOL OnInitDialog();
    1.63 +	afx_msg void OnClose();
    1.64 +	afx_msg void OnRefresh();
    1.65 +	afx_msg void On8Bit();
    1.66 +	afx_msg void On16Bit();
    1.67 +	afx_msg void On32Bit();
    1.68 +	afx_msg void OnAutoUpdate();
    1.69 +	afx_msg void OnDecimalDisplay();
    1.70 +	afx_msg void OnAlign();
    1.71 +	afx_msg void OnGo();
    1.72 +	afx_msg void OnSelchangeAddresses();
    1.73 +	afx_msg void OnSave();
    1.74 +	afx_msg void OnLoad();
    1.75 +	//}}AFX_MSG
    1.76 +	DECLARE_MESSAGE_MAP()
    1.77 +};
    1.78 +
    1.79 +//{{AFX_INSERT_LOCATION}}
    1.80 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
    1.81 +
    1.82 +#endif // !defined(AFX_MEMORYVIEWERDLG_H__15046D5B_D5A2_4C49_A969_2A77F803F2F1__INCLUDED_)