X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlistview.h;h=b43aa26c25cea94a5a6034c68a86fcf9538c17af;hb=ac8c99168f151e2f351043d13500741ce1ca8966;hp=17885b4f8636124bb95da553bdd6f6445e12355a;hpb=2a223cff6e45c560c28857b72c0cb7e584f9a4ef;p=kdenlive diff --git a/src/projectlistview.h b/src/projectlistview.h index 17885b4f..b43aa26c 100644 --- a/src/projectlistview.h +++ b/src/projectlistview.h @@ -18,45 +18,58 @@ ***************************************************************************/ -#ifndef PRJECTLISTVIEW_H -#define PRJECTLISTVIEW_H +#ifndef PROJECTLISTVIEW_H +#define PROJECTLISTVIEW_H #include #include +#include -class ProjectListView : public QTreeWidget { +class DocClipBase; + + +class ProjectListView : public QTreeWidget +{ Q_OBJECT public: ProjectListView(QWidget *parent = 0); - virtual ~ProjectListView(); - void editItem(QTreeWidgetItem * item, int column = 0); + ~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; QPoint m_DragStartPosition; 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(bool forceRefresh); + void pauseMonitor(); + void addClipCut(const QString&, int, int); + void projectModified(); }; #endif