Mercurial > vba-linux
view src/win32/GBOamView.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 |
line wrap: on
line source
1 #if !defined(AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_)2 #define AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // GBOamView.h : header file9 //11 #include "BitmapControl.h"12 #include "ZoomControl.h"13 #include "ColorControl.h"15 #include "IUpdate.h"16 #include "ResizeDlg.h"18 /////////////////////////////////////////////////////////////////////////////19 // GBOamView dialog21 class GBOamView : public ResizeDlg, IUpdateListener22 {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;34 // Construction35 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 constructor46 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam);47 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam);48 virtual void update();50 // Dialog Data51 //{{AFX_DATA(GBOamView)52 enum { IDD = IDD_GB_OAM_VIEW };53 CEdit m_sprite;54 BOOL m_stretch;55 //}}AFX_DATA57 // Overrides58 // ClassWizard generated virtual function overrides59 //{{AFX_VIRTUAL(GBOamView)60 protected:61 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support62 virtual void PostNcDestroy();63 //}}AFX_VIRTUAL65 // Implementation66 protected:67 // Generated message map functions68 //{{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_MSG76 DECLARE_MESSAGE_MAP()77 };79 //{{AFX_INSERT_LOCATION}}80 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.82 #endif // !defined(AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_)