]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
skins2: add a 'loop' parameter for animated bitmaps
[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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, 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_common.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, int nbLoops ):
60 m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ), m_nbFrames( nbFrames ), m_fps( fps ), m_nbLoops( nbLoops ) {}
61
62         string m_id;
63         string m_fileName;
64         uint32_t m_alphaColor;
65         int m_nbFrames;
66         int m_fps;
67         int m_nbLoops;
68     };
69     /// List
70     list<Bitmap> m_listBitmap;
71
72     /// Type definition
73     struct SubBitmap
74     {
75         SubBitmap( const string & id, const string & parent, int x, int y, int width, int height, int nbFrames, int fps, int nbLoops ):
76 m_id( id ), m_parent( parent ), m_x( x ), m_y( y ), m_width( width ), m_height( height ), m_nbFrames( nbFrames ), m_fps( fps ), m_nbLoops( nbLoops ) {}
77
78         string m_id;
79         string m_parent;
80         int m_x;
81         int m_y;
82         int m_width;
83         int m_height;
84         int m_nbFrames;
85         int m_fps;
86         int m_nbLoops;
87     };
88     /// List
89     list<SubBitmap> m_listSubBitmap;
90
91     /// Type definition
92     struct BitmapFont
93     {
94         BitmapFont( const string & id, const string & file, const string & type ):
95 m_id( id ), m_file( file ), m_type( type ) {}
96
97         string m_id;
98         string m_file;
99         string m_type;
100     };
101     /// List
102     list<BitmapFont> m_listBitmapFont;
103
104     /// Type definition
105     struct Font
106     {
107         Font( const string & id, const string & fontFile, int size ):
108 m_id( id ), m_fontFile( fontFile ), m_size( size ) {}
109
110         string m_id;
111         string m_fontFile;
112         int m_size;
113     };
114     /// List
115     list<Font> m_listFont;
116
117     /// Type definition
118     struct PopupMenu
119     {
120         PopupMenu( const string & id ):
121 m_id( id ) {}
122
123         string m_id;
124     };
125     /// List
126     list<PopupMenu> m_listPopupMenu;
127
128     /// Type definition
129     struct MenuItem
130     {
131         MenuItem( const string & label, const string & action, int pos, const string & popupId ):
132 m_label( label ), m_action( action ), m_pos( pos ), m_popupId( popupId ) {}
133
134         string m_label;
135         string m_action;
136         int m_pos;
137         string m_popupId;
138     };
139     /// List
140     list<MenuItem> m_listMenuItem;
141
142     /// Type definition
143     struct MenuSeparator
144     {
145         MenuSeparator( int pos, const string & popupId ):
146 m_pos( pos ), m_popupId( popupId ) {}
147
148         int m_pos;
149         string m_popupId;
150     };
151     /// List
152     list<MenuSeparator> m_listMenuSeparator;
153
154     /// Type definition
155     struct Window
156     {
157         Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
158 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
159
160         string m_id;
161         int m_xPos;
162         int m_yPos;
163         bool m_visible;
164         bool m_dragDrop;
165         bool m_playOnDrop;
166     };
167     /// List
168     list<Window> m_listWindow;
169
170     /// Type definition
171     struct Layout
172     {
173         Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
174 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
175
176         string m_id;
177         int m_width;
178         int m_height;
179         int m_minWidth;
180         int m_maxWidth;
181         int m_minHeight;
182         int m_maxHeight;
183         string m_windowId;
184     };
185     /// List
186     list<Layout> m_listLayout;
187
188     /// Type definition
189     struct Anchor
190     {
191         Anchor( int xPos, int yPos, const string & leftTop, int range, int priority, const string & points, const string & layoutId ):
192 m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {}
193
194         int m_xPos;
195         int m_yPos;
196         string m_leftTop;
197         int m_range;
198         int m_priority;
199         string m_points;
200         string m_layoutId;
201     };
202     /// List
203     list<Anchor> m_listAnchor;
204
205     /// Type definition
206     struct Button
207     {
208         Button( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
209 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
210
211         string m_id;
212         int m_xPos;
213         int m_yPos;
214         string m_leftTop;
215         string m_rightBottom;
216         bool m_xKeepRatio;
217         bool m_yKeepRatio;
218         string m_visible;
219         string m_upId;
220         string m_downId;
221         string m_overId;
222         string m_actionId;
223         string m_tooltip;
224         string m_help;
225         int m_layer;
226         string m_windowId;
227         string m_layoutId;
228         string m_panelId;
229     };
230     /// List
231     list<Button> m_listButton;
232
233     /// Type definition
234     struct Checkbox
235     {
236         Checkbox( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
237 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
238
239         string m_id;
240         int m_xPos;
241         int m_yPos;
242         string m_leftTop;
243         string m_rightBottom;
244         bool m_xKeepRatio;
245         bool m_yKeepRatio;
246         string m_visible;
247         string m_up1Id;
248         string m_down1Id;
249         string m_over1Id;
250         string m_up2Id;
251         string m_down2Id;
252         string m_over2Id;
253         string m_state;
254         string m_action1;
255         string m_action2;
256         string m_tooltip1;
257         string m_tooltip2;
258         string m_help;
259         int m_layer;
260         string m_windowId;
261         string m_layoutId;
262         string m_panelId;
263     };
264     /// List
265     list<Checkbox> m_listCheckbox;
266
267     /// Type definition
268     struct Image
269     {
270         Image( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
271 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
272
273         string m_id;
274         int m_xPos;
275         int m_yPos;
276         string m_leftTop;
277         string m_rightBottom;
278         bool m_xKeepRatio;
279         bool m_yKeepRatio;
280         string m_visible;
281         string m_bmpId;
282         string m_actionId;
283         string m_action2Id;
284         string m_resize;
285         string m_help;
286         int m_layer;
287         string m_windowId;
288         string m_layoutId;
289         string m_panelId;
290     };
291     /// List
292     list<Image> m_listImage;
293
294     /// Type definition
295     struct IniFile
296     {
297         IniFile( const string & id, const string & file ):
298 m_id( id ), m_file( file ) {}
299
300         string m_id;
301         string m_file;
302     };
303     /// List
304     list<IniFile> m_listIniFile;
305
306     /// Type definition
307     struct Panel
308     {
309         Panel( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, int width, int height, int layer, const string & windowId, const string & layoutId, const string & panelId ):
310 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_width( width ), m_height( height ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
311
312         string m_id;
313         int m_xPos;
314         int m_yPos;
315         string m_leftTop;
316         string m_rightBottom;
317         bool m_xKeepRatio;
318         bool m_yKeepRatio;
319         int m_width;
320         int m_height;
321         int m_layer;
322         string m_windowId;
323         string m_layoutId;
324         string m_panelId;
325     };
326     /// List
327     list<Panel> m_listPanel;
328
329     /// Type definition
330     struct Text
331     {
332         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, bool xKeepRatio, bool yKeepRatio, uint32_t color, const string & scrolling, const string & alignment, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
333 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_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_color( color ), m_scrolling( scrolling ), m_alignment( alignment ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
334
335         string m_id;
336         int m_xPos;
337         int m_yPos;
338         string m_visible;
339         string m_fontId;
340         string m_text;
341         int m_width;
342         string m_leftTop;
343         string m_rightBottom;
344         bool m_xKeepRatio;
345         bool m_yKeepRatio;
346         uint32_t m_color;
347         string m_scrolling;
348         string m_alignment;
349         string m_help;
350         int m_layer;
351         string m_windowId;
352         string m_layoutId;
353         string m_panelId;
354     };
355     /// List
356     list<Text> m_listText;
357
358     /// Type definition
359     struct RadialSlider
360     {
361         RadialSlider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
362 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
363
364         string m_id;
365         string m_visible;
366         int m_xPos;
367         int m_yPos;
368         string m_leftTop;
369         string m_rightBottom;
370         bool m_xKeepRatio;
371         bool m_yKeepRatio;
372         string m_sequence;
373         int m_nbImages;
374         float m_minAngle;
375         float m_maxAngle;
376         string m_value;
377         string m_tooltip;
378         string m_help;
379         int m_layer;
380         string m_windowId;
381         string m_layoutId;
382         string m_panelId;
383     };
384     /// List
385     list<RadialSlider> m_listRadialSlider;
386
387     /// Type definition
388     struct Slider
389     {
390         Slider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
391 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
392
393         string m_id;
394         string m_visible;
395         int m_xPos;
396         int m_yPos;
397         string m_leftTop;
398         string m_rightBottom;
399         bool m_xKeepRatio;
400         bool m_yKeepRatio;
401         string m_upId;
402         string m_downId;
403         string m_overId;
404         string m_points;
405         int m_thickness;
406         string m_value;
407         string m_imageId;
408         int m_nbHoriz;
409         int m_nbVert;
410         int m_padHoriz;
411         int m_padVert;
412         string m_tooltip;
413         string m_help;
414         int m_layer;
415         string m_windowId;
416         string m_layoutId;
417         string m_panelId;
418     };
419     /// List
420     list<Slider> m_listSlider;
421
422     /// Type definition
423     struct List
424     {
425         List( const string & id, int xPos, int yPos, const string & visible, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & fontId, const string & var, const string & bgImageId, const string & fgColor, const string & playColor, const string & bgColor1, const string & bgColor2, const string & selColor, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
426 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_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
427
428         string m_id;
429         int m_xPos;
430         int m_yPos;
431         string m_visible;
432         int m_width;
433         int m_height;
434         string m_leftTop;
435         string m_rightBottom;
436         bool m_xKeepRatio;
437         bool m_yKeepRatio;
438         string m_fontId;
439         string m_var;
440         string m_bgImageId;
441         string m_fgColor;
442         string m_playColor;
443         string m_bgColor1;
444         string m_bgColor2;
445         string m_selColor;
446         string m_help;
447         int m_layer;
448         string m_windowId;
449         string m_layoutId;
450         string m_panelId;
451     };
452     /// List
453     list<List> m_listList;
454
455     /// Type definition
456     struct Tree
457     {
458         Tree( const string & id, int xPos, int yPos, const string & visible, const string & flat, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & fontId, const string & var, const string & bgImageId, const string & itemImageId, const string & openImageId, const string & closedImageId, const string & fgColor, const string & playColor, const string & bgColor1, const string & bgColor2, const string & selColor, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
459 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_flat( flat ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
460
461         string m_id;
462         int m_xPos;
463         int m_yPos;
464         string m_visible;
465         string m_flat;
466         int m_width;
467         int m_height;
468         string m_leftTop;
469         string m_rightBottom;
470         bool m_xKeepRatio;
471         bool m_yKeepRatio;
472         string m_fontId;
473         string m_var;
474         string m_bgImageId;
475         string m_itemImageId;
476         string m_openImageId;
477         string m_closedImageId;
478         string m_fgColor;
479         string m_playColor;
480         string m_bgColor1;
481         string m_bgColor2;
482         string m_selColor;
483         string m_help;
484         int m_layer;
485         string m_windowId;
486         string m_layoutId;
487         string m_panelId;
488     };
489     /// List
490     list<Tree> m_listTree;
491
492     /// Type definition
493     struct Video
494     {
495         Video( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & visible, bool autoResize, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
496 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_visible( visible ), m_autoResize( autoResize ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
497
498         string m_id;
499         int m_xPos;
500         int m_yPos;
501         int m_width;
502         int m_height;
503         string m_leftTop;
504         string m_rightBottom;
505         bool m_xKeepRatio;
506         bool m_yKeepRatio;
507         string m_visible;
508         bool m_autoResize;
509         string m_help;
510         int m_layer;
511         string m_windowId;
512         string m_layoutId;
513         string m_panelId;
514     };
515     /// List
516     list<Video> m_listVideo;
517
518
519 };
520
521 #endif