]> git.sesse.net Git - kdenlive/blobdiff - src/projectlistview.h
Const'ref
[kdenlive] / src / projectlistview.h
index 304d6ba98a3a061c5807357bd6a9697c826dbe99..b43aa26c25cea94a5a6034c68a86fcf9538c17af 100644 (file)
  ***************************************************************************/
 
 
-#ifndef PRJECTLISTVIEW_H
-#define PRJECTLISTVIEW_H
+#ifndef PROJECTLISTVIEW_H
+#define PROJECTLISTVIEW_H
 
 #include <QTreeWidget>
 #include <QContextMenuEvent>
+#include <QPainter>
+
+class DocClipBase;
+
 
 class ProjectListView : public QTreeWidget
 {
-  Q_OBJECT
-  
-  public:
-    ProjectListView(QWidget *parent=0);
-    virtual ~ProjectListView();
-
-  protected:
-    virtual void contextMenuEvent ( QContextMenuEvent * event );
-    virtual void mouseDoubleClickEvent ( QMouseEvent * event );
+    Q_OBJECT
 
-  public slots:
+public:
+    ProjectListView(QWidget *parent = 0);
+    ~ProjectListView();
+    void processLayout();
+    void updateStyleSheet();
 
+protected:
+    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 *);
 
-  private:
+    /** @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:
+private slots:
+    void configureColumns(const QPoint& pos);
+    void slotCollapsed(QTreeWidgetItem *item);
+    void slotExpanded(QTreeWidgetItem *item);
 
-  signals:
+signals:
     void requestMenu(const QPoint &, QTreeWidgetItem *);
     void addClip();
+    void addClip(const QList <QUrl> &, const QString &, const QString &);
+    void showProperties(DocClipBase *);
+    void focusMonitor(bool forceRefresh);
+    void pauseMonitor();
+    void addClipCut(const QString&, int, int);
+    void projectModified();
 };
 
 #endif