X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectitem.h;h=a917ca747bafa3af554d019950b386a7f0941cb3;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=6b29fb76b4509f3475fbc19c5c8bc7f03d7b1346;hpb=7bc04c60cfe7b4d2af289c8d2a6f9a50fe950069;p=kdenlive diff --git a/src/projectitem.h b/src/projectitem.h index 6b29fb76..a917ca74 100644 --- a/src/projectitem.h +++ b/src/projectitem.h @@ -41,8 +41,8 @@ class DocClipBase; class ProjectItem : public QTreeWidgetItem { public: - ProjectItem(QTreeWidget * parent, DocClipBase *clip); - ProjectItem(QTreeWidgetItem * parent, DocClipBase *clip); + ProjectItem(QTreeWidget * parent, DocClipBase *clip, const QSize &pixmapSize); + ProjectItem(QTreeWidgetItem * parent, DocClipBase *clip, const QSize &pixmapSize); virtual ~ProjectItem(); QDomElement toXml() const; int numReferences() const; @@ -53,13 +53,12 @@ public: * * The clipId is used both to identify clips and folders (groups) */ const QString &clipId() const; - QStringList names() const; const KUrl clipUrl() const; int clipMaxDuration() const; CLIPTYPE clipType() const; void changeDuration(int frames); DocClipBase *referencedClip(); - void setProperties(QMap props); + void setProperties(const QMap &props); void setProperty(const QString &key, const QString &value); void clearProperty(const QString &key); QString getClipHash() const; @@ -77,6 +76,10 @@ public: bool isJobRunning() const; /** \brief Returns true if we are currently creating the proxy for this clip. */ bool isProxyRunning() const; + /** \brief Returns true if the thumbnail for this clip has been loaded. */ + bool hasPixmap() const; + /** \brief Sets the thumbnail for this clip. */ + void setPixmap(const QPixmap& p); virtual bool operator<(const QTreeWidgetItem &other)const { int column = treeWidget()->sortColumn(); @@ -89,10 +92,11 @@ private: CLIPTYPE m_clipType; DocClipBase *m_clip; QString m_clipId; + bool m_pixmapSet; /** @brief Setup basic properties */ - void buildItem(); + void buildItem(const QSize &pixmapSize); /** @brief Check if an xml project file has proxies */ - bool playlistHasProxies(const QString path); + bool playlistHasProxies(const QString& path); }; #endif