Update of /cvsroot/freevo/freevo/src/application
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12704/src/application

Modified Files:
        base.py menuapp.py 
Log Message:
move context handling from eventhandler to input

Index: base.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/application/base.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** base.py     25 Jun 2005 08:52:24 -0000      1.7
--- base.py     16 Jul 2005 08:41:12 -0000      1.8
***************
*** 36,39 ****
--- 36,40 ----
  
  # freevo imports
+ import input
  import eventhandler
  import gui
***************
*** 53,57 ****
  
          @param name       : internal name of the application
!         @param eventmap   : context for the event handler mapping
          @param fullscreen : if the application uses the whole screen
          @param animated   : use fade in/out animation
--- 54,58 ----
  
          @param name       : internal name of the application
!         @param eventmap   : name of the event handler mapping
          @param fullscreen : if the application uses the whole screen
          @param animated   : use fade in/out animation
***************
*** 135,139 ****
              # We are the current application with the focus,
              # so set eventmap of the eventhandler to the new eventmap
!             self.__handler.context = eventmap
  
  
--- 136,140 ----
              # We are the current application with the focus,
              # so set eventmap of the eventhandler to the new eventmap
!             input.set_mapping(eventmap)
  
  

Index: menuapp.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/application/menuapp.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** menuapp.py  15 Jun 2005 20:44:27 -0000      1.6
--- menuapp.py  16 Jul 2005 08:41:12 -0000      1.7
***************
*** 10,15 ****
      An application inside the menu
      """
!     def __init__(self, name, event_context, fullscreen):
!         Application.__init__(self, name, event_context, fullscreen)
          self.stack  = None
          self.engine = None # draw engine based on area
--- 10,15 ----
      An application inside the menu
      """
!     def __init__(self, name, eventmap, fullscreen):
!         Application.__init__(self, name, eventmap, fullscreen)
          self.stack  = None
          self.engine = None # draw engine based on area



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to