2 * Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
3 * Copyright (C) 2006-2017 Paul Davis <paul@linuxaudiosystems.com>
4 * Copyright (C) 2007-2009 David Robillard <d@drobilla.net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef __gtk_ardour_editing_h__
22 #define __gtk_ardour_editing_h__
26 #include "ardour/types.h"
28 // This involves some cpp magic. --taybin
30 #define GRIDTYPE(a) /*empty*/
31 #define SNAPMODE(a) /*empty*/
32 #define REGIONLISTSORTTYPE(a) /*empty*/
33 #define MOUSEMODE(a) /*empty*/
34 #define MIDIEDITMODE(a) /*empty*/
35 #define ZOOMFOCUS(a) /*empty*/
36 #define DISPLAYCONTROL(a) /*empty*/
37 #define IMPORTMODE(a) /*empty*/
38 #define IMPORTPOSITION(a)
39 #define IMPORTDISPOSITION(a)
40 #define EDITPOINT(a) /*empty*/
41 #define WAVEFORMSCALE(a) /*empty*/
42 #define WAVEFORMSHAPE(a) /*empty*/
43 #define INSERTTIMEOPT(a) /*empty*/
49 #define GRIDTYPE(a) a,
51 #include "editing_syms.h"
54 extern const char *gridtypestrs[];
55 inline const char* enum2str(GridType m) {return gridtypestrs[m];}
56 GridType str2gridtype(const std::string &);
59 #define GRIDTYPE(a) /*empty*/
63 #define SNAPMODE(a) a,
65 #include "editing_syms.h"
68 extern const char *snapmodestrs[];
69 inline const char* enum2str(SnapMode m) {return snapmodestrs[m];}
70 SnapMode str2snapmode(const std::string &);
73 #define SNAPMODE(a) /*empty*/
76 #undef REGIONLISTSORTTYPE
77 #define REGIONLISTSORTTYPE(a) a,
78 enum RegionListSortType {
79 #include "editing_syms.h"
82 extern const char *regionlistsorttypestrs[];
83 inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
84 RegionListSortType str2regionlistsorttype(const std::string &);
86 #undef REGIONLISTSORTTYPE
87 #define REGIONLISTSORTTYPE(a) /*empty*/
91 #define MOUSEMODE(a) a,
93 #include "editing_syms.h"
96 extern const char *mousemodestrs[];
97 inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
98 MouseMode str2mousemode(const std::string &);
101 #define MOUSEMODE(a) /*empty*/
105 #define MIDIEDITMODE(a) a,
107 #include "editing_syms.h"
110 extern const char *midieditmodestrs[];
111 inline const char* enum2str(MidiEditMode m) {return midieditmodestrs[m];}
112 MidiEditMode str2midieditmode(const std::string &);
115 #define MIDIEDITMODE(a) /*empty*/
119 #define ZOOMFOCUS(a) a,
121 #include "editing_syms.h"
124 extern const char *zoomfocusstrs[];
125 inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
126 ZoomFocus str2zoomfocus(const std::string &);
129 #define ZOOMFOCUS(a) /*empty*/
132 #undef DISPLAYCONTROL
133 #define DISPLAYCONTROL(a) a,
134 enum DisplayControl {
135 #include "editing_syms.h"
138 extern const char *displaycontrolstrs[];
139 inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
140 DisplayControl str2displaycontrol (const std::string &);
142 #undef DISPLAYCONTROL
143 #define DISPLAYCONTROL(a) /*empty*/
148 #define IMPORTMODE(a) a,
150 #include "editing_syms.h"
154 #define IMPORTMODE(a) /*empty*/
157 #undef IMPORTPOSITION
158 #define IMPORTPOSITION(a) a,
159 enum ImportPosition {
160 #include "editing_syms.h"
163 #undef IMPORTPOSITION
164 #define IMPORTPOSITION(a) /*empty*/
167 #undef IMPORTDISPOSITION
168 #define IMPORTDISPOSITION(a) a,
169 enum ImportDisposition {
170 #include "editing_syms.h"
173 #undef IMPORTDISPOSITION
174 #define IMPORTDISPOSITION(a) /*empty*/
178 #define EDITPOINT(a) a,
180 #include "editing_syms.h"
184 #define EDITPOINT(a) /*empty*/
188 #define INSERTTIMEOPT(a) a,
189 enum InsertTimeOption {
190 #include "editing_syms.h"
194 #define INSERTTIMEOPT(a) /*empty*/
197 /////////////////////
198 // These don't need their state saved. yet...
212 enum EditIgnoreOption {
225 enum RegionActionTarget {
226 SelectedRegions = 0x1,
227 EnteredRegions = 0x2,
228 EditPointRegions = 0x4,
232 } // namespace Editing
234 #endif // __gtk_ardour_editing_h__