Changeset 31424 in osm for applications
- Timestamp:
- 2015-07-31T15:52:49+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r31422 r31424 34 34 /** Plugin's directory */ 35 35 public static String directory; 36 /** OS route separator */ 37 public static final String SEPARATOR = System.getProperty("file.separator"); 36 38 /** 24x24 icon. */ 37 39 public static ImageIcon ICON24; … … 86 88 super(info); 87 89 88 directory = new File("").getAbsolutePath() + "/"; 89 ICON24 = new ImageProvider(directory + "images/icon24.png").get(); 90 ICON16 = new ImageProvider(directory + "images/icon16.png").get(); 91 MAP_ICON = new ImageProvider(directory + "images/mapicon.png").get(); 90 91 directory = new File("").getAbsolutePath() + SEPARATOR; 92 ICON24 = new ImageProvider(directory + "images" + SEPARATOR + "icon24.png").get(); 93 ICON16 = new ImageProvider(directory + "images" + SEPARATOR + "icon16.png").get(); 94 MAP_ICON = new ImageProvider(directory + "images" + SEPARATOR + "mapicon.png").get(); 92 95 MAP_ICON_SELECTED = new ImageProvider(directory 93 + "images /mapiconselected.png").get();96 + "images" + SEPARATOR + "mapiconselected.png").get(); 94 97 MAP_ICON_IMPORTED = new ImageProvider(directory 95 98 + "images/mapiconimported.png").get(); 96 MAP_SIGN = new ImageProvider(directory + "images /sign.png").get();99 MAP_SIGN = new ImageProvider(directory + "images" + SEPARATOR + "sign.png").get(); 97 100 98 101 downloadAction = new MapillaryDownloadAction(); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryDownloadAction.java
r31417 r31424 31 31 */ 32 32 public MapillaryDownloadAction() { 33 super(tr("Mapillary"), new ImageProvider(MapillaryPlugin.directory + "images/icon24.png"), 33 super(tr("Mapillary"), new ImageProvider(MapillaryPlugin.directory 34 + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), 34 35 tr("Create Mapillary layer"), Shortcut.registerShortcut("Mapillary", 35 36 tr("Start Mapillary layer"), KeyEvent.VK_COMMA, Shortcut.SHIFT), -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryDownloadViewAction.java
r31422 r31424 27 27 public MapillaryDownloadViewAction() { 28 28 super(tr("Download Mapillary images in current view"), new ImageProvider( 29 MapillaryPlugin.directory + "images /icon24.png"), tr("Download Mapillary images in current view"),29 MapillaryPlugin.directory + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), tr("Download Mapillary images in current view"), 30 30 Shortcut.registerShortcut("Mapillary area", 31 31 tr("Download Mapillary images in current view"), -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryExportAction.java
r31417 r31424 43 43 */ 44 44 public MapillaryExportAction() { 45 super(tr("Export pictures"), new ImageProvider(MapillaryPlugin.directory + "images/icon24.png"), 45 super(tr("Export pictures"), new ImageProvider(MapillaryPlugin.directory 46 + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), 46 47 tr("Export pictures"), Shortcut.registerShortcut("Export Mapillary", 47 48 tr("Export Mapillary pictures"), KeyEvent.CHAR_UNDEFINED, -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportAction.java
r31418 r31424 51 51 public MapillaryImportAction() { 52 52 super(tr("Import pictures"), new ImageProvider(MapillaryPlugin.directory 53 + "images /icon24.png"), tr("Import local pictures"), Shortcut54 .registerShortcut("Import Mapillary",55 tr("Import pictures into Mapillary layer"),53 + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), 54 tr("Import local pictures"), Shortcut.registerShortcut( 55 "Import Mapillary", tr("Import pictures into Mapillary layer"), 56 56 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), false, "mapillaryImport", 57 57 false); … … 267 267 } 268 268 269 result = 360 *((result+180)/360 - Math.floor((result+180)/360)) - 180;269 result = 360 * ((result + 180) / 360 - Math.floor((result + 180) / 360)) - 180; 270 270 return result; 271 271 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportIntoSequenceAction.java
r31417 r31424 51 51 */ 52 52 public MapillaryImportIntoSequenceAction() { 53 super(tr("Import pictures into sequence"), new ImageProvider(MapillaryPlugin.directory + "images/icon24.png"), 53 super(tr("Import pictures into sequence"), new ImageProvider( 54 MapillaryPlugin.directory 55 + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), 54 56 tr("Import local pictures"), Shortcut.registerShortcut( 55 57 "Import Mapillary Sequence", -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryJoinAction.java
r31417 r31424 28 28 */ 29 29 public MapillaryJoinAction() { 30 super(tr("Join mode"), new ImageProvider(MapillaryPlugin.directory + "images/icon24.png"), 30 super(tr("Join mode"), new ImageProvider(MapillaryPlugin.directory 31 + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), 31 32 tr("Join/unjoin pictures"), Shortcut.registerShortcut("Mapillary join", 32 33 tr("Join Mapillary pictures"), KeyEvent.CHAR_UNDEFINED, -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryWalkAction.java
r31417 r31424 40 40 public MapillaryWalkAction() { 41 41 super(tr("Walk mode"), new ImageProvider(MapillaryPlugin.directory 42 + "images/icon24.png"), tr("Walk mode"), Shortcut.registerShortcut( 43 "Mapillary walk", tr("Start walk mode"), KeyEvent.CHAR_UNDEFINED, 44 Shortcut.NONE), false, "mapillaryWalk", false); 42 + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), tr("Walk mode"), 43 Shortcut.registerShortcut("Mapillary walk", tr("Start walk mode"), 44 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), false, "mapillaryWalk", 45 false); 45 46 this.setEnabled(false); 46 47 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryZoomAction.java
r31417 r31424 30 30 */ 31 31 public MapillaryZoomAction() { 32 super(tr("Zoom to selected image"), new ImageProvider(MapillaryPlugin.directory + "images/icon24.png"), 32 super(tr("Zoom to selected image"), new ImageProvider( 33 MapillaryPlugin.directory 34 + "images" + MapillaryPlugin.SEPARATOR + "icon24.png"), 33 35 tr("Zoom to selected image"), Shortcut.registerShortcut( 34 36 "Zoom Mapillary", -
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/ImportTest.java
r31421 r31424 11 11 import org.apache.commons.imaging.common.RationalNumber; 12 12 import org.apache.commons.imaging.formats.tiff.constants.GpsTagConstants; 13 import org.openstreetmap.josm.Main;14 13 import org.openstreetmap.josm.data.coor.LatLon; 15 14 import org.openstreetmap.josm.plugins.mapillary.actions.MapillaryImportAction;
Note:
See TracChangeset
for help on using the changeset viewer.