diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-30 22:13:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-10 21:15:37 +0200 |
| commit | 15ebff851d348eea2a5ae91c6495a787b8d012b2 (patch) | |
| tree | 6de54e8c693754e18d88c08b58d1611861b85437 /src/wx/audio_plot.h | |
| parent | 474388e8a89f1bb01df04d1e806f726e66e60cb2 (diff) | |
Cleanup: use signals for seeking on audio graph clicks.
Diffstat (limited to 'src/wx/audio_plot.h')
| -rw-r--r-- | src/wx/audio_plot.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 <boost/signals2.hpp> #include <vector> + struct Metrics; -class FilmViewer; + class AudioPlot : public wxPanel { public: - explicit AudioPlot (wxWindow *, FilmViewer& viewer); + explicit AudioPlot(wxWindow* parent); void set_analysis (std::shared_ptr<AudioAnalysis>); void set_channel_visible (int c, bool v); @@ -46,6 +47,7 @@ public: wxColour colour (int n) const; boost::signals2::signal<void (boost::optional<dcpomatic::DCPTime>, boost::optional<float>)> Cursor; + boost::signals2::signal<void (dcpomatic::DCPTime)> 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<AudioAnalysis> _analysis; bool _channel_visible[MAX_DCP_AUDIO_CHANNELS]; bool _type_visible[AudioPoint::COUNT]; |
