]> git.sesse.net Git - vlc/blob - modules/gui/skins2/parser/builder_data.hpp
* controls/*, src/generic_window.cpp, src/generic_layout.cpp: a visibiliy
[vlc] / modules / gui / skins2 / parser / builder_data.hpp
1 /*****************************************************************************
2  * builder_data.hpp
3  *****************************************************************************
4  * Copyright (C) 2003 VideoLAN
5  * $Id: builder_data.hpp,v 1.5 2004/02/29 16:49:55 asmax Exp $
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 using namespace std;
32
33 #include <vlc/vlc.h>
34 #include <list>
35 #include <map>
36 #include <string>
37
38 /// Structure for mapping data from XML file
39 struct BuilderData
40 {
41
42     /// Type definition
43     struct Theme
44     {
45         Theme( int magnet, uint32_t alpha, uint32_t moveAlpha, uint32_t fadeTime ):
46 m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( moveAlpha ), m_fadeTime( fadeTime ) {}
47
48         int m_magnet;
49         uint32_t m_alpha;
50         uint32_t m_moveAlpha;
51         uint32_t m_fadeTime;
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 Font
71     {
72         Font( const string & id, const string & fontName, int size ):
73 m_id( id ), m_fontName( fontName ), m_size( size ) {}
74
75         const string m_id;
76         const string m_fontName;
77         int m_size;
78     };
79     /// List
80     list<Font> m_listFont;
81
82     /// Type definition
83     struct Window
84     {
85         Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
86 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
87
88         const string m_id;
89         int m_xPos;
90         int m_yPos;
91         bool m_visible;
92         bool m_dragDrop;
93         bool m_playOnDrop;
94     };
95     /// List
96     list<Window> m_listWindow;
97
98     /// Type definition
99     struct Layout
100     {
101         Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
102 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
103
104         const string m_id;
105         int m_width;
106         int m_height;
107         int m_minWidth;
108         int m_maxWidth;
109         int m_minHeight;
110         int m_maxHeight;
111         const string m_windowId;
112     };
113     /// List
114     list<Layout> m_listLayout;
115
116     /// Type definition
117     struct Anchor
118     {
119         Anchor( int xPos, int yPos, int range, int priority, const string & windowId ):
120 m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_windowId( windowId ) {}
121
122         int m_xPos;
123         int m_yPos;
124         int m_range;
125         int m_priority;
126         const string m_windowId;
127     };
128     /// List
129     list<Anchor> m_listAnchor;
130
131     /// Type definition
132     struct Button
133     {
134         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 ):
135 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 ) {}
136
137         const string m_id;
138         int m_xPos;
139         int m_yPos;
140         const string m_leftTop;
141         const string m_rightBottom;
142         const string m_upId;
143         const string m_downId;
144         const string m_overId;
145         const string m_actionId;
146         const string m_tooltip;
147         const string m_help;
148         int m_layer;
149         const string m_windowId;
150         const string m_layoutId;
151     };
152     /// List
153     list<Button> m_listButton;
154
155     /// Type definition
156     struct Checkbox
157     {
158         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 ):
159 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 ) {}
160
161         const string m_id;
162         int m_xPos;
163         int m_yPos;
164         const string m_leftTop;
165         const string m_rightBottom;
166         const string m_up1Id;
167         const string m_down1Id;
168         const string m_over1Id;
169         const string m_up2Id;
170         const string m_down2Id;
171         const string m_over2Id;
172         const string m_state;
173         const string m_action1;
174         const string m_action2;
175         const string m_tooltip1;
176         const string m_tooltip2;
177         const string m_help;
178         int m_layer;
179         const string m_windowId;
180         const string m_layoutId;
181     };
182     /// List
183     list<Checkbox> m_listCheckbox;
184
185     /// Type definition
186     struct Image
187     {
188         Image( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool visible, const string & bmpId, const string & onclickId, const string & help, int layer, const string & windowId, const string & layoutId ):
189 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_visible( visible ), m_bmpId( bmpId ), m_onclickId( onclickId ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ) {}
190
191         const string m_id;
192         int m_xPos;
193         int m_yPos;
194         const string m_leftTop;
195         const string m_rightBottom;
196         bool m_visible;
197         const string m_bmpId;
198         const string m_onclickId;
199         const string m_help;
200         int m_layer;
201         const string m_windowId;
202         const string m_layoutId;
203     };
204     /// List
205     list<Image> m_listImage;
206
207     /// Type definition
208     struct Text
209     {
210         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 ):
211 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 ) {}
212
213         const string m_id;
214         int m_xPos;
215         int m_yPos;
216         const string m_fontId;
217         const string m_text;
218         int m_width;
219         uint32_t m_color;
220         const string m_help;
221         int m_layer;
222         const string m_windowId;
223         const string m_layoutId;
224     };
225     /// List
226     list<Text> m_listText;
227
228     /// Type definition
229     struct RadialSlider
230     {
231         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 ):
232 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 ) {}
233
234         const string m_id;
235         const string m_visible;
236         int m_xPos;
237         int m_yPos;
238         const string m_leftTop;
239         const string m_rightBottom;
240         const string m_sequence;
241         int m_nbImages;
242         float m_minAngle;
243         float m_maxAngle;
244         const string m_value;
245         const string m_tooltip;
246         const string m_help;
247         int m_layer;
248         const string m_windowId;
249         const string m_layoutId;
250     };
251     /// List
252     list<RadialSlider> m_listRadialSlider;
253
254     /// Type definition
255     struct Slider
256     {
257         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 ):
258 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 ) {}
259
260         const string m_id;
261         const string m_visible;
262         int m_xPos;
263         int m_yPos;
264         const string m_leftTop;
265         const string m_rightBottom;
266         const string m_upId;
267         const string m_downId;
268         const string m_overId;
269         const string m_points;
270         int m_thickness;
271         const string m_value;
272         const string m_tooltip;
273         const string m_help;
274         int m_layer;
275         const string m_windowId;
276         const string m_layoutId;
277     };
278     /// List
279     list<Slider> m_listSlider;
280
281     /// Type definition
282     struct List
283     {
284         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 ):
285 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 ) {}
286
287         const string m_id;
288         int m_xPos;
289         int m_yPos;
290         int m_width;
291         int m_height;
292         const string m_leftTop;
293         const string m_rightBottom;
294         const string m_fontId;
295         const string m_var;
296         uint32_t m_fgColor;
297         uint32_t m_playColor;
298         uint32_t m_bgColor1;
299         uint32_t m_bgColor2;
300         uint32_t m_selColor;
301         const string m_help;
302         int m_layer;
303         const string m_windowId;
304         const string m_layoutId;
305     };
306     /// List
307     list<List> m_listList;
308
309
310 };
311
312 #endif