]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* moved the default skins2 theme in share/skins2/default/
[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 & fontName, int size ):
74 m_id( id ), m_fontName( fontName ), m_size( size ) {}
75
76         const string m_id;
77         const string m_fontName;
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 & 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_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_upId;
145         const string m_downId;
146         const string m_overId;
147         const string m_actionId;
148         const string m_tooltip;
149         const string m_help;
150         int m_layer;
151         const string m_windowId;
152         const string m_layoutId;
153     };
154     /// List
155     list<Button> m_listButton;
156
157     /// Type definition
158     struct Checkbox
159     {
160         Checkbox( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, 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 ):
161 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), 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 ) {}
162
163         const string m_id;
164         int m_xPos;
165         int m_yPos;
166         const string m_leftTop;
167         const string m_rightBottom;
168         const string m_up1Id;
169         const string m_down1Id;
170         const string m_over1Id;
171         const string m_up2Id;
172         const string m_down2Id;
173         const string m_over2Id;
174         const string m_state;
175         const string m_action1;
176         const string m_action2;
177         const string m_tooltip1;
178         const string m_tooltip2;
179         const string m_help;
180         int m_layer;
181         const string m_windowId;
182         const string m_layoutId;
183     };
184     /// List
185     list<Checkbox> m_listCheckbox;
186
187     /// Type definition
188     struct Image
189     {
190         Image( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool visible, const string & bmpId, const string & actionId, const string & help, int layer, const string & windowId, const string & layoutId ):
191 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 ) {}
192
193         const string m_id;
194         int m_xPos;
195         int m_yPos;
196         const string m_leftTop;
197         const string m_rightBottom;
198         bool m_visible;
199         const string m_bmpId;
200         const string m_actionId;
201         const string m_help;
202         int m_layer;
203         const string m_windowId;
204         const string m_layoutId;
205     };
206     /// List
207     list<Image> m_listImage;
208
209     /// Type definition
210     struct Text
211     {
212         Text( const string & id, int xPos, int yPos, const string & fontId, const string & text, int width, uint32_t color, const string & help, int layer, const string & windowId, const string & layoutId ):
213 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_fontId( fontId ), m_text( text ), m_width( width ), m_color( color ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
214
215         const string m_id;
216         int m_xPos;
217         int m_yPos;
218         const string m_fontId;
219         const string m_text;
220         int m_width;
221         uint32_t m_color;
222         const string m_help;
223         int m_layer;
224         const string m_windowId;
225         const string m_layoutId;
226     };
227     /// List
228     list<Text> m_listText;
229
230     /// Type definition
231     struct RadialSlider
232     {
233         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 ):
234 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 ) {}
235
236         const string m_id;
237         const string m_visible;
238         int m_xPos;
239         int m_yPos;
240         const string m_leftTop;
241         const string m_rightBottom;
242         const string m_sequence;
243         int m_nbImages;
244         float m_minAngle;
245         float m_maxAngle;
246         const string m_value;
247         const string m_tooltip;
248         const string m_help;
249         int m_layer;
250         const string m_windowId;
251         const string m_layoutId;
252     };
253     /// List
254     list<RadialSlider> m_listRadialSlider;
255
256     /// Type definition
257     struct Slider
258     {
259         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 ):
260 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 ) {}
261
262         const string m_id;
263         const string m_visible;
264         int m_xPos;
265         int m_yPos;
266         const string m_leftTop;
267         const string m_rightBottom;
268         const string m_upId;
269         const string m_downId;
270         const string m_overId;
271         const string m_points;
272         int m_thickness;
273         const string m_value;
274         const string m_tooltip;
275         const string m_help;
276         int m_layer;
277         const string m_windowId;
278         const string m_layoutId;
279     };
280     /// List
281     list<Slider> m_listSlider;
282
283     /// Type definition
284     struct List
285     {
286         List( const string & id, int xPos, int yPos, 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 ):
287 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), 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 ) {}
288
289         const string m_id;
290         int m_xPos;
291         int m_yPos;
292         int m_width;
293         int m_height;
294         const string m_leftTop;
295         const string m_rightBottom;
296         const string m_fontId;
297         const string m_var;
298         uint32_t m_fgColor;
299         uint32_t m_playColor;
300         uint32_t m_bgColor1;
301         uint32_t m_bgColor2;
302         uint32_t m_selColor;
303         const string m_help;
304         int m_layer;
305         const string m_windowId;
306         const string m_layoutId;
307     };
308     /// List
309     list<List> m_listList;
310
311     /// Type definition
312     struct Video
313     {
314         Video( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, bool visible, const string & help, int layer, const string & windowId, const string & layoutId ):
315 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 ) {}
316
317         const string m_id;
318         int m_xPos;
319         int m_yPos;
320         int m_width;
321         int m_height;
322         const string m_leftTop;
323         const string m_rightBottom;
324         bool m_visible;
325         const string m_help;
326         int m_layer;
327         const string m_windowId;
328         const string m_layoutId;
329     };
330     /// List
331     list<Video> m_listVideo;
332
333
334 };
335
336 #endif