- int const c = _grid->GetNumberCols ();
-
- _grid->SetColLabelValue (0, _("Content"));
-
-#if MAX_DCP_AUDIO_CHANNELS != 12
-#warning AudioMappingView::set_column_labels() is expecting the wrong MAX_DCP_AUDIO_CHANNELS
-#endif
-
- if (c > 0) {
- _grid->SetColLabelValue (1, _("L"));
- }
-
- if (c > 1) {
- _grid->SetColLabelValue (2, _("R"));
- }
-
- if (c > 2) {
- _grid->SetColLabelValue (3, _("C"));
- }
-
- if (c > 3) {
- _grid->SetColLabelValue (4, _("Lfe"));
- }
-
- if (c > 4) {
- _grid->SetColLabelValue (5, _("Ls"));
- }
-
- if (c > 5) {
- _grid->SetColLabelValue (6, _("Rs"));
- }
-
- if (c > 6) {
- _grid->SetColLabelValue (7, _("HI"));
- }
-
- if (c > 7) {
- _grid->SetColLabelValue (8, _("VI"));
+ vector<string> row_names;
+ for (int i = 0; i < _grid->GetNumberRows (); ++i) {
+ row_names.push_back (wx_to_std (_grid->GetCellValue (i, 0)));