comparison 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
comparison
equal deleted inserted replaced
0:8ced16adf2e1 1:f9f4f1b99eed
1 #if !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)
2 #define AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // PaletteView.h : header file
9 //
10
11 #include "IUpdate.h"
12 #include "resource.h"
13 #include "ResizeDlg.h"
14 #include "ColorControl.h"
15 #include "PaletteViewControl.h"
16
17 class GBAPaletteViewControl : public PaletteViewControl
18 {
19 public:
20 virtual void updatePalette();
21 };
22
23 /////////////////////////////////////////////////////////////////////////////
24 // PaletteView dialog
25
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);
39
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
45
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
53
54 virtual void update();
55
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 };
69
70 //{{AFX_INSERT_LOCATION}}
71 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
72
73 #endif // !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)