Fix crash on double-click of show-audio button.
[dcpomatic.git] / src / wx / audio_dialog.h
index db1d74f306393ceaf9860919aefe82434a92ea36..b4257057dd6c4a2741301510fa478ddd85911992 100644 (file)
@@ -31,20 +31,21 @@ class AudioDialog : public wxDialog
 public:
        AudioDialog (wxWindow *);
 
-       void set_film (boost::shared_ptr<Film>);
+       void set_content (boost::shared_ptr<AudioContent>);
 
 private:
-       void film_changed (Film::Property);
+       void content_changed (int);
        void channel_clicked (wxCommandEvent &);
        void type_clicked (wxCommandEvent &);
-       void smoothing_changed (wxScrollEvent &);
+       void smoothing_changed ();
        void try_to_load_analysis ();
+       void analysis_finished ();
 
-       boost::shared_ptr<Film> _film;
+       boost::shared_ptr<AudioContent> _content;
        AudioPlot* _plot;
        wxCheckBox* _channel_checkbox[MAX_AUDIO_CHANNELS];
        wxCheckBox* _type_checkbox[AudioPoint::COUNT];
        wxSlider* _smoothing;
-       boost::signals2::scoped_connection _film_changed_connection;
-       boost::signals2::scoped_connection _film_audio_analysis_succeeded_connection;
+       boost::signals2::scoped_connection _content_changed_connection;
+       boost::signals2::scoped_connection _analysis_finished_connection;
 };