Mercurial > vba-clojure
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/GBOamView.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,82 @@ 1.4 +#if !defined(AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_) 1.5 +#define AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// -*- C++ -*- 1.11 +// GBOamView.h : header file 1.12 +// 1.13 + 1.14 +#include "BitmapControl.h" 1.15 +#include "ZoomControl.h" 1.16 +#include "ColorControl.h" 1.17 + 1.18 +#include "IUpdate.h" 1.19 +#include "ResizeDlg.h" 1.20 + 1.21 +///////////////////////////////////////////////////////////////////////////// 1.22 +// GBOamView dialog 1.23 + 1.24 +class GBOamView : public ResizeDlg, IUpdateListener 1.25 +{ 1.26 +private: 1.27 + BITMAPINFO bmpInfo; 1.28 + u8 * data; 1.29 + int w; 1.30 + int h; 1.31 + int number; 1.32 + bool autoUpdate; 1.33 + BitmapControl oamView; 1.34 + ZoomControl oamZoom; 1.35 + ColorControl color; 1.36 + 1.37 + // Construction 1.38 +public: 1.39 + void updateScrollInfo(); 1.40 + void save(); 1.41 + void savePNG(const char *name); 1.42 + void saveBMP(const char *name); 1.43 + void render(); 1.44 + void setAttributes(int y, int x, int tile, int flags); 1.45 + void paint(); 1.46 + ~GBOamView(); 1.47 + GBOamView(CWnd*pParent = NULL); // standard constructor 1.48 + 1.49 + afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam); 1.50 + afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam); 1.51 + virtual void update(); 1.52 + 1.53 + // Dialog Data 1.54 + //{{AFX_DATA(GBOamView) 1.55 + enum { IDD = IDD_GB_OAM_VIEW }; 1.56 + CEdit m_sprite; 1.57 + BOOL m_stretch; 1.58 + //}}AFX_DATA 1.59 + 1.60 + // Overrides 1.61 + // ClassWizard generated virtual function overrides 1.62 + //{{AFX_VIRTUAL(GBOamView) 1.63 +protected: 1.64 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.65 + virtual void PostNcDestroy(); 1.66 + //}}AFX_VIRTUAL 1.67 + 1.68 + // Implementation 1.69 +protected: 1.70 + // Generated message map functions 1.71 + //{{AFX_MSG(GBOamView) 1.72 + virtual BOOL OnInitDialog(); 1.73 + afx_msg void OnStretch(); 1.74 + afx_msg void OnAutoUpdate(); 1.75 + afx_msg void OnChangeSprite(); 1.76 + afx_msg void OnClose(); 1.77 + afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar*pScrollBar); 1.78 + //}}AFX_MSG 1.79 + DECLARE_MESSAGE_MAP() 1.80 +}; 1.81 + 1.82 +//{{AFX_INSERT_LOCATION}} 1.83 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.84 + 1.85 +#endif // !defined(AFX_GBOAMVIEW_H__FE8105E6_9693_479A_8C57_DEEA1B2EA3D6__INCLUDED_)