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*/
41 #define SNAPTYPE(a) a,
43 #include "editing_syms.h"
46 extern const char *snaptypestrs[];
47 inline const char* enum2str(SnapType m) {return snaptypestrs[m];}
48 SnapType str2snaptype(const std::string &);
51 #define SNAPTYPE(a) /*empty*/
55 #define SNAPMODE(a) a,
57 #include "editing_syms.h"
60 extern const char *snapmodestrs[];
61 inline const char* enum2str(SnapMode m) {return snapmodestrs[m];}
62 SnapMode str2snapmode(const std::string &);
65 #define SNAPMODE(a) /*empty*/
68 #undef REGIONLISTSORTTYPE
69 #define REGIONLISTSORTTYPE(a) a,
70 enum RegionListSortType {
71 #include "editing_syms.h"
74 extern const char *regionlistsorttypestrs[];
75 inline const char* enum2str(RegionListSortType m) {return regionlistsorttypestrs[m];}
76 RegionListSortType str2regionlistsorttype(const std::string &);
78 #undef REGIONLISTSORTTYPE
79 #define REGIONLISTSORTTYPE(a) /*empty*/
83 #define MOUSEMODE(a) a,
85 #include "editing_syms.h"
88 extern const char *mousemodestrs[];
89 inline const char* enum2str(MouseMode m) {return mousemodestrs[m];}
90 MouseMode str2mousemode(const std::string &);
93 #define MOUSEMODE(a) /*empty*/
97 #define ZOOMFOCUS(a) a,
99 #include "editing_syms.h"
102 extern const char *zoomfocusstrs[];
103 inline const char* enum2str(ZoomFocus m) {return zoomfocusstrs[m];}
104 ZoomFocus str2zoomfocus(const std::string &);
107 #define ZOOMFOCUS(a) /*empty*/
110 #undef DISPLAYCONTROL
111 #define DISPLAYCONTROL(a) a,
112 enum DisplayControl {
113 #include "editing_syms.h"
116 extern const char *displaycontrolstrs[];
117 inline const char* enum2str(DisplayControl m) {return displaycontrolstrs[m];}
118 DisplayControl str2displaycontrol (const std::string &);
120 #undef DISPLAYCONTROL
121 #define DISPLAYCONTROL(a) /*empty*/
125 #define IMPORTMODE(a) a,
127 #include "editing_syms.h"
130 extern const char *importmodestrs[];
131 inline const char* enum2str(ImportMode m) {return importmodestrs[m];}
132 ImportMode str2importmode (const std::string &);
135 #define IMPORTMODE(a) /*empty*/
137 /////////////////////
138 // These don't need their state saved. yet...
151 } // namespace Editing
153 #endif // __gtk_ardour_editing_h__