X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsubtitle_view.h;h=445f646aa8ef271b68f7b7464c737454a5ee30c8;hb=7116339658952e0416809a22d4fd2f8e9db75710;hp=338742afcaac5575f35bc58bc895b9757967106b;hpb=c6c082c4a8016f85ba4207f4b8ccee1d5770e4a4;p=dcpomatic.git diff --git a/src/wx/subtitle_view.h b/src/wx/subtitle_view.h index 338742afc..445f646aa 100644 --- a/src/wx/subtitle_view.h +++ b/src/wx/subtitle_view.h @@ -1,33 +1,46 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2018 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ +#include "lib/content_caption.h" #include #include #include -class SubtitleDecoder; +class Decoder; +class FilmViewer; class SubtitleView : public wxDialog { public: - SubtitleView (wxWindow *, boost::shared_ptr, boost::shared_ptr, DCPTime position); + SubtitleView (wxWindow *, boost::shared_ptr, boost::shared_ptr content, boost::shared_ptr, FilmViewer* viewer); + +private: + void data_start (ContentTextCaption cts); + void data_stop (ContentTime time); + void subtitle_selected (wxListEvent &); -private: wxListCtrl* _list; + int _subs; + boost::optional _frc; + boost::optional _last_count; + std::vector _start_times; + boost::weak_ptr _content; + FilmViewer* _film_viewer; };