X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fediting.cc;h=1e58fcddbc16bb44cc32ef52a3180c3e077fd5f5;hb=9c89a93e4f96826bec6ed519f8f435e4fc73bfa5;hp=34378a332d03cee5e43d2ec948b424a7e2c20e44;hpb=a0e85682664b612e555c5757cac3945acc2e8034;p=ardour.git diff --git a/gtk2_ardour/editing.cc b/gtk2_ardour/editing.cc index 34378a332d..1e58fcddbc 100644 --- a/gtk2_ardour/editing.cc +++ b/gtk2_ardour/editing.cc @@ -1,4 +1,24 @@ -#include +/* + Copyright (C) 2000-2007 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + 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 +#include #include "editing.h" @@ -12,6 +32,7 @@ using namespace std; #define SNAPMODE(a) /*empty*/ #define REGIONLISTSORTTYPE(a) /*empty*/ #define MOUSEMODE(a) /*empty*/ +#define MIDIEDITMODE(a) /*empty*/ #define ZOOMFOCUS(a) /*empty*/ #define DISPLAYCONTROL(a) /*empty*/ @@ -94,6 +115,25 @@ const char *mousemodestrs[] = { #undef MOUSEMODE #define MOUSEMODE(a) /*empty*/ +// MIDIEDITMODE +#undef MIDIEDITMODE +#define MIDIEDITMODE(s) if (!strcmp(type, #s)) {return s;} +MidiEditMode +str2midieditmode (const string & str) { + const char* type = str.c_str(); + #include "editing_syms.h" + return MidiEditSelect; +} + +#undef MIDIEDITMODE +#define MIDIEDITMODE(s) N_(#s), +const char *midieditmodestrs[] = { + #include "editing_syms.h" + 0 +}; +#undef MIDIEDITMODE +#define MIDIEDITMODE(a) /*empty*/ + // ZOOMFOCUS #undef ZOOMFOCUS #define ZOOMFOCUS(s) if (!strcmp(type, #s)) {return s;}