Fix warning cause by previous libdcp bump.
[dcpomatic.git] / src / wx / timeline_dialog.h
index dc583a9f08ca35c32b73d4e6d6977dfffcd86633..8134aa6dbae15c34503237eb5e16d0d1fda9c155 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-#include <wx/wx.h>
+
 #include "timeline.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
+#include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
+
 
 class Playlist;
 
+
 class TimelineDialog : public wxDialog
 {
 public:
-       TimelineDialog (ContentPanel *, boost::shared_ptr<Film>);
+       TimelineDialog(ContentPanel *, std::shared_ptr<Film>, FilmViewer& viewer);
 
        void set_selection (ContentList selection);
 
 private:
-       void snap_toggled ();
-       void sequence_toggled ();
-       void film_changed (Film::Property);
-       void tool_changed (wxCommandEvent& id);
+       void film_change(ChangeType type, FilmProperty);
+       void tool_clicked (wxCommandEvent& id);
+       void keypress(wxKeyEvent const& event);
 
-       boost::weak_ptr<Film> _film;
+       std::weak_ptr<Film> _film;
        Timeline _timeline;
-       wxCheckBox* _snap;
-       wxCheckBox* _sequence;
+       wxToolBar* _toolbar;
        boost::signals2::scoped_connection _film_changed_connection;
 };