comparison src/win32/GBPaletteView.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_GBPALETTEVIEW_H__F909FF55_3021_4301_B017_0C2C9D8D8C08__INCLUDED_)
2 #define AFX_GBPALETTEVIEW_H__F909FF55_3021_4301_B017_0C2C9D8D8C08__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // GBPaletteView.h : header file
9 //
10
11 #include "ColorControl.h"
12 #include "IUpdate.h"
13 #include "PaletteViewControl.h"
14 #include "ResizeDlg.h"
15
16 class GBPaletteViewControl : public PaletteViewControl
17 {
18 public:
19 virtual void updatePalette();
20 };
21
22 /////////////////////////////////////////////////////////////////////////////
23 // GBPaletteView dialog
24
25 class GBPaletteView : public ResizeDlg, IUpdateListener
26 {
27 private:
28 GBPaletteViewControl paletteView;
29 GBPaletteViewControl paletteViewOBJ;
30 ColorControl colorControl;
31 bool autoUpdate;
32 // Construction
33 public:
34 void save(int which);
35 GBPaletteView(CWnd*pParent = NULL); // standard constructor
36 virtual ~GBPaletteView();
37
38 // Dialog Data
39 //{{AFX_DATA(GBPaletteView)
40 enum { IDD = IDD_GB_PALETTE_VIEW };
41 // NOTE: the ClassWizard will add data members here
42 //}}AFX_DATA
43
44 // Overrides
45 // ClassWizard generated virtual function overrides
46 //{{AFX_VIRTUAL(GBPaletteView)
47 protected:
48 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
49 virtual void PostNcDestroy();
50 //}}AFX_VIRTUAL
51
52 virtual void update();
53
54 // Implementation
55 protected:
56 afx_msg virtual LRESULT OnPalInfo(WPARAM wParam, LPARAM lParam);
57 // Generated message map functions
58 //{{AFX_MSG(GBPaletteView)
59 virtual BOOL OnInitDialog();
60 afx_msg void OnSaveBg();
61 afx_msg void OnSaveObj();
62 afx_msg void OnRefresh2();
63 afx_msg void OnAutoUpdate();
64 afx_msg void OnClose();
65 //}}AFX_MSG
66 DECLARE_MESSAGE_MAP()
67 };
68
69 //{{AFX_INSERT_LOCATION}}
70 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
71
72 #endif // !defined(AFX_GBPALETTEVIEW_H__F909FF55_3021_4301_B017_0C2C9D8D8C08__INCLUDED_)