]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* skins2/parser/builder*: All the controls now have a 'visible' attribute
[vlc] / modules / gui / skins2 / parser / builder_data.hpp
1 /*****************************************************************************
2  * builder_data.hpp
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id$
6  *
7  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
8  *          Olivier Teulière <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, uint32_t fadeTime ):
46 m_tooltipfont( tooltipfont ), m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( moveAlpha ), m_fadeTime( fadeTime ) {}
47
48         const string m_tooltipfont;
49         int m_magnet;
50         uint32_t m_alpha;
51         uint32_t m_moveAlpha;
52         uint32_t m_fadeTime;
53     };
54     /// List
55     list<Theme> m_listTheme;
56
57     /// Type definition
58     struct Bitmap
59     {
60         Bitmap( const string & id, const string & fileName, uint32_t alphaColor ):
61 m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ) {}
62
63         const string m_id;
64         const string m_fileName;
65         uint32_t m_alphaColor;
66     };
67     /// List
68     list<Bitmap> m_listBitmap;
69
70     /// Type definition
71     struct Font
72     {
73         Font( const string & id, const string & fontFile, int size ):
74 m_id( id ), m_fontFile( fontFile ), m_size( size ) {}
75
76         const string m_id;
77         const string m_fontFile;
78         int m_size;
79     };
80     /// List
81     list<Font> m_listFont;
82
83     /// Type definition
84     struct Window
85     {
86         Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
87 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
88
89         const string m_id;
90         int m_xPos;
91         int m_yPos;
92         bool m_visible;
93         bool m_dragDrop;
94         bool m_playOnDrop;
95     };
96     /// List
97     list<Window> m_listWindow;
98
99     /// Type definition
100     struct Layout
101     {
102         Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
103 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
104
105         const string m_id;
106         int m_width;
107         int m_height;
108         int m_minWidth;
109         int m_maxWidth;
110         int m_minHeight;
111         int m_maxHeight;
112         const string m_windowId;
113     };
114     /// List
115     list<Layout> m_listLayout;
116
117     /// Type definition
118     struct Anchor
119     {
120         Anchor( int xPos, int yPos, int range, int priority, const string & points, const string & windowId ):
121 m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_points( points ), m_windowId( windowId ) {}
122
123         int m_xPos;
124         int m_yPos;
125         int m_range;
126         int m_priority;
127         const string m_points;
128         const string m_windowId;
129     };
130     /// List
131     list<Anchor> m_listAnchor;
132
133     /// Type definition
134     struct Button
135     {
136         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 ):
137 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 ) {}
138
139         const string m_id;
140         int m_xPos;
141         int m_yPos;
142         const string m_leftTop;
143         const string m_rightBottom;
144         const string m_visible;
145         const string m_upId;
146         const string m_downId;
147         const string m_overId;
148         const string m_actionId;
149         const string m_tooltip;
150         const string m_help;
151         int m_layer;
152         const string m_windowId;
153         const string m_layoutId;
154     };
155     /// List
156     list<Button> m_listButton;
157
158     /// Type definition
159     struct Checkbox
160     {
161         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 ):
162 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 ) {}
163
164         const string m_id;
165         int m_xPos;
166         int m_yPos;
167         const string m_leftTop;
168         const string m_rightBottom;
169         const string m_visible;
170         const string m_up1Id;
171         const string m_down1Id;
172         const string m_over1Id;
173         const string m_up2Id;
174         const string m_down2Id;
175         const string m_over2Id;
176         const string m_state;
177         const string m_action1;
178         const string m_action2;
179         const string m_tooltip1;
180         const string m_tooltip2;
181         const string m_help;
182         int m_layer;
183         const string m_windowId;
184         const string m_layoutId;
185     };
186     /// List
187     list<Checkbox> m_listCheckbox;
188
189     /// Type definition
190     struct Image
191     {
192         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 & help, int layer, const string & windowId, const string & layoutId ):
193 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_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
194
195         const string m_id;
196         int m_xPos;
197         int m_yPos;
198         const string m_leftTop;
199         const string m_rightBottom;
200         const string m_visible;
201         const string m_bmpId;
202         const string m_actionId;
203         const string m_help;
204         int m_layer;
205         const string m_windowId;
206         const string m_layoutId;
207     };
208     /// List
209     list<Image> m_listImage;
210
211     /// Type definition
212     struct Text
213     {
214         Text( const string & id, int xPos, int yPos, const string & visible, const string & fontId, const string & text, int width, uint32_t color, const string & help, int layer, const string & windowId, const string & layoutId ):
215 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_fontId( fontId ), m_text( text ), m_width( width ), m_color( color ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
216
217         const string m_id;
218         int m_xPos;
219         int m_yPos;
220         const string m_visible;
221         const string m_fontId;
222         const string m_text;
223         int m_width;
224         uint32_t m_color;
225         const string m_help;
226         int m_layer;
227         const string m_windowId;
228         const string m_layoutId;
229     };
230     /// List
231     list<Text> m_listText;
232
233     /// Type definition
234     struct RadialSlider
235     {
236         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 ):
237 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 ) {}
238
239         const string m_id;
240         const string m_visible;
241         int m_xPos;
242         int m_yPos;
243         const string m_leftTop;
244         const string m_rightBottom;
245         const string m_sequence;
246         int m_nbImages;
247         float m_minAngle;
248         float m_maxAngle;
249         const string m_value;
250         const string m_tooltip;
251         const string m_help;
252         int m_layer;
253         const string m_windowId;
254         const string m_layoutId;
255     };
256     /// List
257     list<RadialSlider> m_listRadialSlider;
258
259     /// Type definition
260     struct Slider
261     {
262         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 & tooltip, const string & help, int layer, const string & windowId, const string & layoutId ):
263 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_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
264
265         const string m_id;
266         const string m_visible;
267         int m_xPos;
268         int m_yPos;
269         const string m_leftTop;
270         const string m_rightBottom;
271         const string m_upId;
272         const string m_downId;
273         const string m_overId;
274         const string m_points;
275         int m_thickness;
276         const string m_value;
277         const string m_tooltip;
278         const string m_help;
279         int m_layer;
280         const string m_windowId;
281         const string m_layoutId;
282     };
283     /// List
284     list<Slider> m_listSlider;
285
286     /// Type definition
287     struct List
288     {
289         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, 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 ):
290 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_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 ) {}
291
292         const string m_id;
293         int m_xPos;
294         int m_yPos;
295         const string m_visible;
296         int m_width;
297         int m_height;
298         const string m_leftTop;
299         const string m_rightBottom;
300         const string m_fontId;
301         const string m_var;
302         uint32_t m_fgColor;
303         uint32_t m_playColor;
304         uint32_t m_bgColor1;
305         uint32_t m_bgColor2;
306         uint32_t m_selColor;
307         const string m_help;
308         int m_layer;
309         const string m_windowId;
310         const string m_layoutId;
311     };
312     /// List
313     list<List> m_listList;
314
315     /// Type definition
316     struct Video
317     {
318         Video( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, const string & visible, const string & help, int layer, const string & windowId, const string & layoutId ):
319 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_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
320
321         const string m_id;
322         int m_xPos;
323         int m_yPos;
324         int m_width;
325         int m_height;
326         const string m_leftTop;
327         const string m_rightBottom;
328         const string m_visible;
329         const string m_help;
330         int m_layer;
331         const string m_windowId;
332         const string m_layoutId;
333     };
334     /// List
335     list<Video> m_listVideo;
336
337
338 };
339
340 #endif