2 Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
4 This file is part of DCP-o-matic.
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.
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.
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/>.
23 class SwaroopControls : public Controls
26 SwaroopControls (wxWindow* parent, boost::shared_ptr<FilmViewer> viewer);
28 void log (wxString s);
29 void set_film (boost::shared_ptr<Film> film);
31 /** This is so that we can tell our parent player to reset the film
32 when we have created one from a SPL. We could call a method
33 in the player's DOMFrame but we don't have that in a header.
35 boost::signals2::signal<void (boost::weak_ptr<Film>)> ResetFilm;
39 void pause_clicked ();
41 void add_playlist_to_list (SPL spl);
42 void update_content_directory ();
43 void update_playlist_directory ();
44 void spl_selection_changed ();
47 void setup_sensitivity ();
48 void image_changed (boost::weak_ptr<PlayerVideo> weak_pv);
49 void config_changed (int);
51 wxButton* _play_button;
52 wxButton* _pause_button;
53 wxButton* _stop_button;
55 ContentView* _content_view;
56 wxListCtrl* _spl_view;
57 wxListCtrl* _current_spl_view;
60 boost::optional<dcp::ContentKind> _current_kind;
62 std::vector<SPL> _playlists;