X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Ftimeline_content_view.h;h=aa9832e5db14453accce3c2ae88fa17587d261e8;hp=fcc0680647734c7dc80ca906b42e2eb0ef324266;hb=4d8f96e15edb4807cc9773cc7f9eb6aa56ac2dc8;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 diff --git a/src/wx/timeline_content_view.h b/src/wx/timeline_content_view.h index fcc068064..aa9832e5d 100644 --- a/src/wx/timeline_content_view.h +++ b/src/wx/timeline_content_view.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2016 Carl Hetherington + Copyright (C) 2013-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,19 +18,23 @@ */ + #ifndef DCPOMATIC_TIMELINE_CONTENT_VIEW_H #define DCPOMATIC_TIMELINE_CONTENT_VIEW_H -#include "lib/types.h" -#include "lib/warnings.h" + #include "timeline_view.h" -DCPOMATIC_DISABLE_WARNINGS +#include "lib/change_signaller.h" +#include "lib/types.h" +#include +LIBDCP_DISABLE_WARNINGS #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS #include class Content; + /** @class TimelineContentView * @brief Parent class for views of pieces of content. */ @@ -39,7 +43,7 @@ class TimelineContentView : public TimelineView public: TimelineContentView (Timeline& tl, std::shared_ptr c); - dcpomatic::Rect bbox () const; + dcpomatic::Rect bbox () const override; void set_selected (bool s); bool selected () const; @@ -59,16 +63,17 @@ protected: private: - void do_paint (wxGraphicsContext* gc, std::list > overlaps); - int y_pos (int t) const; + void do_paint (wxGraphicsContext* gc, std::list> overlaps) override; void content_change (ChangeType type, int p); boost::optional _track; - bool _selected; + bool _selected = false; boost::signals2::scoped_connection _content_connection; }; -typedef std::vector > TimelineContentViewList; + +typedef std::vector> TimelineContentViewList; + #endif