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
+21
View File
@@ -45,6 +45,11 @@ public:
virtual QString Category() const override;
virtual QString Description() const override;
QString GetTrackName();
const int& GetTrackHeight() const;
void SetTrackHeight(const int& height);
virtual void Retranslate() override;
const int& Index();
@@ -127,6 +132,13 @@ public:
virtual bool IsTrack() const override;
static int GetDefaultTrackHeight();
static QString GetDefaultTrackName(TrackType type, int index);
public slots:
void SetTrackName(const QString& name);
signals:
/**
* @brief Signal emitted when a Block is added to this Track
@@ -143,6 +155,11 @@ signals:
*/
void TrackLengthChanged();
/**
* @brief Signal emitted when the height of the track has changed
*/
void TrackHeightChanged(int height);
protected:
private:
@@ -158,6 +175,10 @@ private:
rational track_length_;
int track_height_;
QString track_name_;
int block_invalidate_cache_stack_;
int index_;