#include "definitions.h"
class DocClipBase;
+
+/** \brief Represents a clip or a folder in the projecttree
+ *
+ * This class represents a clip or folder in the projecttree and in the document(?) */
class ProjectItem : public QTreeWidgetItem {
public:
/** Create folder item */
int numReferences() const;
void setProperties(const QMap < QString, QString > &attributes, const QMap < QString, QString > &metadata);
+
+ /** \brief The id of the clip or folder.
+ *
+ * The clipId is used both to identify clips and folders (groups) */
const QString &clipId() const;
QStringList names() const;
bool isGroup() const;
- const QString groupName() const;
- void setGroupName(const QString name);
const KUrl clipUrl() const;
int clipMaxDuration() const;
CLIPTYPE clipType() const;
DocClipBase *referencedClip();
void setProperties(QMap <QString, QString> props);
void setProperty(const QString &key, const QString &value);
+ void clearProperty(const QString &key);
+ const QString groupName() const;
+ void setGroupName(const QString name);
+ QString getClipHash() const;
private:
- QString m_groupName;
+ QString m_groupname;
CLIPTYPE m_clipType;
QString m_clipId;
void slotSetToolTip();