view src/win32/GBMapView.h @ 2:3549bbe597ed

adding makefile.am
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:47 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #if !defined(AFX_GBMAPVIEW_H__4CD23D38_F2CD_4B95_AE76_2781591DD077__INCLUDED_)
2 #define AFX_GBMAPVIEW_H__4CD23D38_F2CD_4B95_AE76_2781591DD077__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // GBMapView.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 // GBMapView dialog
20 class GBMapView : public ResizeDlg, IUpdateListener
21 {
22 private:
23 BITMAPINFO bmpInfo;
24 u8 * data;
25 int bank;
26 int bg;
27 int w;
28 int h;
29 BitmapControl mapView;
30 ZoomControl mapViewZoom;
31 ColorControl color;
32 bool autoUpdate;
33 // Construction
34 public:
35 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam);
36 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam);
37 u32 GetClickAddress(int x, int y);
38 void update();
39 void paint();
40 void render();
41 void savePNG(const char *name);
42 void saveBMP(const char *name);
43 ~GBMapView();
44 GBMapView(CWnd*pParent = NULL); // standard constructor
46 // Dialog Data
47 //{{AFX_DATA(GBMapView)
48 enum { IDD = IDD_GB_MAP_VIEW };
49 // NOTE: the ClassWizard will add data members here
50 //}}AFX_DATA
52 // Overrides
53 // ClassWizard generated virtual function overrides
54 //{{AFX_VIRTUAL(GBMapView)
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(GBMapView)
64 afx_msg void OnSave();
65 afx_msg void OnRefresh();
66 virtual BOOL OnInitDialog();
67 afx_msg void OnBg0();
68 afx_msg void OnBg1();
69 afx_msg void OnBank0();
70 afx_msg void OnBank1();
71 afx_msg void OnStretch();
72 afx_msg void OnAutoUpdate();
73 afx_msg void OnClose();
74 //}}AFX_MSG
75 DECLARE_MESSAGE_MAP()
76 };
78 //{{AFX_INSERT_LOCATION}}
79 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
81 #endif // !defined(AFX_GBMAPVIEW_H__4CD23D38_F2CD_4B95_AE76_2781591DD077__INCLUDED_)