Mercurial > vba-clojure
view src/win32/MemoryViewer.h @ 4:5f6f2134e8ce
apu appears to not be used
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:35:58 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #if !defined(AFX_MEMORYVIEWER_H__52C50474_5399_4D0B_A3E4_4C52C4E0EAA0__INCLUDED_)2 #define AFX_MEMORYVIEWER_H__52C50474_5399_4D0B_A3E4_4C52C4E0EAA0__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // MemoryViewer.h : header file9 //11 /////////////////////////////////////////////////////////////////////////////12 // MemoryViewer window14 class IMemoryViewerDlg15 {16 public:17 virtual void setCurrentAddress(u32 address) = 0;18 };20 class MemoryViewer : public CWnd21 {22 u32 address;23 int addressSize;24 int dataSize;25 bool hasCaret;26 int caretWidth;27 int caretHeight;28 HFONT font;29 CSize fontSize;30 u32 editAddress;31 int editNibble;32 int maxNibble;33 int displayedLines;34 int beginAscii;35 int beginHex;36 bool editAscii;37 bool decimalDisplay;38 IMemoryViewerDlg *dlg;40 static bool isRegistered;41 // Construction42 public:43 MemoryViewer();45 // Attributes46 public:47 // Operations48 public:49 virtual void readData(u32, int, u8 *) = 0;50 virtual void editData(u32, int, int, u32) = 0;52 // Overrides53 // ClassWizard generated virtual function overrides54 //{{AFX_VIRTUAL(MemoryViewer)55 //}}AFX_VIRTUAL57 // Implementation58 public:59 int getSize();60 u32 getCurrentAddress();61 void setAddressSize(int s);62 void registerClass();63 void beep();64 bool OnEditInput(UINT c);65 void moveAddress(s32 offset, int nibbleOff);66 void setCaretPos();67 void destroyEditCaret();68 void createEditCaret(int w, int h);69 void updateScrollInfo(int lines);70 void setSize(int s);71 void setDecimal(bool decimalDisplayMode);72 void setAddress(u32 a);73 void setDialog(IMemoryViewerDlg *d);74 virtual ~MemoryViewer();76 // Generated message map functions77 protected:78 //{{AFX_MSG(MemoryViewer)79 afx_msg BOOL OnEraseBkgnd(CDC*pDC);80 afx_msg void OnPaint();81 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar*pScrollBar);82 afx_msg UINT OnGetDlgCode();83 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);84 afx_msg void OnSetFocus(CWnd*pOldWnd);85 afx_msg void OnKillFocus(CWnd*pNewWnd);86 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);87 //}}AFX_MSG88 DECLARE_MESSAGE_MAP()89 afx_msg LRESULT OnWMChar(WPARAM wParam, LPARAM lParam);90 };92 /////////////////////////////////////////////////////////////////////////////94 //{{AFX_INSERT_LOCATION}}95 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.97 #endif // !defined(AFX_MEMORYVIEWER_H__52C50474_5399_4D0B_A3E4_4C52C4E0EAA0__INCLUDED_)