Changeset 19211 in osm for applications/editors/josm/plugins/surveyor
- Timestamp:
- 2009-12-25T10:35:36+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/PlayAudioAction.java
r13497 r19211 43 43 if(audioSource == null) { 44 44 audioSource = getParameters().get(0); 45 System.out.println("reading audio from " + audioSource); 45 //System.out.println("reading audio from " + audioSource); 46 46 } 47 47 InputStream in = new BufferedInputStream(ResourceLoader.getInputStream(audioSource)); … … 86 86 } 87 87 } 88 89 88 }); 90 91 89 } 92 90 } -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetNodeAction.java
r18427 r19211 15 15 import org.openstreetmap.josm.Main; 16 16 import org.openstreetmap.josm.data.coor.LatLon; 17 import org.openstreetmap.josm.data.osm.DataSet; 17 18 import org.openstreetmap.josm.data.osm.Node; 18 19 … … 63 64 public void actionPerformed(GpsActionEvent event) { 64 65 LatLon coordinates = event.getCoordinates(); 65 System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", " + coordinates.lon() + " params: " + keyValues); 66 //System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", " + coordinates.lon() + " params: " + keyValues); 66 67 Node node = new Node(coordinates); 67 68 for(Entry<String, String> entry : keyValues) { 68 69 node.put(entry.getKey(), entry.getValue()); 69 70 } 70 node.put("created_by", "JOSM-surveyor-plugin");71 71 synchronized(LiveGpsLock.class) { 72 Main.map.mapView.getEditLayer().data.addPrimitive(node); 73 Main.main.getCurrentDataSet().setSelected(node); 72 DataSet ds = Main.main.getCurrentDataSet(); 73 if(ds != null) 74 { 75 ds.addPrimitive(node); 76 ds.setSelected(node); 77 } 74 78 } 75 79 Main.map.repaint(); -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java
r16948 r19211 38 38 private LiveGpsLayer liveGpsLayer; 39 39 private MarkerLayer markerLayer; 40 public static final String MARKER_LAYER_NAME = "surveyorwaypointlayer";40 public static final String MARKER_LAYER_NAME = tr("Surveyor waypoint layer"); 41 41 private WaypointDialog dialog; 42 42 … … 54 54 public void actionPerformed(GpsActionEvent event) { 55 55 LatLon coordinates = event.getCoordinates(); 56 System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", " + coordinates.lon()); 56 //System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", " + coordinates.lon()); 57 57 String markerTitle = getParameters().get(0); 58 58 Object source = event.getSource(); … … 70 70 71 71 String markerText = markerTitle; 72 String inputText = dialog.openDialog(SurveyorPlugin.getSurveyorFrame(), "Waypoint Description"); 72 String inputText = dialog.openDialog(SurveyorPlugin.getSurveyorFrame(), tr("Waypoint Description")); 73 73 if(inputText != null && inputText.length() > 0) { 74 74 inputText = inputText.replaceAll("<", "_"); // otherwise the gpx file is ruined -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/gui/WaypointDialog.java
r13497 r19211 68 68 69 69 70 System.out.println("value: " + optionPane.getValue()); 70 //System.out.println("value: " + optionPane.getValue()); 71 71 return textField.getText(); 72 72
Note:
See TracChangeset
for help on using the changeset viewer.