- buttons.insert (std::make_pair (Mute, ButtonInfo (*this, _("Mute"), Mute, 21)));
- buttons.insert (std::make_pair (Solo, ButtonInfo (*this, _("Solo"), Solo, 22)));
- buttons.insert (std::make_pair (Rec, ButtonInfo (*this, _("Rec"), Rec, 23)));
- buttons.insert (std::make_pair (Left, ButtonInfo (*this, _("Left"), Left, 20)));
- buttons.insert (std::make_pair (Bank, ButtonInfo (*this, _("Bank"), Bank, 19)));
- buttons.insert (std::make_pair (Right, ButtonInfo (*this, _("Right"), Right, 18)));
- buttons.insert (std::make_pair (Output, ButtonInfo (*this, _("Output"), Output, 17)));
- buttons.insert (std::make_pair (FP_Read, ButtonInfo (*this, _("Read"), FP_Read, 13)));
- buttons.insert (std::make_pair (FP_Write, ButtonInfo (*this, _("Write"), FP_Write, 14)));
- buttons.insert (std::make_pair (FP_Touch, ButtonInfo (*this, _("Touch"), FP_Touch, 15)));
- buttons.insert (std::make_pair (FP_Off, ButtonInfo (*this, _("Off"), FP_Off, 16)));
- buttons.insert (std::make_pair (Mix, ButtonInfo (*this, _("Mix"), Mix, 12)));
- buttons.insert (std::make_pair (Proj, ButtonInfo (*this, _("Proj"), Proj, 11)));
- buttons.insert (std::make_pair (Trns, ButtonInfo (*this, _("Trns"), Trns, 10)));
- buttons.insert (std::make_pair (Undo, ButtonInfo (*this, _("Undo"), Undo, 9)));
- buttons.insert (std::make_pair (Shift, ButtonInfo (*this, _("Shift"), Shift, 5)));
- buttons.insert (std::make_pair (Punch, ButtonInfo (*this, _("Punch"), Punch, 6)));
- buttons.insert (std::make_pair (User, ButtonInfo (*this, _("User"), User, 7)));
- buttons.insert (std::make_pair (Loop, ButtonInfo (*this, _("Loop"), Loop, 8)));
- buttons.insert (std::make_pair (Rewind, ButtonInfo (*this, _("Rewind"), Rewind, 4)));
- buttons.insert (std::make_pair (Ffwd, ButtonInfo (*this, _("Ffwd"), Ffwd, 3)));
- buttons.insert (std::make_pair (Stop, ButtonInfo (*this, _("Stop"), Stop, 2)));
- buttons.insert (std::make_pair (Play, ButtonInfo (*this, _("Play"), Play, 1)));
- buttons.insert (std::make_pair (RecEnable, ButtonInfo (*this, _("RecEnable"), RecEnable, 0)));
- buttons.insert (std::make_pair (FaderTouch, ButtonInfo (*this, _("Fader (touch)"), FaderTouch, -1)));
-
- button_info (Mix).set_action ( string("Common/toggle-editor-mixer"), true);
- button_info (Proj).set_action ( string("Common/toggle-meterbridge"), true);
- button_info (Trns).set_action ( string("Window/toggle-locations"), true);
-
- button_info (Left).set_action ( boost::bind (&FaderPort::left, this), true);
- button_info (Right).set_action ( boost::bind (&FaderPort::right, this), true);
-
- button_info (Undo).set_action (boost::bind (&FaderPort::undo, this), true);
- button_info (Undo).set_action (boost::bind (&FaderPort::redo, this), true, ShiftDown);
- button_info (Undo).set_flash (true);
-
- button_info (FP_Read).set_action (boost::bind (&FaderPort::read, this), true);
- button_info (FP_Write).set_action (boost::bind (&FaderPort::write, this), true);
- button_info (FP_Touch).set_action (boost::bind (&FaderPort::touch, this), true);
- button_info (FP_Off).set_action (boost::bind (&FaderPort::off, this), true);
-
- button_info (Play).set_action (boost::bind (&BasicUI::transport_play, this, true), true);
- button_info (RecEnable).set_action (boost::bind (&BasicUI::rec_enable_toggle, this), true);
+ buttons.insert (std::make_pair (Mute, Button (*this, _("Mute"), Mute, 21)));
+ buttons.insert (std::make_pair (Solo, Button (*this, _("Solo"), Solo, 22)));
+ buttons.insert (std::make_pair (Rec, Button (*this, _("Rec"), Rec, 23)));
+ buttons.insert (std::make_pair (Left, Button (*this, _("Left"), Left, 20)));
+ buttons.insert (std::make_pair (Bank, Button (*this, _("Bank"), Bank, 19)));
+ buttons.insert (std::make_pair (Right, Button (*this, _("Right"), Right, 18)));
+ buttons.insert (std::make_pair (Output, Button (*this, _("Output"), Output, 17)));
+ buttons.insert (std::make_pair (FP_Read, Button (*this, _("Read"), FP_Read, 13)));
+ buttons.insert (std::make_pair (FP_Write, Button (*this, _("Write"), FP_Write, 14)));
+ buttons.insert (std::make_pair (FP_Touch, Button (*this, _("Touch"), FP_Touch, 15)));
+ buttons.insert (std::make_pair (FP_Off, Button (*this, _("Off"), FP_Off, 16)));
+ buttons.insert (std::make_pair (Mix, Button (*this, _("Mix"), Mix, 12)));
+ buttons.insert (std::make_pair (Proj, Button (*this, _("Proj"), Proj, 11)));
+ buttons.insert (std::make_pair (Trns, Button (*this, _("Trns"), Trns, 10)));
+ buttons.insert (std::make_pair (Undo, Button (*this, _("Undo"), Undo, 9)));
+ buttons.insert (std::make_pair (Shift, Button (*this, _("Shift"), Shift, 5)));
+ buttons.insert (std::make_pair (Punch, Button (*this, _("Punch"), Punch, 6)));
+ buttons.insert (std::make_pair (User, Button (*this, _("User"), User, 7)));
+ buttons.insert (std::make_pair (Loop, Button (*this, _("Loop"), Loop, 8)));
+ buttons.insert (std::make_pair (Rewind, Button (*this, _("Rewind"), Rewind, 4)));
+ buttons.insert (std::make_pair (Ffwd, Button (*this, _("Ffwd"), Ffwd, 3)));
+ buttons.insert (std::make_pair (Stop, Button (*this, _("Stop"), Stop, 2)));
+ buttons.insert (std::make_pair (Play, Button (*this, _("Play"), Play, 1)));
+ buttons.insert (std::make_pair (RecEnable, Button (*this, _("RecEnable"), RecEnable, 0)));
+ buttons.insert (std::make_pair (Footswitch, Button (*this, _("Footswitch"), Footswitch, -1)));
+ buttons.insert (std::make_pair (FaderTouch, Button (*this, _("Fader (touch)"), FaderTouch, -1)));
+
+ get_button (Shift).set_flash (true);
+ get_button (Mix).set_flash (true);
+ get_button (Proj).set_flash (true);
+ get_button (Trns).set_flash (true);
+ get_button (User).set_flash (true);
+
+ get_button (Left).set_action ( boost::bind (&FaderPort::left, this), true);
+ get_button (Right).set_action ( boost::bind (&FaderPort::right, this), true);
+
+ get_button (Undo).set_action (boost::bind (&FaderPort::undo, this), true);
+ get_button (Undo).set_action (boost::bind (&FaderPort::redo, this), true, ShiftDown);
+ get_button (Undo).set_flash (true);
+
+ get_button (FP_Read).set_action (boost::bind (&FaderPort::read, this), true);
+ get_button (FP_Read).set_action (boost::bind (&FaderPort::off, this), false, LongPress);
+ get_button (FP_Write).set_action (boost::bind (&FaderPort::write, this), true);
+ get_button (FP_Write).set_action (boost::bind (&FaderPort::off, this), false, LongPress);
+ get_button (FP_Touch).set_action (boost::bind (&FaderPort::touch, this), true);
+ get_button (FP_Touch).set_action (boost::bind (&FaderPort::off, this), false, LongPress);
+ get_button (FP_Off).set_action (boost::bind (&FaderPort::off, this), true);
+
+ get_button (Play).set_action (boost::bind (&BasicUI::transport_play, this, true), true);
+ get_button (RecEnable).set_action (boost::bind (&BasicUI::rec_enable_toggle, this), true);