Source: gdms/cepWxErrorHandler.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          cepwxerrohandler.h  -  description
                             -------------------
    begin                : Fri Aug 9 2002
    copyright            : (C) 2002 by Blake Swadling
    email                : blake@swadling.org
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef __CEP_WXERRORHANDLER_H
#define __CEP_WXERRORHANDLER_H


#ifdef __WXGTK__
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/txtstrm.h"

#if !wxUSE_DOC_VIEW_ARCHITECTURE
#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h!
#endif
#endif


#include "cepErrorHandler.h"
#include "cepConfiguration.h"

/**an error handler that makes us of the wxWindows UI toolkit
  *@author Blake Swadling
  */

class cepWxErrorHandler : public cepErrorHandler  {
public: 
	cepWxErrorHandler();
	~cepWxErrorHandler();

   void displayError( class cepError & error );
   void logError( class cepError & error );

private:
  cepConfiguration *config;
  void initConfig();
  int getIcon( class cepError err );
  string getTitle ( class cepError err );

};

#endif  // ! __CEP_WXERRORHANDLER_H

Generated by: pob on trillian on Sat Aug 10 17:26:42 2002, using kdoc 2.0a53.