No-op; fix GPL address and use the explicit-program-name version.
[dcpomatic.git] / src / wx / film_editor.h
1 /*
2     Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
3
4     This file is part of DCP-o-matic.
5
6     DCP-o-matic is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     DCP-o-matic is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
18
19 */
20
21 /** @file src/wx/film_editor.h
22  *  @brief FilmEditor class.
23  */
24
25 #include "lib/film.h"
26 #include <wx/wx.h>
27 #include <boost/signals2.hpp>
28
29 class wxNotebook;
30 class Film;
31 class ContentPanel;
32 class DCPPanel;
33 class FilmViewer;
34
35 /** @class FilmEditor
36  *  @brief A wx widget to edit a film's metadata, and perform various functions.
37  */
38 class FilmEditor : public wxPanel
39 {
40 public:
41         FilmEditor (wxWindow *, FilmViewer* viewer);
42
43         void set_film (boost::shared_ptr<Film>);
44
45         boost::signals2::signal<void (boost::filesystem::path)> FileChanged;
46
47         /* Stuff for panels */
48
49         ContentPanel* content_panel () const {
50                 return _content_panel;
51         }
52
53         boost::shared_ptr<Film> film () const {
54                 return _film;
55         }
56
57         /* Handle changes to the model */
58         void film_changed (Film::Property);
59         void film_content_changed (int);
60
61         void set_general_sensitivity (bool);
62         void active_jobs_changed (boost::optional<std::string>);
63
64         wxNotebook* _main_notebook;
65         ContentPanel* _content_panel;
66         DCPPanel* _dcp_panel;
67
68         /** The film we are editing */
69         boost::shared_ptr<Film> _film;
70 };