- Timestamp:
- 2015-02-14T07:31:36+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r7509 r8061 62 62 tr("Change directions?"), 63 63 new String[] {tr("Reverse and Combine"), tr("Cancel")}); 64 ed.setButtonIcons(new String[] {"wayflip .png", "cancel.png"});64 ed.setButtonIcons(new String[] {"wayflip", "cancel"}); 65 65 ed.setContent(tr("The ways can not be combined in their current directions. " 66 66 + "Do you want to reverse some of them?")); -
trunk/src/org/openstreetmap/josm/actions/HistoryInfoAction.java
r7771 r8061 59 59 public HistoryObjectIDDialog() { 60 60 super(Main.parent, tr("Show history"), new String[]{tr("Show history"), tr("Cancel")}); 61 setButtonIcons(new String[]{"dialogs/history .png", "cancel.png"});61 setButtonIcons(new String[]{"dialogs/history", "cancel"}); 62 62 init(); 63 63 } -
trunk/src/org/openstreetmap/josm/actions/MapRectifierWMSmenuAction.java
r7859 r8061 165 165 new String[] {tr("Add Rectified Image"), tr("Cancel")}); 166 166 diag.setContent(panel); 167 diag.setButtonIcons(new String[] {"OLmarker .png", "cancel.png"});167 diag.setButtonIcons(new String[] {"OLmarker", "cancel"}); 168 168 169 169 // This repeatedly shows the dialog in case there has been an error. -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r7859 r8061 118 118 ); 119 119 dialog.setContent(all, false /* don't embedded content in JScrollpane */); 120 dialog.setButtonIcons(new String[] {"download .png", "cancel.png"});120 dialog.setButtonIcons(new String[] {"download", "cancel"}); 121 121 dialog.setToolTipTexts(new String[] { 122 122 tr("Start downloading data"), -
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r7987 r8061 180 180 tr("Delete incomplete members?"), 181 181 new String[] {tr("Paste without incomplete members"), tr("Cancel")}); 182 ed.setButtonIcons(new String[] {"dialogs/relation/deletemembers .png", "cancel.png"});182 ed.setButtonIcons(new String[] {"dialogs/relation/deletemembers", "cancel"}); 183 183 ed.setContent(tr("The copied data contains incomplete objects. " 184 184 + "When pasting the incomplete objects are removed. " -
trunk/src/org/openstreetmap/josm/actions/ReportBugAction.java
r7937 r8061 22 22 */ 23 23 public ReportBugAction() { 24 super(tr("Report bug"), "bug .png", tr("Report a ticket to JOSM bugtracker"),24 super(tr("Report bug"), "bug", tr("Report a ticket to JOSM bugtracker"), 25 25 Shortcut.registerShortcut("reportbug", tr("Report a ticket to JOSM bugtracker"), 26 26 KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), true); -
trunk/src/org/openstreetmap/josm/actions/SaveAction.java
r6380 r8061 49 49 new String[] {tr("Overwrite"), tr("Cancel")} 50 50 ); 51 dialog.setButtonIcons(new String[] {"save_as .png", "cancel.png"});51 dialog.setButtonIcons(new String[] {"save_as", "cancel"}); 52 52 dialog.setContent(tr("File {0} exists. Overwrite?", f.getName())); 53 53 dialog.showDialog(); -
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r7578 r8061 190 190 ); 191 191 dialog.setContent(tr("File exists. Overwrite?")); 192 dialog.setButtonIcons(new String[] {"save_as .png", "cancel.png"});192 dialog.setButtonIcons(new String[] {"save_as", "cancel"}); 193 193 dialog.showDialog(); 194 194 return (dialog.getValue() == 1); -
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r7624 r8061 193 193 tr("Status Report"), 194 194 new String[] {tr("Copy to clipboard and close"), tr("Report bug"), tr("Close") }); 195 ed.setButtonIcons(new String[] {"copy .png", "bug.png", "cancel.png" });195 ed.setButtonIcons(new String[] {"copy", "bug", "cancel" }); 196 196 ed.setContent(sp, false); 197 197 ed.setMinimumSize(new Dimension(380, 200)); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r7937 r8061 95 95 */ 96 96 public ImproveWayAccuracyAction(MapFrame mapFrame) { 97 super(tr("Improve Way Accuracy"), "improvewayaccuracy .png",97 super(tr("Improve Way Accuracy"), "improvewayaccuracy", 98 98 tr("Improve Way Accuracy mode"), 99 99 Shortcut.registerShortcut("mapmode:ImproveWayAccuracy", -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r7668 r8061 822 822 tr("Move elements"), 823 823 new String[]{tr("Move them"), tr("Undo move")}); 824 ed.setButtonIcons(new String[]{"reorder .png", "cancel.png"});824 ed.setButtonIcons(new String[]{"reorder", "cancel"}); 825 825 ed.setContent( 826 826 /* for correct i18n of plural forms - see #9110 */ -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r7005 r8061 306 306 } 307 307 }; 308 dialog.setButtonIcons(new String[] {"dialogs/search .png", "cancel.png"});308 dialog.setButtonIcons(new String[] {"dialogs/search", "cancel"}); 309 309 dialog.configureContextsensitiveHelp("/Action/Search", true /* show help button */); 310 310 dialog.setContent(p); -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r8030 r8061 581 581 Main.parent, title, 582 582 new String[]{tr("Change proxy settings"), tr("Cancel")}); 583 ed.setButtonIcons(new String[]{"dialogs/settings .png", "cancel.png"}).setCancelButton(2);583 ed.setButtonIcons(new String[]{"dialogs/settings", "cancel"}).setCancelButton(2); 584 584 ed.setMinimumSize(new Dimension(460, 260)); 585 585 ed.setIcon(JOptionPane.WARNING_MESSAGE); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ConflictResolver.java
r7005 r8061 87 87 */ 88 88 protected final void loadIcons() { 89 mergeComplete = ImageProvider.get("dialogs", "valid .png" );90 mergeIncomplete = ImageProvider.get("dialogs/conflict", "mergeincomplete .png" );89 mergeComplete = ImageProvider.get("dialogs", "valid" ); 90 mergeIncomplete = ImageProvider.get("dialogs/conflict", "mergeincomplete" ); 91 91 } 92 92 -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r7958 r8061 57 57 public static final int ICON_LARGE_SIZE = 24; 58 58 /** 24x24 icon for unresolved notes */ 59 public static final ImageIcon ICON_OPEN = ImageProvider.get("dialogs/notes", "note_open .png");59 public static final ImageIcon ICON_OPEN = ImageProvider.get("dialogs/notes", "note_open"); 60 60 /** 16x16 icon for unresolved notes */ 61 61 public static final ImageIcon ICON_OPEN_SMALL = 62 62 new ImageIcon(ICON_OPEN.getImage().getScaledInstance(ICON_SMALL_SIZE, ICON_SMALL_SIZE, Image.SCALE_SMOOTH)); 63 63 /** 24x24 icon for resolved notes */ 64 public static final ImageIcon ICON_CLOSED = ImageProvider.get("dialogs/notes", "note_closed .png");64 public static final ImageIcon ICON_CLOSED = ImageProvider.get("dialogs/notes", "note_closed"); 65 65 /** 16x16 icon for resolved notes */ 66 66 public static final ImageIcon ICON_CLOSED_SMALL = 67 67 new ImageIcon(ICON_CLOSED.getImage().getScaledInstance(ICON_SMALL_SIZE, ICON_SMALL_SIZE, Image.SCALE_SMOOTH)); 68 68 /** 24x24 icon for new notes */ 69 public static final ImageIcon ICON_NEW = ImageProvider.get("dialogs/notes", "note_new .png");69 public static final ImageIcon ICON_NEW = ImageProvider.get("dialogs/notes", "note_new"); 70 70 /** 16x16 icon for new notes */ 71 71 public static final ImageIcon ICON_NEW_SMALL = 72 72 new ImageIcon(ICON_NEW.getImage().getScaledInstance(ICON_SMALL_SIZE, ICON_SMALL_SIZE, Image.SCALE_SMOOTH)); 73 73 /** Icon for note comments */ 74 public static final ImageIcon ICON_COMMENT = ImageProvider.get("dialogs/notes", "note_comment .png");74 public static final ImageIcon ICON_COMMENT = ImageProvider.get("dialogs/notes", "note_comment"); 75 75 76 76 private NoteTableModel model; … … 87 87 /** Creates a new toggle dialog for notes */ 88 88 public NotesDialog() { 89 super("Notes", "notes/note_open .png", "List of notes", null, 150);89 super("Notes", "notes/note_open", "List of notes", null, 150); 90 90 addCommentAction = new AddCommentAction(); 91 91 closeAction = new CloseAction(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r7862 r8061 947 947 tr("Change relation"), 948 948 new String[] {tr("Delete from relation"), tr("Cancel")}); 949 ed.setButtonIcons(new String[] {"dialogs/delete .png", "cancel.png"});949 ed.setButtonIcons(new String[] {"dialogs/delete", "cancel"}); 950 950 ed.setContent(tr("Really delete selection from relation {0}?", cur.getDisplayName(DefaultNameFormatter.getInstance()))); 951 951 ed.toggleEnable(DELETE_FROM_RELATION_PREF); -
trunk/src/org/openstreetmap/josm/gui/download/DownloadObjectDialog.java
r7937 r8061 42 42 super(parent, tr("Download object"), new String[]{tr("Download object"), tr("Cancel")}); 43 43 init(); 44 setButtonIcons(new String[]{"download .png", "cancel.png"});44 setButtonIcons(new String[]{"download", "cancel"}); 45 45 setToolTipTexts(new String[]{ 46 46 tr("Start downloading"), -
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r6990 r8061 106 106 lblWarning = new JLabel(""); 107 107 lblWarning.setVisible(false); 108 lblWarning.setIcon(ImageProvider.get("warning-small .png"));108 lblWarning.setIcon(ImageProvider.get("warning-small")); 109 109 lblWarning.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 110 110 JPanel pnl = new JPanel(new BorderLayout()); -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r7684 r8061 890 890 ); 891 891 dialog.setContent(tr("The document contains no data.")); 892 dialog.setButtonIcons(new String[] {"save .png", "cancel.png"});892 dialog.setButtonIcons(new String[] {"save", "cancel"}); 893 893 return dialog.showDialog().getValue(); 894 894 } … … 910 910 ); 911 911 dialog.setContent(tr("There are unresolved conflicts. Conflicts will not be saved and handled as if you rejected all. Continue?")); 912 dialog.setButtonIcons(new String[] {"save .png", "cancel.png"});912 dialog.setButtonIcons(new String[] {"save", "cancel"}); 913 913 return dialog.showDialog().getValue(); 914 914 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r7935 r8061 659 659 ); 660 660 syncDialog.setContent(panelTf, false); 661 syncDialog.setButtonIcons(new String[] { "ok .png", "cancel.png" });661 syncDialog.setButtonIcons(new String[] { "ok", "cancel" }); 662 662 syncDialog.setupDialog(); 663 663 outerPanel.add(syncDialog.getContentPane(), BorderLayout.PAGE_START); … … 699 699 new String[] { tr("OK"), tr("Try Again") }). 700 700 setContent(tr("No images could be matched!")). 701 setButtonIcons(new String[] { "ok .png", "dialogs/refresh.png"}).701 setButtonIcons(new String[] { "ok", "dialogs/refresh"}). 702 702 showDialog().getValue() == 2) 703 703 return AGAIN; … … 982 982 tr("Adjust timezone and offset"), 983 983 new String[] { tr("Close")}). 984 setContent(p).setButtonIcons(new String[] {"ok .png"}).showDialog();984 setContent(p).setButtonIcons(new String[] {"ok"}).showDialog(); 985 985 } 986 986 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r8041 r8061 788 788 tr("Delete image file from disk"), 789 789 new String[] {tr("Cancel"), tr("Delete")}) 790 .setButtonIcons(new String[] {"cancel .png", "dialogs/delete.png"})790 .setButtonIcons(new String[] {"cancel", "dialogs/delete"}) 791 791 .setContent(new JLabel(tr("<html><h3>Delete the file {0} from disk?<p>The image file will be permanently lost!</h3></html>" 792 792 ,toDelete.getFile().getName()), ImageProvider.get("dialogs/geoimage/deletefromdisk"),SwingConstants.LEFT)) -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r7797 r8061 128 128 */ 129 129 public static ImageIcon getNoIcon_Icon(StyleSource source) { 130 return new ImageProvider("misc/no_icon .png")130 return new ImageProvider("misc/no_icon") 131 131 .setDirs(getIconSourceDirs(source)) 132 132 .setId("mappaint."+source.getPrefName()) -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r7693 r8061 338 338 contentInsets = new Insets(10,5,0,5); 339 339 if (showNewRelation) { 340 setButtonIcons(new String[] {"ok .png", "dialogs/addrelation.png", "cancel.png" });340 setButtonIcons(new String[] {"ok", "dialogs/addrelation", "cancel" }); 341 341 } else { 342 setButtonIcons(new String[] {"ok .png", "cancel.png" });342 setButtonIcons(new String[] {"ok", "cancel" }); 343 343 } 344 344 setContent(content); -
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r7834 r8061 126 126 tr("Export options"), 127 127 new String[] { tr("Export and Save"), tr("Cancel") }); 128 ed.setButtonIcons(new String[] { "exportgpx .png", "cancel.png" });128 ed.setButtonIcons(new String[] { "exportgpx", "cancel" }); 129 129 ed.setContent(p); 130 130 ed.showDialog(); -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r8017 r8061 111 111 ); 112 112 dialog.setContent(tr("JOSM version {0} required for plugin {1}.", pi.mainversion, pi.name)); 113 dialog.setButtonIcons(new String[] { "download .png", "cancel.png" });113 dialog.setButtonIcons(new String[] { "download", "cancel" }); 114 114 dialog.showDialog(); 115 115 int answer = dialog.getValue(); -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r8015 r8061 389 389 // Check if the dialog has not already been permanently hidden by user 390 390 if (!ed.toggleEnable("askUpdateJava8").toggleCheckState()) { 391 ed.setButtonIcons(new String[]{"java .png", "cancel.png"}).setCancelButton(2);391 ed.setButtonIcons(new String[]{"java", "cancel"}).setCancelButton(2); 392 392 ed.setMinimumSize(new Dimension(480, 300)); 393 393 ed.setIcon(JOptionPane.WARNING_MESSAGE); -
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r7937 r8061 271 271 tr("Do you want to paste these tags?"), 272 272 new String[]{tr("Ok"), tr("Cancel"), tr("Clear buffer"), tr("Ignore warnings")}); 273 ed.setButtonIcons(new String[]{"ok .png", "cancel.png", "dialogs/delete.png", "pastetags.png"});273 ed.setButtonIcons(new String[]{"ok", "cancel", "dialogs/delete", "pastetags"}); 274 274 ed.setContent("<html><b>"+text + "</b><br/><br/><div width=\"300px\">"+XmlWriter.encode(data,true)+"</html>"); 275 275 ed.setDefaultButton(2); … … 305 305 new String[]{tr("Ok"), tr("Clear buffer")}); 306 306 307 ed.setButtonIcons(new String[]{"ok .png", "dialogs/delete.png"});307 ed.setButtonIcons(new String[]{"ok", "dialogs/delete"}); 308 308 309 309 ed.setContent(p);
Note:
See TracChangeset
for help on using the changeset viewer.