Port port group type labels in-line with the tabs.

git-svn-id: svn://localhost/ardour2/branches/3.0@6118 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-11-18 14:04:59 +00:00
parent 73a0cd56f8
commit 51bdbf6925
2 changed files with 13 additions and 8 deletions

View File

@ -46,7 +46,7 @@ using namespace ARDOUR;
* @param type Port type that we are handling.
*/
PortMatrix::PortMatrix (Window* parent, Session& session, DataType type)
: Table (4, 4),
: Table (3, 3),
_session (session),
_parent (parent),
_type (type),
@ -61,13 +61,16 @@ PortMatrix::PortMatrix (Window* parent, Session& session, DataType type)
{
_body = new PortMatrixBody (this);
attach (*_body, 2, 3, 2, 3);
attach (_vscroll, 3, 4, 2, 3, SHRINK);
attach (_hscroll, 2, 3, 3, 4, FILL | EXPAND, SHRINK);
attach (_vlabel, 0, 1, 2, 3, SHRINK);
attach (_hlabel, 2, 3, 0, 1, FILL | EXPAND, SHRINK);
attach (_vnotebook, 1, 2, 2, 3, SHRINK);
attach (_hnotebook, 2, 3, 1, 2, FILL | EXPAND, SHRINK);
_vbox.pack_start (_vnotebook);
_vbox.pack_start (_vlabel);
_hbox.pack_start (_hnotebook);
_hbox.pack_start (_hlabel);
attach (*_body, 1, 2, 1, 2);
attach (_vscroll, 2, 3, 1, 2, SHRINK);
attach (_hscroll, 1, 2, 2, 3, FILL | EXPAND, SHRINK);
attach (_vbox, 0, 1, 1, 2, SHRINK);
attach (_hbox, 1, 2, 0, 1, FILL | EXPAND, SHRINK);
_vnotebook.signal_switch_page().connect (mem_fun (*this, &PortMatrix::v_page_selected));
_hnotebook.signal_switch_page().connect (mem_fun (*this, &PortMatrix::h_page_selected));

View File

@ -192,6 +192,8 @@ private:
Gtk::Notebook _hnotebook;
Gtk::Label _vlabel;
Gtk::Label _hlabel;
Gtk::VBox _vbox;
Gtk::HBox _hbox;
Gtk::Menu* _menu;
Arrangement _arrangement;
int _row_index;