Changeset 27101 in osm for applications/editors/josm/plugins/ColumbusCSV/src/org
- Timestamp:
- 2011-11-20T13:43:31+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVImporter.java
r27098 r27101 46 46 } 47 47 48 /* (non-Javadoc) 49 * @see org.openstreetmap.josm.io.FileImporter#importData(java.io.File, org.openstreetmap.josm.gui.progress.ProgressMonitor) 50 */ 48 51 @Override 49 52 public void importData(File file, ProgressMonitor progressMonitor) … … 80 83 81 84 // ... and scale view appropriately - if wished by user 82 if ( !ColumbusCSVPreferences.dontZoom()) {85 if (ColumbusCSVPreferences.zoomAfterImport()) { 83 86 AutoScaleAction action = new AutoScaleAction("data"); 84 87 action.autoScale(); -
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVPreferences.java
r23795 r27101 41 41 * Disable auto zoom after import. 42 42 */ 43 public static final String DONT_ZOOM_AFTER_IMPORT = PREFIX + "import.dontZoomAfterImport";43 public static final String ZOOM_AFTER_IMPORT = PREFIX + "import.dontZoomAfterImport"; 44 44 /** 45 45 * If <tt>true</tt>, all DOP values (hdop, vdop, pdop) are ignored. If the V-900 runs in simple mode, … … 78 78 public boolean ok() { 79 79 Main.pref.put(SHOW_SUMMARY, colCSVShowSummary.isSelected()); 80 Main.pref.put( DONT_ZOOM_AFTER_IMPORT, colCSVDontZoomAfterImport.isSelected());80 Main.pref.put(ZOOM_AFTER_IMPORT, colCSVDontZoomAfterImport.isSelected()); 81 81 Main.pref.put(IGNORE_VDOP, colCSVIgnoreVDOP.isSelected()); 82 82 Main.pref.put(WARN_CONVERSION_ERRORS, colCSVWarnConversionErrors.isSelected()); … … 107 107 * @return 108 108 */ 109 public static boolean dontZoom() {110 return Main.pref.getBoolean( DONT_ZOOM_AFTER_IMPORT, true);109 public static boolean zoomAfterImport() { 110 return Main.pref.getBoolean(ZOOM_AFTER_IMPORT, true); 111 111 } 112 112 … … 169 169 // Apply settings 170 170 colCSVShowSummary.setSelected(Main.pref.getBoolean(SHOW_SUMMARY, true)); 171 colCSVDontZoomAfterImport.setSelected(Main.pref.getBoolean( DONT_ZOOM_AFTER_IMPORT, true));171 colCSVDontZoomAfterImport.setSelected(Main.pref.getBoolean(ZOOM_AFTER_IMPORT, true)); 172 172 colCSVIgnoreVDOP.setSelected(Main.pref.getBoolean(IGNORE_VDOP, false)); 173 173 colCSVWarnConversionErrors.setSelected(Main.pref.getBoolean(WARN_CONVERSION_ERRORS, true)); -
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java
r26828 r27101 218 218 * there is no other way to assign the audio files to way points. 219 219 * 220 * @param reader220 * @param gpx 221 221 * @return 222 222 */
Note:
See TracChangeset
for help on using the changeset viewer.