[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java
From: |
Matti Katila |
Subject: |
[Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java |
Date: |
Fri, 16 May 2003 07:34:37 -0400 |
CVSROOT: /cvsroot/fenfire
Module name: fenfire
Changes by: Matti Katila <address@hidden> 03/05/16 07:34:37
Modified files:
org/fenfire/view/lava: FenPDFContext.java
Log message:
plaah
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/fenfire/fenfire/org/fenfire/view/lava/FenPDFContext.java.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
Patches:
Index: fenfire/org/fenfire/view/lava/FenPDFContext.java
diff -u fenfire/org/fenfire/view/lava/FenPDFContext.java:1.10
fenfire/org/fenfire/view/lava/FenPDFContext.java:1.11
--- fenfire/org/fenfire/view/lava/FenPDFContext.java:1.10 Fri May 16
07:12:11 2003
+++ fenfire/org/fenfire/view/lava/FenPDFContext.java Fri May 16 07:34:36 2003
@@ -67,7 +67,7 @@
/** call back from RSTText */
public void isToBePlaced(Object node, TextHandler text) {
- p("n"+node+" == "+accursed);
+ if (dbg) p("n"+node+" == "+accursed);
if (node==accursed) {
text.setColor(java.awt.Color.red);
text.setCursorOffset(cursorOffset);
@@ -95,27 +95,27 @@
setOrigin = false;
unSetOrigin = false;
- if (main instanceof MainNode2D);
- else return;
-
-
- // what to do if accursed is NULL?
- if (accursed==null) {
- cursor = true;
- // fishey doesn't need cursor (currently)
- }
- // and what to do if accursed is choosed?
- else {
- if (toBeLinked == null) setOrigin = true;
- if (toBeLinked != null) unSetOrigin = true;
-
- if (toBeLinked != accursed) {
- setOrigin = true;
-
- // and if link from has been choosed?
- if (toBeLinked != null) {
- leftLink = true;
- rigthLink = true;
+ // if in canvas
+ if (main instanceof MainNode2D) {
+ // what to do if accursed is NULL?
+ if (accursed==null) {
+ if (main instanceof MainNode2D)
+ cursor = true;
+ // fishey doesn't need cursor (currently)
+ }
+ // and what to do if accursed is choosed?
+ else {
+ if (toBeLinked == null) setOrigin = true;
+ if (toBeLinked != null) unSetOrigin = true;
+
+ if (toBeLinked != accursed) {
+ setOrigin = true;
+
+ // and if link from has been choosed?
+ if (toBeLinked != null) {
+ leftLink = true;
+ rigthLink = true;
+ }
}
}
}
@@ -136,33 +136,37 @@
vs.put(new LineVob(0,0,0,1, java.awt.Color.darkGray), cursor);
}
+ Button b_always = new Button(vs, 0,
+
GraphicsAPI.getInstance().getTextStyle("sans", 0, 24),
+ 30, 0, 50);
+ b_always.add("[Import PS/PDF]", "IMPORT");
+
Button b = new Button(vs, 0,
GraphicsAPI.getInstance().getTextStyle("sans",
0, 24),
- 50, 30, 50);
+ 40, 23, 50);
if (leftLink) b.add("[<--]", "LINK_LEFT");
if (setOrigin) b.add("[Set link origin]", "SET_ORIG");
if (unSetOrigin)b.add("[Unset link origin]","UNSET_ORIG");
if (rigthLink) b.add("[-->]", "LINK_RIGTH");
+
}
public boolean doMouse(MouseEvent e, VobScene oldVS,
AbstractMainNode2D main) {
- // only in canvas
- if (main instanceof MainNode2D);
- else return false;
-
-
if (e.getID() != MouseEvent.MOUSE_CLICKED) return false;
int cs = oldVS.coords.getCSAt(0, e.getX(), e.getY(), null);
Object obKey = oldVS.matcher.getKey(cs);
+ if (obKey == null) return false;
if (obKey instanceof String) {
String key = (String)obKey;
- p("found something! "+key);
+ if (dbg) p("found something! "+key);
if (key.equals("SET_ORIG")) actionSetLinkOrigin();
else if (key.equals("UNSET_ORIG")) actionUnSetLinkOrigin();
else if (key.equals("LINK_LEFT")) actionLinkRigth();
else if (key.equals("LINK_RIGTH")) actionLinkLeft();
+
+ else if (key.equals("IMPORT")) p("NOT IMPLEMENTED");
else return false;
AbstractUpdateManager.chg();
- [Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java,
Matti Katila <=
- [Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java, Matti Katila, 2003/05/16
- [Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java, Matti Katila, 2003/05/21
- [Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java, Matti Katila, 2003/05/21
- [Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java, Matti Katila, 2003/05/21
- [Gzz-commits] fenfire/org/fenfire/view/lava FenPDFContext.java, Matti Katila, 2003/05/28