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*/
42 #define SNAPTYPE(a) a,
44 #include "editing_syms.h"
47 extern const char *snaptypestrs[];
48 inline const char* enum2str(SnapType m) {return snaptypestrs[m];}
49 SnapType str2snaptype(const std::string &);
52 #define SNAPTYPE(a) /*empty*/
56 #define SNAPMODE(a) a,
58 #include "editing_syms.h"
61 extern const char *snapmodestrs[];
62 inline const char* enum2str(SnapMode m) {return snapmodestrs[m];}
63 SnapMode str2snapmode(const std::string &);
66 #define SNAPMODE(a) /*empty*/
69 #undef REGIONLISTSORTTYPE
70 #define REGIONLISTSORTTYPE(a) a,
71 enum RegionListSortType {
72 #include "editing_syms.h"
75 extern const char *regionlistsorttypestrs[];
76 inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
77 RegionListSortType str2regionlistsorttype(const std::string &);
79 #undef REGIONLISTSORTTYPE
80 #define REGIONLISTSORTTYPE(a) /*empty*/
84 #define MOUSEMODE(a) a,
86 #include "editing_syms.h"
89 extern const char *mousemodestrs[];
90 inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
91 MouseMode str2mousemode(const std::string &);
94 #define MOUSEMODE(a) /*empty*/
98 #define MIDIEDITMODE(a) a,
100 #include "editing_syms.h"
103 extern const char *midieditmodestrs[];
104 inline const char* enum2str(MidiEditMode m) {return midieditmodestrs[m];}
105 MidiEditMode str2midieditmode(const std::string &);
108 #define MIDIEDITMODE(a) /*empty*/
112 #define ZOOMFOCUS(a) a,
114 #include "editing_syms.h"
117 extern const char *zoomfocusstrs[];
118 inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
119 ZoomFocus str2zoomfocus(const std::string &);
122 #define ZOOMFOCUS(a) /*empty*/
125 #undef DISPLAYCONTROL
126 #define DISPLAYCONTROL(a) a,
127 enum DisplayControl {
128 #include "editing_syms.h"
131 extern const char *displaycontrolstrs[];
132 inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
133 DisplayControl str2displaycontrol (const std::string &);
135 #undef DISPLAYCONTROL
136 #define DISPLAYCONTROL(a) /*empty*/
140 #define IMPORTMODE(a) a,
142 #include "editing_syms.h"
145 extern const char *importmodestrs[];
146 inline const char* enum2str(ImportMode m) {return importmodestrs[m];}
147 ImportMode str2importmode (const std::string &);
150 #define IMPORTMODE(a) /*empty*/
152 /////////////////////
153 // These don't need their state saved. yet...
166 } // namespace Editing
168 #endif // __gtk_ardour_editing_h__