Formatting tweaks to unmount dialogue.
[dcpomatic.git] / src / wx / audio_dialog.h
index 37d4256247ee26cf1248aa84bdb25e7c0693cf70..34c174cf46cdf711f5469a9889377dcad47c3986 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -31,12 +31,15 @@ class Film;
 class AudioDialog : public wxDialog
 {
 public:
-       AudioDialog (wxWindow *, boost::shared_ptr<Film> film, boost::shared_ptr<Content> content = boost::shared_ptr<Content> ());
+       AudioDialog (wxWindow* parent, boost::shared_ptr<Film> film, boost::shared_ptr<Content> content = boost::shared_ptr<Content> ());
 
        bool Show (bool show = true);
 
+       void set_cursor (boost::optional<dcpomatic::DCPTime> time, boost::optional<float> db);
+
 private:
-       void content_changed (int);
+       void film_change (ChangeType, int);
+       void content_change (ChangeType, int);
        void channel_clicked (wxCommandEvent &);
        void type_clicked (wxCommandEvent &);
        void smoothing_changed ();
@@ -46,17 +49,21 @@ private:
 
        boost::shared_ptr<AudioAnalysis> _analysis;
        boost::weak_ptr<Film> _film;
+       /** content to analyse, or 0 to analyse all the film's content */
        boost::weak_ptr<Content> _content;
        int _channels;
        boost::shared_ptr<const Playlist> _playlist;
+       wxStaticText* _cursor;
        AudioPlot* _plot;
        wxStaticText* _sample_peak;
        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;
        boost::signals2::scoped_connection _film_connection;
+       boost::signals2::scoped_connection _film_content_connection;
        boost::signals2::scoped_connection _analysis_finished_connection;
 };