waveformview: show in/out points in waveformview

Moved drawing routines to the base class that is used by both TimeRuler
and WaveformView
This commit is contained in:
itsmattkc
2020-03-15 18:21:14 +11:00
parent a6fb0c7e2b
commit 50061e4e55
10 changed files with 146 additions and 97 deletions
+16
View File
@@ -31,6 +31,8 @@ protected:
virtual void ScaleChangedEvent(const double&) override;
void DrawTimelinePoints(QPainter *p, int marker_bottom = 0);
TimelinePoints* timeline_points() const;
double ScreenToUnitFloat(int screen);
@@ -42,6 +44,16 @@ protected:
int TimeToScreen(const rational& time);
void DrawPlayhead(QPainter* p, int x, int y);
inline const int& text_height() const {
return text_height_;
}
inline const int& playhead_width() const {
return playhead_width_;
}
inline const QColor& GetPlayheadColor() const
{
return style_.GetPlayheadColor();
@@ -67,6 +79,10 @@ private:
int scroll_;
int text_height_;
int playhead_width_;
};
#endif // SEEKABLEWIDGET_H