X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_dialog.h;h=8f7151b1bab196fd41dd4ac4b8de26278046362e;hb=d5bdc5cf073987043ace62378b02ffee5af818bd;hp=e866aca3f83a8823d0a52e76edd8e1a07440782d;hpb=c4403784febdbdd42e9c32e67fadb147f11fe566;p=dcpomatic.git diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index e866aca3f..8f7151b1b 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -21,17 +21,21 @@ #include "lib/film.h" #include "lib/audio_analysis.h" #include "lib/playlist.h" +#include "lib/warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include +DCPOMATIC_ENABLE_WARNINGS #include #include class AudioPlot; +class FilmViewer; class Film; class AudioDialog : public wxDialog { public: - AudioDialog (wxWindow* parent, boost::shared_ptr film, boost::shared_ptr content = boost::shared_ptr ()); + AudioDialog (wxWindow* parent, boost::shared_ptr film, boost::weak_ptr viewer, boost::shared_ptr content = boost::shared_ptr()); bool Show (bool show = true); @@ -46,9 +50,12 @@ private: void try_to_load_analysis (); void analysis_finished (); void setup_statistics (); + void show_or_hide_channel_checkboxes (); boost::shared_ptr _analysis; boost::weak_ptr _film; + boost::weak_ptr _viewer; + /** content to analyse, or 0 to analyse all the film's content */ boost::weak_ptr _content; int _channels; boost::shared_ptr _playlist; @@ -58,6 +65,7 @@ private: wxStaticText* _true_peak; wxStaticText* _integrated_loudness; wxStaticText* _loudness_range; + wxStaticText* _leqm; wxCheckBox* _channel_checkbox[MAX_DCP_AUDIO_CHANNELS]; wxCheckBox* _type_checkbox[AudioPoint::COUNT]; wxSlider* _smoothing;