X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fediting.h;h=b25b935ee03fbe3ac11d1a4dce3340728d622c63;hb=ce6c41c060c700489a9ac9fc5080bf2920c17ae2;hp=31da83d984eb5e69f58431ad0f2b846c60ee88d1;hpb=517d411bb013d27f0df188584bbfa684438cc544;p=ardour.git diff --git a/gtk2_ardour/editing.h b/gtk2_ardour/editing.h index 31da83d984..b25b935ee0 100644 --- a/gtk2_ardour/editing.h +++ b/gtk2_ardour/editing.h @@ -13,6 +13,7 @@ #define MOUSEMODE(a) /*empty*/ #define ZOOMFOCUS(a) /*empty*/ #define DISPLAYCONTROL(a) /*empty*/ +#define IMPORTMODE(a) /*empty*/ namespace Editing { @@ -124,6 +125,24 @@ DisplayControl str2displaycontrol (const std::string &); #undef DISPLAYCONTROL #define DISPLAYCONTROL(a) /*empty*/ +// IMPORTMODE +#undef IMPORTMODE +#define IMPORTMODE(a) a, +enum ImportMode { + #include "editing_syms.h" +}; + +#undef IMPORTMODE +#define IMPORTMODE(s) #s, +static const char *importmodestrs[] = { + #include "editing_syms.h" +}; +inline const char* enum2str(ImportMode m) {return importmodestrs[m];} +ImportMode str2importmode (const std::string &); + +#undef IMPORTMODE +#define IMPORTMODE(a) /*empty*/ + ///////////////////// // These don't need their state saved. yet... enum CutCopyOp {