[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java
From: |
Matti Katila |
Subject: |
[Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java |
Date: |
Sun, 22 Dec 2002 09:51:17 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Matti Katila <address@hidden> 02/12/22 09:51:16
Modified files:
gzz/modules/pp : PPMouseEvents.java
Log message:
foo
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/modules/pp/PPMouseEvents.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gzz/gzz/modules/pp/PPMouseEvents.java
diff -u gzz/gzz/modules/pp/PPMouseEvents.java:1.2
gzz/gzz/modules/pp/PPMouseEvents.java:1.3
--- gzz/gzz/modules/pp/PPMouseEvents.java:1.2 Sun Dec 22 08:36:17 2002
+++ gzz/gzz/modules/pp/PPMouseEvents.java Sun Dec 22 09:51:15 2002
@@ -99,28 +99,19 @@
public void event(MouseEvent ev, EventHandling.MousePressState p_state,
Object[] obs) {
try {
- pa("Add photo!");
-
JFileChooser fc = new JFileChooser();
int returnVal = fc.showOpenDialog(null);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
- //this is where a real application would open the file.
- pa("Opening: IMG:" + file.getPath() );
-
Cell c = context.getAccursed();
// XXX no checks!!
- c =
space.getCell(ppactions.newNote(c.h(ppv.d.contains).getId(),
- (int)ppv.panx,
(int)ppv.pany,
- "IMG:" + file.getPath()
- )
- );
+ ppactions.newNote(c.h(ppv.d.contains).getId(),
+ (int)ppv.panx, (int)ppv.pany,
+ "IMG:" + file.getPath()));
} else {
pa("Open command cancelled by user.");
}
-
- //ppactions.newPaper();
} catch (Exception e) { pa(e.getMessage()); }
AbstractUpdateManager.chg();
}
- [Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java,
Matti Katila <=
- [Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java, Matti Katila, 2002/12/22
- [Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java, Matti Katila, 2002/12/22
- [Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java, Matti Katila, 2002/12/23
- [Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java, Matti Katila, 2002/12/23
- [Gzz-commits] gzz/gzz/modules/pp PPMouseEvents.java, Matti Katila, 2002/12/23