X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fskins2%2Fparser%2Fbuilder_data.hpp;h=4e1dd31c0be952e3acc9719e0f21b52cedae0543;hb=9399329f8c097eb2356ee42d8896e0261283cc2f;hp=5a204eccc7fb8c3c763f46fae0d0c547f3d39b09;hpb=ac01cdf7c06849e53c7ae7d7ced69592c460754f;p=vlc diff --git a/modules/gui/skins2/parser/builder_data.hpp b/modules/gui/skins2/parser/builder_data.hpp index 5a204eccc7..4e1dd31c0b 100644 --- a/modules/gui/skins2/parser/builder_data.hpp +++ b/modules/gui/skins2/parser/builder_data.hpp @@ -1,11 +1,11 @@ /***************************************************************************** * builder_data.hpp ***************************************************************************** - * Copyright (C) 2003 VideoLAN + * Copyright (C) 2003 the VideoLAN team * $Id$ * * Authors: Cyril Deguet - * Olivier Teulière + * Olivier Teuliere * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,7 +19,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ //File generated by gen_builder.py @@ -28,7 +28,7 @@ #ifndef BUILDER_DATA_HPP #define BUILDER_DATA_HPP -#include +#include #include #include #include @@ -45,7 +45,7 @@ struct BuilderData Theme( const string & tooltipfont, int magnet, uint32_t alpha, uint32_t moveAlpha ): m_tooltipfont( tooltipfont ), m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( moveAlpha ) {} - const string m_tooltipfont; + string m_tooltipfont; int m_magnet; uint32_t m_alpha; uint32_t m_moveAlpha; @@ -56,25 +56,45 @@ m_tooltipfont( tooltipfont ), m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( /// Type definition struct Bitmap { - Bitmap( const string & id, const string & fileName, uint32_t alphaColor ): -m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ) {} + Bitmap( const string & id, const string & fileName, uint32_t alphaColor, int nbFrames, int fps ): +m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ), m_nbFrames( nbFrames ), m_fps( fps ) {} - const string m_id; - const string m_fileName; + string m_id; + string m_fileName; uint32_t m_alphaColor; + int m_nbFrames; + int m_fps; }; /// List list m_listBitmap; + /// Type definition + struct SubBitmap + { + SubBitmap( const string & id, const string & parent, int x, int y, int width, int height, int nbFrames, int fps ): +m_id( id ), m_parent( parent ), m_x( x ), m_y( y ), m_width( width ), m_height( height ), m_nbFrames( nbFrames ), m_fps( fps ) {} + + string m_id; + string m_parent; + int m_x; + int m_y; + int m_width; + int m_height; + int m_nbFrames; + int m_fps; + }; + /// List + list m_listSubBitmap; + /// Type definition struct BitmapFont { BitmapFont( const string & id, const string & file, const string & type ): m_id( id ), m_file( file ), m_type( type ) {} - const string m_id; - const string m_file; - const string m_type; + string m_id; + string m_file; + string m_type; }; /// List list m_listBitmapFont; @@ -85,20 +105,57 @@ m_id( id ), m_file( file ), m_type( type ) {} Font( const string & id, const string & fontFile, int size ): m_id( id ), m_fontFile( fontFile ), m_size( size ) {} - const string m_id; - const string m_fontFile; + string m_id; + string m_fontFile; int m_size; }; /// List list m_listFont; + /// Type definition + struct PopupMenu + { + PopupMenu( const string & id ): +m_id( id ) {} + + string m_id; + }; + /// List + list m_listPopupMenu; + + /// Type definition + struct MenuItem + { + MenuItem( const string & label, const string & action, int pos, const string & popupId ): +m_label( label ), m_action( action ), m_pos( pos ), m_popupId( popupId ) {} + + string m_label; + string m_action; + int m_pos; + string m_popupId; + }; + /// List + list m_listMenuItem; + + /// Type definition + struct MenuSeparator + { + MenuSeparator( int pos, const string & popupId ): +m_pos( pos ), m_popupId( popupId ) {} + + int m_pos; + string m_popupId; + }; + /// List + list m_listMenuSeparator; + /// Type definition struct Window { Window( const string & id, int xPos, int yPos, bool visible, bool dragDrop, bool playOnDrop ): m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {} - const string m_id; + string m_id; int m_xPos; int m_yPos; bool m_visible; @@ -114,14 +171,14 @@ m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_dragDrop( dr Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ): m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {} - const string m_id; + string m_id; int m_width; int m_height; int m_minWidth; int m_maxWidth; int m_minHeight; int m_maxHeight; - const string m_windowId; + string m_windowId; }; /// List list m_listLayout; @@ -129,15 +186,16 @@ m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxW /// Type definition struct Anchor { - Anchor( int xPos, int yPos, int range, int priority, const string & points, const string & layoutId ): -m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {} + Anchor( int xPos, int yPos, const string & leftTop, int range, int priority, const string & points, const string & layoutId ): +m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {} int m_xPos; int m_yPos; + string m_leftTop; int m_range; int m_priority; - const string m_points; - const string m_layoutId; + string m_points; + string m_layoutId; }; /// List list m_listAnchor; @@ -145,24 +203,27 @@ m_xPos( xPos ), m_yPos( yPos ), m_range( range ), m_priority( priority ), m_poin /// Type definition struct Button { - 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 ): -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 ) {} + 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 ): +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 ) {} - const string m_id; + string m_id; int m_xPos; int m_yPos; - const string m_leftTop; - const string m_rightBottom; - const string m_visible; - const string m_upId; - const string m_downId; - const string m_overId; - const string m_actionId; - const string m_tooltip; - const string m_help; + string m_leftTop; + string m_rightBottom; + bool m_xKeepRatio; + bool m_yKeepRatio; + string m_visible; + string m_upId; + string m_downId; + string m_overId; + string m_actionId; + string m_tooltip; + string m_help; int m_layer; - const string m_windowId; - const string m_layoutId; + string m_windowId; + string m_layoutId; + string m_panelId; }; /// List list