Changeset 13781 in josm
- Timestamp:
- 2018-05-18T01:41:13+02:00 (7 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CONTRIBUTION
r13710 r13781 104 104 Some are originally LGPL but redistributed here under GPL. 105 105 106 Simple OpenStreetMap logo has been created by ScubbX (CC-SA 2.0) based on official 107 logo used by the OpenStreetMap Foundation: 108 https://wiki.openstreetmap.org/wiki/File:Logo_simple.svg 109 110 Social logos come from https://github.com/Automattic/social-logos (GPLv2 or later) 111 106 112 The keyboard icon comes fom: 107 113 - source: http://www.iconfinder.net/index.php?q=key&page=icondetails&iconid=8553&size=128&q=key&s12=on&s16=on&s22=on&s32=on&s48=on&s64=on&s128=on -
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r13647 r13781 6 6 import java.awt.Color; 7 7 import java.awt.Dimension; 8 import java.awt.FlowLayout; 8 9 import java.awt.GridBagLayout; 9 10 import java.awt.event.ActionEvent; 10 11 import java.awt.event.KeyEvent; 12 import java.awt.event.MouseAdapter; 13 import java.awt.event.MouseEvent; 11 14 import java.io.BufferedReader; 12 15 import java.io.IOException; … … 32 35 import org.openstreetmap.josm.tools.GBC; 33 36 import org.openstreetmap.josm.tools.ImageProvider; 37 import org.openstreetmap.josm.tools.ImageProvider.ImageSizes; 34 38 import org.openstreetmap.josm.tools.Logging; 39 import org.openstreetmap.josm.tools.OpenBrowser; 35 40 import org.openstreetmap.josm.tools.Shortcut; 36 41 import org.openstreetmap.josm.tools.Utils; … … 93 98 "<p style='font-size:50%'></p>" + 94 99 "</html>"); 95 info.add(label, GBC.eol().fill(GBC.HORIZONTAL).insets(10, 0, 0, 0)); 100 info.add(label, GBC.eol().fill(GBC.HORIZONTAL).insets(10, 0, 0, 10)); 96 101 info.add(new JLabel(tr("Homepage")), GBC.std().insets(10, 0, 10, 0)); 97 info.add(new UrlLabel(Main.getJOSMWebsite(), 2), GBC.eol().fill(GBC.HORIZONTAL)); 102 info.add(new UrlLabel(Main.getJOSMWebsite(), 2), GBC.eol()); 103 info.add(new JLabel(tr("Translations")), GBC.std().insets(10, 0, 10, 0)); 104 info.add(new UrlLabel("https://translations.launchpad.net/josm", 2), GBC.eol()); 105 info.add(new JLabel(tr("Follow us on")), GBC.std().insets(10, 10, 10, 0)); 106 JPanel logos = new JPanel(new FlowLayout()); 107 logos.add(createImageLink("OpenStreetMap", "openstreetmap", "https://www.openstreetmap.org/user/josmeditor/diary")); 108 logos.add(createImageLink("Twitter", "twitter", "https://twitter.com/josmeditor")); 109 logos.add(createImageLink("Facebook", "facebook", "https://www.facebook.com/josmeditor")); 110 logos.add(createImageLink("Google+", "google-plus", "https://plus.google.com/115458051662705872607")); 111 logos.add(createImageLink("Github", "github", "https://github.com/JOSM")); 112 info.add(logos, GBC.eol().insets(0, 10, 0, 0)); 98 113 info.add(GBC.glue(0, 5), GBC.eol()); 99 114 … … 120 135 MainApplication.getMenu().reportbug.actionPerformed(null); 121 136 } 137 } 138 139 private static JLabel createImageLink(String tooltip, String icon, final String link) { 140 JLabel label = new JLabel(ImageProvider.get("dialogs/about", icon, ImageSizes.LARGEICON)); 141 label.setToolTipText(tooltip); 142 label.addMouseListener(new MouseAdapter() { 143 @Override 144 public void mouseClicked(MouseEvent e) { 145 OpenBrowser.displayUrl(link); 146 } 147 }); 148 return label; 122 149 } 123 150
Note:
See TracChangeset
for help on using the changeset viewer.