std::shared_ptr
[dcpomatic.git] / src / wx / playlist_controls.cc
index 844e15f04e30db85331a7b4c1a7a52fd620ac928..56ff5f40d1ce7235abd83083dea1b8c3f38311f4 100644 (file)
@@ -40,8 +40,8 @@ using std::string;
 using std::cout;
 using std::exception;
 using std::sort;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 using boost::optional;
 using namespace dcpomatic;
 
@@ -52,7 +52,6 @@ PlaylistControls::PlaylistControls (wxWindow* parent, shared_ptr<FilmViewer> vie
        , _stop_button (new Button(this, _("Stop")))
        , _next_button (new Button(this, "Next"))
        , _previous_button (new Button(this, "Previous"))
-       , _timer (this)
 {
        _button_sizer->Add (_previous_button, 0, wxEXPAND);
        _button_sizer->Add (_play_button, 0, wxEXPAND);
@@ -454,3 +453,15 @@ PlaylistControls::viewer_finished ()
                _pause_button->Enable (false);
        }
 }
+
+void
+PlaylistControls::play ()
+{
+       play_clicked ();
+}
+
+void
+PlaylistControls::stop ()
+{
+       stop_clicked ();
+}