Changeset 999 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2008-09-21T14:03:38+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r845 r999 39 39 import org.openstreetmap.josm.command.Command; 40 40 import org.openstreetmap.josm.command.SequenceCommand; 41 import org.openstreetmap.josm.data.Preferences;42 41 import org.openstreetmap.josm.data.SelectionChangedListener; 43 42 import org.openstreetmap.josm.data.coor.EastNorth; -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r804 r999 22 22 import org.openstreetmap.josm.command.Command; 23 23 import org.openstreetmap.josm.command.SequenceCommand; 24 import org.openstreetmap.josm.data.Preferences;25 24 import org.openstreetmap.josm.data.coor.EastNorth; 26 25 import org.openstreetmap.josm.data.osm.Node; … … 68 67 69 68 /** 70 * The screen distance which needs to be travelled before something71 * counts as a move, in pixels72 */73 private int initialMoveThreshold = 15;74 private boolean initialMoveThresholdExceeded = false;75 /**76 69 * Create a new SelectAction 77 70 * @param mapFrame The MapFrame this action belongs to. … … 82 75 getCursor("normal", "selection", Cursor.DEFAULT_CURSOR)); 83 76 putValue("help", "Action/Extrude/Extrude"); 84 try { initialMoveDelay = Integer.parseInt(Main.pref.get("edit.initial-move-delay","200")); } catch (NumberFormatException x) {} 85 try { initialMoveThreshold = Integer.parseInt(Main.pref.get("edit.initial-move-threshold","5")); } catch (NumberFormatException x) {} 77 initialMoveDelay = Main.pref.getInteger("edit.initial-move-delay",200); 86 78 selectedColor = Main.pref.getColor(marktr("selected"), Color.YELLOW); 87 79 } … … 268 260 } 269 261 } 270 271 272 262 }
Note:
See TracChangeset
for help on using the changeset viewer.