X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsubtitle_view.h;h=43a62270525e4ac3a062c3c8afd985a2f5b908e0;hb=26cd966b7ae60673dd597eafa75860a5b5eb74c6;hp=338742afcaac5575f35bc58bc895b9757967106b;hpb=c6c082c4a8016f85ba4207f4b8ccee1d5770e4a4;p=dcpomatic.git diff --git a/src/wx/subtitle_view.h b/src/wx/subtitle_view.h index 338742afc..43a622705 100644 --- a/src/wx/subtitle_view.h +++ b/src/wx/subtitle_view.h @@ -1,33 +1,41 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2016 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_subtitle.h" #include #include #include -class SubtitleDecoder; +class Decoder; class SubtitleView : public wxDialog { public: - SubtitleView (wxWindow *, boost::shared_ptr, boost::shared_ptr, DCPTime position); + SubtitleView (wxWindow *, boost::shared_ptr, boost::shared_ptr, DCPTime position); + +private: + void data_start (ContentTextSubtitle cts); + void data_stop (ContentTime time); -private: wxListCtrl* _list; + int _subs; + boost::optional _frc; + boost::optional _last_count; };