Page 1 of 1

missing things from skins2-create page???

Posted: 21 May 2006 09:48
by Asim
i was just checking out the skin.dtd file from release 0.85...

appears quite a few elements are there on teh skin.dtd file that are missing/not explained on the skins2-create page... e.g. SliderBackground, PopupMenu, Include...

Posted: 21 May 2006 12:39
by ipkiss
SliderBackground was forgotten, and will be added.
The others are not documented on purpose, because they are experimental features... and they don't work very well :-) So we don't want to have them spread in the skins...

- the Include tag is there to allow splitting the XML file into several files, which can be useful for big skins. The file indicated by the "Include" tag will be inserted where the tag is (much like #include in C). The problem with this feature is that the DTD is not checked in included files, which makes it not very interesting (and you can probably get VLC to crash with some broken XMl file...). Anyway, this is not the right way to include files, we should do it like the standard suggests...

- the other missing tags concern custom popup menus. XML example:

Code: Select all

<PopupMenu id="sample_menu"> <MenuItem label="Play" action="vlc.play()" /> <MenuItem label="Pause" action="vlc.pause()" /> <MenuSeparator /> <MenuItem label="Show playlist" action="playlist_window.show()" /> <MenuItem label="Hide playlist" action="playlist_window.hide()" /> <MenuSeparator /> <MenuItem label="Quick open file" action="dialogs.fileSimple()" /> </PopupMenu>
To call the menu:
<Button action="sample_menu.show()" ... />

The problem with this feature is that it was only implemented on Windows... We would prefer to get it working on Linux too before it is used (convince AsMaX to work on that! ;))