Changeset 5424 in osm for applications
- Timestamp:
- 2007-11-10T10:21:20+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/livegps/LiveGpsPlugin.java
r5421 r5424 41 41 lgpsmenu.setMnemonic(KeyEvent.VK_G); 42 42 menu.add(lgpsmenu, 5); 43 43 44 lgpscapture = new JCheckBoxMenuItem(tr("Capture GPS Track")); 44 45 lgpscapture.setSelected(false); 45 lgpscapture.setAccelerator(KeyStroke.getKeyStroke( "alt R"));46 lgpscapture.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, KeyEvent.VK_ALT)); 46 47 lgpscapture.addActionListener(new ActionListener() { 47 48 public void actionPerformed(ActionEvent ev) { … … 49 50 } 50 51 }); 52 lgpscapture.setToolTipText("Connect to gpsd server and show current position in LiveGPS layer"); 51 53 lgpsmenu.add(lgpscapture); 52 54 … … 60 62 } 61 63 }); 64 lgpscenter.setToolTipText("Center the LiveGPS layer to current position"); 62 65 lgpsmenu.add(lgpscenter); 63 66 64 67 65 lgpsautocenter = new JCheckBoxMenuItem(tr("Auto-Center on current position"));68 lgpsautocenter = new JCheckBoxMenuItem(tr("Auto-Center")); 66 69 lgpsautocenter.setSelected(true); 67 70 lgpsautocenter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0)); … … 71 74 } 72 75 }); 76 lgpsautocenter.setToolTipText("Continuously center the LiveGPS layer to current position"); 73 77 lgpsmenu.add(lgpsautocenter); 74 78 }
Note:
See TracChangeset
for help on using the changeset viewer.