include/ax/ax_log.h

Go to the documentation of this file.
00001 
00002 // Name:        ax_log.h
00003 // Purpose:     Speech-enabled log target and dialog
00004 // Author:      Vadim Zeitlin, Julian Smart
00005 // Modified by:
00006 // Created:     2009-04-16
00007 // RCS-ID:
00008 // Copyright:   (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>,
00009 //              (c) 2009 Julian Smart
00010 // Licence:     New BSD License
00012 
00013 #ifndef   _AX_LOG_H_
00014 #define   _WX_LOG_H_
00015 
00016 #include "wx/log.h"
00017 
00030 class AxLogGui: public wxLog
00031 {
00032 public:
00033     // ctor
00034     AxLogGui();
00035 
00036     // show all messages that were logged since the last Flush()
00037     virtual void Flush();
00038 
00039 protected:
00040     virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t);
00041 
00042     // empty everything
00043     void Clear();
00044 
00045     wxArrayString m_aMessages;      // the log message texts
00046     wxArrayInt    m_aSeverity;      // one of wxLOG_XXX values
00047     wxArrayLong   m_aTimes;         // the time of each message
00048     bool          m_bErrors,        // do we have any errors?
00049                   m_bWarnings,      // any warnings?
00050                   m_bHasMessages;   // any messages at all?
00051 
00052 };
00053 
00054 
00055 #endif
00056     // _AX_LOG_H_
00057 

Generated on Wed May 6 19:20:18 2009 for AxTk by  doxygen 1.5.1