File indexing completed on 2024-12-22 04:17:20
0001 /*************************************************************************** 0002 logevents.h 0003 ---------------- 0004 begin : Apr 01 2005 0005 copyright : (C) 2005 The University of Toronto 0006 email : netterfield@astro.utoronto.ca 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 ***************************************************************************/ 0017 0018 #ifndef LOGEVENTS_H 0019 #define LOGEVENTS_H 0020 0021 #include "debug.h" 0022 #include "events.h" 0023 //Added by qt3to4: 0024 #include <QEvent> 0025 0026 namespace Kst { 0027 0028 class LogEvent : public QEvent { 0029 public: 0030 enum LogEventType { Unknown = 0, LogAdded, LogCleared }; 0031 0032 LogEvent(LogEventType et) : QEvent(QEvent::Type(EventTypeLog)), _eventType(et) {} 0033 virtual ~LogEvent() {} 0034 0035 LogEventType _eventType; 0036 Debug::LogMessage _msg; 0037 }; 0038 0039 } 0040 0041 #endif 0042 0043 // vim: ts=2 sw=2 et