home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / Logging.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-05-13  |  2.8 KB  |  99 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_LOGGING_H__222FC21A_D40D_450D_8A1C_D33305E47B85__INCLUDED_)
  21. #define AFX_LOGGING_H__222FC21A_D40D_450D_8A1C_D33305E47B85__INCLUDED_
  22.  
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. // Logging.h : header file
  27. //
  28.  
  29. #include "ResizeDlg.h"
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32. // Logging dialog
  33.  
  34. class Logging : public ResizeDlg
  35. {
  36.   // Construction
  37.  public:
  38.   void log(const char *);
  39.   Logging(CWnd* pParent = NULL);   // standard constructor
  40.  
  41.   // Dialog Data
  42.   //{{AFX_DATA(Logging)
  43.   enum { IDD = IDD_LOGGING };
  44.   CEdit  m_log;
  45.   BOOL  m_swi;
  46.   BOOL  m_unaligned_access;
  47.   BOOL  m_illegal_write;
  48.   BOOL  m_illegal_read;
  49.   BOOL  m_dma0;
  50.   BOOL  m_dma1;
  51.   BOOL  m_dma2;
  52.   BOOL  m_dma3;
  53.   BOOL  m_agbprint;
  54.   BOOL  m_undefined;
  55.   //}}AFX_DATA
  56.  
  57.  
  58.   // Overrides
  59.   // ClassWizard generated virtual function overrides
  60.   //{{AFX_VIRTUAL(Logging)
  61.  protected:
  62.   virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  63.   virtual void PostNcDestroy();
  64.   //}}AFX_VIRTUAL
  65.  
  66.   // Implementation
  67.  protected:
  68.  
  69.   // Generated message map functions
  70.   //{{AFX_MSG(Logging)
  71.   afx_msg void OnOk();
  72.   afx_msg void OnClear();
  73.   afx_msg void OnVerboseAgbprint();
  74.   afx_msg void OnVerboseDma0();
  75.   afx_msg void OnVerboseDma1();
  76.   afx_msg void OnVerboseDma2();
  77.   afx_msg void OnVerboseDma3();
  78.   afx_msg void OnVerboseIllegalRead();
  79.   afx_msg void OnVerboseIllegalWrite();
  80.   afx_msg void OnVerboseSwi();
  81.   afx_msg void OnVerboseUnalignedAccess();
  82.   afx_msg void OnVerboseUndefined();
  83.   afx_msg void OnSave();
  84.   afx_msg void OnErrspaceLog();
  85.   afx_msg void OnMaxtextLog();
  86.   virtual BOOL OnInitDialog();
  87.   afx_msg void OnClose();
  88.   //}}AFX_MSG
  89.   DECLARE_MESSAGE_MAP()
  90.     public:
  91.   static Logging *instance;
  92.   static CString text;
  93. };
  94.  
  95. //{{AFX_INSERT_LOCATION}}
  96. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  97.  
  98. #endif // !defined(AFX_LOGGING_H__222FC21A_D40D_450D_8A1C_D33305E47B85__INCLUDED_)
  99.