diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-28 01:14:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-28 01:14:23 +0100 |
| commit | 73461f719bfb3ee91644b84f4bffd91df0e6559f (patch) | |
| tree | d90a5eacbbe4ff995abbafa998b49d9007e765b5 /src/wx/controls.h | |
| parent | 60cc177d58b875de472a65a65c274ad1656aedc2 (diff) | |
Add info (time/type) to CPL/SPL lists.
Diffstat (limited to 'src/wx/controls.h')
| -rw-r--r-- | src/wx/controls.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/wx/controls.h b/src/wx/controls.h index 968ffa921..a49f16595 100644 --- a/src/wx/controls.h +++ b/src/wx/controls.h @@ -34,6 +34,10 @@ class PlayerVideo; class wxToggleButton; class wxListCtrl; +namespace dcp { + class CPL; +} + class Controls : public wxPanel { public: @@ -81,12 +85,16 @@ private: void update_dcp_directory (); void dcp_directory_changed (); void config_changed (int property); - boost::optional<boost::filesystem::path> selected_dcp () const; + + typedef std::pair<boost::shared_ptr<dcp::CPL>, boost::filesystem::path> CPL; + + boost::optional<CPL> selected_cpl () const; #ifdef DCPOMATIC_VARIANT_SWAROOP void pause_clicked (); void stop_clicked (); #endif void add_clicked (); + void add_cpl_to_list (boost::shared_ptr<dcp::CPL> cpl, wxListCtrl* list); boost::shared_ptr<Film> _film; boost::shared_ptr<FilmViewer> _viewer; @@ -98,11 +106,11 @@ private: wxCheckBox* _outline_content; wxChoice* _eye; wxCheckBox* _jump_to_selected; - wxListCtrl* _dcp_directory; + wxListCtrl* _cpl; wxListCtrl* _spl_view; wxTextCtrl* _log; wxButton* _add_button; - std::vector<boost::filesystem::path> _dcp_directories; + std::vector<CPL> _cpls; wxSlider* _slider; wxButton* _rewind_button; wxButton* _back_button; |
