Changeset 32396 in osm for applications


Ignore:
Timestamp:
2016-06-24T22:18:14+02:00 (8 years ago)
Author:
stoecker
Message:

fix old style sidebutton usage, add two more images, see #josm12994

Location:
applications/editors/josm/plugins/mapillary
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/gradle.properties

    r32385 r32396  
    55plugin.icon=images/icon24.png
    66plugin.link=https://wiki.openstreetmap.org/wiki/JOSM/Plugins/Mapillary
    7 plugin.main.version=10332
     7plugin.main.version=10369
    88plugin.requires=apache-commons;apache-http
    99plugin.version=1.1.5
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterDialog.java

    r32374 r32396  
    3232import org.openstreetmap.josm.plugins.mapillary.MapillaryImportedImage;
    3333import org.openstreetmap.josm.plugins.mapillary.MapillaryLayer;
     34import org.openstreetmap.josm.tools.ImageProvider;
    3435import org.openstreetmap.josm.tools.Shortcut;
    3536
     
    282283    UpdateAction() {
    283284      putValue(NAME, tr("Update"));
     285      new ImageProvider("dialogs", "refresh").getResource().attachImageIcon(this, true);
    284286    }
    285287
     
    298300    ResetAction() {
    299301      putValue(NAME, tr("Reset"));
     302      new ImageProvider("preferences", "reset").getResource().attachImageIcon(this, true);
    300303    }
    301304
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryHistoryDialog.java

    r32373 r32396  
    203203    public UndoAction() {
    204204      putValue(NAME, tr("Undo"));
    205       putValue(SMALL_ICON, ImageProvider.get("undo"));
     205      new ImageProvider("undo").getResource().attachImageIcon(this, true);
    206206    }
    207207
     
    218218    public RedoAction() {
    219219      putValue(NAME, tr("Redo"));
    220       putValue(SMALL_ICON, ImageProvider.get("redo"));
     220      new ImageProvider("redo").getResource().attachImageIcon(this, true);
    221221    }
    222222
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java

    r32374 r32396  
    455455      putValue(NAME, tr("Stop"));
    456456      putValue(SHORT_DESCRIPTION, tr("Stops the walk."));
    457       putValue(SMALL_ICON, ImageProvider.get("dialogs/mapillaryStop.png"));
     457      new ImageProvider("dialogs/mapillaryStop.png").getResource().attachImageIcon(this, true);
    458458      MapillaryPlugin.getWalkAction().addListener(this);
    459459    }
     
    482482      putValue(NAME, tr("Play"));
    483483      putValue(SHORT_DESCRIPTION, tr("Continues with the paused walk."));
    484       putValue(SMALL_ICON, ImageProvider.get("dialogs/mapillaryPlay.png"));
     484      new ImageProvider("dialogs/mapillaryPlay.png").getResource().attachImageIcon(this, true);
    485485      MapillaryPlugin.getWalkAction().addListener(this);
    486486    }
     
    511511      putValue(NAME, tr("Pause"));
    512512      putValue(SHORT_DESCRIPTION, tr("Pauses the walk."));
    513       putValue(SMALL_ICON, ImageProvider.get("dialogs/mapillaryPause.png"));
     513      new ImageProvider("dialogs/mapillaryPause.png").getResource().attachImageIcon(this, true);
    514514      MapillaryPlugin.getWalkAction().addListener(this);
    515515    }
Note: See TracChangeset for help on using the changeset viewer.