- col = _display.get_column (0);
- l = manage (new Label (_("Regions")));
- ARDOUR_UI::instance()->set_tip (*l, _("Region name, with number of channels in []'s"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (1);
- l = manage (new Label(_("Position")));
- ARDOUR_UI::instance()->set_tip (*l, _("Length of the region"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (2);
- l = manage (new Label(_("End")));
- ARDOUR_UI::instance()->set_tip (*l, _("Length of the region"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (3);
- l = manage (new Label(_("End")));
- ARDOUR_UI::instance()->set_tip (*l, _("Length of the region"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (4);
- l = manage (new Label(_("Sync")));
- ARDOUR_UI::instance()->set_tip (*l, _("Position of region sync point, relative to start of the region"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (5);
- l = manage (new Label(_("Sync")));
- ARDOUR_UI::instance()->set_tip (*l, _("Region fade-in enabled?"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (6);
- l = manage (new Label(_("Fade In")));
- ARDOUR_UI::instance()->set_tip (*l, _("Region fade-out enabled?"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (7);
- l = manage (new Label(_("L")));
- ARDOUR_UI::instance()->set_tip (*l, _("Region position locked?"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (8);
- l = manage (new Label(_("G")));
- ARDOUR_UI::instance()->set_tip (*l, _("Region position glued to Bars|Beats time?"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (9);
- l = manage (new Label(_("M")));
- ARDOUR_UI::instance()->set_tip (*l, _("Region muted?"));
- col->set_widget (*l);
- l->show ();
- col = _display.get_column (10);
- l = manage (new Label(_("O")));
- ARDOUR_UI::instance()->set_tip (*l, _("Region opaque (blocks regions below it from being heard)?"));
- col->set_widget (*l);
- l->show ();
-
- // _display.append_column (_("Used"), _columns.used);
- // _display.append_column (_("Path"), _columns.path);
+ ColumnInfo ci[] = {
+ { 0, _("Region"), _("Region name, with number of channels in []'s") },
+ { 1, _("Position"), _("Position of start of region") },
+ { 2, _("End"), _("Position of end of region") },
+ { 3, _("Length"), _("Length of the region") },
+ { 4, _("Sync"), _("Position of region sync point, relative to start of the region") },
+ { 5, _("Fade In"), _("Length of region fade-in (units: secondary clock), () if disabled") },
+ { 6, _("Fade Out"), _("Length of region fade-out (units: secondary clock), () if dsisabled") },
+ { 7, _("L"), _("Region position locked?") },
+ { 8, _("G"), _("Region position glued to Bars|Beats time?") },
+ { 9, _("M"), _("Region muted?") },
+ { 10, _("O"), _("Region opaque (blocks regions below it from being heard)?") },
+ { -1, 0, 0 }
+ };
+
+ for (int i = 0; ci[i].index >= 0; ++i) {
+ col = _display.get_column (ci[i].index);
+ l = manage (new Label (ci[i].label));
+ ARDOUR_UI::instance()->set_tip (*l, ci[i].tooltip);
+ col->set_widget (*l);
+ l->show ();
+
+ if (ci[i].index > 6) {
+ col->set_expand (false);
+ col->set_alignment (ALIGN_CENTER);
+ }
+ }
+