From 15ebff851d348eea2a5ae91c6495a787b8d012b2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 30 Sep 2025 22:13:16 +0200 Subject: Cleanup: use signals for seeking on audio graph clicks. --- src/wx/audio_plot.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/wx/audio_plot.h') diff --git a/src/wx/audio_plot.h b/src/wx/audio_plot.h index f3d80b5e5..aec7edfba 100644 --- a/src/wx/audio_plot.h +++ b/src/wx/audio_plot.h @@ -28,13 +28,14 @@ LIBDCP_ENABLE_WARNINGS #include #include + struct Metrics; -class FilmViewer; + class AudioPlot : public wxPanel { public: - explicit AudioPlot (wxWindow *, FilmViewer& viewer); + explicit AudioPlot(wxWindow* parent); void set_analysis (std::shared_ptr); void set_channel_visible (int c, bool v); @@ -46,6 +47,7 @@ public: wxColour colour (int n) const; boost::signals2::signal, boost::optional)> Cursor; + boost::signals2::signal Click; static const int max_smoothing; @@ -78,7 +80,6 @@ private: void mouse_moved (wxMouseEvent& ev); void mouse_leave (wxMouseEvent& ev); - FilmViewer& _viewer; std::shared_ptr _analysis; bool _channel_visible[MAX_DCP_AUDIO_CHANNELS]; bool _type_visible[AudioPoint::COUNT]; -- cgit v1.2.3