gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gzz client/Fallback.java view/xubuoy.py


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/gzz client/Fallback.java view/xubuoy.py
Date: Thu, 03 Oct 2002 07:53:48 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      02/10/03 07:53:48

Modified files:
        gzz/client     : Fallback.java 
        gzz/view       : xubuoy.py 

Log message:
        Call default binder if key not known in xubuoy

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/client/Fallback.java.diff?tr1=1.45&tr2=1.46&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/xubuoy.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: gzz/gzz/client/Fallback.java
diff -c gzz/gzz/client/Fallback.java:1.45 gzz/gzz/client/Fallback.java:1.46
*** gzz/gzz/client/Fallback.java:1.45   Wed Oct  2 14:55:10 2002
--- gzz/gzz/client/Fallback.java        Thu Oct  3 07:53:48 2002
***************
*** 73,79 ****
   * It implements a subset of the 0.6.0 bindings.
   */
  public class Fallback {
! public static final String rcsid = "$Id: Fallback.java,v 1.45 2002/10/02 
18:55:10 benja Exp $";
      public static boolean dbg = false;
      private static void pa(String s) { System.err.println(s); }
  
--- 73,79 ----
   * It implements a subset of the 0.6.0 bindings.
   */
  public class Fallback {
! public static final String rcsid = "$Id: Fallback.java,v 1.46 2002/10/03 
11:53:48 benja Exp $";
      public static boolean dbg = false;
      private static void pa(String s) { System.err.println(s); }
  
***************
*** 280,285 ****
--- 280,287 ----
                  return (FallbackBinder)viewSpecificBinders.get(getView());
              return binder; 
          }
+         
+         public Fallback getFallback() { return Fallback.this; }
  
        Win(ColorScheme colors) {
            for(int i=0; i<dimsIndices.length; i++)
Index: gzz/gzz/view/xubuoy.py
diff -c gzz/gzz/view/xubuoy.py:1.7 gzz/gzz/view/xubuoy.py:1.8
*** gzz/gzz/view/xubuoy.py:1.7  Thu Oct  3 06:25:27 2002
--- gzz/gzz/view/xubuoy.py      Thu Oct  3 07:53:48 2002
***************
*** 235,240 ****
--- 235,242 ----
            self.moveToCell(self.cursor)
        elif key == 't':
            self.showtessel = not self.showtessel
+         else:
+             return 1 # not handled
  
      def checkGlobalCoords(self):
        global globalx, globaly
***************
*** 401,407 ****
      def mouse(self, ev, win):
        self._getview(win).mouse(ev)
      def keystroke(self, key, win):
!       self._getview(win).key(key)
      def getDefaultName(self):
        return "XuBuoy"
      def render(self, vs, cs, context):
--- 403,411 ----
      def mouse(self, ev, win):
        self._getview(win).mouse(ev)
      def keystroke(self, key, win):
!       if self._getview(win).key(key): 
!             # event not handled
!             win.getFallback().binder.keystroke(key, win)
      def getDefaultName(self):
        return "XuBuoy"
      def render(self, vs, cs, context):




reply via email to

[Prev in Thread] Current Thread [Next in Thread]