view src/win32/OamView.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_OAMVIEW_H__E5369352_80F8_49C4_9F23_05EB6FC1345B__INCLUDED_)
2 #define AFX_OAMVIEW_H__E5369352_80F8_49C4_9F23_05EB6FC1345B__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // OamView.h : header file
8 //
9 #include "BitmapControl.h"
10 #include "ZoomControl.h"
11 #include "ColorControl.h"
12 #include "IUpdate.h"
13 #include "ResizeDlg.h"
15 /////////////////////////////////////////////////////////////////////////////
16 // OamView dialog
18 class OamView : public ResizeDlg, IUpdateListener
19 {
20 private:
21 BITMAPINFO bmpInfo;
22 u8 * data;
23 int w;
24 int h;
25 int number;
26 bool autoUpdate;
27 BitmapControl oamView;
28 ZoomControl oamZoom;
29 ColorControl color;
31 // Construction
32 public:
33 void updateScrollInfo();
34 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam);
35 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam);
36 void savePNG(const char *name);
37 void saveBMP(const char *name);
38 void render();
39 void setAttributes(u16 a0, u16 a1, u16 a2);
40 void paint();
41 ~OamView();
42 OamView(CWnd*pParent = NULL); // standard constructor
44 virtual void update();
45 // Dialog Data
46 //{{AFX_DATA(OamView)
47 enum { IDD = IDD_OAM_VIEW };
48 CEdit m_sprite;
49 BOOL m_stretch;
50 //}}AFX_DATA
52 // Overrides
53 // ClassWizard generated virtual function overrides
54 //{{AFX_VIRTUAL(OamView)
55 protected:
56 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
57 virtual void PostNcDestroy();
58 //}}AFX_VIRTUAL
60 // Implementation
61 protected:
62 // Generated message map functions
63 //{{AFX_MSG(OamView)
64 afx_msg void OnSave();
65 virtual BOOL OnInitDialog();
66 afx_msg void OnStretch();
67 afx_msg void OnAutoUpdate();
68 afx_msg void OnChangeSprite();
69 afx_msg void OnClose();
70 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar*pScrollBar);
71 //}}AFX_MSG
72 DECLARE_MESSAGE_MAP()
73 };
75 //{{AFX_INSERT_LOCATION}}
76 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
78 #endif // !defined(AFX_OAMVIEW_H__E5369352_80F8_49C4_9F23_05EB6FC1345B__INCLUDED_)