X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fediting.cc;h=1e58fcddbc16bb44cc32ef52a3180c3e077fd5f5;hb=9c89a93e4f96826bec6ed519f8f435e4fc73bfa5;hp=c9efa1feb235e86c091ba07f973925ce7eabd0ad;hpb=2e8f80e37a7d20deb3f138cd72c26f8c6de9d1ab;p=ardour.git diff --git a/gtk2_ardour/editing.cc b/gtk2_ardour/editing.cc index c9efa1feb2..1e58fcddbc 100644 --- a/gtk2_ardour/editing.cc +++ b/gtk2_ardour/editing.cc @@ -17,7 +17,8 @@ */ -#include +#include +#include #include "editing.h" @@ -31,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*/ @@ -113,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;}