summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editing.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-08 19:13:36 +0000
committerDavid Robillard <d@drobilla.net>2007-08-08 19:13:36 +0000
commit430bc18ba29ca4cb0d60fc9da53c88661b690920 (patch)
treed1a005debbf0e05bd0d89c73f9d92c2efffd9601 /gtk2_ardour/editing.cc
parent7caaa6a0e993489e7b968abc6aa7eb86745173a8 (diff)
First appearance of MIDI edit tool bar. Toggles when delete held, but otherwise still useless, pending some UI figuring out...
git-svn-id: svn://localhost/ardour2/trunk@2275 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editing.cc')
-rw-r--r--gtk2_ardour/editing.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk2_ardour/editing.cc b/gtk2_ardour/editing.cc
index c9efa1feb2..963b83647c 100644
--- a/gtk2_ardour/editing.cc
+++ b/gtk2_ardour/editing.cc
@@ -31,6 +31,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 +114,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;}