X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_dialog.h;h=588f71159661a1e9393761667af656c4b8e0f5dc;hb=7bc94f069f011a1a7e8554aa5cc88167e409c1f8;hp=514faeea0e952ff83c716392d3aacf5a5514d2ee;hpb=db468a15e50c8491d4b8462ad0676be905f49065;p=dcpomatic.git diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 514faeea0..588f71159 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -17,11 +17,12 @@ */ -#include -#include -#include #include "lib/film.h" #include "lib/audio_analysis.h" +#include "lib/playlist.h" +#include +#include +#include class AudioPlot; class Film; @@ -29,23 +30,28 @@ class Film; class AudioDialog : public wxDialog { public: - AudioDialog (wxWindow *); + 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 content_changed (int); void channel_clicked (wxCommandEvent &); void type_clicked (wxCommandEvent &); - void smoothing_changed (wxScrollEvent &); + void smoothing_changed (); void try_to_load_analysis (); - void setup_channels (); + void analysis_finished (); + void setup_peak_time (); - boost::shared_ptr _film; + boost::shared_ptr _analysis; + boost::weak_ptr _film; + int _channels; + boost::shared_ptr _playlist; AudioPlot* _plot; - wxCheckBox* _channel_checkbox[MAX_AUDIO_CHANNELS]; + wxStaticText* _peak_time; + wxCheckBox* _channel_checkbox[MAX_DCP_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 _film_connection; + boost::signals2::scoped_connection _analysis_finished_connection; };