First hacks on OOBE help.
[dcpomatic.git] / src / wx / standard_controls.cc
index e9a31c86b059d94fb2c802b5f46d63ae8488e421..11426ff591f7bb97d1acb2f9326f7eee7550fca8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2018-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -18,8 +18,9 @@
 
 */
 
-#include "standard_controls.h"
 #include "film_viewer.h"
+#include "standard_controls.h"
+#include "wx_help.h"
 #include <wx/wx.h>
 #include <wx/tglbtn.h>
 
@@ -31,6 +32,7 @@ StandardControls::StandardControls (wxWindow* parent, shared_ptr<FilmViewer> vie
 {
        _button_sizer->Add (_play_button, 0, wxEXPAND);
        _play_button->Bind (wxEVT_TOGGLEBUTTON, boost::bind(&StandardControls::play_clicked, this));
+       HelpGUI::instance()->landmark (_play_button, HelpGUI::PLAY_BUTTON);
 }
 
 void
@@ -75,7 +77,6 @@ StandardControls::setup_sensitivity ()
        _play_button->Enable (_film && !_film->content().empty() && !active_job);
 }
 
-#ifdef DCPOMATIC_PLAYER_STRESS_TEST
 void
 StandardControls::play ()
 {
@@ -89,4 +90,3 @@ StandardControls::stop ()
        _play_button->SetValue (false);
        play_clicked ();
 }
-#endif