#include "film_viewer.h"
#include "standard_controls.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/tglbtn.h>
#include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
using std::shared_ptr;
-StandardControls::StandardControls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor_controls)
+StandardControls::StandardControls(wxWindow* parent, FilmViewer& viewer, bool editor_controls)
: Controls (parent, viewer, editor_controls)
, _play_button (new wxToggleButton(this, wxID_ANY, _("Play")))
{
}
if (_play_button->GetValue()) {
- _viewer->start ();
+ _viewer.start();
} else {
- _viewer->stop ();
+ _viewer.stop();
}
}