X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fsubtitle_appearance_dialog.h;h=2e007e57ba6a9b3a3ffdfcf91a4b36430fcc55a8;hb=2f63654d5e452f2ab9ec90cd3449da4b113a3e94;hp=f4fe307d238dcab485583f7bd6a68fbc583bd566;hpb=3b932abd0c7634483911e1d5361e12b2d094ae6f;p=dcpomatic.git diff --git a/src/wx/subtitle_appearance_dialog.h b/src/wx/subtitle_appearance_dialog.h index f4fe307d2..2e007e57b 100644 --- a/src/wx/subtitle_appearance_dialog.h +++ b/src/wx/subtitle_appearance_dialog.h @@ -1,40 +1,62 @@ /* - Copyright (C) 2015 Carl Hetherington + Copyright (C) 2015-2017 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 "table_dialog.h" +#include "timecode.h" +#include "lib/rgba.h" +#include #include +#include -class wxCheckBox; +class wxRadioButton; class wxColourPickerCtrl; -class SubRipContent; +class wxGridBagSizer; +class Content; +class RGBAColourPicker; +class FFmpegSubtitleStream; -class SubtitleAppearanceDialog : public TableDialog +class SubtitleAppearanceDialog : public wxDialog { public: - SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr content); + SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr content); void apply (); private: - wxColourPickerCtrl* _colour; - wxCheckBox* _outline; - wxColourPickerCtrl* _outline_colour; + void setup_sensitivity (); + void restore (); - boost::shared_ptr _content; + wxColourPickerCtrl* _colour; + wxChoice* _effect; + wxColourPickerCtrl* _effect_colour; + Timecode* _fade_in; + Timecode* _fade_out; + wxSpinCtrl* _outline_width; + wxGridBagSizer* _table; + std::map _pickers; + + boost::shared_ptr _content; + boost::shared_ptr _stream; + + boost::signals2::scoped_connection _content_connection; + + static int const NONE; + static int const OUTLINE; + static int const SHADOW; };