+2017-10-13 Carl Hetherington <cth@carlh.net>
+
+ * Colour axis labels in the audio plot (#835).
+
2017-10-09 Carl Hetherington <cth@carlh.net>
* Version 2.11.26 released.
for (int i = 0; i < _channels; ++i) {
_channel_checkbox[i] = new wxCheckBox (this, wxID_ANY, std_to_wx (audio_channel_name (i)));
+ _channel_checkbox[i]->SetForegroundColour(wxColour(_plot->colour(i)));
right->Add (_channel_checkbox[i], 0, wxEXPAND | wxALL, 3);
_channel_checkbox[i]->Bind (wxEVT_CHECKBOX, boost::bind (&AudioDialog::channel_clicked, this, _1));
}
return p;
}
+
+/** @param n Channel index.
+ * @return Colour used by that channel in the plot.
+ */
+wxColour
+AudioPlot::colour (int n) const
+{
+ DCPOMATIC_ASSERT (n < int(_colours.size()));
+ return _colours[n];
+}
void set_message (wxString);
void set_gain_correction (double gain);
+ wxColour colour (int n) const;
+
static const int max_smoothing;
private: