Changeset 31396 in osm for applications
- Timestamp:
- 2015-07-21T16:34:28+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryData.java
r31386 r31396 32 32 private final List<MapillaryAbstractImage> multiSelectedImages; 33 33 34 private List<MapillaryDataListener> listeners = new ArrayList<>();34 private List<MapillaryDataListener> listeners = new CopyOnWriteArrayList<>(); 35 35 36 36 /** … … 41 41 multiSelectedImages = new ArrayList<>(); 42 42 selectedImage = null; 43 44 addListener(MapillaryPlugin.walkAction); 43 45 } 44 46 … … 219 221 220 222 /** 221 * Selects a new image.If the user does ctrl +click, this isn't triggered.223 * Selects a new image.If the user does ctrl + click, this isn't triggered. 222 224 * 223 225 * @param image -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r31386 r31396 40 40 public static final ImageIcon MAP_ICON_SELECTED = new ImageProvider( 41 41 "mapiconselected.png").get(); 42 /** Icon representing an imported i age in the map. */42 /** Icon representing an imported image in the map. */ 43 43 public static final ImageIcon MAP_ICON_IMPORTED = new ImageProvider( 44 44 "mapiconimported.png").get(); 45 45 /** Icon used to identify which images have signs on them */ 46 46 public static final ImageIcon MAP_SIGN = new ImageProvider("sign.png").get(); 47 public static final int ICON_SIZE = 24;48 47 49 48 /** Cache that stores the pictures the downloaded pictures. */ … … 57 56 private final MapillaryImportIntoSequenceAction importIntoSequenceAction; 58 57 private final MapillaryJoinAction joinAction; 58 /** Walk action */ 59 public final static MapillaryWalkAction walkAction = new MapillaryWalkAction(); 59 60 60 61 /** Menu button for the {@link MapillaryDownloadAction} action. */ … … 72 73 /** Menu button for the {@link MapillaryJoinAction} action. */ 73 74 public static JMenuItem JOIN_MENU; 75 /** Menu button for the {@link MapillaryWalkAction} action. */ 76 public static JMenuItem WALK_MENU; 74 77 75 78 /** … … 101 104 downloadViewAction, false, 14); 102 105 JOIN_MENU = MainMenu.add(Main.main.menu.dataMenu, joinAction, false); 106 WALK_MENU = MainMenu.add(Main.main.menu.moreToolsMenu, walkAction, false); 103 107 } 104 108 … … 110 114 DOWNLOAD_VIEW_MENU.setEnabled(false); 111 115 JOIN_MENU.setEnabled(false); 116 WALK_MENU.setEnabled(false); 112 117 113 118 try { … … 151 156 * The JMenuItem object that is going to be enabled or disabled. 152 157 * @param value 153 * true to enable de JMenuItem; false to disable it.158 * true to enable the JMenuItem; false to disable it. 154 159 */ 155 160 public static void setMenuEnabled(JMenuItem menu, boolean value) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportIntoSequenceAction.java
r31387 r31396 46 46 private LinkedList<MapillaryImportedImage> images; 47 47 48 /** 49 * Main constructor. 50 */ 48 51 public MapillaryImportIntoSequenceAction() { 49 52 super(tr("Import pictures into sequence"), new ImageProvider("icon24.png"), -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java
r31389 r31396 65 65 private JPanel buttonsPanel; 66 66 67 private MapillaryImageDisplay mapillaryImageDisplay; 67 /** Object containing the shown image and that handles zoom and drag */ 68 public MapillaryImageDisplay mapillaryImageDisplay; 68 69 69 70 private MapillaryCache imageCache; … … 257 258 title += " -- " + mapillaryImage.getDate(); 258 259 setTitle(title); 259 } 260 else if (this.image instanceof MapillaryImportedImage) { 260 } else if (this.image instanceof MapillaryImportedImage) { 261 261 MapillaryImportedImage mapillaryImportedImage = (MapillaryImportedImage) this.image; 262 262 String title = tr(BASE_TITLE); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryPreferenceSetting.java
r31391 r31396 67 67 oauth.setText("Login"); 68 68 else 69 oauth.setText("Already loged in, click to relogin ");69 oauth.setText("Already loged in, click to relogin."); 70 70 panel.add(oauth); 71 71 gui.getDisplayPreference().addSubTab(this, "Mapillary", panel);
Note:
See TracChangeset
for help on using the changeset viewer.