X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_dialog.h;h=8f7151b1bab196fd41dd4ac4b8de26278046362e;hb=ed94e34207c9d8dbd495ca4b0ef468b79126f26a;hp=3a02fd87fdb2c0a8da0fa1d596bc6140c9475cf6;hpb=67775a6d0d28131b98ae284c7be23d79ccdab685;p=dcpomatic.git diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 3a02fd87f..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,11 @@ 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; @@ -59,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;