]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
95832775839872a57e2463cec98c517439e80e67
[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., 59 Temple Place - Suite 330, Boston, MA  02111, 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, int range, int priority, const string & points, const string & layoutId ):
190 m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {}
191
192         int m_xPos;
193         int m_yPos;
194         int m_range;
195         int m_priority;
196         string m_points;
197         string m_layoutId;
198     };
199     /// List
200     list<Anchor> m_listAnchor;
201
202     /// Type definition
203     struct Button
204     {
205         Button( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, 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 ):
206 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), 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 ) {}
207
208         string m_id;
209         int m_xPos;
210         int m_yPos;
211         string m_leftTop;
212         string m_rightBottom;
213         string m_visible;
214         string m_upId;
215         string m_downId;
216         string m_overId;
217         string m_actionId;
218         string m_tooltip;
219         string m_help;
220         int m_layer;
221         string m_windowId;
222         string m_layoutId;
223     };
224     /// List
225     list<Button> m_listButton;
226
227     /// Type definition
228     struct Checkbox
229     {
230         Checkbox( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, 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 ):
231 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), 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 ) {}
232
233         string m_id;
234         int m_xPos;
235         int m_yPos;
236         string m_leftTop;
237         string m_rightBottom;
238         string m_visible;
239         string m_up1Id;
240         string m_down1Id;
241         string m_over1Id;
242         string m_up2Id;
243         string m_down2Id;
244         string m_over2Id;
245         string m_state;
246         string m_action1;
247         string m_action2;
248         string m_tooltip1;
249         string m_tooltip2;
250         string m_help;
251         int m_layer;
252         string m_windowId;
253         string m_layoutId;
254     };
255     /// List
256     list<Checkbox> m_listCheckbox;
257
258     /// Type definition
259     struct Image
260     {
261         Image( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, 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 ):
262 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), 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 ) {}
263
264         string m_id;
265         int m_xPos;
266         int m_yPos;
267         string m_leftTop;
268         string m_rightBottom;
269         string m_visible;
270         string m_bmpId;
271         string m_actionId;
272         string m_action2Id;
273         string m_resize;
274         string m_help;
275         int m_layer;
276         string m_windowId;
277         string m_layoutId;
278     };
279     /// List
280     list<Image> m_listImage;
281
282     /// Type definition
283     struct Text
284     {
285         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, uint32_t color, const string & scrolling, const string & alignment, const string & help, int layer, const string & windowId, const string & layoutId ):
286 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_color( color ), m_scrolling( scrolling ), m_alignment( alignment ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
287
288         string m_id;
289         int m_xPos;
290         int m_yPos;
291         string m_visible;
292         string m_fontId;
293         string m_text;
294         int m_width;
295         string m_leftTop;
296         string m_rightBottom;
297         uint32_t m_color;
298         string m_scrolling;
299         string m_alignment;
300         string m_help;
301         int m_layer;
302         string m_windowId;
303         string m_layoutId;
304     };
305     /// List
306     list<Text> m_listText;
307
308     /// Type definition
309     struct RadialSlider
310     {
311         RadialSlider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, 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 ):
312 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), 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 ) {}
313
314         string m_id;
315         string m_visible;
316         int m_xPos;
317         int m_yPos;
318         string m_leftTop;
319         string m_rightBottom;
320         string m_sequence;
321         int m_nbImages;
322         float m_minAngle;
323         float m_maxAngle;
324         string m_value;
325         string m_tooltip;
326         string m_help;
327         int m_layer;
328         string m_windowId;
329         string m_layoutId;
330     };
331     /// List
332     list<RadialSlider> m_listRadialSlider;
333
334     /// Type definition
335     struct Slider
336     {
337         Slider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, 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 ):
338 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), 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 ) {}
339
340         string m_id;
341         string m_visible;
342         int m_xPos;
343         int m_yPos;
344         string m_leftTop;
345         string m_rightBottom;
346         string m_upId;
347         string m_downId;
348         string m_overId;
349         string m_points;
350         int m_thickness;
351         string m_value;
352         string m_imageId;
353         int m_nbHoriz;
354         int m_nbVert;
355         int m_padHoriz;
356         int m_padVert;
357         string m_tooltip;
358         string m_help;
359         int m_layer;
360         string m_windowId;
361         string m_layoutId;
362     };
363     /// List
364     list<Slider> m_listSlider;
365
366     /// Type definition
367     struct List
368     {
369         List( const string & id, int xPos, int yPos, const string & visible, int width, int height, const string & leftTop, const string & rightBottom, const string & fontId, const string & var, const string & bgImageId, uint32_t fgColor, uint32_t playColor, uint32_t bgColor1, uint32_t bgColor2, uint32_t selColor, const string & help, int layer, const string & windowId, const string & layoutId ):
370 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_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 ) {}
371
372         string m_id;
373         int m_xPos;
374         int m_yPos;
375         string m_visible;
376         int m_width;
377         int m_height;
378         string m_leftTop;
379         string m_rightBottom;
380         string m_fontId;
381         string m_var;
382         string m_bgImageId;
383         uint32_t m_fgColor;
384         uint32_t m_playColor;
385         uint32_t m_bgColor1;
386         uint32_t m_bgColor2;
387         uint32_t m_selColor;
388         string m_help;
389         int m_layer;
390         string m_windowId;
391         string m_layoutId;
392     };
393     /// List
394     list<List> m_listList;
395
396     /// Type definition
397     struct Tree
398     {
399         Tree( const string & id, int xPos, int yPos, const string & visible, int width, int height, const string & leftTop, const string & rightBottom, const string & fontId, const string & var, const string & bgImageId, const string & itemImageId, const string & openImageId, const string & closedImageId, uint32_t fgColor, uint32_t playColor, uint32_t bgColor1, uint32_t bgColor2, uint32_t selColor, const string & help, int layer, const string & windowId, const string & layoutId ):
400 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_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 ) {}
401
402         string m_id;
403         int m_xPos;
404         int m_yPos;
405         string m_visible;
406         int m_width;
407         int m_height;
408         string m_leftTop;
409         string m_rightBottom;
410         string m_fontId;
411         string m_var;
412         string m_bgImageId;
413         string m_itemImageId;
414         string m_openImageId;
415         string m_closedImageId;
416         uint32_t m_fgColor;
417         uint32_t m_playColor;
418         uint32_t m_bgColor1;
419         uint32_t m_bgColor2;
420         uint32_t m_selColor;
421         string m_help;
422         int m_layer;
423         string m_windowId;
424         string m_layoutId;
425     };
426     /// List
427     list<Tree> m_listTree;
428
429     /// Type definition
430     struct Video
431     {
432         Video( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, const string & visible, bool autoResize, const string & help, int layer, const string & windowId, const string & layoutId ):
433 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_visible( visible ), m_autoResize( autoResize ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
434
435         string m_id;
436         int m_xPos;
437         int m_yPos;
438         int m_width;
439         int m_height;
440         string m_leftTop;
441         string m_rightBottom;
442         string m_visible;
443         bool m_autoResize;
444         string m_help;
445         int m_layer;
446         string m_windowId;
447         string m_layoutId;
448     };
449     /// List
450     list<Video> m_listVideo;
451
452
453 };
454
455 #endif