00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef BUILDER_DATA_HPP
00029 #define BUILDER_DATA_HPP
00030
00031 #include <vlc/vlc.h>
00032 #include <list>
00033 #include <map>
00034 #include <string>
00035
00036 using namespace std;
00037
00039 struct BuilderData
00040 {
00041
00043 struct Theme
00044 {
00045 Theme( const string & tooltipfont, int magnet, uint32_t alpha, uint32_t moveAlpha ):
00046 m_tooltipfont( tooltipfont ), m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( moveAlpha ) {}
00047
00048 const string m_tooltipfont;
00049 int m_magnet;
00050 uint32_t m_alpha;
00051 uint32_t m_moveAlpha;
00052 };
00054 list<Theme> m_listTheme;
00055
00057 struct Bitmap
00058 {
00059 Bitmap( const string & id, const string & fileName, uint32_t alphaColor ):
00060 m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ) {}
00061
00062 const string m_id;
00063 const string m_fileName;
00064 uint32_t m_alphaColor;
00065 };
00067 list<Bitmap> m_listBitmap;
00068
00070 struct BitmapFont
00071 {
00072 BitmapFont( const string & id, const string & file, const string & type ):
00073 m_id( id ), m_file( file ), m_type( type ) {}
00074
00075 const string m_id;
00076 const string m_file;
00077 const string m_type;
00078 };
00080 list<BitmapFont> m_listBitmapFont;
00081
00083 struct Font
00084 {
00085 Font( const string & id, const string & fontFile, int size ):
00086 m_id( id ), m_fontFile( fontFile ), m_size( size ) {}
00087
00088 const string m_id;
00089 const string m_fontFile;
00090 int m_size;
00091 };
00093 list<Font> m_listFont;
00094
00096 struct Window
00097 {
00098 Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
00099 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
00100
00101 const string m_id;
00102 int m_xPos;
00103 int m_yPos;
00104 bool m_visible;
00105 bool m_dragDrop;
00106 bool m_playOnDrop;
00107 };
00109 list<Window> m_listWindow;
00110
00112 struct Layout
00113 {
00114 Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
00115 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
00116
00117 const string m_id;
00118 int m_width;
00119 int m_height;
00120 int m_minWidth;
00121 int m_maxWidth;
00122 int m_minHeight;
00123 int m_maxHeight;
00124 const string m_windowId;
00125 };
00127 list<Layout> m_listLayout;
00128
00130 struct Anchor
00131 {
00132 Anchor( int xPos, int yPos, int range, int priority, const string & points, const string & layoutId ):
00133 m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {}
00134
00135 int m_xPos;
00136 int m_yPos;
00137 int m_range;
00138 int m_priority;
00139 const string m_points;
00140 const string m_layoutId;
00141 };
00143 list<Anchor> m_listAnchor;
00144
00146 struct Button
00147 {
00148 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 ):
00149 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 ) {}
00150
00151 const string m_id;
00152 int m_xPos;
00153 int m_yPos;
00154 const string m_leftTop;
00155 const string m_rightBottom;
00156 const string m_visible;
00157 const string m_upId;
00158 const string m_downId;
00159 const string m_overId;
00160 const string m_actionId;
00161 const string m_tooltip;
00162 const string m_help;
00163 int m_layer;
00164 const string m_windowId;
00165 const string m_layoutId;
00166 };
00168 list<Button> m_listButton;
00169
00171 struct Checkbox
00172 {
00173 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 ):
00174 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 ) {}
00175
00176 const string m_id;
00177 int m_xPos;
00178 int m_yPos;
00179 const string m_leftTop;
00180 const string m_rightBottom;
00181 const string m_visible;
00182 const string m_up1Id;
00183 const string m_down1Id;
00184 const string m_over1Id;
00185 const string m_up2Id;
00186 const string m_down2Id;
00187 const string m_over2Id;
00188 const string m_state;
00189 const string m_action1;
00190 const string m_action2;
00191 const string m_tooltip1;
00192 const string m_tooltip2;
00193 const string m_help;
00194 int m_layer;
00195 const string m_windowId;
00196 const string m_layoutId;
00197 };
00199 list<Checkbox> m_listCheckbox;
00200
00202 struct Image
00203 {
00204 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 ):
00205 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 ) {}
00206
00207 const string m_id;
00208 int m_xPos;
00209 int m_yPos;
00210 const string m_leftTop;
00211 const string m_rightBottom;
00212 const string m_visible;
00213 const string m_bmpId;
00214 const string m_actionId;
00215 const string m_resize;
00216 const string m_help;
00217 int m_layer;
00218 const string m_windowId;
00219 const string m_layoutId;
00220 };
00222 list<Image> m_listImage;
00223
00225 struct Text
00226 {
00227 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 ):
00228 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 ) {}
00229
00230 const string m_id;
00231 int m_xPos;
00232 int m_yPos;
00233 const string m_visible;
00234 const string m_fontId;
00235 const string m_text;
00236 int m_width;
00237 const string m_leftTop;
00238 const string m_rightBottom;
00239 uint32_t m_color;
00240 const string m_help;
00241 int m_layer;
00242 const string m_windowId;
00243 const string m_layoutId;
00244 };
00246 list<Text> m_listText;
00247
00249 struct RadialSlider
00250 {
00251 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 ):
00252 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 ) {}
00253
00254 const string m_id;
00255 const string m_visible;
00256 int m_xPos;
00257 int m_yPos;
00258 const string m_leftTop;
00259 const string m_rightBottom;
00260 const string m_sequence;
00261 int m_nbImages;
00262 float m_minAngle;
00263 float m_maxAngle;
00264 const string m_value;
00265 const string m_tooltip;
00266 const string m_help;
00267 int m_layer;
00268 const string m_windowId;
00269 const string m_layoutId;
00270 };
00272 list<RadialSlider> m_listRadialSlider;
00273
00275 struct Slider
00276 {
00277 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 ):
00278 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 ) {}
00279
00280 const string m_id;
00281 const string m_visible;
00282 int m_xPos;
00283 int m_yPos;
00284 const string m_leftTop;
00285 const string m_rightBottom;
00286 const string m_upId;
00287 const string m_downId;
00288 const string m_overId;
00289 const string m_points;
00290 int m_thickness;
00291 const string m_value;
00292 const string m_tooltip;
00293 const string m_help;
00294 int m_layer;
00295 const string m_windowId;
00296 const string m_layoutId;
00297 };
00299 list<Slider> m_listSlider;
00300
00302 struct List
00303 {
00304 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 ):
00305 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 ) {}
00306
00307 const string m_id;
00308 int m_xPos;
00309 int m_yPos;
00310 const string m_visible;
00311 int m_width;
00312 int m_height;
00313 const string m_leftTop;
00314 const string m_rightBottom;
00315 const string m_fontId;
00316 const string m_var;
00317 const string m_bgImageId;
00318 uint32_t m_fgColor;
00319 uint32_t m_playColor;
00320 uint32_t m_bgColor1;
00321 uint32_t m_bgColor2;
00322 uint32_t m_selColor;
00323 const string m_help;
00324 int m_layer;
00325 const string m_windowId;
00326 const string m_layoutId;
00327 };
00329 list<List> m_listList;
00330
00332 struct Tree
00333 {
00334 Tree( 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, const string & itemImageId, const string & openImageId, const string & closedImageId, 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 ):
00335 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_itemImageId( itemImageId ), m_openImageId( openImageId ), m_closedImageId( closedImageId ), 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 ) {}
00336
00337 const string m_id;
00338 int m_xPos;
00339 int m_yPos;
00340 const string m_visible;
00341 int m_width;
00342 int m_height;
00343 const string m_leftTop;
00344 const string m_rightBottom;
00345 const string m_fontId;
00346 const string m_var;
00347 const string m_bgImageId;
00348 const string m_itemImageId;
00349 const string m_openImageId;
00350 const string m_closedImageId;
00351 uint32_t m_fgColor;
00352 uint32_t m_playColor;
00353 uint32_t m_bgColor1;
00354 uint32_t m_bgColor2;
00355 uint32_t m_selColor;
00356 const string m_help;
00357 int m_layer;
00358 const string m_windowId;
00359 const string m_layoutId;
00360 };
00362 list<Tree> m_listTree;
00363
00365 struct Video
00366 {
00367 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 ):
00368 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 ) {}
00369
00370 const string m_id;
00371 int m_xPos;
00372 int m_yPos;
00373 int m_width;
00374 int m_height;
00375 const string m_leftTop;
00376 const string m_rightBottom;
00377 const string m_visible;
00378 const string m_help;
00379 int m_layer;
00380 const string m_windowId;
00381 const string m_layoutId;
00382 };
00384 list<Video> m_listVideo;
00385
00386
00387 };
00388
00389 #endif