2005-09-25 14:42:24 -04:00
|
|
|
#ifndef __gtk_ardour_editing_h__
|
|
|
|
#define __gtk_ardour_editing_h__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
2005-12-16 17:30:49 -05:00
|
|
|
#include <ardour/types.h>
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
// This involves some cpp magic. --taybin
|
|
|
|
|
|
|
|
#define SNAPTYPE(a) /*empty*/
|
|
|
|
#define SNAPMODE(a) /*empty*/
|
|
|
|
#define REGIONLISTSORTTYPE(a) /*empty*/
|
|
|
|
#define MOUSEMODE(a) /*empty*/
|
|
|
|
#define ZOOMFOCUS(a) /*empty*/
|
|
|
|
#define DISPLAYCONTROL(a) /*empty*/
|
2006-03-22 12:03:00 -05:00
|
|
|
#define IMPORTMODE(a) /*empty*/
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
namespace Editing {
|
|
|
|
|
|
|
|
// SNAPTYPE
|
|
|
|
#undef SNAPTYPE
|
|
|
|
#define SNAPTYPE(a) a,
|
|
|
|
enum SnapType {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
extern const char *snaptypestrs[];
|
2005-09-25 14:42:24 -04:00
|
|
|
inline const char* enum2str(SnapType m) {return snaptypestrs[m];}
|
2005-12-22 07:23:54 -05:00
|
|
|
SnapType str2snaptype(const std::string &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#undef SNAPTYPE
|
|
|
|
#define SNAPTYPE(a) /*empty*/
|
|
|
|
|
|
|
|
// SNAPMODE
|
|
|
|
#undef SNAPMODE
|
|
|
|
#define SNAPMODE(a) a,
|
|
|
|
enum SnapMode {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
extern const char *snapmodestrs[];
|
2005-09-25 14:42:24 -04:00
|
|
|
inline const char* enum2str(SnapMode m) {return snapmodestrs[m];}
|
2005-12-22 07:23:54 -05:00
|
|
|
SnapMode str2snapmode(const std::string &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#undef SNAPMODE
|
|
|
|
#define SNAPMODE(a) /*empty*/
|
|
|
|
|
|
|
|
// REGIONLISTSORTTYPE
|
|
|
|
#undef REGIONLISTSORTTYPE
|
|
|
|
#define REGIONLISTSORTTYPE(a) a,
|
|
|
|
enum RegionListSortType {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
extern const char *regionlistsorttypestrs[];
|
2005-09-25 14:42:24 -04:00
|
|
|
inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
|
2005-12-22 07:23:54 -05:00
|
|
|
RegionListSortType str2regionlistsorttype(const std::string &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#undef REGIONLISTSORTTYPE
|
|
|
|
#define REGIONLISTSORTTYPE(a) /*empty*/
|
|
|
|
|
|
|
|
// MOUSEMODE
|
|
|
|
#undef MOUSEMODE
|
|
|
|
#define MOUSEMODE(a) a,
|
|
|
|
enum MouseMode {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
extern const char *mousemodestrs[];
|
2005-09-25 14:42:24 -04:00
|
|
|
inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
|
2005-12-22 07:23:54 -05:00
|
|
|
MouseMode str2mousemode(const std::string &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#undef MOUSEMODE
|
|
|
|
#define MOUSEMODE(a) /*empty*/
|
|
|
|
|
|
|
|
// ZOOMFOCUS
|
|
|
|
#undef ZOOMFOCUS
|
|
|
|
#define ZOOMFOCUS(a) a,
|
|
|
|
enum ZoomFocus {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
extern const char *zoomfocusstrs[];
|
2005-09-25 14:42:24 -04:00
|
|
|
inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
|
2005-12-22 07:23:54 -05:00
|
|
|
ZoomFocus str2zoomfocus(const std::string &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#undef ZOOMFOCUS
|
|
|
|
#define ZOOMFOCUS(a) /*empty*/
|
|
|
|
|
|
|
|
// DISPLAYCONTROL
|
|
|
|
#undef DISPLAYCONTROL
|
|
|
|
#define DISPLAYCONTROL(a) a,
|
|
|
|
enum DisplayControl {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
extern const char *displaycontrolstrs[];
|
2005-09-25 14:42:24 -04:00
|
|
|
inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
|
2005-12-22 07:23:54 -05:00
|
|
|
DisplayControl str2displaycontrol (const std::string &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#undef DISPLAYCONTROL
|
|
|
|
#define DISPLAYCONTROL(a) /*empty*/
|
|
|
|
|
2006-03-22 12:03:00 -05:00
|
|
|
// IMPORTMODE
|
|
|
|
#undef IMPORTMODE
|
|
|
|
#define IMPORTMODE(a) a,
|
|
|
|
enum ImportMode {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
extern const char *importmodestrs[];
|
2006-03-22 12:03:00 -05:00
|
|
|
inline const char* enum2str(ImportMode m) {return importmodestrs[m];}
|
|
|
|
ImportMode str2importmode (const std::string &);
|
|
|
|
|
|
|
|
#undef IMPORTMODE
|
|
|
|
#define IMPORTMODE(a) /*empty*/
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
/////////////////////
|
|
|
|
// These don't need their state saved. yet...
|
|
|
|
enum CutCopyOp {
|
|
|
|
Cut,
|
|
|
|
Copy,
|
|
|
|
Clear
|
|
|
|
};
|
|
|
|
|
|
|
|
enum XFadeType {
|
|
|
|
Pre,
|
|
|
|
Post,
|
|
|
|
At
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Editing
|
|
|
|
|
|
|
|
#endif // __gtk_ardour_editing_h__
|