Changeset 21350 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-05-18T17:39:26+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java
r21299 r21350 15 15 import java.awt.Point; 16 16 import java.awt.Rectangle; 17 import java.awt.event.ActionEvent; 17 18 import java.awt.event.KeyEvent; 18 19 import java.awt.event.KeyListener; … … 46 47 super(name); 47 48 this.ls = ls; 49 Action a = new AbstractAction() { 50 public void actionPerformed(ActionEvent e) { 51 // TODO Auto-generated method stub 52 System.err.println("!!!boom!!!"); 53 }}; 48 54 selected = new ArrayList<WayPoint>(); 49 55 Main.map.mapView.addMouseListener(this); 50 Main.map.mapView.addKeyListener(this); 56 57 //Main.panel.addKeyListener(this); 58 //Main.map.mapView.addKeyListener(this); 59 Main.contentPane.getInputMap().put(KeyStroke.getKeyStroke("SPACE"),"pressed"); 60 Main.contentPane.getActionMap().put("pressed",a); 61 62 //Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE,0),a); 63 //Main.contentPane.getActionMap().put("doSomething",a); 64 51 65 it=ls.iterator(); 52 66 Timer t = new Timer(); … … 188 202 switch(e.getKeyCode()) 189 203 { 190 case KeyEvent.VK_LEFT: sel = ls.get(50); 204 case KeyEvent.VK_LEFT: 205 { 206 it.next(); 207 it.next(); 208 it.next(); 209 it.next(); 210 it.next(); 211 it.next(); 212 it.next(); 213 it.next(); 214 it.next(); 215 it.next(); 216 it.next(); 217 it.next(); 218 it.next(); 219 it.next(); 220 it.next(); 221 it.next(); 222 it.next(); 223 } 191 224 } 192 225 -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoAction.java
r21299 r21350 9 9 10 10 import javax.swing.JFileChooser; 11 import javax.swing.KeyStroke; 11 12 import javax.swing.filechooser.FileFilter; 12 13 … … 35 36 // Choose a file 36 37 public void actionPerformed(ActionEvent arg0) { 37 38 38 copyGPSLayer(); 39 Main.main.addLayer(new PositionLayer("test",ls)); 39 Main.main.addLayer(new PositionLayer("test",ls)); 40 40 41 } 41 42
Note:
See TracChangeset
for help on using the changeset viewer.