]> git.sesse.net Git - vlc/commit
skins2: implement art display in image controls
authorErwan Tulou <erwan10@videolan.org>
Tue, 18 May 2010 16:35:56 +0000 (18:35 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 18 May 2010 20:10:53 +0000 (22:10 +0200)
commit0530638a5038a8bc4abb4fae36d64420e61fb05b
treea8e7cb94e571efc7f0b507f61e06b61909d0f8a0
parenta8fcb7dd6c253e8534d8582b4ef2f9ba30fae691
skins2: implement art display in image controls

This patch gives skins developpers the possibility to display the art file
 associated to the current input in an image control.

It features the following :
    - a new 'art' boolean parameter is added for the Image control (skin.dtd)
    - when set to true, the skin engine will reuse this control to display
      the current art file
    - in addition to 'scale' and 'mosaic', the resize parameter can now accept
      a new 'scale2' value, that respects the original aspect ratio of art files
14 files changed:
modules/gui/skins2/Modules.am
modules/gui/skins2/controls/ctrl_image.cpp
modules/gui/skins2/controls/ctrl_image.hpp
modules/gui/skins2/parser/builder.cpp
modules/gui/skins2/parser/builder_data.def
modules/gui/skins2/parser/builder_data.hpp
modules/gui/skins2/parser/skin_parser.cpp
modules/gui/skins2/src/art_bitmap.cpp [new file with mode: 0644]
modules/gui/skins2/src/art_bitmap.hpp [new file with mode: 0644]
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.hpp
modules/gui/skins2/utils/var_string.cpp [new file with mode: 0644]
modules/gui/skins2/utils/var_string.hpp [new file with mode: 0644]
share/skins2/skin.dtd