]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* skins2: new "xkeepratio" and "ykeepratio" attributes, common to all the
[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 ):
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 ) {}
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     };
227     /// List
228     list<Button> m_listButton;
229
230     /// Type definition
231     struct Checkbox
232     {
233         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 ):
234 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 ) {}
235
236         string m_id;
237         int m_xPos;
238         int m_yPos;
239         string m_leftTop;
240         string m_rightBottom;
241         bool m_xKeepRatio;
242         bool m_yKeepRatio;
243         string m_visible;
244         string m_up1Id;
245         string m_down1Id;
246         string m_over1Id;
247         string m_up2Id;
248         string m_down2Id;
249         string m_over2Id;
250         string m_state;
251         string m_action1;
252         string m_action2;
253         string m_tooltip1;
254         string m_tooltip2;
255         string m_help;
256         int m_layer;
257         string m_windowId;
258         string m_layoutId;
259     };
260     /// List
261     list<Checkbox> m_listCheckbox;
262
263     /// Type definition
264     struct Image
265     {
266         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 ):
267 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 ) {}
268
269         string m_id;
270         int m_xPos;
271         int m_yPos;
272         string m_leftTop;
273         string m_rightBottom;
274         bool m_xKeepRatio;
275         bool m_yKeepRatio;
276         string m_visible;
277         string m_bmpId;
278         string m_actionId;
279         string m_action2Id;
280         string m_resize;
281         string m_help;
282         int m_layer;
283         string m_windowId;
284         string m_layoutId;
285     };
286     /// List
287     list<Image> m_listImage;
288
289     /// Type definition
290     struct IniFile
291     {
292         IniFile( const string & id, const string & file ):
293 m_id( id ), m_file( file ) {}
294
295         string m_id;
296         string m_file;
297     };
298     /// List
299     list<IniFile> m_listIniFile;
300
301     /// Type definition
302     struct Text
303     {
304         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 ):
305 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 ) {}
306
307         string m_id;
308         int m_xPos;
309         int m_yPos;
310         string m_visible;
311         string m_fontId;
312         string m_text;
313         int m_width;
314         string m_leftTop;
315         string m_rightBottom;
316         bool m_xKeepRatio;
317         bool m_yKeepRatio;
318         uint32_t m_color;
319         string m_scrolling;
320         string m_alignment;
321         string m_help;
322         int m_layer;
323         string m_windowId;
324         string m_layoutId;
325     };
326     /// List
327     list<Text> m_listText;
328
329     /// Type definition
330     struct RadialSlider
331     {
332         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 ):
333 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 ) {}
334
335         string m_id;
336         string m_visible;
337         int m_xPos;
338         int m_yPos;
339         string m_leftTop;
340         string m_rightBottom;
341         bool m_xKeepRatio;
342         bool m_yKeepRatio;
343         string m_sequence;
344         int m_nbImages;
345         float m_minAngle;
346         float m_maxAngle;
347         string m_value;
348         string m_tooltip;
349         string m_help;
350         int m_layer;
351         string m_windowId;
352         string m_layoutId;
353     };
354     /// List
355     list<RadialSlider> m_listRadialSlider;
356
357     /// Type definition
358     struct Slider
359     {
360         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 ):
361 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 ) {}
362
363         string m_id;
364         string m_visible;
365         int m_xPos;
366         int m_yPos;
367         string m_leftTop;
368         string m_rightBottom;
369         bool m_xKeepRatio;
370         bool m_yKeepRatio;
371         string m_upId;
372         string m_downId;
373         string m_overId;
374         string m_points;
375         int m_thickness;
376         string m_value;
377         string m_imageId;
378         int m_nbHoriz;
379         int m_nbVert;
380         int m_padHoriz;
381         int m_padVert;
382         string m_tooltip;
383         string m_help;
384         int m_layer;
385         string m_windowId;
386         string m_layoutId;
387     };
388     /// List
389     list<Slider> m_listSlider;
390
391     /// Type definition
392     struct List
393     {
394         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 ):
395 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 ) {}
396
397         string m_id;
398         int m_xPos;
399         int m_yPos;
400         string m_visible;
401         int m_width;
402         int m_height;
403         string m_leftTop;
404         string m_rightBottom;
405         bool m_xKeepRatio;
406         bool m_yKeepRatio;
407         string m_fontId;
408         string m_var;
409         string m_bgImageId;
410         string m_fgColor;
411         string m_playColor;
412         string m_bgColor1;
413         string m_bgColor2;
414         string m_selColor;
415         string m_help;
416         int m_layer;
417         string m_windowId;
418         string m_layoutId;
419     };
420     /// List
421     list<List> m_listList;
422
423     /// Type definition
424     struct Tree
425     {
426         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 ):
427 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 ) {}
428
429         string m_id;
430         int m_xPos;
431         int m_yPos;
432         string m_visible;
433         string m_flat;
434         int m_width;
435         int m_height;
436         string m_leftTop;
437         string m_rightBottom;
438         bool m_xKeepRatio;
439         bool m_yKeepRatio;
440         string m_fontId;
441         string m_var;
442         string m_bgImageId;
443         string m_itemImageId;
444         string m_openImageId;
445         string m_closedImageId;
446         string m_fgColor;
447         string m_playColor;
448         string m_bgColor1;
449         string m_bgColor2;
450         string m_selColor;
451         string m_help;
452         int m_layer;
453         string m_windowId;
454         string m_layoutId;
455     };
456     /// List
457     list<Tree> m_listTree;
458
459     /// Type definition
460     struct Video
461     {
462         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 ):
463 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 ) {}
464
465         string m_id;
466         int m_xPos;
467         int m_yPos;
468         int m_width;
469         int m_height;
470         string m_leftTop;
471         string m_rightBottom;
472         bool m_xKeepRatio;
473         bool m_yKeepRatio;
474         string m_visible;
475         bool m_autoResize;
476         string m_help;
477         int m_layer;
478         string m_windowId;
479         string m_layoutId;
480     };
481     /// List
482     list<Video> m_listVideo;
483
484
485 };
486
487 #endif