summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6b1d9ad)
is running as clicking the higher ones will cause an assertion
failure.
_channel_checkbox[i]->Bind (wxEVT_CHECKBOX, boost::bind (&AudioDialog::channel_clicked, this, _1));
}
_channel_checkbox[i]->Bind (wxEVT_CHECKBOX, boost::bind (&AudioDialog::channel_clicked, this, _1));
}
+ show_or_hide_channel_checkboxes ();
+
{
wxStaticText* m = new StaticText (this, _("Type"));
m->SetFont (subheading_font);
{
wxStaticText* m = new StaticText (this, _("Type"));
m->SetFont (subheading_font);
_plot->Cursor.connect (bind (&AudioDialog::set_cursor, this, _1, _2));
}
_plot->Cursor.connect (bind (&AudioDialog::set_cursor, this, _1, _2));
}
+
+void
+AudioDialog::show_or_hide_channel_checkboxes ()
+{
+ for (int i = 0; i < _channels; ++i) {
+ _channel_checkbox[i]->Show ();
+ }
+
+ for (int i = _channels; i < MAX_DCP_AUDIO_CHANNELS; ++i) {
+ _channel_checkbox[i]->Hide ();
+ }
+}
+
+
void
AudioDialog::try_to_load_analysis ()
{
void
AudioDialog::try_to_load_analysis ()
{
_plot->set_analysis (_analysis);
_plot->set_gain_correction (_analysis->gain_correction (_playlist));
setup_statistics ();
_plot->set_analysis (_analysis);
_plot->set_gain_correction (_analysis->gain_correction (_playlist));
setup_statistics ();
-
- for (int i = 0; i < _channels; ++i) {
- _channel_checkbox[i]->Show ();
- }
-
- for (int i = _channels; i < MAX_DCP_AUDIO_CHANNELS; ++i) {
- _channel_checkbox[i]->Hide ();
- }
+ show_or_hide_channel_checkboxes ();
/* Set up some defaults if no check boxes are checked */
/* Set up some defaults if no check boxes are checked */
void try_to_load_analysis ();
void analysis_finished ();
void setup_statistics ();
void try_to_load_analysis ();
void analysis_finished ();
void setup_statistics ();
+ void show_or_hide_channel_checkboxes ();
boost::shared_ptr<AudioAnalysis> _analysis;
boost::weak_ptr<Film> _film;
boost::shared_ptr<AudioAnalysis> _analysis;
boost::weak_ptr<Film> _film;