X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlistview.h;h=26e2c58158995870c03ff2e332b35730ed0f1270;hb=c2ff32876591d3e015410ac619b4d8e3746571dc;hp=b30e7dc506ae88a317e28513e0540d8c5041c0e7;hpb=8bc8742e845c95035f09b5305183e1a4ac962bb9;p=kdenlive diff --git a/src/projectlistview.h b/src/projectlistview.h index b30e7dc5..26e2c581 100644 --- a/src/projectlistview.h +++ b/src/projectlistview.h @@ -18,31 +18,40 @@ ***************************************************************************/ -#ifndef PRJECTLISTVIEW_H -#define PRJECTLISTVIEW_H +#ifndef PROJECTLISTVIEW_H +#define PROJECTLISTVIEW_H #include #include #include +class DocClipBase; -class ProjectListView : public QTreeWidget { +class KUrl; + +class ProjectListView : public QTreeWidget +{ Q_OBJECT public: ProjectListView(QWidget *parent = 0); virtual ~ProjectListView(); + void processLayout(); + void updateStyleSheet(); protected: virtual void contextMenuEvent(QContextMenuEvent * event); virtual void mouseDoubleClickEvent(QMouseEvent * event); virtual void mousePressEvent(QMouseEvent *event); + virtual void mouseReleaseEvent(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); + virtual void dragLeaveEvent(QDragLeaveEvent *); + + /** @brief Filters key events to make sure user can expand items with + / -. */ + virtual bool eventFilter(QObject *obj, QEvent *ev); public slots: @@ -53,13 +62,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 pauseMonitor(); + void addClipCut(const QString&, int, int); + void projectModified(); }; #endif