diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-08-14 22:55:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-08-14 22:55:05 +0100 |
| commit | 0b7c380031db6aa2ce546a2a0c89926f40eae6b5 (patch) | |
| tree | 1dfc57348b80acd4f91e28c234bfd73333822b42 /src/tools | |
| parent | 2f7c57ed8650320ec25e981ff646820bf77e5793 (diff) | |
Primitive dropped frame count in display.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 567440f88..5ea341fe9 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -35,10 +35,12 @@ #include "wx/film_viewer.h" #include "wx/player_information.h" #include "wx/update_dialog.h" +#include "wx/config_dialog.h" #include <wx/wx.h> #include <wx/stdpaths.h> #include <wx/splash.h> #include <wx/cmdline.h> +#include <wx/preferences.h> #include <boost/bind.hpp> #include <iostream> @@ -64,6 +66,9 @@ public: DOMFrame () : wxFrame (0, -1, _("DCP-o-matic Player")) , _update_news_requested (false) + , _info (0) + , _config_dialog (0) + , _viewer (0) { #if defined(DCPOMATIC_WINDOWS) @@ -81,6 +86,7 @@ public: Bind (wxEVT_MENU, boost::bind (&DOMFrame::file_open, this), ID_file_open); Bind (wxEVT_MENU, boost::bind (&DOMFrame::file_exit, this), wxID_EXIT); + Bind (wxEVT_MENU, boost::bind (&DOMFrame::edit_preferences, this), wxID_PREFERENCES); Bind (wxEVT_MENU, boost::bind (&DOMFrame::set_decode_reduction, this, optional<int>()), ID_view_scale_appropriate); Bind (wxEVT_MENU, boost::bind (&DOMFrame::set_decode_reduction, this, optional<int>(0)), ID_view_scale_full); Bind (wxEVT_MENU, boost::bind (&DOMFrame::set_decode_reduction, this, optional<int>(1)), ID_view_scale_half); @@ -136,7 +142,7 @@ public: } _viewer->set_film (_film); - _info->update (); + _info->triggered_update (); } private: @@ -216,6 +222,14 @@ private: Close (); } + void edit_preferences () + { + if (!_config_dialog) { + _config_dialog = create_config_dialog (); + } + _config_dialog->Show (this); + } + void tools_check_for_updates () { UpdateChecker::instance()->run (); @@ -268,6 +282,7 @@ private: bool _update_news_requested; PlayerInformation* _info; + wxPreferencesEditor* _config_dialog; FilmViewer* _viewer; boost::shared_ptr<Film> _film; }; |
