view src/win32/MapView.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_MAPVIEW_H__20F40C77_8E10_44B7_BB49_7865F73C3E75__INCLUDED_)
2 #define AFX_MAPVIEW_H__20F40C77_8E10_44B7_BB49_7865F73C3E75__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // MapView.h : header file
9 //
11 #include "BitmapControl.h"
12 #include "ColorControl.h"
13 #include "ZoomControl.h"
14 #include "ResizeDlg.h"
15 #include "IUpdate.h"
17 /////////////////////////////////////////////////////////////////////////////
18 // MapView dialog
20 class MapView : public ResizeDlg, IUpdateListener
21 {
22 private:
23 BITMAPINFO bmpInfo;
24 u8 * data;
25 int frame;
26 u16 control;
27 int bg;
28 int w;
29 int h;
30 BitmapControl mapView;
31 ZoomControl mapViewZoom;
32 ColorControl color;
33 bool autoUpdate;
35 // Construction
36 public:
37 void savePNG(const char *name);
38 void saveBMP(const char *name);
39 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam);
40 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam);
41 u32 GetClickAddress(int x, int y);
42 u32 GetTextClickAddress(u32 base, int x, int y);
43 void update();
44 void enableButtons(int mode);
45 void paint();
46 void renderMode5();
47 void renderMode4();
48 void renderMode3();
49 void renderMode2();
50 void renderMode1();
51 void renderMode0();
52 void renderRotScreen(u16 control);
53 void renderTextScreen(u16 control);
54 MapView(CWnd*pParent = NULL); // standard constructor
55 ~MapView();
57 // Dialog Data
58 //{{AFX_DATA(MapView)
59 enum { IDD = IDD_MAP_VIEW };
60 CStatic m_numcolors;
61 CStatic m_mode;
62 CStatic m_overflow;
63 CStatic m_mosaic;
64 CStatic m_priority;
65 CStatic m_dim;
66 CStatic m_charbase;
67 CStatic m_mapbase;
68 //}}AFX_DATA
70 // Overrides
71 // ClassWizard generated virtual function overrides
72 //{{AFX_VIRTUAL(MapView)
73 protected:
74 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
75 virtual void PostNcDestroy();
76 //}}AFX_VIRTUAL
78 // Implementation
79 protected:
80 // Generated message map functions
81 //{{AFX_MSG(MapView)
82 afx_msg void OnRefresh();
83 virtual BOOL OnInitDialog();
84 afx_msg void OnFrame0();
85 afx_msg void OnFrame1();
86 afx_msg void OnBg0();
87 afx_msg void OnBg1();
88 afx_msg void OnBg2();
89 afx_msg void OnBg3();
90 afx_msg void OnStretch();
91 afx_msg void OnAutoUpdate();
92 afx_msg void OnClose();
93 afx_msg void OnSave();
94 //}}AFX_MSG
95 DECLARE_MESSAGE_MAP()
96 };
98 //{{AFX_INSERT_LOCATION}}
99 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
101 #endif // !defined(AFX_MAPVIEW_H__20F40C77_8E10_44B7_BB49_7865F73C3E75__INCLUDED_)