Mercurial > vba-linux
comparison src/win32/GBOamView.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 #if !defined(AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_) | |
2 #define AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_ | |
3 | |
4 #if _MSC_VER > 1000 | |
5 #pragma once | |
6 #endif // _MSC_VER > 1000 | |
7 // -*- C++ -*- | |
8 // GBOamView.h : header file | |
9 // | |
10 | |
11 #include "BitmapControl.h" | |
12 #include "ZoomControl.h" | |
13 #include "ColorControl.h" | |
14 | |
15 #include "IUpdate.h" | |
16 #include "ResizeDlg.h" | |
17 | |
18 ///////////////////////////////////////////////////////////////////////////// | |
19 // GBOamView dialog | |
20 | |
21 class GBOamView : public ResizeDlg, IUpdateListener | |
22 { | |
23 private: | |
24 BITMAPINFO bmpInfo; | |
25 u8 * data; | |
26 int w; | |
27 int h; | |
28 int number; | |
29 bool autoUpdate; | |
30 BitmapControl oamView; | |
31 ZoomControl oamZoom; | |
32 ColorControl color; | |
33 | |
34 // Construction | |
35 public: | |
36 void updateScrollInfo(); | |
37 void save(); | |
38 void savePNG(const char *name); | |
39 void saveBMP(const char *name); | |
40 void render(); | |
41 void setAttributes(int y, int x, int tile, int flags); | |
42 void paint(); | |
43 ~GBOamView(); | |
44 GBOamView(CWnd*pParent = NULL); // standard constructor | |
45 | |
46 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam); | |
47 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam); | |
48 virtual void update(); | |
49 | |
50 // Dialog Data | |
51 //{{AFX_DATA(GBOamView) | |
52 enum { IDD = IDD_GB_OAM_VIEW }; | |
53 CEdit m_sprite; | |
54 BOOL m_stretch; | |
55 //}}AFX_DATA | |
56 | |
57 // Overrides | |
58 // ClassWizard generated virtual function overrides | |
59 //{{AFX_VIRTUAL(GBOamView) | |
60 protected: | |
61 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support | |
62 virtual void PostNcDestroy(); | |
63 //}}AFX_VIRTUAL | |
64 | |
65 // Implementation | |
66 protected: | |
67 // Generated message map functions | |
68 //{{AFX_MSG(GBOamView) | |
69 virtual BOOL OnInitDialog(); | |
70 afx_msg void OnStretch(); | |
71 afx_msg void OnAutoUpdate(); | |
72 afx_msg void OnChangeSprite(); | |
73 afx_msg void OnClose(); | |
74 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar*pScrollBar); | |
75 //}}AFX_MSG | |
76 DECLARE_MESSAGE_MAP() | |
77 }; | |
78 | |
79 //{{AFX_INSERT_LOCATION}} | |
80 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. | |
81 | |
82 #endif // !defined(AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_) |