diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-24 23:14:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-24 23:14:41 +0100 |
| commit | d0d89009ad0acca0ddfa43dc45d8ac4186c5fc21 (patch) | |
| tree | e60d03979d5e07b00db12f6bcc36d38c9fff945e /src | |
| parent | 87e1a067e3fdc83b1d6aa840d3448586c48742fb (diff) | |
More Controls API tweaks.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 2 | ||||
| -rw-r--r-- | src/wx/controls.cc | 6 | ||||
| -rw-r--r-- | src/wx/controls.h | 5 |
3 files changed, 6 insertions, 7 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 497182dde..e0112764f 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -585,7 +585,7 @@ private: void setup_screen () { _controls->Show (_mode != Config::PLAYER_MODE_FULL); - _controls->show_dcp_directory (_mode == Config::PLAYER_MODE_DUAL); + _controls->show_extended_player_controls (_mode == Config::PLAYER_MODE_DUAL); _info->Show (_mode != Config::PLAYER_MODE_FULL); _overall_panel->SetBackgroundColour (_mode == Config::PLAYER_MODE_FULL ? wxColour(0, 0, 0) : wxNullColour); ShowFullScreen (_mode == Config::PLAYER_MODE_FULL); diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 4ad1f6c23..e96d8055e 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -33,7 +33,7 @@ using boost::optional; using boost::shared_ptr; using boost::weak_ptr; -Controls::Controls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor_controls, bool dcp_directory) +Controls::Controls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor_controls) : wxPanel (parent) , _viewer (viewer) , _slider_being_moved (false) @@ -76,7 +76,7 @@ Controls::Controls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor _dcp_directory = new wxListCtrl (this, wxID_ANY, wxDefaultPosition, wxSize(600, -1), wxLC_REPORT | wxLC_NO_HEADER); _dcp_directory->AppendColumn (wxT(""), wxLIST_FORMAT_LEFT, 580); _v_sizer->Add (_dcp_directory, 0, wxALL, DCPOMATIC_SIZER_GAP); - _dcp_directory->Show (dcp_directory); + _dcp_directory->Show (false); wxBoxSizer* h_sizer = new wxBoxSizer (wxHORIZONTAL); @@ -446,7 +446,7 @@ Controls::film () const } void -Controls::show_dcp_directory (bool s) +Controls::show_extended_player_controls (bool s) { _dcp_directory->Show (s); } diff --git a/src/wx/controls.h b/src/wx/controls.h index 5cfe96e3d..bd87d658b 100644 --- a/src/wx/controls.h +++ b/src/wx/controls.h @@ -39,15 +39,14 @@ public: Controls ( wxWindow* parent, boost::shared_ptr<FilmViewer>, - bool editor_controls = true, - bool dcp_directory = false + bool editor_controls = true ); boost::shared_ptr<Film> film () const; void back_frame (); void forward_frame (); - void show_dcp_directory (bool s); + void show_extended_player_controls (bool s); boost::signals2::signal<void (boost::filesystem::path)> DCPDirectorySelected; boost::signals2::signal<void ()> DCPEjected; |
