summaryrefslogtreecommitdiff
path: root/src/wx/audio_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-26 23:51:02 +0100
committerCarl Hetherington <cth@carlh.net>2018-03-26 23:51:02 +0100
commita423c0a0a6c891d0cacd42a3ac04c110c5f2be2e (patch)
treed8634e266267edb77b78f101adc0ec98424f87e7 /src/wx/audio_dialog.h
parent37c28f4c76df89bc84d773beda1bb90be1cedd1a (diff)
Add real-time mouse cursor readout in audio analysis (rest of #1082).
Diffstat (limited to 'src/wx/audio_dialog.h')
-rw-r--r--src/wx/audio_dialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h
index 41be90b79..6d4428546 100644
--- a/src/wx/audio_dialog.h
+++ b/src/wx/audio_dialog.h
@@ -35,6 +35,8 @@ public:
bool Show (bool show = true);
+ void set_cursor (boost::optional<DCPTime> time, boost::optional<float> db);
+
private:
void content_changed (int);
void channel_clicked (wxCommandEvent &);
@@ -49,6 +51,7 @@ private:
boost::weak_ptr<Content> _content;
int _channels;
boost::shared_ptr<const Playlist> _playlist;
+ wxStaticText* _cursor;
AudioPlot* _plot;
wxStaticText* _sample_peak;
wxStaticText* _true_peak;