summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/button.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2015-06-04 15:02:51 -0700
committerLen Ovens <len@ovenwerks.net>2015-06-04 15:02:51 -0700
commit71feea97a0894c07d973713f3c23634ddef2f56d (patch)
treec3cad5b90c5e7d710abdc818317d1bf6033c1f2e /libs/surfaces/mackie/button.cc
parentf8c4c0b5b82e1c060095bb4079e049c9337975ea (diff)
Clean up mackie surface profile editor from things that don't work or match the mackie hardware (fixes #6342)
Diffstat (limited to 'libs/surfaces/mackie/button.cc')
-rw-r--r--libs/surfaces/mackie/button.cc174
1 files changed, 64 insertions, 110 deletions
diff --git a/libs/surfaces/mackie/button.cc b/libs/surfaces/mackie/button.cc
index c4f68ebda2..c9ae1f5d71 100644
--- a/libs/surfaces/mackie/button.cc
+++ b/libs/surfaces/mackie/button.cc
@@ -40,18 +40,18 @@ Button::factory (Surface& surface, Button::ID bid, int id, const std::string& na
int
Button::name_to_id (const std::string& name)
{
- if (!g_ascii_strcasecmp (name.c_str(), "IO")) { return IO; }
- if (!g_ascii_strcasecmp (name.c_str(), "Sends")) { return Sends; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Track")) { return Track; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Send")) { return Send; }
if (!g_ascii_strcasecmp (name.c_str(), "Pan")) { return Pan; }
if (!g_ascii_strcasecmp (name.c_str(), "Plugin")) { return Plugin; }
if (!g_ascii_strcasecmp (name.c_str(), "Eq")) { return Eq; }
if (!g_ascii_strcasecmp (name.c_str(), "Dyn")) { return Dyn; }
- if (!g_ascii_strcasecmp (name.c_str(), "Left")) { return Left; }
- if (!g_ascii_strcasecmp (name.c_str(), "Right")) { return Right; }
- if (!g_ascii_strcasecmp (name.c_str(), "ChannelLeft")) { return ChannelLeft; }
- if (!g_ascii_strcasecmp (name.c_str(), "ChannelRight")) { return ChannelRight; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Bank Left")) { return Left; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Bank Right")) { return Right; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Channel Left")) { return ChannelLeft; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Channel Right")) { return ChannelRight; }
if (!g_ascii_strcasecmp (name.c_str(), "Flip")) { return Flip; }
- if (!g_ascii_strcasecmp (name.c_str(), "Edit")) { return Edit; }
+ if (!g_ascii_strcasecmp (name.c_str(), "View")) { return View; }
if (!g_ascii_strcasecmp (name.c_str(), "Name/Value")) { return NameValue; }
if (!g_ascii_strcasecmp (name.c_str(), "Timecode/Beats")) { return TimecodeBeats; }
if (!g_ascii_strcasecmp (name.c_str(), "F1")) { return F1; }
@@ -62,84 +62,61 @@ Button::name_to_id (const std::string& name)
if (!g_ascii_strcasecmp (name.c_str(), "F6")) { return F6; }
if (!g_ascii_strcasecmp (name.c_str(), "F7")) { return F7; }
if (!g_ascii_strcasecmp (name.c_str(), "F8")) { return F8; }
- if (!g_ascii_strcasecmp (name.c_str(), "F9")) { return F9; }
- if (!g_ascii_strcasecmp (name.c_str(), "F10")) { return F10; }
- if (!g_ascii_strcasecmp (name.c_str(), "F11")) { return F11; }
- if (!g_ascii_strcasecmp (name.c_str(), "F12")) { return F12; }
- if (!g_ascii_strcasecmp (name.c_str(), "F13")) { return F13; }
- if (!g_ascii_strcasecmp (name.c_str(), "F14")) { return F14; }
- if (!g_ascii_strcasecmp (name.c_str(), "F15")) { return F15; }
- if (!g_ascii_strcasecmp (name.c_str(), "F16")) { return F16; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Midi Tracks")) { return MidiTracks; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Inputs")) { return Inputs; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Audio Tracks")) { return AudioTracks; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Audio Instruments")) { return AudioInstruments; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Aux")) { return Aux; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Busses")) { return Busses; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Outputs")) { return Outputs; }
+ if (!g_ascii_strcasecmp (name.c_str(), "User")) { return User; }
if (!g_ascii_strcasecmp (name.c_str(), "Shift")) { return Shift; }
if (!g_ascii_strcasecmp (name.c_str(), "Option")) { return Option; }
if (!g_ascii_strcasecmp (name.c_str(), "Ctrl")) { return Ctrl; }
if (!g_ascii_strcasecmp (name.c_str(), "CmdAlt")) { return CmdAlt; }
- if (!g_ascii_strcasecmp (name.c_str(), "On")) { return On; }
- if (!g_ascii_strcasecmp (name.c_str(), "RecReady")) { return RecReady; }
- if (!g_ascii_strcasecmp (name.c_str(), "Undo")) { return Undo; }
- if (!g_ascii_strcasecmp (name.c_str(), "Save")) { return Save; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Read")) { return Read; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Write")) { return Write; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Trim")) { return Trim; }
if (!g_ascii_strcasecmp (name.c_str(), "Touch")) { return Touch; }
- if (!g_ascii_strcasecmp (name.c_str(), "Redo")) { return Redo; }
- if (!g_ascii_strcasecmp (name.c_str(), "Marker")) { return Marker; }
- if (!g_ascii_strcasecmp (name.c_str(), "Enter")) { return Enter; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Latch")) { return Latch; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Group")) { return Grp; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Save")) { return Save; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Undo")) { return Undo; }
if (!g_ascii_strcasecmp (name.c_str(), "Cancel")) { return Cancel; }
- if (!g_ascii_strcasecmp (name.c_str(), "Mixer")) { return Mixer; }
- if (!g_ascii_strcasecmp (name.c_str(), "FrmLeft")) { return FrmLeft; }
- if (!g_ascii_strcasecmp (name.c_str(), "FrmRight")) { return FrmRight; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Enter")) { return Enter; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Marker")) { return Marker; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Nudge")) { return Nudge; }
if (!g_ascii_strcasecmp (name.c_str(), "Loop")) { return Loop; }
- if (!g_ascii_strcasecmp (name.c_str(), "PunchIn")) { return PunchIn; }
- if (!g_ascii_strcasecmp (name.c_str(), "PunchOut")) { return PunchOut; }
- if (!g_ascii_strcasecmp (name.c_str(), "Home")) { return Home; }
- if (!g_ascii_strcasecmp (name.c_str(), "End")) { return End; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Drop")) { return Drop; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Replace")) { return Replace; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Click")) { return Click; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Clear Solo")) { return ClearSolo; }
if (!g_ascii_strcasecmp (name.c_str(), "Rewind")) { return Rewind; }
if (!g_ascii_strcasecmp (name.c_str(), "Ffwd")) { return Ffwd; }
if (!g_ascii_strcasecmp (name.c_str(), "Stop")) { return Stop; }
if (!g_ascii_strcasecmp (name.c_str(), "Play")) { return Play; }
if (!g_ascii_strcasecmp (name.c_str(), "Record")) { return Record; }
- if (!g_ascii_strcasecmp (name.c_str(), "CursorUp")) { return CursorUp; }
- if (!g_ascii_strcasecmp (name.c_str(), "CursorDown")) { return CursorDown; }
- if (!g_ascii_strcasecmp (name.c_str(), "CursorLeft")) { return CursorLeft; }
- if (!g_ascii_strcasecmp (name.c_str(), "CursorRight")) { return CursorRight; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Cursor Up")) { return CursorUp; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Cursor Down")) { return CursorDown; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Cursor Left")) { return CursorLeft; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Cursor Right")) { return CursorRight; }
if (!g_ascii_strcasecmp (name.c_str(), "Zoom")) { return Zoom; }
if (!g_ascii_strcasecmp (name.c_str(), "Scrub")) { return Scrub; }
- if (!g_ascii_strcasecmp (name.c_str(), "UserA")) { return UserA; }
- if (!g_ascii_strcasecmp (name.c_str(), "UserB")) { return UserB; }
- if (!g_ascii_strcasecmp (name.c_str(), "Snapshot")) { return Snapshot; }
- if (!g_ascii_strcasecmp (name.c_str(), "Read")) { return Read; }
- if (!g_ascii_strcasecmp (name.c_str(), "Write")) { return Write; }
- if (!g_ascii_strcasecmp (name.c_str(), "FdrGroup")) { return FdrGroup; }
- if (!g_ascii_strcasecmp (name.c_str(), "ClearSolo")) { return ClearSolo; }
- if (!g_ascii_strcasecmp (name.c_str(), "Track")) { return Track; }
- if (!g_ascii_strcasecmp (name.c_str(), "Send")) { return Send; }
- if (!g_ascii_strcasecmp (name.c_str(), "MidiTracks")) { return MidiTracks; }
- if (!g_ascii_strcasecmp (name.c_str(), "Inputs")) { return Inputs; }
- if (!g_ascii_strcasecmp (name.c_str(), "AudioTracks")) { return AudioTracks; }
- if (!g_ascii_strcasecmp (name.c_str(), "AudioInstruments")) { return AudioInstruments; }
- if (!g_ascii_strcasecmp (name.c_str(), "Aux")) { return Aux; }
- if (!g_ascii_strcasecmp (name.c_str(), "Busses")) { return Busses; }
- if (!g_ascii_strcasecmp (name.c_str(), "Outputs")) { return Outputs; }
- if (!g_ascii_strcasecmp (name.c_str(), "User")) { return User; }
- if (!g_ascii_strcasecmp (name.c_str(), "Trim")) { return Trim; }
- if (!g_ascii_strcasecmp (name.c_str(), "Latch")) { return Latch; }
- if (!g_ascii_strcasecmp (name.c_str(), "Grp")) { return Grp; }
- if (!g_ascii_strcasecmp (name.c_str(), "Nudge")) { return Nudge; }
- if (!g_ascii_strcasecmp (name.c_str(), "Drop")) { return Drop; }
- if (!g_ascii_strcasecmp (name.c_str(), "Replace")) { return Replace; }
- if (!g_ascii_strcasecmp (name.c_str(), "Click")) { return Click; }
- if (!g_ascii_strcasecmp (name.c_str(), "View")) { return View; }
+ if (!g_ascii_strcasecmp (name.c_str(), "User A")) { return UserA; }
+ if (!g_ascii_strcasecmp (name.c_str(), "User B")) { return UserB; }
/* Strip buttons */
- if (!g_ascii_strcasecmp (name.c_str(), "RecEnable")) { return RecEnable; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Record Enable")) { return RecEnable; }
if (!g_ascii_strcasecmp (name.c_str(), "Solo")) { return Solo; }
if (!g_ascii_strcasecmp (name.c_str(), "Mute")) { return Mute; }
if (!g_ascii_strcasecmp (name.c_str(), "Select")) { return Select; }
- if (!g_ascii_strcasecmp (name.c_str(), "VSelect")) { return VSelect; }
- if (!g_ascii_strcasecmp (name.c_str(), "FaderTouch")) { return FaderTouch; }
+ if (!g_ascii_strcasecmp (name.c_str(), "V-Pot")) { return VSelect; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Fader Touch")) { return FaderTouch; }
/* Master Fader button */
- if (!g_ascii_strcasecmp (name.c_str(), "MasterFaderTouch")) { return MasterFaderTouch; }
+ if (!g_ascii_strcasecmp (name.c_str(), "Master Fader Touch")) { return MasterFaderTouch; }
return -1;
}
@@ -147,8 +124,8 @@ Button::name_to_id (const std::string& name)
std::string
Button::id_to_name (Button::ID id)
{
- if (id == IO) { return "IO"; }
- if (id == Sends) { return "Sends"; }
+ if (id == Track) { return "Track"; }
+ if (id == Send) { return "Send"; }
if (id == Pan) { return "Pan"; }
if (id == Plugin) { return "Plugin"; }
if (id == Eq) { return "Eq"; }
@@ -158,7 +135,7 @@ Button::id_to_name (Button::ID id)
if (id == ChannelLeft) { return "Channel Left"; }
if (id == ChannelRight) { return "Channel Right"; }
if (id == Flip) { return "Flip"; }
- if (id == Edit) { return "Edit"; }
+ if (id == View) { return "View"; }
if (id == NameValue) { return "Name/Value"; }
if (id == TimecodeBeats) { return "Timecode/Beats"; }
if (id == F1) { return "F1"; }
@@ -169,35 +146,35 @@ Button::id_to_name (Button::ID id)
if (id == F6) { return "F6"; }
if (id == F7) { return "F7"; }
if (id == F8) { return "F8"; }
- if (id == F9) { return "F9"; }
- if (id == F10) { return "F10"; }
- if (id == F11) { return "F11"; }
- if (id == F12) { return "F12"; }
- if (id == F13) { return "F13"; }
- if (id == F14) { return "F14"; }
- if (id == F15) { return "F15"; }
- if (id == F16) { return "F16"; }
+ if (id == MidiTracks) { return "Midi Tracks"; }
+ if (id == Inputs) { return "Inputs"; }
+ if (id == AudioTracks) { return "Audio Tracks"; }
+ if (id == AudioInstruments) { return "Audio Instruments"; }
+ if (id == Aux) { return "Aux"; }
+ if (id == Busses) { return "Busses"; }
+ if (id == Outputs) { return "Outputs"; }
+ if (id == User) { return "User"; }
if (id == Shift) { return "Shift"; }
if (id == Option) { return "Option"; }
if (id == Ctrl) { return "Ctrl"; }
if (id == CmdAlt) { return "CmdAlt"; }
- if (id == On) { return "On"; }
- if (id == RecReady) { return "Record"; }
- if (id == Undo) { return "Undo"; }
- if (id == Save) { return "Save"; }
+ if (id == Read) { return "Read"; }
+ if (id == Write) { return "Write"; }
+ if (id == Trim) { return "Trim"; }
if (id == Touch) { return "Touch"; }
- if (id == Redo) { return "Redo"; }
- if (id == Marker) { return "Marker"; }
- if (id == Enter) { return "Enter"; }
+ if (id == Latch) { return "Latch"; }
+ if (id == Grp) { return "Group"; }
+ if (id == Save) { return "Save"; }
+ if (id == Undo) { return "Undo"; }
if (id == Cancel) { return "Cancel"; }
- if (id == Mixer) { return "Mixer"; }
- if (id == FrmLeft) { return "Frm Left"; }
- if (id == FrmRight) { return "Frm Right"; }
+ if (id == Enter) { return "Enter"; }
+ if (id == Marker) { return "Marker"; }
+ if (id == Nudge) { return "Nudge"; }
if (id == Loop) { return "Loop"; }
- if (id == PunchIn) { return "Punch In"; }
- if (id == PunchOut) { return "Punch Out"; }
- if (id == Home) { return "Home"; }
- if (id == End) { return "End"; }
+ if (id == Drop) { return "Drop"; }
+ if (id == Replace) { return "Replace"; }
+ if (id == Click) { return "Click"; }
+ if (id == ClearSolo) { return "Clear Solo"; }
if (id == Rewind) { return "Rewind"; }
if (id == Ffwd) { return "FFwd"; }
if (id == Stop) { return "Stop"; }
@@ -211,29 +188,6 @@ Button::id_to_name (Button::ID id)
if (id == Scrub) { return "Scrub"; }
if (id == UserA) { return "User A"; }
if (id == UserB) { return "User B"; }
- if (id == Snapshot) { return "Snapshot"; }
- if (id == Read) { return "Read"; }
- if (id == Write) { return "Write"; }
- if (id == FdrGroup) { return "Fader Group"; }
- if (id == ClearSolo) { return "Clear Solo"; }
- if (id == Track) { return "Track"; }
- if (id == Send) { return "Send"; }
- if (id == MidiTracks) { return "Midi Tracks"; }
- if (id == Inputs) { return "Inputs"; }
- if (id == AudioTracks) { return "Audio Tracks"; }
- if (id == AudioInstruments) { return "Audio Instruments"; }
- if (id == Aux) { return "Aux"; }
- if (id == Busses) { return "Busses"; }
- if (id == Outputs) { return "Outputs"; }
- if (id == User) { return "User"; }
- if (id == Trim) { return "Trim"; }
- if (id == Latch) { return "Latch"; }
- if (id == Grp) { return "Group"; }
- if (id == Nudge) { return "Nudge"; }
- if (id == Drop) { return "Drop"; }
- if (id == Replace) { return "Replace"; }
- if (id == Click) { return "Click"; }
- if (id == View) { return "View"; }
if (id == RecEnable) { return "Record Enable"; }
if (id == Solo) { return "Solo"; }