#include <wx/spinctrl.h>
#include <wx/filepicker.h>
#include <wx/collpane.h>
-#include "lib/trim_action.h"
+#include <boost/signals2.hpp>
#include "lib/film.h"
class Film;
class FilmEditor : public wxPanel
{
public:
- FilmEditor (Film *, wxWindow *);
+ FilmEditor (boost::shared_ptr<Film>, wxWindow *);
- void set_film (Film *);
+ void set_film (boost::shared_ptr<Film>);
void setup_visibility ();
- sigc::signal1<void, std::string> FileChanged;
+ boost::signals2::signal<void (std::string)> FileChanged;
private:
/* Handle changes to the view */
void bottom_crop_changed (wxCommandEvent &);
void content_changed (wxCommandEvent &);
void format_changed (wxCommandEvent &);
- void dcp_range_changed (int, TrimAction);
+ void dcp_range_changed (int, int);
void dcp_content_type_changed (wxCommandEvent &);
void dcp_ab_toggled (wxCommandEvent &);
void scaler_changed (wxCommandEvent &);
void subtitle_stream_changed (wxCommandEvent &);
/* Handle changes to the model */
- void film_changed (FilmState::Property);
+ void film_changed (Film::Property);
/* Button clicks */
void edit_filters_clicked (wxCommandEvent &);
void setup_formats ();
void setup_subtitle_button ();
void setup_streams ();
+ void setup_audio_details ();
wxControl* video_control (wxControl *);
wxControl* still_control (wxControl *);
- FilmState::Property _ignore_changes;
+ void active_jobs_changed (bool);
+
+ Film::Property _ignore_changes;
/** The film we are editing */
- Film* _film;
+ boost::shared_ptr<Film> _film;
/** The Film's name */
wxTextCtrl* _name;
wxStaticText* _dcp_name;