wxFlexGridSizer* table = new wxFlexGridSizer (2, 6, 6);
for (int i = 0; i < MAX_AUDIO_CHANNELS; ++i) {
- _channel_checkbox[i] = new wxCheckBox (this, wxID_ANY, audio_channel_name (i));
+ _channel_checkbox[i] = new wxCheckBox (this, wxID_ANY, std_to_wx (audio_channel_name (i)));
table->Add (_channel_checkbox[i], 1, wxEXPAND);
table->AddSpacer (0);
_channel_checkbox[i]->Connect (wxID_ANY, wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler (AudioDialog::channel_clicked), 0, this);
_film_changed_connection = _film->Changed.connect (bind (&AudioDialog::film_changed, this, _1));
_film_audio_analysis_finished_connection = _film->AudioAnalysisFinished.connect (bind (&AudioDialog::try_to_load_analysis, this));
- SetTitle (String::compose ("DVD-o-matic audio - %1", _film->name()));
+ SetTitle (std_to_wx (String::compose ("DVD-o-matic audio - %1", _film->name())));
}
void
plot_peak (p, c);
}
wxColour const col = _colours[c];
- gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2)));
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxPENSTYLE_SOLID));
+#else
+ gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxSOLID));
+#endif
gc->StrokePath (p);
}
}
plot_rms (p, c);
}
wxColour const col = _colours[c];
- gc->SetPen (*wxThePenList->FindOrCreatePen (col));
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ gc->SetPen (*wxThePenList->FindOrCreatePen (col, 1, wxPENSTYLE_SOLID));
+#else
+ gc->SetPen (*wxThePenList->FindOrCreatePen (col, 1, wxSOLID));
+#endif
gc->StrokePath (p);
}
}
grid->AddSpacer (0);
for (int i = 0; i < MAX_AUDIO_CHANNELS; ++i) {
- add_label_to_sizer (grid, _audio_panel, audio_channel_name (i));
+ add_label_to_sizer (grid, _audio_panel, std_to_wx (audio_channel_name (i)));
_external_audio[i] = new wxFilePickerCtrl (_audio_panel, wxID_ANY, wxT (""), _("Select Audio File"), wxT ("*.wav"));
grid->Add (_external_audio[i], 1, wxEXPAND);
}