summaryrefslogtreecommitdiff
path: root/src/wx/audio_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-17 21:13:25 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-17 21:13:25 +0200
commit9f940fe8533526b10eb9cf22a8772e122760c368 (patch)
tree139e0aed0209e87c8d3819aad67ffc21adb269d1 /src/wx/audio_dialog.h
parent119bf28caa0e3469128a1f015ee00cdf773039b0 (diff)
Clicking on the audio graph jumps to that position in the film (#1507).
Diffstat (limited to 'src/wx/audio_dialog.h')
-rw-r--r--src/wx/audio_dialog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h
index 34c174cf4..93c33152a 100644
--- a/src/wx/audio_dialog.h
+++ b/src/wx/audio_dialog.h
@@ -26,12 +26,13 @@
#include <boost/signals2.hpp>
class AudioPlot;
+class FilmViewer;
class Film;
class AudioDialog : public wxDialog
{
public:
- AudioDialog (wxWindow* parent, boost::shared_ptr<Film> film, boost::shared_ptr<Content> content = boost::shared_ptr<Content> ());
+ AudioDialog (wxWindow* parent, boost::shared_ptr<Film> film, boost::weak_ptr<FilmViewer> viewer, boost::shared_ptr<Content> content = boost::shared_ptr<Content>());
bool Show (bool show = true);
@@ -49,6 +50,7 @@ private:
boost::shared_ptr<AudioAnalysis> _analysis;
boost::weak_ptr<Film> _film;
+ boost::weak_ptr<FilmViewer> _viewer;
/** content to analyse, or 0 to analyse all the film's content */
boost::weak_ptr<Content> _content;
int _channels;