]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* skins2: the Text control now supports 2 additional attributes:
[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 ):
60 m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ) {}
61
62         string m_id;
63         string m_fileName;
64         uint32_t m_alphaColor;
65     };
66     /// List
67     list<Bitmap> m_listBitmap;
68
69     /// Type definition
70     struct SubBitmap
71     {
72         SubBitmap( const string & id, const string & parent, int x, int y, int width, int height ):
73 m_id( id ), m_parent( parent ), m_x( x ), m_y( y ), m_width( width ), m_height( height ) {}
74
75         string m_id;
76         string m_parent;
77         int m_x;
78         int m_y;
79         int m_width;
80         int m_height;
81     };
82     /// List
83     list<SubBitmap> m_listSubBitmap;
84
85     /// Type definition
86     struct BitmapFont
87     {
88         BitmapFont( const string & id, const string & file, const string & type ):
89 m_id( id ), m_file( file ), m_type( type ) {}
90
91         string m_id;
92         string m_file;
93         string m_type;
94     };
95     /// List
96     list<BitmapFont> m_listBitmapFont;
97
98     /// Type definition
99     struct Font
100     {
101         Font( const string & id, const string & fontFile, int size ):
102 m_id( id ), m_fontFile( fontFile ), m_size( size ) {}
103
104         string m_id;
105         string m_fontFile;
106         int m_size;
107     };
108     /// List
109     list<Font> m_listFont;
110
111     /// Type definition
112     struct Window
113     {
114         Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
115 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
116
117         string m_id;
118         int m_xPos;
119         int m_yPos;
120         bool m_visible;
121         bool m_dragDrop;
122         bool m_playOnDrop;
123     };
124     /// List
125     list<Window> m_listWindow;
126
127     /// Type definition
128     struct Layout
129     {
130         Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
131 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
132
133         string m_id;
134         int m_width;
135         int m_height;
136         int m_minWidth;
137         int m_maxWidth;
138         int m_minHeight;
139         int m_maxHeight;
140         string m_windowId;
141     };
142     /// List
143     list<Layout> m_listLayout;
144
145     /// Type definition
146     struct Anchor
147     {
148         Anchor( int xPos, int yPos, int range, int priority, const string & points, const string & layoutId ):
149 m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {}
150
151         int m_xPos;
152         int m_yPos;
153         int m_range;
154         int m_priority;
155         string m_points;
156         string m_layoutId;
157     };
158     /// List
159     list<Anchor> m_listAnchor;
160
161     /// Type definition
162     struct Button
163     {
164         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 ):
165 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 ) {}
166
167         string m_id;
168         int m_xPos;
169         int m_yPos;
170         string m_leftTop;
171         string m_rightBottom;
172         string m_visible;
173         string m_upId;
174         string m_downId;
175         string m_overId;
176         string m_actionId;
177         string m_tooltip;
178         string m_help;
179         int m_layer;
180         string m_windowId;
181         string m_layoutId;
182     };
183     /// List
184     list<Button> m_listButton;
185
186     /// Type definition
187     struct Checkbox
188     {
189         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 ):
190 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 ) {}
191
192         string m_id;
193         int m_xPos;
194         int m_yPos;
195         string m_leftTop;
196         string m_rightBottom;
197         string m_visible;
198         string m_up1Id;
199         string m_down1Id;
200         string m_over1Id;
201         string m_up2Id;
202         string m_down2Id;
203         string m_over2Id;
204         string m_state;
205         string m_action1;
206         string m_action2;
207         string m_tooltip1;
208         string m_tooltip2;
209         string m_help;
210         int m_layer;
211         string m_windowId;
212         string m_layoutId;
213     };
214     /// List
215     list<Checkbox> m_listCheckbox;
216
217     /// Type definition
218     struct Image
219     {
220         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 & resize, const string & help, int layer, const string & windowId, const string & layoutId ):
221 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_resize( resize ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
222
223         string m_id;
224         int m_xPos;
225         int m_yPos;
226         string m_leftTop;
227         string m_rightBottom;
228         string m_visible;
229         string m_bmpId;
230         string m_actionId;
231         string m_resize;
232         string m_help;
233         int m_layer;
234         string m_windowId;
235         string m_layoutId;
236     };
237     /// List
238     list<Image> m_listImage;
239
240     /// Type definition
241     struct Text
242     {
243         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 ):
244 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 ) {}
245
246         string m_id;
247         int m_xPos;
248         int m_yPos;
249         string m_visible;
250         string m_fontId;
251         string m_text;
252         int m_width;
253         string m_leftTop;
254         string m_rightBottom;
255         uint32_t m_color;
256         string m_scrolling;
257         string m_alignment;
258         string m_help;
259         int m_layer;
260         string m_windowId;
261         string m_layoutId;
262     };
263     /// List
264     list<Text> m_listText;
265
266     /// Type definition
267     struct RadialSlider
268     {
269         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 ):
270 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 ) {}
271
272         string m_id;
273         string m_visible;
274         int m_xPos;
275         int m_yPos;
276         string m_leftTop;
277         string m_rightBottom;
278         string m_sequence;
279         int m_nbImages;
280         float m_minAngle;
281         float m_maxAngle;
282         string m_value;
283         string m_tooltip;
284         string m_help;
285         int m_layer;
286         string m_windowId;
287         string m_layoutId;
288     };
289     /// List
290     list<RadialSlider> m_listRadialSlider;
291
292     /// Type definition
293     struct Slider
294     {
295         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 ):
296 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 ) {}
297
298         string m_id;
299         string m_visible;
300         int m_xPos;
301         int m_yPos;
302         string m_leftTop;
303         string m_rightBottom;
304         string m_upId;
305         string m_downId;
306         string m_overId;
307         string m_points;
308         int m_thickness;
309         string m_value;
310         string m_imageId;
311         int m_nbHoriz;
312         int m_nbVert;
313         int m_padHoriz;
314         int m_padVert;
315         string m_tooltip;
316         string m_help;
317         int m_layer;
318         string m_windowId;
319         string m_layoutId;
320     };
321     /// List
322     list<Slider> m_listSlider;
323
324     /// Type definition
325     struct List
326     {
327         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 ):
328 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 ) {}
329
330         string m_id;
331         int m_xPos;
332         int m_yPos;
333         string m_visible;
334         int m_width;
335         int m_height;
336         string m_leftTop;
337         string m_rightBottom;
338         string m_fontId;
339         string m_var;
340         string m_bgImageId;
341         uint32_t m_fgColor;
342         uint32_t m_playColor;
343         uint32_t m_bgColor1;
344         uint32_t m_bgColor2;
345         uint32_t m_selColor;
346         string m_help;
347         int m_layer;
348         string m_windowId;
349         string m_layoutId;
350     };
351     /// List
352     list<List> m_listList;
353
354     /// Type definition
355     struct Tree
356     {
357         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 ):
358 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 ) {}
359
360         string m_id;
361         int m_xPos;
362         int m_yPos;
363         string m_visible;
364         int m_width;
365         int m_height;
366         string m_leftTop;
367         string m_rightBottom;
368         string m_fontId;
369         string m_var;
370         string m_bgImageId;
371         string m_itemImageId;
372         string m_openImageId;
373         string m_closedImageId;
374         uint32_t m_fgColor;
375         uint32_t m_playColor;
376         uint32_t m_bgColor1;
377         uint32_t m_bgColor2;
378         uint32_t m_selColor;
379         string m_help;
380         int m_layer;
381         string m_windowId;
382         string m_layoutId;
383     };
384     /// List
385     list<Tree> m_listTree;
386
387     /// Type definition
388     struct Video
389     {
390         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 ):
391 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 ) {}
392
393         string m_id;
394         int m_xPos;
395         int m_yPos;
396         int m_width;
397         int m_height;
398         string m_leftTop;
399         string m_rightBottom;
400         string m_visible;
401         bool m_autoResize;
402         string m_help;
403         int m_layer;
404         string m_windowId;
405         string m_layoutId;
406     };
407     /// List
408     list<Video> m_listVideo;
409
410
411 };
412
413 #endif