annotate src/win32/PaletteView.h @ 8:08a8e09ca414

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