2007-04-26 16:54:31 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2000-2007 Paul Davis
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
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-01 12:41:28 -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-01 12:41:28 -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-01 12:41:28 -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-01 12:41:28 -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-01 12:41:28 -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-01 12:41:28 -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-01 12:41:28 -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__
|