std::shared_ptr
[dcpomatic.git] / src / wx / standard_controls.cc
index e9a31c86b059d94fb2c802b5f46d63ae8488e421..c78844ca1bc3ddd14e1d463519b88d440ece9d42 100644 (file)
 #include <wx/wx.h>
 #include <wx/tglbtn.h>
 
-using boost::shared_ptr;
+using std::shared_ptr;
 
 StandardControls::StandardControls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor_controls)
        : Controls (parent, viewer, editor_controls)
        , _play_button (new wxToggleButton(this, wxID_ANY, _("Play")))
 {
-       _button_sizer->Add (_play_button, 0, wxEXPAND);
+       _button_sizer->Add (_play_button, 0, wxALL | wxALIGN_CENTER_VERTICAL, 2);
        _play_button->Bind (wxEVT_TOGGLEBUTTON, boost::bind(&StandardControls::play_clicked, this));
 }
 
@@ -75,7 +75,6 @@ StandardControls::setup_sensitivity ()
        _play_button->Enable (_film && !_film->content().empty() && !active_job);
 }
 
-#ifdef DCPOMATIC_PLAYER_STRESS_TEST
 void
 StandardControls::play ()
 {
@@ -89,4 +88,3 @@ StandardControls::stop ()
        _play_button->SetValue (false);
        play_clicked ();
 }
-#endif