2007-04-26 16:54:31 -04:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2000-2007 Paul Davis
|
2007-04-26 16:54:31 -04:00
|
|
|
|
|
|
|
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>
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "ardour/types.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
// This involves some cpp magic. --taybin
|
|
|
|
|
2018-02-09 10:59:39 -05:00
|
|
|
#define GRIDTYPE(a) /*empty*/
|
2005-09-25 14:42:24 -04:00
|
|
|
#define SNAPMODE(a) /*empty*/
|
|
|
|
#define REGIONLISTSORTTYPE(a) /*empty*/
|
|
|
|
#define MOUSEMODE(a) /*empty*/
|
2007-08-08 15:13:36 -04:00
|
|
|
#define MIDIEDITMODE(a) /*empty*/
|
2005-09-25 14:42:24 -04:00
|
|
|
#define ZOOMFOCUS(a) /*empty*/
|
|
|
|
#define DISPLAYCONTROL(a) /*empty*/
|
2006-03-22 12:03:00 -05:00
|
|
|
#define IMPORTMODE(a) /*empty*/
|
2007-10-11 18:07:47 -04:00
|
|
|
#define IMPORTPOSITION(a)
|
|
|
|
#define IMPORTDISPOSITION(a)
|
2007-11-07 20:40:25 -05:00
|
|
|
#define EDITPOINT(a) /*empty*/
|
2008-03-17 16:54:03 -04:00
|
|
|
#define WAVEFORMSCALE(a) /*empty*/
|
|
|
|
#define WAVEFORMSHAPE(a) /*empty*/
|
2008-04-11 10:06:50 -04:00
|
|
|
#define INSERTTIMEOPT(a) /*empty*/
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
namespace Editing {
|
|
|
|
|
2018-02-09 10:59:39 -05:00
|
|
|
// GRIDTYPE
|
|
|
|
#undef GRIDTYPE
|
|
|
|
#define GRIDTYPE(a) a,
|
|
|
|
enum GridType {
|
2005-09-25 14:42:24 -04:00
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
2018-02-09 10:59:39 -05:00
|
|
|
extern const char *gridtypestrs[];
|
|
|
|
inline const char* enum2str(GridType m) {return gridtypestrs[m];}
|
|
|
|
GridType str2gridtype(const std::string &);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2018-02-09 10:59:39 -05:00
|
|
|
#undef GRIDTYPE
|
|
|
|
#define GRIDTYPE(a) /*empty*/
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
// 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*/
|
|
|
|
|
2007-08-08 15:13:36 -04:00
|
|
|
// MIDIEDITMODE
|
|
|
|
#undef MIDIEDITMODE
|
|
|
|
#define MIDIEDITMODE(a) a,
|
|
|
|
enum MidiEditMode {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const char *midieditmodestrs[];
|
|
|
|
inline const char* enum2str(MidiEditMode m) {return midieditmodestrs[m];}
|
|
|
|
MidiEditMode str2midieditmode(const std::string &);
|
|
|
|
|
|
|
|
#undef MIDIEDITMODE
|
|
|
|
#define MIDIEDITMODE(a) /*empty*/
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
// 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*/
|
|
|
|
|
2007-10-11 18:07:47 -04:00
|
|
|
|
2006-03-22 12:03:00 -05:00
|
|
|
// IMPORTMODE
|
|
|
|
#undef IMPORTMODE
|
|
|
|
#define IMPORTMODE(a) a,
|
|
|
|
enum ImportMode {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef IMPORTMODE
|
|
|
|
#define IMPORTMODE(a) /*empty*/
|
|
|
|
|
2007-10-11 18:07:47 -04:00
|
|
|
// IMPORTPOSITION
|
|
|
|
#undef IMPORTPOSITION
|
|
|
|
#define IMPORTPOSITION(a) a,
|
|
|
|
enum ImportPosition {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef IMPORTPOSITION
|
|
|
|
#define IMPORTPOSITION(a) /*empty*/
|
|
|
|
|
|
|
|
// IMPORTDISPOSITION
|
|
|
|
#undef IMPORTDISPOSITION
|
|
|
|
#define IMPORTDISPOSITION(a) a,
|
|
|
|
enum ImportDisposition {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef IMPORTDISPOSITION
|
|
|
|
#define IMPORTDISPOSITION(a) /*empty*/
|
|
|
|
|
2007-11-07 20:40:25 -05:00
|
|
|
// EDITPOINT
|
|
|
|
#undef EDITPOINT
|
|
|
|
#define EDITPOINT(a) a,
|
|
|
|
enum EditPoint {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef EDITPOINT
|
|
|
|
#define EDITPOINT(a) /*empty*/
|
|
|
|
|
2008-04-11 10:06:50 -04:00
|
|
|
// INSERTTIMEOPT
|
|
|
|
#undef INSERTTIMEOPT
|
|
|
|
#define INSERTTIMEOPT(a) a,
|
|
|
|
enum InsertTimeOption {
|
|
|
|
#include "editing_syms.h"
|
|
|
|
};
|
|
|
|
|
|
|
|
#undef INSERTTIMEOPT
|
|
|
|
#define INSERTTIMEOPT(a) /*empty*/
|
|
|
|
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
/////////////////////
|
|
|
|
// These don't need their state saved. yet...
|
|
|
|
enum CutCopyOp {
|
2011-06-12 11:50:47 -04:00
|
|
|
Delete,
|
2005-09-25 14:42:24 -04:00
|
|
|
Cut,
|
|
|
|
Copy,
|
|
|
|
Clear
|
|
|
|
};
|
|
|
|
|
|
|
|
enum XFadeType {
|
|
|
|
Pre,
|
|
|
|
Post,
|
|
|
|
At
|
|
|
|
};
|
|
|
|
|
2013-10-20 17:02:56 -04:00
|
|
|
enum EditIgnoreOption {
|
|
|
|
EDIT_IGNORE_NONE,
|
|
|
|
EDIT_IGNORE_PHEAD,
|
|
|
|
EDIT_IGNORE_MOUSE,
|
|
|
|
EDIT_IGNORE_MARKER
|
|
|
|
};
|
|
|
|
|
2016-12-12 18:20:44 -05:00
|
|
|
enum ZoomAxis {
|
|
|
|
Vertical,
|
|
|
|
Horizontal,
|
|
|
|
Both
|
|
|
|
};
|
|
|
|
|
2017-02-14 10:09:32 -05:00
|
|
|
enum RegionActionTarget {
|
|
|
|
SelectedRegions = 0x1,
|
|
|
|
EnteredRegions = 0x2,
|
|
|
|
EditPointRegions = 0x4,
|
|
|
|
ListSelection = 0x8
|
|
|
|
};
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
} // namespace Editing
|
|
|
|
|
|
|
|
#endif // __gtk_ardour_editing_h__
|