summaryrefslogtreecommitdiff
path: root/src/wx/timeline_time_axis_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-21 21:34:50 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-21 23:48:16 +0200
commit313319ba2d8544bc25524e02e634804a503b54f1 (patch)
treebbaacfbd1ce80d5141680a87fe533c9a8dd16a3b /src/wx/timeline_time_axis_view.cc
parente7e4af869f7144fa9a265ccf1e15c7b2f182ac2c (diff)
Tidying.
Diffstat (limited to 'src/wx/timeline_time_axis_view.cc')
-rw-r--r--src/wx/timeline_time_axis_view.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wx/timeline_time_axis_view.cc b/src/wx/timeline_time_axis_view.cc
index e9de1b542..3cdcfc2c8 100644
--- a/src/wx/timeline_time_axis_view.cc
+++ b/src/wx/timeline_time_axis_view.cc
@@ -18,16 +18,18 @@
*/
-#include "timeline_time_axis_view.h"
#include "timeline.h"
+#include "timeline_time_axis_view.h"
#include "wx_util.h"
-#include <wx/wx.h>
#include <wx/graphics.h>
+#include <wx/wx.h>
+
-using std::list;
using std::cout;
+using std::list;
using namespace dcpomatic;
+
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
: TimelineView (tl)
, _y (y)
@@ -35,12 +37,14 @@ TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
}
+
dcpomatic::Rect<int>
TimelineTimeAxisView::bbox () const
{
return dcpomatic::Rect<int> (0, _y - 4, _timeline.width(), 24);
}
+
/** @param y y position in tracks (not pixels) */
void
TimelineTimeAxisView::set_y (int y)
@@ -49,6 +53,7 @@ TimelineTimeAxisView::set_y (int y)
force_redraw ();
}
+
void
TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> >)
{