/[gzz]/gzz/gzz/modules/pp/PPView2.java
ViewVC logotype

Diff of /gzz/gzz/modules/pp/PPView2.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.42 by mudyc, Tue Jan 7 11:27:29 2003 UTC revision 1.43 by mudyc, Tue Jan 7 16:10:35 2003 UTC
# Line 141  public static final String rcsid = "$Id$ Line 141  public static final String rcsid = "$Id$
141      public Space space;      public Space space;
142      public PPDims d;      public PPDims d;
143    
144        private TreeMap interps = new TreeMap();
145        public void addInterp(Object key, Object o) { interps.put(key, o); }
146        public void clearInterps() { interps.clear(); }
147    
148        private int MAIN_CS = -1;
149        
150    
151      Vob black = GLCache.getCallList("Color 0 0 0\n");      Vob black = GLCache.getCallList("Color 0 0 0\n");
152    
153      CoordinatePlaneView coordinatePlaneView;      CoordinatePlaneView coordinatePlaneView;
# Line 281  public static final String rcsid = "$Id$ Line 288  public static final String rcsid = "$Id$
288              int actr = vs.translateCS(anchorUnit, "TR12", .5f, .5f);              int actr = vs.translateCS(anchorUnit, "TR12", .5f, .5f);
289              int buoycs = floater.buoyCoordsys(actr, key);              int buoycs = floater.buoyCoordsys(actr, key);
290    
   
291              final int nadir_buoy =              final int nadir_buoy =
292                  ((GLVobCoorder)vs.coords).nadirOrigin(buoycs, nadir_point_cs);                  ((GLVobCoorder)vs.coords).nadirOrigin(buoycs, nadir_point_cs);
293              vs.matcher.add(nadir_buoy, "NADIR"+c.toString() );              vs.matcher.add(nadir_buoy, "NADIR"+c.toString() );
             //vs.matcher.add(nadir_buoy, new Pair(c, connectedFrom));  
294    
295              //final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0,              //final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0,
296              final int frameCS = vs.orthoBoxCS(nadir_buoy, "frame", 0,              final int frameCS = vs.orthoBoxCS(nadir_buoy, "frame", 0,
# Line 293  public static final String rcsid = "$Id$ Line 298  public static final String rcsid = "$Id$
298                      buoyVPWidth, buoyVPHeight);                      buoyVPWidth, buoyVPHeight);
299              vs.activate(frameCS);              vs.activate(frameCS);
300              ev_handler.onClick(frameCS, "Link CLICK",              ev_handler.onClick(frameCS, "Link CLICK",
301                                 new Object[]{ c, connectedFrom, new Integer(anchor), new Integer(frameCS)});                                 new Object[]{ c, connectedFrom, new Integer(MAIN_CS),
302                                                 new Integer(frameCS), new Integer(anchor)});
303              ev_handler.onDrag(frameCS, "Drag buoy");              ev_handler.onDrag(frameCS, "Drag buoy");
304    
305                // XXX hehheh...  remember that new accursed have already been set!
306                if (pp_events.context != null &&
307                    interps.get("link"+pp_events.context.getAccursed().toString()) != null) {
308                    ((DefaultVobMatcher)vs.matcher).keymapSingleCoordsys(MAIN_CS,
309                                                                         ((Integer)interps.get("link"+pp_events.context.getAccursed().toString())).intValue()
310                    );
311                }
312    
313    
314              // XXX Pan              // XXX Pan
315              int[] pan = getCoords(c);              int[] pan = getCoords(c);
316              final int c2fCS = vs.coords.ortho(0, 0,              final int c2fCS = vs.coords.ortho(0, 0,
# Line 373  public static final String rcsid = "$Id$ Line 388  public static final String rcsid = "$Id$
388                  (-mainWidth)/2, -mainHeight/2, 1, 1,                  (-mainWidth)/2, -mainHeight/2, 1, 1,
389                  mainWidth, mainHeight);                  mainWidth, mainHeight);
390          vs.activate(frameCS);          vs.activate(frameCS);
391            MAIN_CS = frameCS;
392          ev_handler.onClick(frameCS, "Click MAINVP",          ev_handler.onClick(frameCS, "Click MAINVP",
393                             new Object[]{ new Integer(mainctr), new Integer(frameCS)}                             new Object[]{ new Integer(mainctr), new Integer(frameCS)}
394                             );                             );
# Line 521  public static final String rcsid = "$Id$ Line 537  public static final String rcsid = "$Id$
537                      fr = cs_gen.getNextCS();                      fr = cs_gen.getNextCS();
538                  }                  }
539    
   
                 //vs.matcher.add(fr, p);  
540                  vs.activate(fr);                  vs.activate(fr);
541                  ev_handler.onClick(fr, "Shortcut link", new Object[]{p, new Integer(fr)});                  ev_handler.onClick(fr, "Shortcut link", new Object[]{p, new Integer(MAIN_CS), new Integer(fr)});
542                    if (interps.get("shortcut"+p.toString()) != null) {
543                        ((DefaultVobMatcher)vs.matcher).keymapSingleCoordsys(MAIN_CS,
544                             ((Integer)interps.get("shortcut"+p.toString())).intValue());
545                    }
546    
547                  int c2f = vs.coords.ortho(0, 11, 0, 0,                  int c2f = vs.coords.ortho(0, 11, 0, 0,
548                                            leftPanelZoom, leftPanelZoom);                                            leftPanelZoom, leftPanelZoom);
# Line 537  public static final String rcsid = "$Id$ Line 554  public static final String rcsid = "$Id$
554                                    
555                  i++;                  i++;
556              }              }
             //((DefaultVobMatcher)vs.matcher).dumbByParent();  
557          }          }
           
           
558      }      }
559    
560    

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26