]> git.sesse.net Git - kdenlive/blob - src/kdenlivedoc.h
Connect project monitor
[kdenlive] / src / kdenlivedoc.h
1 /***************************************************************************
2  *   Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20
21 #ifndef KDENLIVEDOC_H
22 #define KDENLIVEDOC_H
23
24 #include <qdom.h>
25 #include <qstring.h>
26 #include <qmap.h>
27 #include <QList>
28 #include <QObject>
29
30 #include <KUndoStack>
31 #include <kurl.h>
32
33 #include "gentime.h"
34 #include "timecode.h"
35 #include "renderer.h"
36
37 class KdenliveDoc:public QObject {
38   Q_OBJECT public:
39
40     KdenliveDoc(const KUrl &url, double fps, int width, int height, QWidget *parent = 0);
41     ~KdenliveDoc();
42     QString documentName();
43     QDomNodeList producersList();
44     double fps();
45     int width();
46     int height();
47     KUrl url();
48     void setProducers(QDomElement doc);
49     Timecode timecode();
50     QDomDocument toXml();
51     void setRenderer(Render *render);
52     KUndoStack *commandStack();
53     QString producerName(int id);
54     void setProducerDuration(int id, int duration);
55     int getProducerDuration(int id);
56     Render *renderer();
57
58   private:
59     KUrl m_url;
60     QDomDocument m_document;
61     QString m_projectName;
62     double m_fps;
63     int m_width;
64     int m_height;
65     Timecode m_timecode;
66     Render *m_render;
67     KUndoStack *m_commandStack;
68     QDomDocument generateSceneList();
69
70   public slots:
71     
72 };
73
74 #endif