X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsubtitle_view.h;h=43a62270525e4ac3a062c3c8afd985a2f5b908e0;hb=f9495d05657dc1a163cf195bd839e3497fb30b33;hp=f5a61890bba83c48068b55b133bb68790f4dcbcd;hpb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;p=dcpomatic.git diff --git a/src/wx/subtitle_view.h b/src/wx/subtitle_view.h index f5a61890b..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); + wxListCtrl* _list; + int _subs; + boost::optional _frc; + boost::optional _last_count; };