]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* all: support of animated bitmaps in skins: there are new attributes
[vlc] / modules / gui / skins2 / parser / builder_data.hpp
1 /*****************************************************************************
2  * builder_data.hpp
3  *****************************************************************************
4  * Copyright (C) 2003 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
8  *          Olivier Teuliere <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 <map>
34 #include <string>
35
36 using namespace std;
37
38 /// Structure for mapping data from XML file
39 struct BuilderData
40 {
41
42     /// Type definition
43     struct Theme
44     {
45         Theme( const string & tooltipfont, int magnet, uint32_t alpha, uint32_t moveAlpha ):
46 m_tooltipfont( tooltipfont ), m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( moveAlpha ) {}
47
48         string m_tooltipfont;
49         int m_magnet;
50         uint32_t m_alpha;
51         uint32_t m_moveAlpha;
52     };
53     /// List
54     list<Theme> m_listTheme;
55
56     /// Type definition
57     struct Bitmap
58     {
59         Bitmap( const string & id, const string & fileName, uint32_t alphaColor, int nbFrames, int fps ):
60 m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ), m_nbFrames( nbFrames ), m_fps( fps ) {}
61
62         string m_id;
63         string m_fileName;
64         uint32_t m_alphaColor;
65         int m_nbFrames;
66         int m_fps;
67     };
68     /// List
69     list<Bitmap> m_listBitmap;
70
71     /// Type definition
72     struct SubBitmap
73     {
74         SubBitmap( const string & id, const string & parent, int x, int y, int width, int height, int nbFrames, int fps ):
75 m_id( id ), m_parent( parent ), m_x( x ), m_y( y ), m_width( width ), m_height( height ), m_nbFrames( nbFrames ), m_fps( fps ) {}
76
77         string m_id;
78         string m_parent;
79         int m_x;
80         int m_y;
81         int m_width;
82         int m_height;
83         int m_nbFrames;
84         int m_fps;
85     };
86     /// List
87     list<SubBitmap> m_listSubBitmap;
88
89     /// Type definition
90     struct BitmapFont
91     {
92         BitmapFont( const string & id, const string & file, const string & type ):
93 m_id( id ), m_file( file ), m_type( type ) {}
94
95         string m_id;
96         string m_file;
97         string m_type;
98     };
99     /// List
100     list<BitmapFont> m_listBitmapFont;
101
102     /// Type definition
103     struct Font
104     {
105         Font( const string & id, const string & fontFile, int size ):
106 m_id( id ), m_fontFile( fontFile ), m_size( size ) {}
107
108         string m_id;
109         string m_fontFile;
110         int m_size;
111     };
112     /// List
113     list<Font> m_listFont;
114
115     /// Type definition
116     struct Window
117     {
118         Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
119 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
120
121         string m_id;
122         int m_xPos;
123         int m_yPos;
124         bool m_visible;
125         bool m_dragDrop;
126         bool m_playOnDrop;
127     };
128     /// List
129     list<Window> m_listWindow;
130
131     /// Type definition
132     struct Layout
133     {
134         Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
135 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
136
137         string m_id;
138         int m_width;
139         int m_height;
140         int m_minWidth;
141         int m_maxWidth;
142         int m_minHeight;
143         int m_maxHeight;
144         string m_windowId;
145     };
146     /// List
147     list<Layout> m_listLayout;
148
149     /// Type definition
150     struct Anchor
151     {
152         Anchor( int xPos, int yPos, int range, int priority, const string & points, const string & layoutId ):
153 m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {}
154
155         int m_xPos;
156         int m_yPos;
157         int m_range;
158         int m_priority;
159         string m_points;
160         string m_layoutId;
161     };
162     /// List
163     list<Anchor> m_listAnchor;
164
165     /// Type definition
166     struct Button
167     {
168         Button( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, const string & visible, 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 ):
169 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_visible( visible ), 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 ) {}
170
171         string m_id;
172         int m_xPos;
173         int m_yPos;
174         string m_leftTop;
175         string m_rightBottom;
176         string m_visible;
177         string m_upId;
178         string m_downId;
179         string m_overId;
180         string m_actionId;
181         string m_tooltip;
182         string m_help;
183         int m_layer;
184         string m_windowId;
185         string m_layoutId;
186     };
187     /// List
188     list<Button> m_listButton;
189
190     /// Type definition
191     struct Checkbox
192     {
193         Checkbox( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, const string & visible, 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 ):
194 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_visible( visible ), 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 ) {}
195
196         string m_id;
197         int m_xPos;
198         int m_yPos;
199         string m_leftTop;
200         string m_rightBottom;
201         string m_visible;
202         string m_up1Id;
203         string m_down1Id;
204         string m_over1Id;
205         string m_up2Id;
206         string m_down2Id;
207         string m_over2Id;
208         string m_state;
209         string m_action1;
210         string m_action2;
211         string m_tooltip1;
212         string m_tooltip2;
213         string m_help;
214         int m_layer;
215         string m_windowId;
216         string m_layoutId;
217     };
218     /// List
219     list<Checkbox> m_listCheckbox;
220
221     /// Type definition
222     struct Image
223     {
224         Image( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, const string & visible, const string & bmpId, const string & actionId, const string & action2Id, const string & resize, const string & help, int layer, const string & windowId, const string & layoutId ):
225 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_visible( visible ), m_bmpId( bmpId ), m_actionId( actionId ), m_action2Id( action2Id ), m_resize( resize ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
226
227         string m_id;
228         int m_xPos;
229         int m_yPos;
230         string m_leftTop;
231         string m_rightBottom;
232         string m_visible;
233         string m_bmpId;
234         string m_actionId;
235         string m_action2Id;
236         string m_resize;
237         string m_help;
238         int m_layer;
239         string m_windowId;
240         string m_layoutId;
241     };
242     /// List
243     list<Image> m_listImage;
244
245     /// Type definition
246     struct Text
247     {
248         Text( const string & id, int xPos, int yPos, const string & visible, const string & fontId, const string & text, int width, const string & leftTop, const string & rightBottom, uint32_t color, const string & scrolling, const string & alignment, const string & help, int layer, const string & windowId, const string & layoutId ):
249 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_fontId( fontId ), m_text( text ), m_width( width ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_color( color ), m_scrolling( scrolling ), m_alignment( alignment ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
250
251         string m_id;
252         int m_xPos;
253         int m_yPos;
254         string m_visible;
255         string m_fontId;
256         string m_text;
257         int m_width;
258         string m_leftTop;
259         string m_rightBottom;
260         uint32_t m_color;
261         string m_scrolling;
262         string m_alignment;
263         string m_help;
264         int m_layer;
265         string m_windowId;
266         string m_layoutId;
267     };
268     /// List
269     list<Text> m_listText;
270
271     /// Type definition
272     struct RadialSlider
273     {
274         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 ):
275 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 ) {}
276
277         string m_id;
278         string m_visible;
279         int m_xPos;
280         int m_yPos;
281         string m_leftTop;
282         string m_rightBottom;
283         string m_sequence;
284         int m_nbImages;
285         float m_minAngle;
286         float m_maxAngle;
287         string m_value;
288         string m_tooltip;
289         string m_help;
290         int m_layer;
291         string m_windowId;
292         string m_layoutId;
293     };
294     /// List
295     list<RadialSlider> m_listRadialSlider;
296
297     /// Type definition
298     struct Slider
299     {
300         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 & imageId, int nbHoriz, int nbVert, int padHoriz, int padVert, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId ):
301 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_imageId( imageId ), m_nbHoriz( nbHoriz ), m_nbVert( nbVert ), m_padHoriz( padHoriz ), m_padVert( padVert ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
302
303         string m_id;
304         string m_visible;
305         int m_xPos;
306         int m_yPos;
307         string m_leftTop;
308         string m_rightBottom;
309         string m_upId;
310         string m_downId;
311         string m_overId;
312         string m_points;
313         int m_thickness;
314         string m_value;
315         string m_imageId;
316         int m_nbHoriz;
317         int m_nbVert;
318         int m_padHoriz;
319         int m_padVert;
320         string m_tooltip;
321         string m_help;
322         int m_layer;
323         string m_windowId;
324         string m_layoutId;
325     };
326     /// List
327     list<Slider> m_listSlider;
328
329     /// Type definition
330     struct List
331     {
332         List( const string & id, int xPos, int yPos, const string & visible, int width, int height, const string & leftTop, const string & rightBottom, const string & fontId, const string & var, const string & bgImageId, 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 ):
333 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_fontId( fontId ), m_var( var ), m_bgImageId( bgImageId ), 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 ) {}
334
335         string m_id;
336         int m_xPos;
337         int m_yPos;
338         string m_visible;
339         int m_width;
340         int m_height;
341         string m_leftTop;
342         string m_rightBottom;
343         string m_fontId;
344         string m_var;
345         string m_bgImageId;
346         uint32_t m_fgColor;
347         uint32_t m_playColor;
348         uint32_t m_bgColor1;
349         uint32_t m_bgColor2;
350         uint32_t m_selColor;
351         string m_help;
352         int m_layer;
353         string m_windowId;
354         string m_layoutId;
355     };
356     /// List
357     list<List> m_listList;
358
359     /// Type definition
360     struct Tree
361     {
362         Tree( const string & id, int xPos, int yPos, const string & visible, int width, int height, const string & leftTop, const string & rightBottom, const string & fontId, const string & var, const string & bgImageId, const string & itemImageId, const string & openImageId, const string & closedImageId, 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 ):
363 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_fontId( fontId ), m_var( var ), m_bgImageId( bgImageId ), m_itemImageId( itemImageId ), m_openImageId( openImageId ), m_closedImageId( closedImageId ), 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 ) {}
364
365         string m_id;
366         int m_xPos;
367         int m_yPos;
368         string m_visible;
369         int m_width;
370         int m_height;
371         string m_leftTop;
372         string m_rightBottom;
373         string m_fontId;
374         string m_var;
375         string m_bgImageId;
376         string m_itemImageId;
377         string m_openImageId;
378         string m_closedImageId;
379         uint32_t m_fgColor;
380         uint32_t m_playColor;
381         uint32_t m_bgColor1;
382         uint32_t m_bgColor2;
383         uint32_t m_selColor;
384         string m_help;
385         int m_layer;
386         string m_windowId;
387         string m_layoutId;
388     };
389     /// List
390     list<Tree> m_listTree;
391
392     /// Type definition
393     struct Video
394     {
395         Video( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, const string & visible, bool autoResize, const string & help, int layer, const string & windowId, const string & layoutId ):
396 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_visible( visible ), m_autoResize( autoResize ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
397
398         string m_id;
399         int m_xPos;
400         int m_yPos;
401         int m_width;
402         int m_height;
403         string m_leftTop;
404         string m_rightBottom;
405         string m_visible;
406         bool m_autoResize;
407         string m_help;
408         int m_layer;
409         string m_windowId;
410         string m_layoutId;
411     };
412     /// List
413     list<Video> m_listVideo;
414
415
416 };
417
418 #endif