view src/win32/PaletteView.h @ 2:3549bbe597ed

adding makefile.am
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:47 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #if !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)
2 #define AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // PaletteView.h : header file
9 //
11 #include "IUpdate.h"
12 #include "resource.h"
13 #include "ResizeDlg.h"
14 #include "ColorControl.h"
15 #include "PaletteViewControl.h"
17 class GBAPaletteViewControl : public PaletteViewControl
18 {
19 public:
20 virtual void updatePalette();
21 };
23 /////////////////////////////////////////////////////////////////////////////
24 // PaletteView dialog
26 class PaletteView : public ResizeDlg, IUpdateListener
27 {
28 private:
29 GBAPaletteViewControl paletteView;
30 GBAPaletteViewControl paletteViewOBJ;
31 ColorControl colorControl;
32 bool autoUpdate;
33 // Construction
34 public:
35 void save(int which);
36 PaletteView(CWnd*pParent = NULL); // standard constructor
37 ~PaletteView();
38 afx_msg LRESULT OnPalInfo(WPARAM wParam, LPARAM lParam);
40 // Dialog Data
41 //{{AFX_DATA(PaletteView)
42 enum { IDD = IDD_PALETTE_VIEW };
43 // NOTE: the ClassWizard will add data members here
44 //}}AFX_DATA
46 // Overrides
47 // ClassWizard generated virtual function overrides
48 //{{AFX_VIRTUAL(PaletteView)
49 protected:
50 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
51 virtual void PostNcDestroy();
52 //}}AFX_VIRTUAL
54 virtual void update();
56 // Implementation
57 protected:
58 // Generated message map functions
59 //{{AFX_MSG(PaletteView)
60 virtual BOOL OnInitDialog();
61 afx_msg void OnSaveBg();
62 afx_msg void OnSaveObj();
63 afx_msg void OnRefresh2();
64 afx_msg void OnAutoUpdate();
65 afx_msg void OnClose();
66 //}}AFX_MSG
67 DECLARE_MESSAGE_MAP()
68 };
70 //{{AFX_INSERT_LOCATION}}
71 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
73 #endif // !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)