]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* modules/gui/skins2/*: portability fixes.
[vlc] / modules / gui / skins2 / parser / builder_data.hpp
1 /*****************************************************************************
2  * builder_data.hpp
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id: builder_data.hpp,v 1.4 2004/02/27 13:24:12 gbazin Exp $
6  *
7  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
8  *          Olivier Teulière <ipkiss@via.ecp.fr>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 //File generated by gen_builder.py
26 //DO NOT EDIT BY HAND !
27
28 #ifndef BUILDER_DATA_HPP
29 #define BUILDER_DATA_HPP
30
31 #include <vlc/vlc.h>
32 #include <list>
33 #include <string>
34
35 using namespace std;
36
37 /// Structure for mapping data from XML file
38 struct BuilderData
39 {
40
41     /// Type definition
42     struct Theme
43     {
44         Theme( int magnet, uint32_t alpha, uint32_t moveAlpha, uint32_t fadeTime ):
45 m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( moveAlpha ), m_fadeTime( fadeTime ) {}
46
47         int m_magnet;
48         uint32_t m_alpha;
49         uint32_t m_moveAlpha;
50         uint32_t m_fadeTime;
51     };
52     /// List
53     list<Theme> m_listTheme;
54
55     /// Type definition
56     struct Bitmap
57     {
58         Bitmap( const string & id, const string & fileName, uint32_t alphaColor ):
59 m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ) {}
60
61         const string m_id;
62         const string m_fileName;
63         uint32_t m_alphaColor;
64     };
65     /// List
66     list<Bitmap> m_listBitmap;
67
68     /// Type definition
69     struct Font
70     {
71         Font( const string & id, const string & fontName, int size ):
72 m_id( id ), m_fontName( fontName ), m_size( size ) {}
73
74         const string m_id;
75         const string m_fontName;
76         int m_size;
77     };
78     /// List
79     list<Font> m_listFont;
80
81     /// Type definition
82     struct Window
83     {
84         Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
85 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
86
87         const string m_id;
88         int m_xPos;
89         int m_yPos;
90         bool m_visible;
91         bool m_dragDrop;
92         bool m_playOnDrop;
93     };
94     /// List
95     list<Window> m_listWindow;
96
97     /// Type definition
98     struct Layout
99     {
100         Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
101 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
102
103         const string m_id;
104         int m_width;
105         int m_height;
106         int m_minWidth;
107         int m_maxWidth;
108         int m_minHeight;
109         int m_maxHeight;
110         const string m_windowId;
111     };
112     /// List
113     list<Layout> m_listLayout;
114
115     /// Type definition
116     struct Anchor
117     {
118         Anchor( int xPos, int yPos, int range, int priority, const string & windowId ):
119 m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_windowId( windowId ) {}
120
121         int m_xPos;
122         int m_yPos;
123         int m_range;
124         int m_priority;
125         const string m_windowId;
126     };
127     /// List
128     list<Anchor> m_listAnchor;
129
130     /// Type definition
131     struct Button
132     {
133         Button( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, const string & upId, const string & downId, const string & overId, const string & actionId, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId ):
134 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_upId( upId ), m_downId( downId ), m_overId( overId ), m_actionId( actionId ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
135
136         const string m_id;
137         int m_xPos;
138         int m_yPos;
139         const string m_leftTop;
140         const string m_rightBottom;
141         const string m_upId;
142         const string m_downId;
143         const string m_overId;
144         const string m_actionId;
145         const string m_tooltip;
146         const string m_help;
147         int m_layer;
148         const string m_windowId;
149         const string m_layoutId;
150     };
151     /// List
152     list<Button> m_listButton;
153
154     /// Type definition
155     struct Checkbox
156     {
157         Checkbox( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, const string & up1Id, const string & down1Id, const string & over1Id, const string & up2Id, const string & down2Id, const string & over2Id, const string & state, const string & action1, const string & action2, const string & tooltip1, const string & tooltip2, const string & help, int layer, const string & windowId, const string & layoutId ):
158 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_up1Id( up1Id ), m_down1Id( down1Id ), m_over1Id( over1Id ), m_up2Id( up2Id ), m_down2Id( down2Id ), m_over2Id( over2Id ), m_state( state ), m_action1( action1 ), m_action2( action2 ), m_tooltip1( tooltip1 ), m_tooltip2( tooltip2 ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
159
160         const string m_id;
161         int m_xPos;
162         int m_yPos;
163         const string m_leftTop;
164         const string m_rightBottom;
165         const string m_up1Id;
166         const string m_down1Id;
167         const string m_over1Id;
168         const string m_up2Id;
169         const string m_down2Id;
170         const string m_over2Id;
171         const string m_state;
172         const string m_action1;
173         const string m_action2;
174         const string m_tooltip1;
175         const string m_tooltip2;
176         const string m_help;
177         int m_layer;
178         const string m_windowId;
179         const string m_layoutId;
180     };
181     /// List
182     list<Checkbox> m_listCheckbox;
183
184     /// Type definition
185     struct Image
186     {
187         Image( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool visible, const string & bmpId, const string & onclickId, const string & help, int layer, const string & windowId, const string & layoutId ):
188 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_visible( visible ), m_bmpId( bmpId ), m_onclickId( onclickId ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
189
190         const string m_id;
191         int m_xPos;
192         int m_yPos;
193         const string m_leftTop;
194         const string m_rightBottom;
195         bool m_visible;
196         const string m_bmpId;
197         const string m_onclickId;
198         const string m_help;
199         int m_layer;
200         const string m_windowId;
201         const string m_layoutId;
202     };
203     /// List
204     list<Image> m_listImage;
205
206     /// Type definition
207     struct Text
208     {
209         Text( const string & id, int xPos, int yPos, const string & fontId, const string & text, int width, const string & help, int layer, const string & windowId, const string & layoutId ):
210 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_fontId( fontId ), m_text( text ), m_width( width ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
211
212         const string m_id;
213         int m_xPos;
214         int m_yPos;
215         const string m_fontId;
216         const string m_text;
217         int m_width;
218         const string m_help;
219         int m_layer;
220         const string m_windowId;
221         const string m_layoutId;
222     };
223     /// List
224     list<Text> m_listText;
225
226     /// Type definition
227     struct RadialSlider
228     {
229         RadialSlider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, const string & sequence, int nbImages, float minAngle, float maxAngle, const string & value, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId ):
230 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_sequence( sequence ), m_nbImages( nbImages ), m_minAngle( minAngle ), m_maxAngle( maxAngle ), m_value( value ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
231
232         const string m_id;
233         const string m_visible;
234         int m_xPos;
235         int m_yPos;
236         const string m_leftTop;
237         const string m_rightBottom;
238         const string m_sequence;
239         int m_nbImages;
240         float m_minAngle;
241         float m_maxAngle;
242         const string m_value;
243         const string m_tooltip;
244         const string m_help;
245         int m_layer;
246         const string m_windowId;
247         const string m_layoutId;
248     };
249     /// List
250     list<RadialSlider> m_listRadialSlider;
251
252     /// Type definition
253     struct Slider
254     {
255         Slider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, const string & upId, const string & downId, const string & overId, const string & points, int thickness, const string & value, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId ):
256 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_upId( upId ), m_downId( downId ), m_overId( overId ), m_points( points ), m_thickness( thickness ), m_value( value ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
257
258         const string m_id;
259         const string m_visible;
260         int m_xPos;
261         int m_yPos;
262         const string m_leftTop;
263         const string m_rightBottom;
264         const string m_upId;
265         const string m_downId;
266         const string m_overId;
267         const string m_points;
268         int m_thickness;
269         const string m_value;
270         const string m_tooltip;
271         const string m_help;
272         int m_layer;
273         const string m_windowId;
274         const string m_layoutId;
275     };
276     /// List
277     list<Slider> m_listSlider;
278
279     /// Type definition
280     struct List
281     {
282         List( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, const string & fontId, const string & var, uint32_t fgColor, uint32_t playColor, uint32_t bgColor1, uint32_t bgColor2, uint32_t selColor, const string & help, int layer, const string & windowId, const string & layoutId ):
283 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_fontId( fontId ), m_var( var ), m_fgColor( fgColor ), m_playColor( playColor ), m_bgColor1( bgColor1 ), m_bgColor2( bgColor2 ), m_selColor( selColor ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
284
285         const string m_id;
286         int m_xPos;
287         int m_yPos;
288         int m_width;
289         int m_height;
290         const string m_leftTop;
291         const string m_rightBottom;
292         const string m_fontId;
293         const string m_var;
294         uint32_t m_fgColor;
295         uint32_t m_playColor;
296         uint32_t m_bgColor1;
297         uint32_t m_bgColor2;
298         uint32_t m_selColor;
299         const string m_help;
300         int m_layer;
301         const string m_windowId;
302         const string m_layoutId;
303     };
304     /// List
305     list<List> m_listList;
306
307
308 };
309
310 #endif