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 */ |
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 |
|
|
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() { |
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 |
|
|
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); |