1 /***************************************************************************
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
25 class ProgressEvent : public QEvent {
27 ProgressEvent( int value, QEvent::Type eventType )
28 : QEvent( eventType ), m_val( value ) {};
29 int value() const { return m_val; };
36 class EffectEvent : public QEvent {
38 EffectEvent( GenTime pos, int track, QDomElement xml, QEvent::Type eventType )
39 : QEvent( eventType ), m_pos( pos ), m_track(track), m_xml(xml) {
40 if (xml.isNull()) kDebug()<<"--- ERROR, TRYING TO APPEND NULL EFFECT EVENT";
41 if (m_xml.isNull()) kDebug()<<"--- ERROR, TRYING TO APPEND NULL EFFECT EVENT 2";
43 GenTime pos() const { return m_pos; };
44 int track() const { return m_track; };
45 QDomElement xml() const { return m_xml; };