Changeset 1472 in josm
- Timestamp:
- 2009-03-08T16:54:08+01:00 (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r1457 r1472 198 198 199 199 Main.main.undoRedo.add(new SequenceCommand(text, virtualCmds)); 200 selectPrims(Collections.singleton((OsmPrimitive)virtualNode), false, false, false );200 selectPrims(Collections.singleton((OsmPrimitive)virtualNode), false, false, false, false); 201 201 virtualWays.clear(); 202 202 virtualNode = null; … … 334 334 335 335 if (ctrl && shift) { 336 if (Main.ds.getSelected().isEmpty()) selectPrims(osmColl, true, false, false );336 if (Main.ds.getSelected().isEmpty()) selectPrims(osmColl, true, false, false, false); 337 337 mode = Mode.rotate; 338 338 setCursor(ImageProvider.getCursor("rotate", null)); … … 344 344 selectPrims(osmColl, 345 345 shift || Main.ds.getSelected().containsAll(osmColl), 346 ctrl, false );346 ctrl, false, false); 347 347 mode = Mode.move; 348 348 } else { … … 392 392 selectPrims( 393 393 Main.map.mapView.getNearestCollection(e.getPoint()), 394 shift, ctrl, true );394 shift, ctrl, true, false); 395 395 396 396 // If the user double-clicked a node, change to draw mode … … 434 434 435 435 public void selectionEnded(Rectangle r, boolean alt, boolean shift, boolean ctrl) { 436 selectPrims(selectionManager.getObjectsInRectangle(r, alt), shift, ctrl, false); 437 } 438 439 public void selectPrims(Collection<OsmPrimitive> selectionList, boolean shift, boolean ctrl, boolean released) { 436 selectPrims(selectionManager.getObjectsInRectangle(r, alt), shift, ctrl, true, true); 437 } 438 439 public void selectPrims(Collection<OsmPrimitive> selectionList, boolean shift, 440 boolean ctrl, boolean released, boolean area) { 440 441 if ((shift && ctrl) || (ctrl && !released)) 441 442 return; // not allowed together … … 453 454 if(curSel.contains(osm)) 454 455 curSel.remove(osm); 455 else 456 else if(!area) 456 457 curSel.add(osm); 457 458 }
Note:
See TracChangeset
for help on using the changeset viewer.