1 /***************************************************************************
2 * Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org) *
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. *
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. *
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 ***************************************************************************/
36 #include "clipmanager.h"
38 class KdenliveDoc:public QObject {
41 KdenliveDoc(const KUrl &url, double fps, int width, int height, QWidget *parent = 0);
43 QString documentName();
44 QDomNodeList producersList();
49 void setProducers(QDomElement doc);
52 void setRenderer(Render *render);
53 KUndoStack *commandStack();
54 QString producerName(int id);
55 void setProducerDuration(int id, int duration);
56 int getProducerDuration(int id);
58 ClipManager *clipManager();
59 void addClip(const QDomElement &elem, const int clipId);
60 void slotAddClipFile(const KUrl url, const QString group);
61 void slotAddColorClipFile(const QString name, const QString color, QString duration, const QString group);
62 void deleteClip(const uint clipId);
63 int getFramePos(QString duration);
64 DocClipBase *getBaseClip(int clipId);
65 void updateClip(int id);
69 QDomDocument m_document;
70 QString m_projectName;
76 KUndoStack *m_commandStack;
77 QDomDocument generateSceneList();
78 ClipManager *m_clipManager;
83 void addProjectClip(DocClipBase *);
84 void updateClipDisplay(int);