File indexing completed on 2025-07-13 04:09:19

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2004 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005 *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef EVENTS_H
0014 #define EVENTS_H
0015 
0016 #include <qevent.h>
0017 #include <qstringlist.h>
0018 
0019 class QDataStream;
0020 class QWidget;
0021 
0022 namespace Kst {
0023 
0024 #define EventTypeThread     (QEvent::User + 1)
0025 #define ELOGCaptureEvent    (QEvent::User + 2)
0026 #define ELOGConfigureEvent  (QEvent::User + 3)
0027 #define ELOGAttrsEvent      (QEvent::User + 4)
0028 #define ELOGDebugInfoEvent  (QEvent::User + 5)
0029 #define ELOGAliveEvent      (QEvent::User + 6)
0030 #define ELOGDeathEvent      (QEvent::User + 7)
0031 #define EventTypeLog        (QEvent::User + 8)
0032 
0033 struct ELOGCaptureStruct {
0034   QDataStream* pBuffer;
0035   int iWidth;
0036   int iHeight;
0037 };
0038 
0039 enum ELOGAttribType {
0040   AttribTypeText = 0,
0041   AttribTypeBool,
0042   AttribTypeCombo,
0043   AttribTypeRadio,
0044   AttribTypeCheck
0045 };
0046 
0047 struct ELOGAttribStruct {
0048   QString attribName;
0049   QString comment;
0050   QWidget *pWidget;
0051   ELOGAttribType type;
0052   QStringList  values;
0053   bool bMandatory;
0054   int iMaxLength;
0055 };
0056 
0057 typedef QList<ELOGAttribStruct> ELOGAttribList;
0058 
0059 }
0060 
0061 #endif
0062 
0063 // vim: ts=2 sw=2 et