annotate src/win32/GBPaletteView.h @ 2:3549bbe597ed

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