- Timestamp:
- 2014-11-02T11:38:51+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/HelpAction.java
r7434 r7694 27 27 */ 28 28 public HelpAction() { 29 super(tr("Help"), ImageProvider.get("help")); 29 super(tr("Help")); 30 new ImageProvider("help").getResource().getImageIcon(this); 30 31 putValue("toolbar", "help"); 31 32 setEnabled(!Main.isOffline(OnlineResource.JOSM_WEBSITE)); -
trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java
r6990 r7694 158 158 @Override 159 159 public Icon getIcon() { 160 return (Icon) getSafeActionValue(Action.SMALL_ICON); 160 Object o = getSafeActionValue(Action.LARGE_ICON_KEY); 161 if (o == null) 162 o = getSafeActionValue(Action.SMALL_ICON); 163 return (Icon) o; 161 164 } 162 165 -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r7624 r7694 604 604 add(fileMenu, saveAs); 605 605 sessionMenu.setToolTipText(tr("Save and load the current session (list of layers, etc.)")); 606 sessionMenu.setIcon( ImageProvider.get("session"));606 sessionMenu.setIcon(new ImageProvider("session").setSize(ImageProvider.ImageSizes.MENU).get()); 607 607 sessionSaveAs = new SessionSaveAsAction(); 608 608 sessionLoad = new SessionLoadAction(); -
trunk/src/org/openstreetmap/josm/gui/io/RecentlyOpenedFilesMenu.java
r6070 r7694 30 30 super(tr("Open Recent")); 31 31 setToolTipText(tr("List of recently opened files")); 32 setIcon( ImageProvider.get("openrecent.png"));32 setIcon(new ImageProvider("openrecent").setSize(ImageProvider.ImageSizes.MENU).get()); 33 33 putClientProperty("help", ht("/Action/OpenRecent")); 34 34 -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
r7665 r7694 85 85 public MapPaintMenu() { 86 86 super(tr("Map Paint Styles")); 87 setIcon( ImageProvider.get("dialogs", "mapstyle"));87 setIcon(new ImageProvider("dialogs", "mapstyle").setSize(ImageProvider.ImageSizes.MENU).get()); 88 88 MapPaintStyles.addMapPaintSylesUpdateListener(this); 89 89 putClientProperty("help", ht("/Dialog/MapPaint")); -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r7693 r7694 119 119 /* MAP icon */ 120 120 MAP, 121 /* MAP icon maximum size */121 /* MAP icon maximum size */ 122 122 MAPMAX, 123 /* MENU icon size */ 124 MENU, 123 125 } 124 126 … … 254 256 case MAP: sizeval = Main.pref.getInteger("iconsize.mapmax", 16); break; 255 257 case LARGEICON: sizeval = Main.pref.getInteger("iconsize.largeicon", 24); break; 258 case MENU: /* MENU is SMALLICON - only provided in case of future changes */ 256 259 case SMALLICON: sizeval = Main.pref.getInteger("iconsize.smallicon", 16); break; 257 260 default: sizeval = Main.pref.getInteger("iconsize.default", 24); break; … … 949 952 * @return an icon that represent the overlay of the two given icons. The second icon is layed 950 953 * on the first relative to the given position. 951 */ 954 * FIXME: This function does not fit into the ImageProvider concept as public function! 955 * Overlay should be handled like all the other functions only settings arguments and 956 * overlay must be transparent in the background. 957 * Also scaling is not cared about with current implementation. 958 */ 959 @Deprecated 952 960 public static ImageIcon overlay(Icon ground, Icon overlay, OverlayPosition pos) { 953 961 int w = ground.getIconWidth();
Note:
See TracChangeset
for help on using the changeset viewer.