From fad8d13cd779a6237feed2c855a46e1a7c66e0ad Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 26 Oct 2018 00:09:34 +0100 Subject: Use Film/Playlist for SPL management rather than special classes. --- src/wx/controls.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/wx/controls.h') diff --git a/src/wx/controls.h b/src/wx/controls.h index 09e942e1c..dba981d14 100644 --- a/src/wx/controls.h +++ b/src/wx/controls.h @@ -21,7 +21,6 @@ #include "lib/dcpomatic_time.h" #include "lib/types.h" #include "lib/film.h" -#include "lib/spl.h" #include #include #include @@ -54,8 +53,6 @@ public: void show_extended_player_controls (bool s); void log (wxString s); - boost::signals2::signal SPLChanged; - private: void update_position_label (); void update_position_slider (); @@ -88,7 +85,7 @@ private: typedef std::pair, boost::filesystem::path> CPL; - boost::optional selected_cpl () const; + boost::shared_ptr selected_content () const; #ifdef DCPOMATIC_VARIANT_SWAROOP void pause_clicked (); void stop_clicked (); @@ -96,7 +93,7 @@ private: void add_clicked (); void save_clicked (); void load_clicked (); - void add_cpl_to_list (boost::shared_ptr cpl, wxListCtrl* list); + void add_content_to_list (boost::shared_ptr content, wxListCtrl* list); boost::shared_ptr _film; boost::shared_ptr _viewer; @@ -108,13 +105,13 @@ private: wxCheckBox* _outline_content; wxChoice* _eye; wxCheckBox* _jump_to_selected; - wxListCtrl* _cpl; + wxListCtrl* _content_view; wxListCtrl* _spl_view; wxTextCtrl* _log; wxButton* _add_button; wxButton* _save_button; wxButton* _load_button; - std::vector _cpls; + std::vector > _content; wxSlider* _slider; wxButton* _rewind_button; wxButton* _back_button; @@ -129,7 +126,6 @@ private: wxToggleButton* _play_button; #endif boost::optional _active_job; - SPL _spl; ClosedCaptionsDialog* _closed_captions_dialog; -- cgit v1.2.3