X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlistview.h;h=b43aa26c25cea94a5a6034c68a86fcf9538c17af;hb=3f4de01666efdd1edf6e129f6eba945e2a117135;hp=b30e7dc506ae88a317e28513e0540d8c5041c0e7;hpb=8bc8742e845c95035f09b5305183e1a4ac962bb9;p=kdenlive diff --git a/src/projectlistview.h b/src/projectlistview.h index b30e7dc5..b43aa26c 100644 --- a/src/projectlistview.h +++ b/src/projectlistview.h @@ -18,34 +18,39 @@ ***************************************************************************/ -#ifndef PRJECTLISTVIEW_H -#define PRJECTLISTVIEW_H +#ifndef PROJECTLISTVIEW_H +#define PROJECTLISTVIEW_H #include #include #include +class DocClipBase; -class ProjectListView : public QTreeWidget { + +class ProjectListView : public QTreeWidget +{ Q_OBJECT public: ProjectListView(QWidget *parent = 0); - virtual ~ProjectListView(); + ~ProjectListView(); + void processLayout(); + void updateStyleSheet(); protected: - virtual void contextMenuEvent(QContextMenuEvent * event); - virtual void mouseDoubleClickEvent(QMouseEvent * event); - virtual void mousePressEvent(QMouseEvent *event); - virtual void mouseMoveEvent(QMouseEvent *event); - virtual void dragEnterEvent(QDragEnterEvent *event); - virtual void dropEvent(QDropEvent *event); - virtual QStringList mimeTypes() const; - virtual Qt::DropActions supportedDropActions() const; - virtual void dragMoveEvent(QDragMoveEvent * event); - -public slots: + void contextMenuEvent(QContextMenuEvent * event); + void mouseDoubleClickEvent(QMouseEvent * event); + void mousePressEvent(QMouseEvent *event); + void mouseReleaseEvent(QMouseEvent *event); + void mouseMoveEvent(QMouseEvent *event); + void dropEvent(QDropEvent *event); + QStringList mimeTypes() const; + Qt::DropActions supportedDropActions() const; + void dragLeaveEvent(QDragLeaveEvent *); + /** @brief Filters key events to make sure user can expand items with + / -. */ + bool eventFilter(QObject *obj, QEvent *ev); private: bool m_dragStarted; @@ -53,13 +58,18 @@ private: private slots: void configureColumns(const QPoint& pos); + void slotCollapsed(QTreeWidgetItem *item); + void slotExpanded(QTreeWidgetItem *item); signals: void requestMenu(const QPoint &, QTreeWidgetItem *); void addClip(); - void addClip(QUrl, const QString &); + void addClip(const QList &, const QString &, const QString &); void showProperties(DocClipBase *); - void focusMonitor(); + void focusMonitor(bool forceRefresh); + void pauseMonitor(); + void addClipCut(const QString&, int, int); + void projectModified(); }; #endif