]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
skins2: implement art display in image controls
[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, bool art, 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_art( art ), 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         bool   m_art;
287         int m_layer;
288         string m_windowId;
289         string m_layoutId;
290         string m_panelId;
291     };
292     /// List
293     list<Image> m_listImage;
294
295     /// Type definition
296     struct IniFile
297     {
298         IniFile( const string & id, const string & file ):
299 m_id( id ), m_file( file ) {}
300
301         string m_id;
302         string m_file;
303     };
304     /// List
305     list<IniFile> m_listIniFile;
306
307     /// Type definition
308     struct Panel
309     {
310         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 ):
311 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 ) {}
312
313         string m_id;
314         int m_xPos;
315         int m_yPos;
316         string m_leftTop;
317         string m_rightBottom;
318         bool m_xKeepRatio;
319         bool m_yKeepRatio;
320         int m_width;
321         int m_height;
322         int m_layer;
323         string m_windowId;
324         string m_layoutId;
325         string m_panelId;
326     };
327     /// List
328     list<Panel> m_listPanel;
329
330     /// Type definition
331     struct Text
332     {
333         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 ):
334 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 ) {}
335
336         string m_id;
337         int m_xPos;
338         int m_yPos;
339         string m_visible;
340         string m_fontId;
341         string m_text;
342         int m_width;
343         string m_leftTop;
344         string m_rightBottom;
345         bool m_xKeepRatio;
346         bool m_yKeepRatio;
347         uint32_t m_color;
348         string m_scrolling;
349         string m_alignment;
350         string m_help;
351         int m_layer;
352         string m_windowId;
353         string m_layoutId;
354         string m_panelId;
355     };
356     /// List
357     list<Text> m_listText;
358
359     /// Type definition
360     struct RadialSlider
361     {
362         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 ):
363 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 ) {}
364
365         string m_id;
366         string m_visible;
367         int m_xPos;
368         int m_yPos;
369         string m_leftTop;
370         string m_rightBottom;
371         bool m_xKeepRatio;
372         bool m_yKeepRatio;
373         string m_sequence;
374         int m_nbImages;
375         float m_minAngle;
376         float m_maxAngle;
377         string m_value;
378         string m_tooltip;
379         string m_help;
380         int m_layer;
381         string m_windowId;
382         string m_layoutId;
383         string m_panelId;
384     };
385     /// List
386     list<RadialSlider> m_listRadialSlider;
387
388     /// Type definition
389     struct Slider
390     {
391         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 ):
392 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 ) {}
393
394         string m_id;
395         string m_visible;
396         int m_xPos;
397         int m_yPos;
398         string m_leftTop;
399         string m_rightBottom;
400         bool m_xKeepRatio;
401         bool m_yKeepRatio;
402         string m_upId;
403         string m_downId;
404         string m_overId;
405         string m_points;
406         int m_thickness;
407         string m_value;
408         string m_imageId;
409         int m_nbHoriz;
410         int m_nbVert;
411         int m_padHoriz;
412         int m_padVert;
413         string m_tooltip;
414         string m_help;
415         int m_layer;
416         string m_windowId;
417         string m_layoutId;
418         string m_panelId;
419     };
420     /// List
421     list<Slider> m_listSlider;
422
423     /// Type definition
424     struct List
425     {
426         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 ):
427 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 ) {}
428
429         string m_id;
430         int m_xPos;
431         int m_yPos;
432         string m_visible;
433         int m_width;
434         int m_height;
435         string m_leftTop;
436         string m_rightBottom;
437         bool m_xKeepRatio;
438         bool m_yKeepRatio;
439         string m_fontId;
440         string m_var;
441         string m_bgImageId;
442         string m_fgColor;
443         string m_playColor;
444         string m_bgColor1;
445         string m_bgColor2;
446         string m_selColor;
447         string m_help;
448         int m_layer;
449         string m_windowId;
450         string m_layoutId;
451         string m_panelId;
452     };
453     /// List
454     list<List> m_listList;
455
456     /// Type definition
457     struct Tree
458     {
459         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 ):
460 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 ) {}
461
462         string m_id;
463         int m_xPos;
464         int m_yPos;
465         string m_visible;
466         string m_flat;
467         int m_width;
468         int m_height;
469         string m_leftTop;
470         string m_rightBottom;
471         bool m_xKeepRatio;
472         bool m_yKeepRatio;
473         string m_fontId;
474         string m_var;
475         string m_bgImageId;
476         string m_itemImageId;
477         string m_openImageId;
478         string m_closedImageId;
479         string m_fgColor;
480         string m_playColor;
481         string m_bgColor1;
482         string m_bgColor2;
483         string m_selColor;
484         string m_help;
485         int m_layer;
486         string m_windowId;
487         string m_layoutId;
488         string m_panelId;
489     };
490     /// List
491     list<Tree> m_listTree;
492
493     /// Type definition
494     struct Video
495     {
496         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 ):
497 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 ) {}
498
499         string m_id;
500         int m_xPos;
501         int m_yPos;
502         int m_width;
503         int m_height;
504         string m_leftTop;
505         string m_rightBottom;
506         bool m_xKeepRatio;
507         bool m_yKeepRatio;
508         string m_visible;
509         bool m_autoResize;
510         string m_help;
511         int m_layer;
512         string m_windowId;
513         string m_layoutId;
514         string m_panelId;
515     };
516     /// List
517     list<Video> m_listVideo;
518
519
520 };
521
522 #endif