wrote mechanisms that allow the tracks to be resized from the trackview

This commit is contained in:
itsmattkc
2019-12-08 15:14:43 +11:00
parent 2207aa3fd5
commit 58bcbca4c5
16 changed files with 375 additions and 59 deletions
+16 -5
View File
@@ -34,17 +34,21 @@ class TrackList : public QObject {
public:
TrackList(TimelineOutput *parent, const enum TrackType& type, NodeInputArray* track_input);
const QVector<TrackOutput*>& Tracks();
const enum TrackType& type() const;
TrackOutput* TrackAt(int index);
const QVector<TrackOutput*>& Tracks() const;
TrackOutput* TrackAt(int index) const;
TrackOutput *AddTrack();
void RemoveTrack();
const rational& TrackLength();
const rational& TrackLength() const;
const enum TrackType& TrackType();
const enum TrackType& TrackType() const;
int TrackCount() const;
signals:
void BlockAdded(Block* block, int index);
@@ -59,8 +63,10 @@ signals:
void LengthChanged(const rational &length);
void TrackHeightChanged(int index, int height);
private:
NodeGraph* GetParentGraph();
NodeGraph* GetParentGraph() const;
/**
* @brief A cache of connected Tracks
@@ -104,6 +110,11 @@ private slots:
*/
void UpdateTotalLength();
/**
* @brief Slot when a track height changes, transforms to the TrackHeightChanged signal which includes a track index
*/
void TrackHeightChangedSlot(int height);
};
#endif // TRACKLIST_H