Viggo Fredriksen wrote: > Ok! > > A little update. I added a global event for TOGGLE_CONTROL, a deamonplugin > which listens to this event and toggles between different active ControlBar > plugins. The ControlBar plugins again grabs focus if they are shown, and the > user can browse through different choices. Each choice is bound to a handler > which is run when the user presses INPUT_ENTER. > > Is this an acceptable approach? Any more uses for this than the detached > player? Better ideas? > > Screenshot: > - http://foo.katatonic.org/freevo/detached_control.jpg
Sweet, that is a very good idea. Maybe we can also use this stuff for other inputs. Aubin once wanted a small bar showing options in the image viewer (rotate, start/stop slideshow...). This looks like a very cool features for other parts of Freevo. You could register/unregister a control in eventhandler.py and a button toggles these by doing: 1) show it (set visible in the CanvasContainer) 2) set self.context to it And toggle should toggle through all registered controls and than back to the "normal", the focused app. Maybe toggle is "intelligent": if a used used a control, the next toggle will go back to no controls. > PS! It's not quite finished yet, but it's basicly working. Again: _very_ cool Dischi -- Love is Hate. War is Peace. Windows is stable. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel