X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fheadertrack.h;h=790069169ae645482242b55e93ef5502feef59c1;hb=c24658bd34221d735f0641c924b890e1a6be7101;hp=aa20c3b8a1fbd42a6873f494532bd82c436b6388;hpb=d5b4fe2e78d8b2645cdc2ac007c1006a151875c0;p=kdenlive diff --git a/src/headertrack.h b/src/headertrack.h index aa20c3b8..79006916 100644 --- a/src/headertrack.h +++ b/src/headertrack.h @@ -32,48 +32,41 @@ class HeaderTrack : public QWidget, public Ui::TrackHeader_UI Q_OBJECT public: - HeaderTrack(int index, TrackInfo info, int height, QWidget *parent = 0); + HeaderTrack(int index, TrackInfo info, int height, const QList & actions, QWidget *parent = 0); //virtual ~HeaderTrack(); void setLock(bool lock); void adjustSize(int height); void setSelectedIndex(int ix); /** @brief Update the track label to show if current track has effects or not.*/ - void updateEffectLabel(QStringList effects); + void updateEffectLabel(const QStringList &effects); protected: - virtual void mousePressEvent(QMouseEvent * event); - virtual void mouseDoubleClickEvent(QMouseEvent * event); - virtual void contextMenuEvent(QContextMenuEvent * event); - virtual void dropEvent(QDropEvent * event); - virtual void dragEnterEvent(QDragEnterEvent *event); + void mousePressEvent(QMouseEvent * event); + void mouseDoubleClickEvent(QMouseEvent * event); + void dropEvent(QDropEvent * event); + void dragEnterEvent(QDragEnterEvent *event); private: int m_index; - TRACKTYPE m_type; + TrackType m_type; bool m_isSelected; - QMenu m_menu; QString m_name; private slots: void switchAudio(); void switchVideo(); void slotDeleteTrack(); - void deleteTrack(); - void slotAddTrack(); void slotRenameTrack(); - void slotConfigTrack(); void switchLock(bool emitSignal = true); signals: void switchTrackAudio(int); void switchTrackVideo(int); void switchTrackLock(int); - void insertTrack(int); - void deleteTrack(int); - void renameTrack(int, QString); + void renameTrack(int, const QString&); void selectTrack(int); void configTrack(int); - void addTrackInfo(const QDomElement, int); + void addTrackEffect(const QDomElement &, int); void showTrackEffects(int); };