X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_dialog.h;h=588f71159661a1e9393761667af656c4b8e0f5dc;hb=7bc94f069f011a1a7e8554aa5cc88167e409c1f8;hp=968fd0a122340f9021303dc2a799b68e868c1539;hpb=ab624eaed4423b1813148e1c395092697b541139;p=dcpomatic.git diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 968fd0a12..588f71159 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -17,10 +17,12 @@ */ +#include "lib/film.h" +#include "lib/audio_analysis.h" +#include "lib/playlist.h" +#include #include #include -#include -#include "lib/film.h" class AudioPlot; class Film; @@ -28,16 +30,28 @@ class Film; class AudioDialog : public wxDialog { public: - AudioDialog (wxWindow *, boost::shared_ptr); + AudioDialog (wxWindow *, boost::shared_ptr film, boost::shared_ptr content = boost::shared_ptr ()); - void set_film (boost::shared_ptr); + bool Show (bool show = true); private: - void film_changed (Film::Property); - void channel_changed (wxCommandEvent &); - - boost::shared_ptr _film; + void content_changed (int); + void channel_clicked (wxCommandEvent &); + void type_clicked (wxCommandEvent &); + void smoothing_changed (); + void try_to_load_analysis (); + void analysis_finished (); + void setup_peak_time (); + + boost::shared_ptr _analysis; + boost::weak_ptr _film; + int _channels; + boost::shared_ptr _playlist; AudioPlot* _plot; - wxChoice* _channel; + wxStaticText* _peak_time; + wxCheckBox* _channel_checkbox[MAX_DCP_AUDIO_CHANNELS]; + wxCheckBox* _type_checkbox[AudioPoint::COUNT]; + wxSlider* _smoothing; boost::signals2::scoped_connection _film_connection; + boost::signals2::scoped_connection _analysis_finished_connection; };