]> git.sesse.net Git - kdenlive/blob - src/kdenlivedoc.h
0b1967f1aaab8087bbaf1e60e53a1226ef0aa354
[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(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
54   private:
55     KUrl m_url;
56     QDomDocument m_document;
57     QString m_projectName;
58     double m_fps;
59     int m_width;
60     int m_height;
61     Timecode m_timecode;
62     Render *m_render;
63     KUndoStack *m_commandStack;
64     QDomDocument generateSceneList();
65
66   public slots:
67     
68 };
69
70 #endif