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 ***************************************************************************/
24 #include <QDomNodeList>
26 #include <QTreeWidget>
29 #include <KTreeWidgetSearchLine>
31 #include "docclipbase.h"
32 #include "kdenlivedoc.h"
38 class ProjectList : public QWidget
43 ProjectList(QWidget *parent=0);
45 QDomElement producersList();
46 void setRenderer(Render *projectRender);
48 void addClip(const QStringList &name, const QDomElement &elem, const int clipId, const KUrl &url = KUrl(), int parentId = -1);
49 void deleteClip(const int clipId);
52 void setDocument(KdenliveDoc *doc);
53 void addProducer(QDomElement producer, int parentId = -1);
54 void slotReplyGetImage(int clipId, int pos, const QPixmap &pix, int w, int h);
55 void slotReplyGetFileProperties(int clipId, const QMap < QString, QString > &properties, const QMap < QString, QString > &metadata);
59 QTreeWidget *listView;
60 KTreeWidgetSearchLine *searchView;
65 KUndoStack *m_commandStack;
67 void selectItemById(const int clipId);
68 ProjectItem *getItemById(int id);
72 void slotRemoveClip();
74 void slotClipSelected();
75 void slotAddColorClip();
78 void clipSelected(const QDomElement &);
79 void getFileProperties(const QDomElement&, int);