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 ZOOMFOCUS(a) /*empty*/
34 #define DISPLAYCONTROL(a) /*empty*/
35 #define IMPORTMODE(a) /*empty*/
36 #define IMPORTPOSITION(a) /*empty*/
37 #define IMPORTDISPOSITION(a) /*empty*/
38 #define EDITPOINT(a) /*empty*/
39 #define WAVEFORMSCALE(a) /*empty*/
40 #define WAVEFORMSHAPE(a) /*empty*/
41 #define INSERTTIMEOPT(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 ZOOMFOCUS(a) a,
105 #include "editing_syms.h"
108 extern const char *zoomfocusstrs
[];
109 inline const char* enum2str(ZoomFocus m
) {return zoomfocusstrs
[m
];}
110 ZoomFocus
str2zoomfocus(const std::string
&);
113 #define ZOOMFOCUS(a) /*empty*/
116 #undef DISPLAYCONTROL
117 #define DISPLAYCONTROL(a) a,
118 enum DisplayControl
{
119 #include "editing_syms.h"
122 extern const char *displaycontrolstrs
[];
123 inline const char* enum2str(DisplayControl m
) {return displaycontrolstrs
[m
];}
124 DisplayControl
str2displaycontrol (const std::string
&);
126 #undef DISPLAYCONTROL
127 #define DISPLAYCONTROL(a) /*empty*/
131 #define IMPORTMODE(a) a,
133 #include "editing_syms.h"
137 #define IMPORTMODE(a) /*empty*/
140 #undef IMPORTPOSITION
141 #define IMPORTPOSITION(a) a,
142 enum ImportPosition
{
143 #include "editing_syms.h"
146 #undef IMPORTPOSITION
147 #define IMPORTPOSITION(a) /*empty*/
150 #undef IMPORTDISPOSITION
151 #define IMPORTDISPOSITION(a) a,
152 enum ImportDisposition
{
153 #include "editing_syms.h"
156 #undef IMPORTDISPOSITION
157 #define IMPORTDISPOSITION(a) /*empty*/
161 #define EDITPOINT(a) a,
163 #include "editing_syms.h"
167 #define EDITPOINT(a) /*empty*/
171 #define WAVEFORMSCALE(a) a,
173 #include "editing_syms.h"
177 #define WAVEFORMSCALE(a) /*empty*/
182 #define WAVEFORMSHAPE(a) a,
184 #include "editing_syms.h"
188 #define WAVEFORMSHAPE(a) /*empty*/
193 #define INSERTTIMEOPT(a) a,
194 enum InsertTimeOption
{
195 #include "editing_syms.h"
199 #define INSERTTIMEOPT(a) /*empty*/
202 /////////////////////
203 // These don't need their state saved. yet...
216 } // namespace Editing
218 #endif // __gtk_ardour_editing_h__