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