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