Changeset 17157 in josm


Ignore:
Timestamp:
2020-10-11T09:32:44+02:00 (11 days ago)
Author:
GerdP
Message:

see #19906: Scale, rotate & create areas tool: bottom toolbar unusable to view angle/scale factor/offset measurement

  • Let Create areas tool manage the distance field in the status line
  • enable autoupdate of the distance field in MapMode.exitMode()
Location:
trunk/src/org/openstreetmap/josm/actions/mapmode
Files:
3 edited

Legend:

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

    r17141 r17157  
    295295        map.mapView.addMouseListener(this);
    296296        map.mapView.addMouseMotionListener(this);
     297        map.statusLine.setAutoLength(false);
    297298        ignoreNextKeyRelease = true;
    298299        map.keyDetector.addKeyListener(this);
     
    555556                joinNodesIfCollapsed(movingNodeList);
    556557            }
     558            MainApplication.getMap().statusLine.setDist(getLayerManager().getEditDataSet().getSelectedWays());
     559            MainApplication.getMap().statusLine.repaint();
    557560
    558561            updateKeyModifiers(e);
  • trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r17108 r17157  
    8686        Config.getPref().removePreferenceChangeListener(this);
    8787        MainApplication.getMap().mapView.resetCursor(this);
     88        MainApplication.getMap().statusLine.setAutoLength(true);
    8889    }
    8990
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java

    r17108 r17157  
    189189        MapFrame map = MainApplication.getMap();
    190190        map.statusLine.setDist(-1);
    191         map.statusLine.setAutoLength(true);
    192191        map.keyDetector.removeModifierExListener(this);
    193192        removeWayHighlighting(sourceWays);
Note: See TracChangeset for help on using the changeset viewer.