22#include <QUndoCommand>
25#include "models/playlistmodel.h"
31class QAbstractItemView;
32class QItemSelectionModel;
34class PlaylistIconView;
35class PlaylistProxyModel;
37class BinTree :
public QTreeWidget
42 explicit BinTree(QWidget *parent =
nullptr)
48 void moved(QList<int>, QPointF);
51 void dropEvent(QDropEvent *event);
54class PlaylistDock :
public QDockWidget
59 explicit PlaylistDock(QWidget *parent = 0);
61 PlaylistModel *model()
66 void replaceClipsWithHash(
const QString &hash, Mlt::Producer &producer);
67 void getSelectionRange(
int *start,
int *end);
68 Mlt::Playlist *binPlaylist();
71 void clipOpened(Mlt::Producer *producer,
bool play =
false);
72 void itemActivated(
int start);
73 void showStatusMessage(QString);
74 void addAllTimeline(Mlt::Playlist *,
bool skipProxy =
false,
bool emptyTrack =
false);
75 void producerOpened();
76 void selectionChanged();
77 void enableUpdate(
bool);
80 void onOpenActionTriggered();
81 void onAppendCutActionTriggered();
82 void onProducerOpened();
85 void onProducerChanged(Mlt::Producer *producer);
86 void onProducerModified();
87 void onPlayerDragStarted();
88 void onPlaylistModified();
89 void onPlaylistCreated();
90 void onPlaylistLoaded();
91 void onPlaylistCleared();
95 void viewCustomContextMenuRequested(
const QPoint &pos);
96 void viewDoubleClicked(
const QModelIndex &index);
97 void onDropped(
const QMimeData *data,
int row);
98 void onMoveClip(
int from,
int to);
100 void onInTimerFired();
101 void onOutTimerFired();
102 void onMediaTypeClicked();
103 void on_treeWidget_itemSelectionChanged();
106 void keyPressEvent(QKeyEvent *event);
107 void keyReleaseEvent(QKeyEvent *event);
111 void resetPlaylistIndex();
112 void emitDataChanged(
const QVector<int> &roles);
113 void setPlaylistIndex(Mlt::Producer *producer,
int row);
114 void updateViewMode();
115 void onAddFilesActionTriggered();
116 void onUpdateThumbnailsActionTriggered();
117 void onAddToTimelineActionTriggered();
118 void onAddToSlideshowActionTriggered();
119 void onSetFileDateActionTriggered();
120 void onRemoveAllActionTriggered();
121 void onGotoActionTriggered();
122 void onCopyActionTriggered();
123 void onSelectAllActionTriggered();
124 void onInsertCutActionTriggered();
125 void onUpdateActionTriggered();
126 void onRemoveActionTriggered();
127 void incrementIndex(
int step);
128 void setIndex(
int row);
131 void addFiles(
int row,
const QList<QUrl> &urls);
134 void assignToBin(Mlt::Properties &properties, QString bin = QString());
136 Ui::PlaylistDock *ui;
137 QAbstractItemView *m_view;
138 PlaylistIconView *m_iconsView;
139 PlaylistModel m_model;
140 QItemSelectionModel *m_selectionModel;
141 int m_defaultRowHeight;
142 QTimer m_inChangedTimer;
143 QTimer m_outChangedTimer;
145 bool m_blockResizeColumnsToContents;
146 PlaylistProxyModel *m_proxyModel;
147 Mlt::Playlist m_binPlaylist;