diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-22 17:03:00 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-03-22 17:03:00 +0000 |
commit | 3aa346b253d515c3d0715ec5e0fa8b6ad477c4e5 (patch) | |
tree | a41d4380ad270324a2d05cbbab0d1e57dce2bdfe /gtk2_ardour/editing.h | |
parent | 004a49b0c7051a4d0f8972b0aff0ef8fa9cab03d (diff) |
significant changes in code to handle import/embedding - much cleaner and less code, plus the import progress bar now works; unify response handling for Gtkmm2ext::Choice
git-svn-id: svn://localhost/trunk/ardour2@415 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editing.h')
-rw-r--r-- | gtk2_ardour/editing.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 { |