projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable warnings around all wx includes.
[dcpomatic.git]
/
src
/
wx
/
timeline_time_axis_view.cc
diff --git
a/src/wx/timeline_time_axis_view.cc
b/src/wx/timeline_time_axis_view.cc
index e9de1b542fab6b1777993b09a920009d420903bc..046ddaf3f2b301f7f4495cc2dd18e7d451465d34 100644
(file)
--- a/
src/wx/timeline_time_axis_view.cc
+++ b/
src/wx/timeline_time_axis_view.cc
@@
-18,16
+18,21
@@
*/
*/
-#include "timeline_time_axis_view.h"
#include "timeline.h"
#include "timeline.h"
+#include "timeline_time_axis_view.h"
#include "wx_util.h"
#include "wx_util.h"
-#include <wx/wx.h>
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
#include <wx/graphics.h>
#include <wx/graphics.h>
+#include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
+
-using std::list;
using std::cout;
using std::cout;
+using std::list;
using namespace dcpomatic;
using namespace dcpomatic;
+
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
: TimelineView (tl)
, _y (y)
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
: TimelineView (tl)
, _y (y)
@@
-35,12
+40,14
@@
TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
}
}
+
dcpomatic::Rect<int>
TimelineTimeAxisView::bbox () const
{
return dcpomatic::Rect<int> (0, _y - 4, _timeline.width(), 24);
}
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)
/** @param y y position in tracks (not pixels) */
void
TimelineTimeAxisView::set_y (int y)
@@
-49,6
+56,7
@@
TimelineTimeAxisView::set_y (int y)
force_redraw ();
}
force_redraw ();
}
+
void
TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> >)
{
void
TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> >)
{