2 Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include <boost/shared_ptr.hpp>
22 #include "lib/types.h"
24 #include "content_menu.h"
33 class ContentSubPanel;
39 ContentPanel (wxNotebook *, boost::shared_ptr<Film>);
41 boost::shared_ptr<Film> film () const {
45 void set_film (boost::shared_ptr<Film> f);
46 void set_general_sensitivity (bool s);
47 void set_selection (boost::weak_ptr<Content>);
49 void film_changed (Film::Property p);
50 void film_content_changed (int p);
52 wxPanel* panel () const {
56 wxNotebook* notebook () const {
60 ContentList selected ();
61 VideoContentList selected_video ();
62 AudioContentList selected_audio ();
63 SubtitleContentList selected_subtitle ();
64 FFmpegContentList selected_ffmpeg ();
67 void sequence_video_changed ();
68 void selection_changed ();
69 void add_file_clicked ();
70 void add_folder_clicked ();
71 void remove_clicked ();
72 void earlier_clicked ();
73 void later_clicked ();
74 void right_click (wxListEvent &);
75 void timeline_clicked ();
78 void setup_sensitivity ();
82 wxNotebook* _notebook;
85 wxButton* _add_folder;
90 wxCheckBox* _sequence_video;
91 ContentSubPanel* _video_panel;
92 ContentSubPanel* _audio_panel;
93 ContentSubPanel* _subtitle_panel;
94 ContentSubPanel* _timing_panel;
95 std::list<ContentSubPanel *> _panels;
97 TimelineDialog* _timeline_dialog;
99 boost::shared_ptr<Film> _film;
100 bool _generally_sensitive;