summaryrefslogtreecommitdiff
path: root/src/wx/player_information.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-11 01:25:16 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-11 11:58:15 +0100
commitc370a1f38215f6461cf4366e6885757e7aa2b96a (patch)
tree6d660895988652297260c2434115b903032bc60d /src/wx/player_information.h
parent23b60bec13fa8f0b88c34922a169aa0084d99476 (diff)
Separate out management of controls.
Diffstat (limited to 'src/wx/player_information.h')
-rw-r--r--src/wx/player_information.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wx/player_information.h b/src/wx/player_information.h
index f82cd7aa4..b93228174 100644
--- a/src/wx/player_information.h
+++ b/src/wx/player_information.h
@@ -20,13 +20,14 @@
#include <wx/wx.h>
#include <boost/scoped_ptr.hpp>
+#include <boost/weak_ptr.hpp>
-class ControlFilmViewer;
+class FilmViewer;
class PlayerInformation : public wxPanel
{
public:
- PlayerInformation (wxWindow* parent, ControlFilmViewer* viewer);
+ PlayerInformation (wxWindow* parent, boost::weak_ptr<FilmViewer> viewer);
void triggered_update ();
@@ -34,7 +35,7 @@ private:
void periodic_update ();
- ControlFilmViewer* _viewer;
+ boost::weak_ptr<FilmViewer> _viewer;
wxSizer* _sizer;
wxStaticText** _dcp;
wxStaticText* _dropped;