X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsubtitle_panel.h;h=e3fd7cd75617e91c29a767cbfab3fd20a7b0a7d9;hb=3b932abd0c7634483911e1d5361e12b2d094ae6f;hp=20d7c40c2eb1d3eb1add4350a1b1482b3cbfc2a1;hpb=62a1e9d6cda70050b813d4ba0c3e83b7350f360d;p=dcpomatic.git diff --git a/src/wx/subtitle_panel.h b/src/wx/subtitle_panel.h index 20d7c40c2..e3fd7cd75 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,32 +17,51 @@ */ -#include "film_editor_panel.h" +#include "content_sub_panel.h" class wxCheckBox; class wxSpinCtrl; +class SubtitleView; +class FontsDialog; +class SubtitleAppearanceDialog; -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 use_toggled (); + void burn_toggled (); void x_offset_changed (); void y_offset_changed (); - void scale_changed (); + void x_scale_changed (); + void y_scale_changed (); + void language_changed (); void stream_changed (); + void subtitle_view_clicked (); + void fonts_dialog_clicked (); + void reference_clicked (); + void appearance_dialog_clicked (); void setup_sensitivity (); - - wxCheckBox* _with_subtitles; + + wxCheckBox* _reference; + wxCheckBox* _use; + wxCheckBox* _burn; wxSpinCtrl* _x_offset; wxSpinCtrl* _y_offset; - wxSpinCtrl* _scale; + wxSpinCtrl* _x_scale; + wxSpinCtrl* _y_scale; + wxTextCtrl* _language; wxChoice* _stream; + wxButton* _subtitle_view_button; + SubtitleView* _subtitle_view; + wxButton* _fonts_dialog_button; + FontsDialog* _fonts_dialog; + wxButton* _appearance_dialog_button; };