home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / PaletteView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-05-13  |  2.7 KB  |  91 lines

  1. // -*- C++ -*-
  2. // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
  3. // Copyright (C) 1999-2003 Forgotten
  4. // Copyright (C) 2004 Forgotten and the VBA development team
  5.  
  6. // This program is free software; you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation; either version 2, or(at your option)
  9. // any later version.
  10. //
  11. // This program is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. // GNU General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU General Public License
  17. // along with this program; if not, write to the Free Software Foundation,
  18. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19.  
  20. #if !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)
  21. #define AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_
  22.  
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. // PaletteView.h : header file
  27. //
  28.  
  29. #include "ColorControl.h"
  30. #include "PaletteViewControl.h"
  31. #include "ResizeDlg.h"
  32.  
  33. class GBAPaletteViewControl : public PaletteViewControl {
  34.  public:
  35.   virtual void updatePalette();
  36. };
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // PaletteView dialog
  40.  
  41. class PaletteView : public ResizeDlg, IUpdateListener
  42. {
  43.  private:
  44.   GBAPaletteViewControl paletteView;
  45.   GBAPaletteViewControl paletteViewOBJ;
  46.   ColorControl colorControl;
  47.   bool autoUpdate;
  48.   // Construction
  49.  public:
  50.   void save(int which);
  51.   PaletteView(CWnd* pParent = NULL);   // standard constructor
  52.   ~PaletteView();
  53.   afx_msg LRESULT OnPalInfo(WPARAM wParam, LPARAM lParam);
  54.  
  55.   // Dialog Data
  56.   //{{AFX_DATA(PaletteView)
  57.   enum { IDD = IDD_PALETTE_VIEW };
  58.   // NOTE: the ClassWizard will add data members here
  59.   //}}AFX_DATA
  60.  
  61.  
  62.   // Overrides
  63.   // ClassWizard generated virtual function overrides
  64.   //{{AFX_VIRTUAL(PaletteView)
  65.  protected:
  66.   virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  67.   virtual void PostNcDestroy();
  68.   //}}AFX_VIRTUAL
  69.  
  70.   virtual void update();
  71.  
  72.   // Implementation
  73.  protected:
  74.  
  75.   // Generated message map functions
  76.   //{{AFX_MSG(PaletteView)
  77.   virtual BOOL OnInitDialog();
  78.   afx_msg void OnSaveBg();
  79.   afx_msg void OnSaveObj();
  80.   afx_msg void OnRefresh2();
  81.   afx_msg void OnAutoUpdate();
  82.   afx_msg void OnClose();
  83.   //}}AFX_MSG
  84.   DECLARE_MESSAGE_MAP()
  85.     };
  86.  
  87.     //{{AFX_INSERT_LOCATION}}
  88.     // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89.  
  90. #endif // !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)
  91.