Ignore:
Timestamp:
2006-05-03T22:21:02+02:00 (18 years ago)
Author:
imi
Message:
  • added zoom/move around with Ctrl+direction keys / Ctrl +, Ctrl -
  • added progress bar counter of downloaded bytes
  • added support for little-osm (relaxed assumptions about osm/xml input format)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r98 r101  
    11package org.openstreetmap.josm.actions.mapmode;
    22
     3import java.awt.Cursor;
    34import java.awt.event.ActionEvent;
    45import java.awt.event.MouseEvent;
     
    2324abstract public class MapMode extends JosmAction implements MouseListener, MouseMotionListener {
    2425
     26//      private final Cursor cursor;
     27//      private Cursor oldCursor;
     28
    2529        /**
    2630         * Constructor for mapmodes without an menu
    2731         */
    28         public MapMode(String name, String iconName, String tooltip, String keyname, int keystroke, MapFrame mapFrame) {
     32        public MapMode(String name, String iconName, String tooltip, String keyname, int keystroke, MapFrame mapFrame, Cursor cursor) {
    2933                super(name, "mapmode/"+iconName, tooltip, keyname, KeyStroke.getKeyStroke(keystroke, 0));
     34//              this.cursor = cursor;
    3035                putValue("active", false);
    3136        }
     
    3439         * Constructor for mapmodes with an menu (no shortcut will be registered)
    3540         */
    36         public MapMode(String name, String iconName, String tooltip, MapFrame mapFrame) {
     41        public MapMode(String name, String iconName, String tooltip, MapFrame mapFrame, Cursor cursor) {
    3742                putValue(NAME, name);
    3843                putValue(SMALL_ICON, ImageProvider.get("mapmode", iconName));
    3944                putValue(SHORT_DESCRIPTION, tooltip);
     45//              this.cursor = cursor;
    4046        }
    4147
    4248        public void enterMode() {
    4349                putValue("active", true);
     50//              oldCursor = Main.map.mapView.getCursor();
     51//              Main.map.mapView.setCursor(cursor);
     52               
    4453        }
    4554        public void exitMode() {
    4655                putValue("active", false);
     56//              Main.map.mapView.setCursor(oldCursor);
    4757        }
    4858
Note: See TracChangeset for help on using the changeset viewer.