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/FallbackBinde...


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/gzz client/Fallback.java view/FallbackBinde...
Date: Tue, 24 Sep 2002 15:23:07 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      02/09/24 15:23:07

Modified files:
        gzz/client     : Fallback.java 
        gzz/view       : FallbackBinder.java 

Log message:
        cursor fork & new window impl
        (not very useful w/o arrowset reassignment)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/client/Fallback.java.diff?tr1=1.33&tr2=1.34&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/FallbackBinder.java.diff?tr1=1.8&tr2=1.9&r1=text&r2=text

Patches:
Index: gzz/gzz/client/Fallback.java
diff -c gzz/gzz/client/Fallback.java:1.33 gzz/gzz/client/Fallback.java:1.34
*** gzz/gzz/client/Fallback.java:1.33   Tue Sep 24 14:15:34 2002
--- gzz/gzz/client/Fallback.java        Tue Sep 24 15:23:07 2002
***************
*** 72,78 ****
   * It implements a subset of the 0.6.0 bindings.
   */
  public class Fallback {
! public static final String rcsid = "$Id: Fallback.java,v 1.33 2002/09/24 
18:15:34 benja Exp $";
      public static boolean dbg = false;
      private static void pa(String s) { System.err.println(s); }
  
--- 72,78 ----
   * It implements a subset of the 0.6.0 bindings.
   */
  public class Fallback {
! public static final String rcsid = "$Id: Fallback.java,v 1.34 2002/09/24 
19:23:07 benja Exp $";
      public static boolean dbg = false;
      private static void pa(String s) { System.err.println(s); }
  
***************
*** 157,163 ****
              if(windows[LEFT] == this) windows[LEFT] = next;
            if(windows[RIGHT] == this) windows[RIGHT] = next;
            windowList.remove(this);
!           
            throw new UnsupportedOperationException("Closing not implemented in 
GraphicsAPI.Window");
        }
  
--- 157,163 ----
              if(windows[LEFT] == this) windows[LEFT] = next;
            if(windows[RIGHT] == this) windows[RIGHT] = next;
            windowList.remove(this);
! 
            throw new UnsupportedOperationException("Closing not implemented in 
GraphicsAPI.Window");
        }
  
***************
*** 240,249 ****
  
      List getCursorColors(Cell c) {
          List l = null;
!       for(int i=0; i<windows.length; i++) {
!           if(c.equals(windows[i].cursor)) {
                if(l == null) l = new ArrayList(1);
!               l.add(windows[i].col);
            }
        }
        return l;
--- 240,250 ----
  
      List getCursorColors(Cell c) {
          List l = null;
!       for(int i=0; i<windowList.size(); i++) {
!           Win w = (Win)windowList.get(i);
!           if(c.equals(w.cursor)) {
                if(l == null) l = new ArrayList(1);
!               l.add(w.col);
            }
        }
        return l;
***************
*** 263,268 ****
--- 264,278 ----
          public Color getCursorColor() {
              return Color.getHSBColor(hue, 0.5f, 1f);
          }
+     }
+ 
+     public Win newWindow(Cell cursor) {
+         if(cursor == null) cursor = space.getHomeCell();
+         Random r = new Random();
+         Win w = new Win(new LightColorScheme(r.nextFloat()));
+       w.cursor = cursor;
+       windowList.add(w);
+       return w;
      }
  
      public Fallback(Cell start, FallbackDim[] dimList,
Index: gzz/gzz/view/FallbackBinder.java
diff -c gzz/gzz/view/FallbackBinder.java:1.8 
gzz/gzz/view/FallbackBinder.java:1.9
*** gzz/gzz/view/FallbackBinder.java:1.8        Tue Sep 24 14:15:35 2002
--- gzz/gzz/view/FallbackBinder.java    Tue Sep 24 15:23:07 2002
***************
*** 40,46 ****
  /** Keybindings for the Fallback client.
   */
  public class FallbackBinder extends AbstractBinder {
! public static final String rcsid = "$Id: FallbackBinder.java,v 1.8 2002/09/24 
18:15:35 benja Exp $";
      public static boolean dbg = false;
      private static void pa(String s) { System.err.println(s); }
  
--- 40,46 ----
  /** Keybindings for the Fallback client.
   */
  public class FallbackBinder extends AbstractBinder {
! public static final String rcsid = "$Id: FallbackBinder.java,v 1.9 2002/09/24 
19:23:07 benja Exp $";
      public static boolean dbg = false;
      private static void pa(String s) { System.err.println(s); }
  
***************
*** 179,184 ****
--- 179,188 ----
              fallback.mode = fallback.SEARCH;
              buffer = "";
              searchStart = fallback.windows[1].cursor;
+       } else if(k.equals("Ctrl-Shift-F")) {
+           fallback.newWindow(fallback.windows[1].cursor);
+       } else if(k.equals("Ctrl-Shift-N")) {
+           fallback.newWindow(null);
        } else if(k.length() == 1) {
            switch(k.charAt(0)) {
                // Right Rose




reply via email to

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