Changeset 5424 in osm for applications


Ignore:
Timestamp:
2007-11-10T10:21:20+01:00 (17 years ago)
Author:
ulf
Message:

add tooltips for the menu items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/livegps/LiveGpsPlugin.java

    r5421 r5424  
    4141        lgpsmenu.setMnemonic(KeyEvent.VK_G);
    4242        menu.add(lgpsmenu, 5);
     43       
    4344        lgpscapture = new JCheckBoxMenuItem(tr("Capture GPS Track"));
    4445        lgpscapture.setSelected(false);
    45         lgpscapture.setAccelerator(KeyStroke.getKeyStroke("alt R"));
     46        lgpscapture.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, KeyEvent.VK_ALT));
    4647        lgpscapture.addActionListener(new ActionListener() {
    4748                public void actionPerformed(ActionEvent ev) {
     
    4950                }
    5051        });
     52        lgpscapture.setToolTipText("Connect to gpsd server and show current position in LiveGPS layer");
    5153        lgpsmenu.add(lgpscapture);
    5254
     
    6062                }
    6163        });
     64        lgpscenter.setToolTipText("Center the LiveGPS layer to current position");
    6265        lgpsmenu.add(lgpscenter);
    6366       
    6467       
    65         lgpsautocenter = new JCheckBoxMenuItem(tr("Auto-Center on current position"));
     68        lgpsautocenter = new JCheckBoxMenuItem(tr("Auto-Center"));
    6669        lgpsautocenter.setSelected(true);
    6770        lgpsautocenter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0));
     
    7174            }
    7275        });
     76        lgpsautocenter.setToolTipText("Continuously center the LiveGPS layer to current position");
    7377        lgpsmenu.add(lgpsautocenter);       
    7478    }
Note: See TracChangeset for help on using the changeset viewer.