2 Copyright (C) 2012-2015 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;
37 class ContentPanel : public boost::noncopyable
40 ContentPanel (wxNotebook *, boost::shared_ptr<Film>, FilmViewer* viewer);
42 boost::shared_ptr<Film> film () const {
46 void set_film (boost::shared_ptr<Film>);
47 void set_general_sensitivity (bool s);
48 void set_selection (boost::weak_ptr<Content>);
50 void film_changed (Film::Property p);
51 void film_content_changed (int p);
53 wxPanel* panel () const {
57 wxNotebook* notebook () const {
61 ContentList selected ();
62 VideoContentList selected_video ();
63 AudioContentList selected_audio ();
64 SubtitleContentList selected_subtitle ();
65 FFmpegContentList selected_ffmpeg ();
67 void add_file_clicked ();
70 void selection_changed ();
71 void add_folder_clicked ();
72 void remove_clicked ();
73 void earlier_clicked ();
74 void later_clicked ();
75 void right_click (wxListEvent &);
76 void files_dropped (wxDropFilesEvent &);
77 void timeline_clicked ();
80 void setup_sensitivity ();
82 void add_files (std::list<boost::filesystem::path>);
86 wxNotebook* _notebook;
89 wxButton* _add_folder;
94 ContentSubPanel* _video_panel;
95 ContentSubPanel* _audio_panel;
96 ContentSubPanel* _subtitle_panel;
97 ContentSubPanel* _timing_panel;
98 std::list<ContentSubPanel *> _panels;
100 TimelineDialog* _timeline_dialog;
102 boost::shared_ptr<Film> _film;
103 bool _generally_sensitive;