diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-10 14:27:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-10 14:27:44 +0000 |
commit | 5ace191bff634c0b09eca5e69065afcb7d0cb183 (patch) | |
tree | 26c7a337e87c2f3e419923016342b1b1b06dbcd6 /libs/surfaces/mackie/controls.cc | |
parent | ac7ade93bda207d60a5276f8fea5a1f01567095b (diff) |
drastic, fundamental redesign of MCP code
git-svn-id: svn://localhost/ardour2/branches/3.0@11861 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/controls.cc')
-rw-r--r-- | libs/surfaces/mackie/controls.cc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libs/surfaces/mackie/controls.cc b/libs/surfaces/mackie/controls.cc index 7e0a98a007..745da21969 100644 --- a/libs/surfaces/mackie/controls.cc +++ b/libs/surfaces/mackie/controls.cc @@ -43,9 +43,8 @@ void Group::add (Control& control) _controls.push_back (&control); } -Control::Control (int id, int ordinal, std::string name, Group & group) +Control::Control (int id, std::string name, Group & group) : _id (id) - , _ordinal (ordinal) , _name (name) , _group (group) , _in_use (false) @@ -82,8 +81,6 @@ ostream & Mackie::operator << (ostream & os, const Mackie::Control & control) os << ", "; os << "raw_id: " << "0x" << setw(2) << setfill('0') << hex << control.raw_id() << setfill(' '); os << ", "; - os << "ordinal: " << dec << control.ordinal(); - os << ", "; os << "group: " << control.group().name(); os << " }"; @@ -91,9 +88,9 @@ ostream & Mackie::operator << (ostream & os, const Mackie::Control & control) } Control* -Pot::factory (Surface& surface, int id, int ordinal, const char* name, Group& group) +Pot::factory (Surface& surface, int id, const char* name, Group& group) { - Pot* p = new Pot (id, ordinal, name, group); + Pot* p = new Pot (id, name, group); surface.pots[id] = p; surface.controls.push_back (p); group.add (*p); @@ -101,9 +98,9 @@ Pot::factory (Surface& surface, int id, int ordinal, const char* name, Group& gr } Control* -Led::factory (Surface& surface, int id, int ordinal, const char* name, Group& group) +Led::factory (Surface& surface, int id, const char* name, Group& group) { - Led* l = new Led (id, ordinal, name, group); + Led* l = new Led (id, name, group); surface.leds[id] = l; surface.controls.push_back (l); group.add (*l); @@ -111,9 +108,9 @@ Led::factory (Surface& surface, int id, int ordinal, const char* name, Group& gr } Control* -Jog::factory (Surface& surface, int id, int ordinal, const char* name, Group& group) +Jog::factory (Surface& surface, int id, const char* name, Group& group) { - Jog* j = new Jog (id, ordinal, name, group); + Jog* j = new Jog (id, name, group); surface.controls.push_back (j); surface.controls_by_name["jog"] = j; group.add (*j); |