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 REGIONLISTSORTTYPE(a) /*empty*/
32 #define MOUSEMODE(a) /*empty*/
33 #define MIDIEDITMODE(a) /*empty*/
34 #define ZOOMFOCUS(a) /*empty*/
35 #define DISPLAYCONTROL(a) /*empty*/
36 #define IMPORTMODE(a) /*empty*/
37 #define IMPORTPOSITION(a)
38 #define IMPORTDISPOSITION(a)
39 #define EDITPOINT(a) /*empty*/
40 #define WAVEFORMSCALE(a) /*empty*/
41 #define WAVEFORMSHAPE(a) /*empty*/
47 #define SNAPTYPE(a) a,
49 #include "editing_syms.h"
52 extern const char *snaptypestrs[];
53 inline const char* enum2str(SnapType m) {return snaptypestrs[m];}
54 SnapType str2snaptype(const std::string &);
57 #define SNAPTYPE(a) /*empty*/
61 #define SNAPMODE(a) a,
63 #include "editing_syms.h"
66 extern const char *snapmodestrs[];
67 inline const char* enum2str(SnapMode m) {return snapmodestrs[m];}
68 SnapMode str2snapmode(const std::string &);
71 #define SNAPMODE(a) /*empty*/
74 #undef REGIONLISTSORTTYPE
75 #define REGIONLISTSORTTYPE(a) a,
76 enum RegionListSortType {
77 #include "editing_syms.h"
80 extern const char *regionlistsorttypestrs[];
81 inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
82 RegionListSortType str2regionlistsorttype(const std::string &);
84 #undef REGIONLISTSORTTYPE
85 #define REGIONLISTSORTTYPE(a) /*empty*/
89 #define MOUSEMODE(a) a,
91 #include "editing_syms.h"
94 extern const char *mousemodestrs[];
95 inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
96 MouseMode str2mousemode(const std::string &);
99 #define MOUSEMODE(a) /*empty*/
103 #define MIDIEDITMODE(a) a,
105 #include "editing_syms.h"
108 extern const char *midieditmodestrs[];
109 inline const char* enum2str(MidiEditMode m) {return midieditmodestrs[m];}
110 MidiEditMode str2midieditmode(const std::string &);
113 #define MIDIEDITMODE(a) /*empty*/
117 #define ZOOMFOCUS(a) a,
119 #include "editing_syms.h"
122 extern const char *zoomfocusstrs[];
123 inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
124 ZoomFocus str2zoomfocus(const std::string &);
127 #define ZOOMFOCUS(a) /*empty*/
130 #undef DISPLAYCONTROL
131 #define DISPLAYCONTROL(a) a,
132 enum DisplayControl {
133 #include "editing_syms.h"
136 extern const char *displaycontrolstrs[];
137 inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
138 DisplayControl str2displaycontrol (const std::string &);
140 #undef DISPLAYCONTROL
141 #define DISPLAYCONTROL(a) /*empty*/
146 #define IMPORTMODE(a) a,
148 #include "editing_syms.h"
152 #define IMPORTMODE(a) /*empty*/
155 #undef IMPORTPOSITION
156 #define IMPORTPOSITION(a) a,
157 enum ImportPosition {
158 #include "editing_syms.h"
161 #undef IMPORTPOSITION
162 #define IMPORTPOSITION(a) /*empty*/
165 #undef IMPORTDISPOSITION
166 #define IMPORTDISPOSITION(a) a,
167 enum ImportDisposition {
168 #include "editing_syms.h"
171 #undef IMPORTDISPOSITION
172 #define IMPORTDISPOSITION(a) /*empty*/
176 #define EDITPOINT(a) a,
178 #include "editing_syms.h"
182 #define EDITPOINT(a) /*empty*/
186 #define WAVEFORMSCALE(a) a,
188 #include "editing_syms.h"
192 #define WAVEFORMSCALE(a) /*empty*/
197 #define WAVEFORMSHAPE(a) a,
199 #include "editing_syms.h"
203 #define WAVEFORMSHAPE(a) /*empty*/
205 /////////////////////
206 // These don't need their state saved. yet...
219 } // namespace Editing
221 #endif // __gtk_ardour_editing_h__