X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fsubtitle_panel.h;h=f82fb14e5bfe49ad2a224db55ef35fc59b633a3a;hb=fe47588e80b35c07fc25b1d9e79bc13b6e439ff0;hp=3f795189593dba1972715760686d4149c7b7db48;hpb=594af3389df908a387a0e15f4a49a288e363def0;p=dcpomatic.git diff --git a/src/wx/subtitle_panel.h b/src/wx/subtitle_panel.h index 3f7951895..f82fb14e5 100644 --- a/src/wx/subtitle_panel.h +++ b/src/wx/subtitle_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2013 Carl Hetherington + Copyright (C) 2012-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,30 +17,40 @@ */ -#include "film_editor_panel.h" +#include "content_sub_panel.h" class wxCheckBox; class wxSpinCtrl; +class SubtitleView; -class SubtitlePanel : public FilmEditorPanel +class SubtitlePanel : public ContentSubPanel { public: - SubtitlePanel (FilmEditor *); + SubtitlePanel (ContentPanel *); void film_changed (Film::Property); - void film_content_changed (boost::shared_ptr, int); - + void film_content_changed (int); + void content_selection_changed (); private: - void with_subtitles_toggled (); - void offset_changed (); - void scale_changed (); + void use_toggled (); + void x_offset_changed (); + void y_offset_changed (); + void x_scale_changed (); + void y_scale_changed (); + void language_changed (); void stream_changed (); + void view_clicked (); void setup_sensitivity (); - wxCheckBox* _with_subtitles; - wxSpinCtrl* _offset; - wxSpinCtrl* _scale; + wxCheckBox* _use; + wxSpinCtrl* _x_offset; + wxSpinCtrl* _y_offset; + wxSpinCtrl* _x_scale; + wxSpinCtrl* _y_scale; + wxTextCtrl* _language; wxChoice* _stream; + wxButton* _view_button; + SubtitleView* _view; };