/*
- Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
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
class wxCheckBox;
class wxSpinCtrl;
+class SubtitleView;
class SubtitlePanel : public FilmEditorPanel
{
SubtitlePanel (FilmEditor *);
void film_changed (Film::Property);
- void film_content_changed (boost::shared_ptr<Content>, int);
-
+ void film_content_changed (int);
+ void content_selection_changed ();
private:
- void with_subtitles_toggled (wxCommandEvent &);
- void offset_changed (wxCommandEvent &);
- void scale_changed (wxCommandEvent &);
- void stream_changed (wxCommandEvent &);
+ void use_toggled ();
+ void x_offset_changed ();
+ void y_offset_changed ();
+ void scale_changed ();
+ void stream_changed ();
+ void view_clicked ();
void setup_sensitivity ();
- wxCheckBox* _with_subtitles;
- wxSpinCtrl* _offset;
+ wxCheckBox* _use;
+ wxSpinCtrl* _x_offset;
+ wxSpinCtrl* _y_offset;
wxSpinCtrl* _scale;
wxChoice* _stream;
+ wxButton* _view_button;
+ SubtitleView* _view;
};