~ubuntu-branches/ubuntu/hardy/kdenlive/hardy

« back to all changes in this revision

Viewing changes to kdenlive/effect.h

  • Committer: Bazaar Package Importer
  • Author(s): Albin Tonnerre
  • Date: 2008-01-30 17:07:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080130170751-lyc8p6xvd7o98ur5
Tags: 0.5.svn20071228-0.0ubuntu1
* Merge from debian-multimedia (LP: #150453). Remaining changes:
  - Bump compat to 5
  - Suggest dvgrab and ffmpeg (needed for firewire capture)
  - debian/{rules,control}: add a kdenlive-data package
  - Add .install files for kdenlive and kdenlive-data
  - debian/copyright: add some copyright information
  - Modify Maintainer value to match the DebianMaintainerField specification

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <qstringlist.h>
23
23
#include <qptrlist.h>
24
24
#include <qdom.h>
 
25
#include <qmap.h>
25
26
 
26
27
#include "effectdesc.h"
 
28
 
 
29
class DocClipRef;
27
30
class EffectDesc;
28
31
class EffectParameter;
29
32
 
33
36
 
34
37
class Effect {
35
38
  public:
36
 
    Effect(const EffectDesc & desc, const QString & id);
 
39
    Effect(const EffectDesc & desc, const QString & id, const QString & id = NULL);
37
40
 
38
41
    ~Effect();
39
42
 
40
43
        /** Returns an XML representation of this effect. */
41
44
    QDomDocument toXML();
 
45
        /** Returns a full XML representation of this effect for file saving. */
 
46
    QDomDocument toFullXML(const QString &effectName, bool group = false);
42
47
 
43
48
    const QString & name() const {
44
49
        return m_desc.name();
45
 
    } 
 
50
    }
 
51
 
 
52
    const QString & group() const {
 
53
        return m_group;
 
54
    }
 
55
 
46
56
    void addParameter(const QString & name);
47
57
    void setEnabled(bool isOn);
48
58
    bool isEnabled();
59
69
    } 
60
70
 
61
71
   EffectParameter *parameter(const uint ix);
 
72
   QMap <QString, QString> getParameters(DocClipRef *clip);
62
73
 
63
74
        /** Creates a new keyframe at specified time and returns the new key's index */
64
75
    uint addKeyFrame(const uint ix, double time);
65
76
    uint addKeyFrame(const uint ix, double time, double value);
66
77
    void addKeyFrame(const uint ix, double time, QStringList values);
67
78
    void setTempFile(QString tmpFile);
 
79
    void setGroup(const QString &group);
 
80
    uint addInitialKeyFrames(int ix);
68
81
 
69
82
    QString tempFileName() {
70
83
        return m_paramFile;
73
86
  private:
74
87
    const EffectDesc & m_desc;
75
88
    QString m_id;
 
89
    QString m_group;
76
90
    QString m_paramFile;
77
91
    QPtrList < EffectParameter > m_paramList;
78
92
    bool m_enabled;