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