[vlc-devel] vlc: svn commit r13530 (ipkiss)
Subversion daemon
svn at videolan.org
Sun Dec 4 15:47:27 CET 2005
r13530 | ipkiss | 2005-12-04 15:47:26 +0100 (Sun, 04 Dec 2005) | 19 lines
Changed paths:
M /trunk/modules/gui/skins2/Modules.am
M /trunk/modules/gui/skins2/commands/cmd_show_window.hpp
A /trunk/modules/gui/skins2/events/evt_menu.hpp
M /trunk/modules/gui/skins2/events/evt_motion.hpp
M /trunk/modules/gui/skins2/macosx/macosx_factory.cpp
M /trunk/modules/gui/skins2/macosx/macosx_factory.hpp
A /trunk/modules/gui/skins2/macosx/macosx_popup.cpp
A /trunk/modules/gui/skins2/macosx/macosx_popup.hpp
M /trunk/modules/gui/skins2/macosx/macosx_tooltip.hpp
M /trunk/modules/gui/skins2/parser/builder.cpp
M /trunk/modules/gui/skins2/parser/builder.hpp
M /trunk/modules/gui/skins2/parser/builder_data.def
M /trunk/modules/gui/skins2/parser/builder_data.hpp
M /trunk/modules/gui/skins2/parser/interpreter.cpp
M /trunk/modules/gui/skins2/parser/skin_parser.cpp
M /trunk/modules/gui/skins2/parser/skin_parser.hpp
M /trunk/modules/gui/skins2/src/generic_window.cpp
M /trunk/modules/gui/skins2/src/generic_window.hpp
M /trunk/modules/gui/skins2/src/os_factory.hpp
A /trunk/modules/gui/skins2/src/os_popup.hpp
M /trunk/modules/gui/skins2/src/os_tooltip.hpp
A /trunk/modules/gui/skins2/src/popup.cpp
A /trunk/modules/gui/skins2/src/popup.hpp
M /trunk/modules/gui/skins2/src/theme.cpp
M /trunk/modules/gui/skins2/src/theme.hpp
M /trunk/modules/gui/skins2/src/top_window.cpp
M /trunk/modules/gui/skins2/src/top_window.hpp
M /trunk/modules/gui/skins2/src/window_manager.cpp
M /trunk/modules/gui/skins2/src/window_manager.hpp
M /trunk/modules/gui/skins2/win32/win32_dragdrop.hpp
M /trunk/modules/gui/skins2/win32/win32_factory.cpp
M /trunk/modules/gui/skins2/win32/win32_factory.hpp
M /trunk/modules/gui/skins2/win32/win32_loop.cpp
A /trunk/modules/gui/skins2/win32/win32_popup.cpp
A /trunk/modules/gui/skins2/win32/win32_popup.hpp
M /trunk/modules/gui/skins2/win32/win32_tooltip.hpp
M /trunk/modules/gui/skins2/x11/x11_factory.cpp
M /trunk/modules/gui/skins2/x11/x11_factory.hpp
A /trunk/modules/gui/skins2/x11/x11_popup.cpp
A /trunk/modules/gui/skins2/x11/x11_popup.hpp
M /trunk/modules/gui/skins2/x11/x11_tooltip.hpp
M /trunk/share/skins2/skin.dtd
* skins2: support for custom popup menus, and win32 implementation.
XML example:
<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()" ... />
Known bug: the popup disappears when the user clicks "too fast" on the
button: the control refreshes itself in an asynchronous way, and the popup
dislikes it... so click slowly :)
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list