2 Copyright (C) 2000-2007 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __gtk_ardour_editing_h__
21 #define __gtk_ardour_editing_h__
25 #include "ardour/types.h"
27 // This involves some cpp magic. --taybin
29 #define SNAPTYPE(a) /*empty*/
30 #define SNAPMODE(a) /*empty*/
31 #define SNAPDELTA(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 SNAPTYPE(a) a,
51 #include "editing_syms.h"
54 extern const char *snaptypestrs[];
55 inline const char* enum2str(SnapType m) {return snaptypestrs[m];}
56 SnapType str2snaptype(const std::string &);
59 #define SNAPTYPE(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*/
77 #define SNAPDELTA(a) a,
79 #include "editing_syms.h"
81 extern const char *snapdeltastrs[];
82 inline const char* enum2str(SnapDelta m) {return snapdeltastrs[m];}
83 SnapDelta str2snapdelta(const std::string &);
86 #define SNAPDELTA(a) /*empty*/
89 #undef REGIONLISTSORTTYPE
90 #define REGIONLISTSORTTYPE(a) a,
91 enum RegionListSortType {
92 #include "editing_syms.h"
95 extern const char *regionlistsorttypestrs[];
96 inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
97 RegionListSortType str2regionlistsorttype(const std::string &);
99 #undef REGIONLISTSORTTYPE
100 #define REGIONLISTSORTTYPE(a) /*empty*/
104 #define MOUSEMODE(a) a,
106 #include "editing_syms.h"
109 extern const char *mousemodestrs[];
110 inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
111 MouseMode str2mousemode(const std::string &);
114 #define MOUSEMODE(a) /*empty*/
118 #define MIDIEDITMODE(a) a,
120 #include "editing_syms.h"
123 extern const char *midieditmodestrs[];
124 inline const char* enum2str(MidiEditMode m) {return midieditmodestrs[m];}
125 MidiEditMode str2midieditmode(const std::string &);
128 #define MIDIEDITMODE(a) /*empty*/
132 #define ZOOMFOCUS(a) a,
134 #include "editing_syms.h"
137 extern const char *zoomfocusstrs[];
138 inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
139 ZoomFocus str2zoomfocus(const std::string &);
142 #define ZOOMFOCUS(a) /*empty*/
145 #undef DISPLAYCONTROL
146 #define DISPLAYCONTROL(a) a,
147 enum DisplayControl {
148 #include "editing_syms.h"
151 extern const char *displaycontrolstrs[];
152 inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
153 DisplayControl str2displaycontrol (const std::string &);
155 #undef DISPLAYCONTROL
156 #define DISPLAYCONTROL(a) /*empty*/
161 #define IMPORTMODE(a) a,
163 #include "editing_syms.h"
167 #define IMPORTMODE(a) /*empty*/
170 #undef IMPORTPOSITION
171 #define IMPORTPOSITION(a) a,
172 enum ImportPosition {
173 #include "editing_syms.h"
176 #undef IMPORTPOSITION
177 #define IMPORTPOSITION(a) /*empty*/
180 #undef IMPORTDISPOSITION
181 #define IMPORTDISPOSITION(a) a,
182 enum ImportDisposition {
183 #include "editing_syms.h"
186 #undef IMPORTDISPOSITION
187 #define IMPORTDISPOSITION(a) /*empty*/
191 #define EDITPOINT(a) a,
193 #include "editing_syms.h"
197 #define EDITPOINT(a) /*empty*/
201 #define INSERTTIMEOPT(a) a,
202 enum InsertTimeOption {
203 #include "editing_syms.h"
207 #define INSERTTIMEOPT(a) /*empty*/
210 /////////////////////
211 // These don't need their state saved. yet...
225 enum EditIgnoreOption {
232 } // namespace Editing
234 #endif // __gtk_ardour_editing_h__