7 // This involves some cpp magic. --taybin
9 #define SNAPTYPE(a) /*empty*/
10 #define SNAPMODE(a) /*empty*/
11 #define REGIONLISTSORTTYPE(a) /*empty*/
12 #define MOUSEMODE(a) /*empty*/
13 #define ZOOMFOCUS(a) /*empty*/
14 #define DISPLAYCONTROL(a) /*empty*/
20 #define SNAPTYPE(s) if (!strcmp(type, #s)) {return s;}
22 str2snaptype (string str) {
23 const char* type = str.c_str();
24 #include "editing_syms.h"
28 #define SNAPTYPE(a) /*empty*/
32 #define SNAPMODE(s) if (!strcmp(type, #s)) {return s;}
34 str2snapmode (string str) {
35 const char* type = str.c_str();
36 #include "editing_syms.h"
40 #define SNAPMODE(a) /*empty*/
43 #undef REGIONLISTSORTTYPE
44 #define REGIONLISTSORTTYPE(s) if (!strcmp(type, #s)) {return s;}
46 str2regionlistsorttype (string str) {
47 const char* type = str.c_str();
48 #include "editing_syms.h"
51 #undef REGIONLISTSORTTYPE
52 #define REGIONLISTSORTTYPE(a) /*empty*/
56 #define MOUSEMODE(s) if (!strcmp(type, #s)) {return s;}
58 str2mousemode (string str) {
59 const char* type = str.c_str();
60 #include "editing_syms.h"
64 #define MOUSEMODE(a) /*empty*/
68 #define ZOOMFOCUS(s) if (!strcmp(type, #s)) {return s;}
70 str2zoomfocus (string str) {
71 const char* type = str.c_str();
72 #include "editing_syms.h"
73 return ZoomFocusPlayhead;
76 #define ZOOMFOCUS(a) /*empty*/
80 #define DISPLAYCONTROL(s) if (!strcmp(type, #s)) {return s;}
82 str2displaycontrol (string str) {
83 const char* type = str.c_str();
84 #include "editing_syms.h"
85 return FollowPlayhead;
88 #define DISPLAYCONTROL(a) /*empty*/
92 #define COLORID(s) if (!strcmp(type, #s)) {return s;}
94 str2color_id (string str) {
95 const char* type = str.c_str();
96 #include "editing_syms.h"
97 return cFrameHandleEndOutline;
100 #define COLORID(a) /*empty*/
104 } // namespace Editing