X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_dialog.h;h=8623192c4c25ec2f19aaf6bd08d16b0ebc50d18d;hb=329de46d6fb600c1958678ec5d09ef21532130d5;hp=623c9a067a5d633342d4e79e4f3f29251a3e6372;hpb=8bfb6ae0780b0bf3318c345df78518ad3fabc9fc;p=dcpomatic.git diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 623c9a067..8623192c4 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -21,6 +21,7 @@ #include #include #include "lib/film.h" +#include "lib/audio_analysis.h" class AudioPlot; class Film; @@ -30,17 +31,20 @@ class AudioDialog : public wxDialog public: AudioDialog (wxWindow *); - void set_film (boost::shared_ptr); + void set_content (boost::shared_ptr); private: - void film_changed (Film::Property); - void channel_changed (wxCommandEvent &); + void content_changed (int); + void channel_clicked (wxCommandEvent &); + void type_clicked (wxCommandEvent &); + void smoothing_changed (); void try_to_load_analysis (); - void setup_channels (); + void analysis_finished (); - boost::shared_ptr _film; + boost::shared_ptr _content; AudioPlot* _plot; - wxChoice* _channel; - boost::signals2::scoped_connection _film_changed_connection; - boost::signals2::scoped_connection _film_audio_analysis_finished_connection; + wxCheckBox* _channel_checkbox[MAX_AUDIO_CHANNELS]; + wxCheckBox* _type_checkbox[AudioPoint::COUNT]; + wxSlider* _smoothing; + boost::signals2::scoped_connection _content_changed_connection; };