13
0

Reverse the order of vertical tabs in the port matrix

when they are on the right hand side, for reasons
explained in the comment.


git-svn-id: svn://localhost/ardour2/branches/3.0@10366 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-10-31 22:44:07 +00:00
parent 44bfe88366
commit b077f64f62

View File

@ -765,7 +765,15 @@ PortMatrix::setup_notebooks ()
Label* label = manage (new Label ((*i)->name)); Label* label = manage (new Label ((*i)->name));
label->set_angle (_arrangement == LEFT_TO_BOTTOM ? 90 : -90); label->set_angle (_arrangement == LEFT_TO_BOTTOM ? 90 : -90);
label->show (); label->show ();
if (_arrangement == LEFT_TO_BOTTOM) {
_vnotebook.prepend_page (*dummy, *label); _vnotebook.prepend_page (*dummy, *label);
} else {
/* Reverse the order of vertical tabs when they are on the right hand side
so that from top to bottom it is the same order as that from left to right
for the top tabs.
*/
_vnotebook.append_page (*dummy, *label);
}
} }
for (PortGroupList::List::const_iterator i = _ports[_column_index].begin(); i != _ports[_column_index].end(); ++i) { for (PortGroupList::List::const_iterator i = _ports[_column_index].begin(); i != _ports[_column_index].end(); ++i) {