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_common.h>
00032 #include <list>
00033 #include <map>
00034 #include <string>
00035
00036 using namespace std;
00037
00038
00039 struct BuilderData
00040 {
00041
00042
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 string m_tooltipfont;
00049 int m_magnet;
00050 uint32_t m_alpha;
00051 uint32_t m_moveAlpha;
00052 };
00053
00054 list<Theme> m_listTheme;
00055
00056
00057 struct Bitmap
00058 {
00059 Bitmap( const string & id, const string & fileName, uint32_t alphaColor, int nbFrames, int fps, int nbLoops ):
00060 m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ), m_nbFrames( nbFrames ), m_fps( fps ), m_nbLoops( nbLoops ) {}
00061
00062 string m_id;
00063 string m_fileName;
00064 uint32_t m_alphaColor;
00065 int m_nbFrames;
00066 int m_fps;
00067 int m_nbLoops;
00068 };
00069
00070 list<Bitmap> m_listBitmap;
00071
00072
00073 struct SubBitmap
00074 {
00075 SubBitmap( const string & id, const string & parent, int x, int y, int width, int height, int nbFrames, int fps, int nbLoops ):
00076 m_id( id ), m_parent( parent ), m_x( x ), m_y( y ), m_width( width ), m_height( height ), m_nbFrames( nbFrames ), m_fps( fps ), m_nbLoops( nbLoops ) {}
00077
00078 string m_id;
00079 string m_parent;
00080 int m_x;
00081 int m_y;
00082 int m_width;
00083 int m_height;
00084 int m_nbFrames;
00085 int m_fps;
00086 int m_nbLoops;
00087 };
00088
00089 list<SubBitmap> m_listSubBitmap;
00090
00091
00092 struct BitmapFont
00093 {
00094 BitmapFont( const string & id, const string & file, const string & type ):
00095 m_id( id ), m_file( file ), m_type( type ) {}
00096
00097 string m_id;
00098 string m_file;
00099 string m_type;
00100 };
00101
00102 list<BitmapFont> m_listBitmapFont;
00103
00104
00105 struct Font
00106 {
00107 Font( const string & id, const string & fontFile, int size ):
00108 m_id( id ), m_fontFile( fontFile ), m_size( size ) {}
00109
00110 string m_id;
00111 string m_fontFile;
00112 int m_size;
00113 };
00114
00115 list<Font> m_listFont;
00116
00117
00118 struct PopupMenu
00119 {
00120 PopupMenu( const string & id ):
00121 m_id( id ) {}
00122
00123 string m_id;
00124 };
00125
00126 list<PopupMenu> m_listPopupMenu;
00127
00128
00129 struct MenuItem
00130 {
00131 MenuItem( const string & label, const string & action, int pos, const string & popupId ):
00132 m_label( label ), m_action( action ), m_pos( pos ), m_popupId( popupId ) {}
00133
00134 string m_label;
00135 string m_action;
00136 int m_pos;
00137 string m_popupId;
00138 };
00139
00140 list<MenuItem> m_listMenuItem;
00141
00142
00143 struct MenuSeparator
00144 {
00145 MenuSeparator( int pos, const string & popupId ):
00146 m_pos( pos ), m_popupId( popupId ) {}
00147
00148 int m_pos;
00149 string m_popupId;
00150 };
00151
00152 list<MenuSeparator> m_listMenuSeparator;
00153
00154
00155 struct Window
00156 {
00157 Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ):
00158 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
00159
00160 string m_id;
00161 int m_xPos;
00162 int m_yPos;
00163 bool m_visible;
00164 bool m_dragDrop;
00165 bool m_playOnDrop;
00166 };
00167
00168 list<Window> m_listWindow;
00169
00170
00171 struct Layout
00172 {
00173 Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
00174 m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
00175
00176 string m_id;
00177 int m_width;
00178 int m_height;
00179 int m_minWidth;
00180 int m_maxWidth;
00181 int m_minHeight;
00182 int m_maxHeight;
00183 string m_windowId;
00184 };
00185
00186 list<Layout> m_listLayout;
00187
00188
00189 struct Anchor
00190 {
00191 Anchor( int xPos, int yPos, const string & leftTop, int range, int priority, const string & points, const string & layoutId ):
00192 m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {}
00193
00194 int m_xPos;
00195 int m_yPos;
00196 string m_leftTop;
00197 int m_range;
00198 int m_priority;
00199 string m_points;
00200 string m_layoutId;
00201 };
00202
00203 list<Anchor> m_listAnchor;
00204
00205
00206 struct Button
00207 {
00208 Button( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
00209 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
00210
00211 string m_id;
00212 int m_xPos;
00213 int m_yPos;
00214 string m_leftTop;
00215 string m_rightBottom;
00216 bool m_xKeepRatio;
00217 bool m_yKeepRatio;
00218 string m_visible;
00219 string m_upId;
00220 string m_downId;
00221 string m_overId;
00222 string m_actionId;
00223 string m_tooltip;
00224 string m_help;
00225 int m_layer;
00226 string m_windowId;
00227 string m_layoutId;
00228 string m_panelId;
00229 };
00230
00231 list<Button> m_listButton;
00232
00233
00234 struct Checkbox
00235 {
00236 Checkbox( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
00237 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
00238
00239 string m_id;
00240 int m_xPos;
00241 int m_yPos;
00242 string m_leftTop;
00243 string m_rightBottom;
00244 bool m_xKeepRatio;
00245 bool m_yKeepRatio;
00246 string m_visible;
00247 string m_up1Id;
00248 string m_down1Id;
00249 string m_over1Id;
00250 string m_up2Id;
00251 string m_down2Id;
00252 string m_over2Id;
00253 string m_state;
00254 string m_action1;
00255 string m_action2;
00256 string m_tooltip1;
00257 string m_tooltip2;
00258 string m_help;
00259 int m_layer;
00260 string m_windowId;
00261 string m_layoutId;
00262 string m_panelId;
00263 };
00264
00265 list<Checkbox> m_listCheckbox;
00266
00267
00268 struct Image
00269 {
00270 Image( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & visible, const string & bmpId, const string & actionId, const string & action2Id, const string & resize, const string & help, bool art, int layer, const string & windowId, const string & layoutId, const string & panelId ):
00271 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_visible( visible ), m_bmpId( bmpId ), m_actionId( actionId ), m_action2Id( action2Id ), m_resize( resize ), m_help( help ), m_art( art ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
00272
00273 string m_id;
00274 int m_xPos;
00275 int m_yPos;
00276 string m_leftTop;
00277 string m_rightBottom;
00278 bool m_xKeepRatio;
00279 bool m_yKeepRatio;
00280 string m_visible;
00281 string m_bmpId;
00282 string m_actionId;
00283 string m_action2Id;
00284 string m_resize;
00285 string m_help;
00286 bool m_art;
00287 int m_layer;
00288 string m_windowId;
00289 string m_layoutId;
00290 string m_panelId;
00291 };
00292
00293 list<Image> m_listImage;
00294
00295
00296 struct IniFile
00297 {
00298 IniFile( const string & id, const string & file ):
00299 m_id( id ), m_file( file ) {}
00300
00301 string m_id;
00302 string m_file;
00303 };
00304
00305 list<IniFile> m_listIniFile;
00306
00307
00308 struct Panel
00309 {
00310 Panel( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, int width, int height, int layer, const string & windowId, const string & layoutId, const string & panelId ):
00311 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_width( width ), m_height( height ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
00312
00313 string m_id;
00314 int m_xPos;
00315 int m_yPos;
00316 string m_leftTop;
00317 string m_rightBottom;
00318 bool m_xKeepRatio;
00319 bool m_yKeepRatio;
00320 int m_width;
00321 int m_height;
00322 int m_layer;
00323 string m_windowId;
00324 string m_layoutId;
00325 string m_panelId;
00326 };
00327
00328 list<Panel> m_listPanel;
00329
00330
00331 struct Text
00332 {
00333 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, bool xKeepRatio, bool yKeepRatio, uint32_t color, const string & scrolling, const string & alignment, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
00334 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_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_color( color ), m_scrolling( scrolling ), m_alignment( alignment ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
00335
00336 string m_id;
00337 int m_xPos;
00338 int m_yPos;
00339 string m_visible;
00340 string m_fontId;
00341 string m_text;
00342 int m_width;
00343 string m_leftTop;
00344 string m_rightBottom;
00345 bool m_xKeepRatio;
00346 bool m_yKeepRatio;
00347 uint32_t m_color;
00348 string m_scrolling;
00349 string m_alignment;
00350 string m_help;
00351 int m_layer;
00352 string m_windowId;
00353 string m_layoutId;
00354 string m_panelId;
00355 };
00356
00357 list<Text> m_listText;
00358
00359
00360 struct RadialSlider
00361 {
00362 RadialSlider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, 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, const string & panelId ):
00363 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
00364
00365 string m_id;
00366 string m_visible;
00367 int m_xPos;
00368 int m_yPos;
00369 string m_leftTop;
00370 string m_rightBottom;
00371 bool m_xKeepRatio;
00372 bool m_yKeepRatio;
00373 string m_sequence;
00374 int m_nbImages;
00375 float m_minAngle;
00376 float m_maxAngle;
00377 string m_value;
00378 string m_tooltip;
00379 string m_help;
00380 int m_layer;
00381 string m_windowId;
00382 string m_layoutId;
00383 string m_panelId;
00384 };
00385
00386 list<RadialSlider> m_listRadialSlider;
00387
00388
00389 struct Slider
00390 {
00391 Slider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & upId, const string & downId, const string & overId, const string & points, int thickness, const string & value, const string & imageId, int nbHoriz, int nbVert, int padHoriz, int padVert, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
00392 m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_upId( upId ), m_downId( downId ), m_overId( overId ), m_points( points ), m_thickness( thickness ), m_value( value ), m_imageId( imageId ), m_nbHoriz( nbHoriz ), m_nbVert( nbVert ), m_padHoriz( padHoriz ), m_padVert( padVert ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
00393
00394 string m_id;
00395 string m_visible;
00396 int m_xPos;
00397 int m_yPos;
00398 string m_leftTop;
00399 string m_rightBottom;
00400 bool m_xKeepRatio;
00401 bool m_yKeepRatio;
00402 string m_upId;
00403 string m_downId;
00404 string m_overId;
00405 string m_points;
00406 int m_thickness;
00407 string m_value;
00408 string m_imageId;
00409 int m_nbHoriz;
00410 int m_nbVert;
00411 int m_padHoriz;
00412 int m_padVert;
00413 string m_tooltip;
00414 string m_help;
00415 int m_layer;
00416 string m_windowId;
00417 string m_layoutId;
00418 string m_panelId;
00419 };
00420
00421 list<Slider> m_listSlider;
00422
00423
00424 struct List
00425 {
00426 List( const string & id, int xPos, int yPos, const string & visible, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & fontId, const string & var, const string & bgImageId, const string & fgColor, const string & playColor, const string & bgColor1, const string & bgColor2, const string & selColor, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
00427 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_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
00428
00429 string m_id;
00430 int m_xPos;
00431 int m_yPos;
00432 string m_visible;
00433 int m_width;
00434 int m_height;
00435 string m_leftTop;
00436 string m_rightBottom;
00437 bool m_xKeepRatio;
00438 bool m_yKeepRatio;
00439 string m_fontId;
00440 string m_var;
00441 string m_bgImageId;
00442 string m_fgColor;
00443 string m_playColor;
00444 string m_bgColor1;
00445 string m_bgColor2;
00446 string m_selColor;
00447 string m_help;
00448 int m_layer;
00449 string m_windowId;
00450 string m_layoutId;
00451 string m_panelId;
00452 };
00453
00454 list<List> m_listList;
00455
00456
00457 struct Tree
00458 {
00459 Tree( const string & id, int xPos, int yPos, const string & visible, const string & flat, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & fontId, const string & var, const string & bgImageId, const string & itemImageId, const string & openImageId, const string & closedImageId, const string & fgColor, const string & playColor, const string & bgColor1, const string & bgColor2, const string & selColor, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
00460 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_flat( flat ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), 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 ), m_panelId( panelId ) {}
00461
00462 string m_id;
00463 int m_xPos;
00464 int m_yPos;
00465 string m_visible;
00466 string m_flat;
00467 int m_width;
00468 int m_height;
00469 string m_leftTop;
00470 string m_rightBottom;
00471 bool m_xKeepRatio;
00472 bool m_yKeepRatio;
00473 string m_fontId;
00474 string m_var;
00475 string m_bgImageId;
00476 string m_itemImageId;
00477 string m_openImageId;
00478 string m_closedImageId;
00479 string m_fgColor;
00480 string m_playColor;
00481 string m_bgColor1;
00482 string m_bgColor2;
00483 string m_selColor;
00484 string m_help;
00485 int m_layer;
00486 string m_windowId;
00487 string m_layoutId;
00488 string m_panelId;
00489 };
00490
00491 list<Tree> m_listTree;
00492
00493
00494 struct Video
00495 {
00496 Video( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & visible, bool autoResize, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
00497 m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_visible( visible ), m_autoResize( autoResize ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
00498
00499 string m_id;
00500 int m_xPos;
00501 int m_yPos;
00502 int m_width;
00503 int m_height;
00504 string m_leftTop;
00505 string m_rightBottom;
00506 bool m_xKeepRatio;
00507 bool m_yKeepRatio;
00508 string m_visible;
00509 bool m_autoResize;
00510 string m_help;
00511 int m_layer;
00512 string m_windowId;
00513 string m_layoutId;
00514 string m_panelId;
00515 };
00516
00517 list<Video> m_listVideo;
00518
00519
00520 };
00521
00522 #endif