From 971c02f3707c4872a2da9a3b946b6508290c5ab4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 Oct 2007 23:09:48 +0000 Subject: Added shared abstract interface for ports. Moved DataType to shared. Switch data type URIs to match LV2 type semantics (e.g. separate audio/control types). git-svn-id: http://svn.drobilla.net/lad/ingen@840 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/Configuration.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/libs/gui/Configuration.cpp') diff --git a/src/libs/gui/Configuration.cpp b/src/libs/gui/Configuration.cpp index ffef8137..f4c00545 100644 --- a/src/libs/gui/Configuration.cpp +++ b/src/libs/gui/Configuration.cpp @@ -83,21 +83,21 @@ Configuration::apply_settings() uint32_t -Configuration::get_port_color(const PortModel* pi) +Configuration::get_port_color(const PortModel* p) { - assert(pi != NULL); - - if (pi->is_control()) { + assert(p != NULL); + + if (p->is_control()) { return _control_port_color; - } else if (pi->is_audio()) { + } else if (p->is_audio()) { return _audio_port_color; - } else if (pi->is_midi()) { + } else if (p->is_midi()) { return _midi_port_color; - } else if (pi->is_osc()) { + } else if (p->is_osc()) { return _osc_port_color; } - cerr << "[Configuration] Unknown port type " << pi->type() << ", port will appear bright red." + cerr << "[Configuration] Unknown port type " << p->type() << ", port will appear bright red." << endl; return 0xFF0000B0; -- cgit v1.2.1