if (value > 0) {
/* Make sure we get a little bit of the marker if there is any gain */
height = max (3, height);
if (value > 0) {
/* Make sure we get a little bit of the marker if there is any gain */
height = max (3, height);
if (_map.get (ev.GetRow(), d) > 0) {
_map.set (ev.GetRow(), d, 0);
} else {
if (_map.get (ev.GetRow(), d) > 0) {
_map.set (ev.GetRow(), d, 0);
} else {
AudioGainDialog* dialog = new AudioGainDialog (this, _menu_row, _menu_column - 1, _map.get (_menu_row, d));
if (dialog->ShowModal () == wxID_OK) {
_map.set (_menu_row, d, dialog->value ());
map_values_changed ();
}
AudioGainDialog* dialog = new AudioGainDialog (this, _menu_row, _menu_column - 1, _map.get (_menu_row, d));
if (dialog->ShowModal () == wxID_OK) {
_map.set (_menu_row, d, dialog->value ());
map_values_changed ();
}
for (size_t i = 0; i < names.size(); ++i) {
_grid->SetColLabelValue (i + 1, std_to_wx (names[i]));
for (size_t i = 0; i < names.size(); ++i) {
_grid->SetColLabelValue (i + 1, std_to_wx (names[i]));
if (_grid->GetNumberRows ()) {
_grid->DeleteRows (0, _grid->GetNumberRows ());
}
if (_grid->GetNumberRows ()) {
_grid->DeleteRows (0, _grid->GetNumberRows ());
}
for (int j = 1; j < _grid->GetNumberCols(); ++j) {
_grid->SetCellValue (i, j, std_to_wx (raw_convert<string> (_map.get (i, j - 1))));
}
for (int j = 1; j < _grid->GetNumberCols(); ++j) {
_grid->SetCellValue (i, j, std_to_wx (raw_convert<string> (_map.get (i, j - 1))));
}
float const dB = 20 * log10 (gain);
s = wxString::Format (_("Audio will be passed from content channel %d to DCP channel %d with gain %.1fdB."), row + 1, column, dB);
}
float const dB = 20 * log10 (gain);
s = wxString::Format (_("Audio will be passed from content channel %d to DCP channel %d with gain %.1fdB."), row + 1, column, dB);
}
_grid->GetGridWindow()->SetToolTip (s + " " + _("Right click to change gain."));
_last_tooltip_row = row;
_last_tooltip_column = column;
_grid->GetGridWindow()->SetToolTip (s + " " + _("Right click to change gain."));
_last_tooltip_row = row;
_last_tooltip_column = column;