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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user