/[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.56 by mudyc, Sat Jan 11 13:10:53 2003 UTC revision 1.57 by mudyc, Sat Jan 11 17:35:33 2003 UTC
# Line 51  public static final String rcsid = "$Id$ Line 51  public static final String rcsid = "$Id$
51    
52      final public int LINK_KILLING = 3;      final public int LINK_KILLING = 3;
53    
54        public int lastViewMode = JUST_BROWSING;
55      public int viewMode = JUST_BROWSING;      public int viewMode = JUST_BROWSING;
56    
57      /** Events */      /** Events */
# Line 301  public static final String rcsid = "$Id$ Line 302  public static final String rcsid = "$Id$
302                  }                  }
303                  count *= 0.5;                  count *= 0.5;
304              }              }
305              actr = vs.translateCS(actr, "SHIFT_"+count, 0, count * 1.6f);              actr = vs.translateCS(actr, "SHIFT_"+count, 0, count * 1.8f);
306    
307              int buoycs = floater.buoyCoordsys(actr, key);              int buoycs = floater.buoyCoordsys(actr, key);
308    
# Line 325  public static final String rcsid = "$Id$ Line 326  public static final String rcsid = "$Id$
326                      -pan[0]*buoyZoom, -pan[1]*buoyZoom, buoyZoom, buoyZoom);                      -pan[0]*buoyZoom, -pan[1]*buoyZoom, buoyZoom, buoyZoom);
327              vs.matcher.add(frameCS, c2fCS, "C2F");              vs.matcher.add(frameCS, c2fCS, "C2F");
328    
329              ev_handler.onClick(frameCS, "Link CLICK",              if (viewMode == LINK_KILLING) {
330                                 new Object[]{ c, connectedFrom, new Integer(MAIN_CS),                  ev_handler.onClick(frameCS, "Kill link",
331                                               new Integer(frameCS), new Integer(anchor),                     new Object[]{ c, connectedFrom, new Integer(dir)});
332                                               new Integer(buoycs)});              } else {
333                    ev_handler.onClick(frameCS, "Link CLICK",
334                       new Object[]{ c, connectedFrom, new Integer(MAIN_CS),
335                                     new Integer(frameCS), new Integer(anchor)});
336                }
337              ev_handler.onDrag(frameCS, "Drag buoy");              ev_handler.onDrag(frameCS, "Drag buoy");
338    
339              if (interps.get("link"+c.toString()) != null) {              if (interps.get("link"+c.toString()) != null) {
340                  ((DefaultVobMatcher)vs.matcher).keymapSingleCoordsys(nadir_buoy,                  ((DefaultVobMatcher)vs.matcher).keymapSingleCoordsys(frameCS,
341                     ((Integer)interps.get("link"+c.toString())).intValue());                     ((Integer)interps.get("link"+c.toString())).intValue());
                 pa("FOOOOOOBAR");  
342              }              }
343    
344              buoyqueue.add(new Runnable() {              buoyqueue.add(new Runnable() {
# Line 393  public static final String rcsid = "$Id$ Line 397  public static final String rcsid = "$Id$
397    
398          if(showLinkbuoys)          if(showLinkbuoys)
399              main_vc.setCellView(cellview);              main_vc.setCellView(cellview);
400          else          else {
401              main_vc.setCellView(              main_vc.setCellView(
402                  new CellViewPlugin(cellview,                  new CellViewPlugin(cellview,
403                                     new Cell1DBuoyHook(leftFloater, rightFloater,                        new Cell1DBuoyHook(leftFloater, rightFloater,
404                                                        d.clone, d.association)));                                           d.clone, d.association)));
405            }
406    
407          Dimension size = vs.getSize();          Dimension size = vs.getSize();
408                    
# Line 479  public static final String rcsid = "$Id$ Line 484  public static final String rcsid = "$Id$
484              Button butt = new Button(vs, ev_handler, style);              Button butt = new Button(vs, ev_handler, style);
485              butt.add("Add new paper", "Uusi paperi", 0,0);              butt.add("Add new paper", "Uusi paperi", 0,0);
486              butt.add("Add photo to paper", "Liita kuva", 200,0);              butt.add("Add photo to paper", "Liita kuva", 200,0);
487              butt.add("Delete paper", "Tuhoa paperi", 400,0);              butt.add("Delete paper", "Tuhoa paperi", 360,0);
488                butt.add("Delete a note", "Tuhoa merkinta", 570,0);
489                butt.add("Link killing", "Pura linkkaus", 820,0);
490    
491              // count papers              // count papers
492              Cell p = main_vc.getAccursed().h(d.contains).h(d.d1).s(d.d1);              Cell p = main_vc.getAccursed().h(d.contains).h(d.d1).s(d.d1);

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

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