home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / MemoryViewerDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-05-13  |  2.8 KB  |  95 lines

  1. // -*- C++ -*-
  2. // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
  3. // Copyright (C) 1999-2003 Forgotten
  4. // Copyright (C) 2004 Forgotten and the VBA development team
  5.  
  6. // This program is free software; you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation; either version 2, or(at your option)
  9. // any later version.
  10. //
  11. // This program is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. // GNU General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU General Public License
  17. // along with this program; if not, write to the Free Software Foundation,
  18. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19.  
  20. #if !defined(AFX_MEMORYVIEWERDLG_H__15046D5B_D5A2_4C49_A969_2A77F803F2F1__INCLUDED_)
  21. #define AFX_MEMORYVIEWERDLG_H__15046D5B_D5A2_4C49_A969_2A77F803F2F1__INCLUDED_
  22.  
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. // MemoryViewerDlg.h : header file
  27. //
  28.  
  29. #include "MemoryViewer.h"
  30. #include "ResizeDlg.h"
  31. #include "IUpdate.h"
  32.  
  33. class GBAMemoryViewer : public MemoryViewer {
  34.  public:
  35.   GBAMemoryViewer();
  36.   virtual void readData(u32, int, u8 *);
  37.   virtual void editData(u32,int,int,u32);
  38. };
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41. // MemoryViewerDlg dialog
  42.  
  43. class MemoryViewerDlg : public ResizeDlg, IUpdateListener, IMemoryViewerDlg
  44. {
  45.   GBAMemoryViewer m_viewer;
  46.   // Construction
  47.  public:
  48.   void setCurrentAddress(u32 address);
  49.   bool autoUpdate;
  50.   void update();
  51.   MemoryViewerDlg(CWnd* pParent = NULL);   // standard constructor
  52.  
  53.   // Dialog Data
  54.   //{{AFX_DATA(MemoryViewerDlg)
  55.   enum { IDD = IDD_MEM_VIEWER };
  56.   CEdit  m_current;
  57.   CEdit  m_address;
  58.   CComboBox  m_addresses;
  59.   int    m_size;
  60.   //}}AFX_DATA
  61.  
  62.  
  63.   // Overrides
  64.   // ClassWizard generated virtual function overrides
  65.   //{{AFX_VIRTUAL(MemoryViewerDlg)
  66.  protected:
  67.   virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  68.   virtual void PostNcDestroy();
  69.   //}}AFX_VIRTUAL
  70.  
  71.   // Implementation
  72.  protected:
  73.  
  74.   // Generated message map functions
  75.   //{{AFX_MSG(MemoryViewerDlg)
  76.   virtual BOOL OnInitDialog();
  77.   afx_msg void OnClose();
  78.   afx_msg void OnRefresh();
  79.   afx_msg void On8Bit();
  80.   afx_msg void On16Bit();
  81.   afx_msg void On32Bit();
  82.   afx_msg void OnAutoUpdate();
  83.   afx_msg void OnGo();
  84.   afx_msg void OnSelchangeAddresses();
  85.   afx_msg void OnSave();
  86.   afx_msg void OnLoad();
  87.   //}}AFX_MSG
  88.   DECLARE_MESSAGE_MAP()
  89.     };
  90.  
  91.     //{{AFX_INSERT_LOCATION}}
  92.     // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  93.  
  94. #endif // !defined(AFX_MEMORYVIEWERDLG_H__15046D5B_D5A2_4C49_A969_2A77F803F2F1__INCLUDED_)
  95.