Mercurial > vba-clojure
diff src/win32/PaletteView.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/PaletteView.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,73 @@ 1.4 +#if !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_) 1.5 +#define AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// -*- C++ -*- 1.11 +// PaletteView.h : header file 1.12 +// 1.13 + 1.14 +#include "IUpdate.h" 1.15 +#include "resource.h" 1.16 +#include "ResizeDlg.h" 1.17 +#include "ColorControl.h" 1.18 +#include "PaletteViewControl.h" 1.19 + 1.20 +class GBAPaletteViewControl : public PaletteViewControl 1.21 +{ 1.22 +public: 1.23 + virtual void updatePalette(); 1.24 +}; 1.25 + 1.26 +///////////////////////////////////////////////////////////////////////////// 1.27 +// PaletteView dialog 1.28 + 1.29 +class PaletteView : public ResizeDlg, IUpdateListener 1.30 +{ 1.31 +private: 1.32 + GBAPaletteViewControl paletteView; 1.33 + GBAPaletteViewControl paletteViewOBJ; 1.34 + ColorControl colorControl; 1.35 + bool autoUpdate; 1.36 + // Construction 1.37 +public: 1.38 + void save(int which); 1.39 + PaletteView(CWnd*pParent = NULL); // standard constructor 1.40 + ~PaletteView(); 1.41 + afx_msg LRESULT OnPalInfo(WPARAM wParam, LPARAM lParam); 1.42 + 1.43 + // Dialog Data 1.44 + //{{AFX_DATA(PaletteView) 1.45 + enum { IDD = IDD_PALETTE_VIEW }; 1.46 + // NOTE: the ClassWizard will add data members here 1.47 + //}}AFX_DATA 1.48 + 1.49 + // Overrides 1.50 + // ClassWizard generated virtual function overrides 1.51 + //{{AFX_VIRTUAL(PaletteView) 1.52 +protected: 1.53 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.54 + virtual void PostNcDestroy(); 1.55 + //}}AFX_VIRTUAL 1.56 + 1.57 + virtual void update(); 1.58 + 1.59 + // Implementation 1.60 +protected: 1.61 + // Generated message map functions 1.62 + //{{AFX_MSG(PaletteView) 1.63 + virtual BOOL OnInitDialog(); 1.64 + afx_msg void OnSaveBg(); 1.65 + afx_msg void OnSaveObj(); 1.66 + afx_msg void OnRefresh2(); 1.67 + afx_msg void OnAutoUpdate(); 1.68 + afx_msg void OnClose(); 1.69 + //}}AFX_MSG 1.70 + DECLARE_MESSAGE_MAP() 1.71 +}; 1.72 + 1.73 +//{{AFX_INSERT_LOCATION}} 1.74 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.75 + 1.76 +#endif // !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)