]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* all: added a INI file parser in skins2. For instance if the file
[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, 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 IniFile
284     {
285         IniFile( const string & id, const string & file ):
286 m_id( id ), m_file( file ) {}
287
288         string m_id;
289         string m_file;
290     };
291     /// List
292     list<IniFile> m_listIniFile;
293
294     /// Type definition
295     struct Text
296     {
297         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 ):
298 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 ) {}
299
300         string m_id;
301         int m_xPos;
302         int m_yPos;
303         string m_visible;
304         string m_fontId;
305         string m_text;
306         int m_width;
307         string m_leftTop;
308         string m_rightBottom;
309         uint32_t m_color;
310         string m_scrolling;
311         string m_alignment;
312         string m_help;
313         int m_layer;
314         string m_windowId;
315         string m_layoutId;
316     };
317     /// List
318     list<Text> m_listText;
319
320     /// Type definition
321     struct RadialSlider
322     {
323         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 ):
324 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 ) {}
325
326         string m_id;
327         string m_visible;
328         int m_xPos;
329         int m_yPos;
330         string m_leftTop;
331         string m_rightBottom;
332         string m_sequence;
333         int m_nbImages;
334         float m_minAngle;
335         float m_maxAngle;
336         string m_value;
337         string m_tooltip;
338         string m_help;
339         int m_layer;
340         string m_windowId;
341         string m_layoutId;
342     };
343     /// List
344     list<RadialSlider> m_listRadialSlider;
345
346     /// Type definition
347     struct Slider
348     {
349         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 ):
350 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 ) {}
351
352         string m_id;
353         string m_visible;
354         int m_xPos;
355         int m_yPos;
356         string m_leftTop;
357         string m_rightBottom;
358         string m_upId;
359         string m_downId;
360         string m_overId;
361         string m_points;
362         int m_thickness;
363         string m_value;
364         string m_imageId;
365         int m_nbHoriz;
366         int m_nbVert;
367         int m_padHoriz;
368         int m_padVert;
369         string m_tooltip;
370         string m_help;
371         int m_layer;
372         string m_windowId;
373         string m_layoutId;
374     };
375     /// List
376     list<Slider> m_listSlider;
377
378     /// Type definition
379     struct List
380     {
381         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, 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 ):
382 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 ) {}
383
384         string m_id;
385         int m_xPos;
386         int m_yPos;
387         string m_visible;
388         int m_width;
389         int m_height;
390         string m_leftTop;
391         string m_rightBottom;
392         string m_fontId;
393         string m_var;
394         string m_bgImageId;
395         string m_fgColor;
396         string m_playColor;
397         string m_bgColor1;
398         string m_bgColor2;
399         string m_selColor;
400         string m_help;
401         int m_layer;
402         string m_windowId;
403         string m_layoutId;
404     };
405     /// List
406     list<List> m_listList;
407
408     /// Type definition
409     struct Tree
410     {
411         Tree( const string & id, int xPos, int yPos, const string & visible, const string & flat, 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, 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 ):
412 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_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 ) {}
413
414         string m_id;
415         int m_xPos;
416         int m_yPos;
417         string m_visible;
418         string m_flat;
419         int m_width;
420         int m_height;
421         string m_leftTop;
422         string m_rightBottom;
423         string m_fontId;
424         string m_var;
425         string m_bgImageId;
426         string m_itemImageId;
427         string m_openImageId;
428         string m_closedImageId;
429         string m_fgColor;
430         string m_playColor;
431         string m_bgColor1;
432         string m_bgColor2;
433         string m_selColor;
434         string m_help;
435         int m_layer;
436         string m_windowId;
437         string m_layoutId;
438     };
439     /// List
440     list<Tree> m_listTree;
441
442     /// Type definition
443     struct Video
444     {
445         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 ):
446 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 ) {}
447
448         string m_id;
449         int m_xPos;
450         int m_yPos;
451         int m_width;
452         int m_height;
453         string m_leftTop;
454         string m_rightBottom;
455         string m_visible;
456         bool m_autoResize;
457         string m_help;
458         int m_layer;
459         string m_windowId;
460         string m_layoutId;
461     };
462     /// List
463     list<Video> m_listVideo;
464
465
466 };
467
468 #endif