X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsurfaces%2Ftranzport%2Fbutton_events.cc;h=bac2a218e5b6cced04c03a2906f12c9e553abba9;hb=30b087ab3d28f1585987fa3f6ae006562ae192e3;hp=37c62a6ab7292ad2193132c7c9b1520d704dd2db;hpb=e878b365193ad9315e557a8245b767d8a0fe568d;p=ardour.git diff --git a/libs/surfaces/tranzport/button_events.cc b/libs/surfaces/tranzport/button_events.cc index 37c62a6ab7..bac2a218e5 100644 --- a/libs/surfaces/tranzport/button_events.cc +++ b/libs/surfaces/tranzport/button_events.cc @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Paul Davis + * Copyright (C) 2006 Paul Davis * Copyright (C) 2007 Michael Taht * * This program is free software; you can redistribute it and/or modify @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * + * * */ #include @@ -26,7 +26,7 @@ using namespace std; using namespace sigc; using namespace PBD; -#include "i18n.h" +#include "pbd/i18n.h" #include @@ -66,7 +66,7 @@ TranzportControlProtocol::button_event_trackleft_press (bool shifted) { prev_track (); // not really the right layer for this - if(display_mode == DisplayBigMeter) { + if(display_mode == DisplayBigMeter) { if (route_table[0] != 0) { notify(route_get_name (0).substr (0, 15).c_str()); } @@ -81,9 +81,9 @@ TranzportControlProtocol::button_event_trackleft_release (bool shifted) void TranzportControlProtocol::button_event_trackright_press (bool shifted) { - next_track (); + next_track (); // not really the right layer for this - if(display_mode == DisplayBigMeter) { + if(display_mode == DisplayBigMeter) { if (route_table[0] != 0) { notify(route_get_name (0).substr (0, 15).c_str()); } @@ -243,7 +243,7 @@ TranzportControlProtocol::button_event_prev_release (bool shifted) } // Note - add_marker should adhere to the snap to setting -// maybe session->audible_frame does that +// maybe session->audible_sample does that void TranzportControlProtocol::button_event_add_press (bool shifted) @@ -372,9 +372,9 @@ TranzportControlProtocol::button_event_footswitch_release (bool shifted) void button_event_mute (bool pressed, bool shifted) { static int was_pressed = 0; - if((!pressed && !was_pressed) || pressed) { + if((!pressed && !was_pressed) || pressed) { was_pressed = 1; - } + } was_pressed = 0; }