diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-25 20:21:29 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-25 20:21:29 +0000 |
| commit | 6e0f2a39c9deeb51f05c0c8c9bd46632c2c6483a (patch) | |
| tree | d9c09a4858bdfc2f56ca2e76f79700a00e0eaea2 /src/wx/audio_plot.h | |
| parent | 8bfb6ae0780b0bf3318c345df78518ad3fabc9fc (diff) | |
Multiple simultaneous plots.
Diffstat (limited to 'src/wx/audio_plot.h')
| -rw-r--r-- | src/wx/audio_plot.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/wx/audio_plot.h b/src/wx/audio_plot.h index b2ae139d1..4ac7f848c 100644 --- a/src/wx/audio_plot.h +++ b/src/wx/audio_plot.h @@ -20,8 +20,8 @@ #include <vector> #include <boost/shared_ptr.hpp> #include <wx/wx.h> - -class AudioAnalysis; +#include "util.h" +#include "audio_analysis.h" class AudioPlot : public wxPanel { @@ -29,16 +29,20 @@ public: AudioPlot (wxWindow *); void set_analysis (boost::shared_ptr<AudioAnalysis>); - void set_channel (int c); + void set_channel_visible (int c, bool v); + void set_type_visible (int t, bool v); void set_gain (float); private: void paint (wxPaintEvent &); boost::shared_ptr<AudioAnalysis> _analysis; - int _channel; + bool _channel_visible[MAX_AUDIO_CHANNELS]; + bool _type_visible[AudioPoint::COUNT]; /** gain to apply in dB */ float _gain; + std::vector<wxColour> _colours; + static const int _minimum; }; |
