fix up file renaming code a little bit
[ArdourMidi.git] / gtk2_ardour / editing.h
blob6bc575116ba78e1da3e1c85f56ae4b8104a9f7d7
1 /*
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__
23 #include <string>
24 #include <map>
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*/
42 #define INSERTTIMEOPT(a) /*empty*/
44 namespace Editing {
46 // SNAPTYPE
47 #undef SNAPTYPE
48 #define SNAPTYPE(a) a,
49 enum SnapType {
50 #include "editing_syms.h"
53 extern const char *snaptypestrs[];
54 inline const char* enum2str(SnapType m) {return snaptypestrs[m];}
55 SnapType str2snaptype(const std::string &);
57 #undef SNAPTYPE
58 #define SNAPTYPE(a) /*empty*/
60 // SNAPMODE
61 #undef SNAPMODE
62 #define SNAPMODE(a) a,
63 enum SnapMode {
64 #include "editing_syms.h"
67 extern const char *snapmodestrs[];
68 inline const char* enum2str(SnapMode m) {return snapmodestrs[m];}
69 SnapMode str2snapmode(const std::string &);
71 #undef SNAPMODE
72 #define SNAPMODE(a) /*empty*/
74 // REGIONLISTSORTTYPE
75 #undef REGIONLISTSORTTYPE
76 #define REGIONLISTSORTTYPE(a) a,
77 enum RegionListSortType {
78 #include "editing_syms.h"
81 extern const char *regionlistsorttypestrs[];
82 inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
83 RegionListSortType str2regionlistsorttype(const std::string &);
85 #undef REGIONLISTSORTTYPE
86 #define REGIONLISTSORTTYPE(a) /*empty*/
88 // MOUSEMODE
89 #undef MOUSEMODE
90 #define MOUSEMODE(a) a,
91 enum MouseMode {
92 #include "editing_syms.h"
95 extern const char *mousemodestrs[];
96 inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
97 MouseMode str2mousemode(const std::string &);
99 #undef MOUSEMODE
100 #define MOUSEMODE(a) /*empty*/
102 // MIDIEDITMODE
103 #undef MIDIEDITMODE
104 #define MIDIEDITMODE(a) a,
105 enum MidiEditMode {
106 #include "editing_syms.h"
109 extern const char *midieditmodestrs[];
110 inline const char* enum2str(MidiEditMode m) {return midieditmodestrs[m];}
111 MidiEditMode str2midieditmode(const std::string &);
113 #undef MIDIEDITMODE
114 #define MIDIEDITMODE(a) /*empty*/
116 // ZOOMFOCUS
117 #undef ZOOMFOCUS
118 #define ZOOMFOCUS(a) a,
119 enum ZoomFocus {
120 #include "editing_syms.h"
123 extern const char *zoomfocusstrs[];
124 inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
125 ZoomFocus str2zoomfocus(const std::string &);
127 #undef ZOOMFOCUS
128 #define ZOOMFOCUS(a) /*empty*/
130 // DISPLAYCONTROL
131 #undef DISPLAYCONTROL
132 #define DISPLAYCONTROL(a) a,
133 enum DisplayControl {
134 #include "editing_syms.h"
137 extern const char *displaycontrolstrs[];
138 inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
139 DisplayControl str2displaycontrol (const std::string &);
141 #undef DISPLAYCONTROL
142 #define DISPLAYCONTROL(a) /*empty*/
145 // IMPORTMODE
146 #undef IMPORTMODE
147 #define IMPORTMODE(a) a,
148 enum ImportMode {
149 #include "editing_syms.h"
152 #undef IMPORTMODE
153 #define IMPORTMODE(a) /*empty*/
155 // IMPORTPOSITION
156 #undef IMPORTPOSITION
157 #define IMPORTPOSITION(a) a,
158 enum ImportPosition {
159 #include "editing_syms.h"
162 #undef IMPORTPOSITION
163 #define IMPORTPOSITION(a) /*empty*/
165 // IMPORTDISPOSITION
166 #undef IMPORTDISPOSITION
167 #define IMPORTDISPOSITION(a) a,
168 enum ImportDisposition {
169 #include "editing_syms.h"
172 #undef IMPORTDISPOSITION
173 #define IMPORTDISPOSITION(a) /*empty*/
175 // EDITPOINT
176 #undef EDITPOINT
177 #define EDITPOINT(a) a,
178 enum EditPoint {
179 #include "editing_syms.h"
182 #undef EDITPOINT
183 #define EDITPOINT(a) /*empty*/
185 // INSERTTIMEOPT
186 #undef INSERTTIMEOPT
187 #define INSERTTIMEOPT(a) a,
188 enum InsertTimeOption {
189 #include "editing_syms.h"
192 #undef INSERTTIMEOPT
193 #define INSERTTIMEOPT(a) /*empty*/
196 /////////////////////
197 // These don't need their state saved. yet...
198 enum CutCopyOp {
199 Cut,
200 Copy,
201 Clear
204 enum XFadeType {
205 Pre,
206 Post,
210 } // namespace Editing
212 #endif // __gtk_ardour_editing_h__