annotate src/win32/MapView.h @ 8:08a8e09ca414

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