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