X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsubtitle_panel.h;h=5a39f3bcd5e0b437a9946c7566e1a8b99d283363;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=19df26436af6c79cd7c8712d6ba568616dbac2a0;hpb=cb83eb7b209054da2f81b456a0fbda6ea9d03844;p=dcpomatic.git diff --git a/src/wx/subtitle_panel.h b/src/wx/subtitle_panel.h index 19df26436..5a39f3bcd 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,44 @@ */ -#include "film_editor_panel.h" +#include "content_sub_panel.h" class wxCheckBox; class wxSpinCtrl; +class SubtitleView; +class FontsDialog; -class SubtitlePanel : public FilmEditorPanel +class SubtitlePanel : public ContentSubPanel { public: - SubtitlePanel (FilmEditor *); + SubtitlePanel (ContentPanel *); void film_changed (Film::Property); 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 subtitle_view_clicked (); + void fonts_dialog_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* _subtitle_view_button; + SubtitleView* _subtitle_view; + wxButton* _fonts_dialog_button; + FontsDialog* _fonts_dialog; };