- Timestamp:
- 2015-06-02T14:58:03+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r8378 r8442 6 6 import java.awt.Dimension; 7 7 import java.awt.GridBagLayout; 8 import java.awt.Image; 8 9 import java.awt.event.ActionEvent; 9 10 import java.awt.event.KeyEvent; 10 11 11 12 import javax.swing.BorderFactory; 13 import javax.swing.ImageIcon; 12 14 import javax.swing.JLabel; 13 15 import javax.swing.JOptionPane; … … 30 32 31 33 /** 32 * Nice about screen. I guess every application need one these days.. *sigh*34 * Nice about screen. 33 35 * 34 * The REVISION resource is read and if present, it shows the revision 35 * information of the jar-file. 36 * The REVISION resource is read and if present, it shows the revision information of the jar-file. 36 37 * 37 38 * @author imi … … 90 91 info.add(GBC.glue(0,5), GBC.eol()); 91 92 info.add(new JLabel(tr("Bug Reports")), GBC.std().insets(10,0,10,0)); 92 info.add(BugReportExceptionHandler.getBugReportUrlLabel(Utils.strip(ShowStatusReportAction.getReportHeader())), GBC.eol().fill(GBC.HORIZONTAL)); 93 info.add(BugReportExceptionHandler.getBugReportUrlLabel(Utils.strip(ShowStatusReportAction.getReportHeader())), 94 GBC.eol().fill(GBC.HORIZONTAL)); 93 95 94 96 about.addTab(tr("Info"), info); … … 105 107 106 108 GuiHelper.prepareResizeableOptionPane(panel, panel.getPreferredSize()); 107 JOptionPane.showMessageDialog(Main.parent, panel, tr("About JOSM..."), 108 JOptionPane.INFORMATION_MESSAGE, ImageProvider.get("logo"));109 JOptionPane.showMessageDialog(Main.parent, panel, tr("About JOSM..."), JOptionPane.INFORMATION_MESSAGE, 110 new ImageIcon(ImageProvider.get("logo.svg").getImage().getScaledInstance(256, 258, Image.SCALE_SMOOTH))); 109 111 } 110 112 -
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r8308 r8442 83 83 setLayout(new BorderLayout()); 84 84 setIconTextGap(2); 85 setMargin(new Insets( -1,0,-1,0));85 setMargin(new Insets(0,0,0,0)); 86 86 } 87 87 -
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r8308 r8442 60 60 61 61 // Add the logo 62 JLabel logo = new JLabel(new ImageIcon(ImageProvider.get("logo. png").getImage().getScaledInstance(128, 129, Image.SCALE_SMOOTH)));62 JLabel logo = new JLabel(new ImageIcon(ImageProvider.get("logo.svg").getImage().getScaledInstance(128, 129, Image.SCALE_SMOOTH))); 63 63 GridBagConstraints gbc = new GridBagConstraints(); 64 64 gbc.gridheight = 2; -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r8308 r8442 335 335 public RunAuthorisationAction() { 336 336 putValue(NAME, tr("Authorize now")); 337 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));337 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 338 338 putValue(SHORT_DESCRIPTION, tr("Click to redirect you to the authorization form on the JOSM web site")); 339 339 updateEnabledState(); -
trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
r8308 r8442 247 247 public TestAccessTokenAction() { 248 248 putValue(NAME, tr("Test Access Token")); 249 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));249 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 250 250 putValue(SHORT_DESCRIPTION, tr("Click to test the Access Token")); 251 251 updateEnabledState(); -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r8426 r8442 89 89 * Builds the panel with general information in the header 90 90 * 91 * @return panel w oth information display91 * @return panel with information display 92 92 */ 93 93 protected JPanel buildHeaderInfoPanel() { … … 101 101 gc.weightx = 1.0; 102 102 gc.gridwidth = 2; 103 JLabel lbl = new JLabel(); 104 lbl.setIcon(ImageProvider.get("oauth", "oauth-logo")); 103 ImageProvider logoProv = new ImageProvider("oauth", "oauth-logo"); 104 JLabel lbl = new JLabel(logoProv.get()); 105 lbl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 105 106 lbl.setOpaque(true); 106 107 pnl.add(lbl, gc); … … 167 168 168 169 setTitle(tr("Get an Access Token for ''{0}''", apiUrl)); 170 this.setMinimumSize(new Dimension(420, 400)); 169 171 170 172 pnlFullyAutomaticAuthorisationUI = new FullyAutomaticAuthorizationUI(apiUrl); -
trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
r8426 r8442 385 385 public RetrieveRequestTokenAction() { 386 386 putValue(NAME, tr("Retrieve Request Token")); 387 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));387 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 388 388 putValue(SHORT_DESCRIPTION, tr("Click to retrieve a Request Token")); 389 389 } … … 421 421 public RetrieveAccessTokenAction() { 422 422 putValue(NAME, tr("Retrieve Access Token")); 423 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));423 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 424 424 putValue(SHORT_DESCRIPTION, tr("Click to retrieve an Access Token")); 425 425 } … … 458 458 public TestAccessTokenAction() { 459 459 putValue(NAME, tr("Test Access Token")); 460 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));460 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 461 461 putValue(SHORT_DESCRIPTION, tr("Click to test the Access Token")); 462 462 } -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java
r6901 r8442 311 311 putValue(NAME, tr("Authorize now")); 312 312 putValue(SHORT_DESCRIPTION, tr("Click to step through the OAuth authorization process")); 313 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));313 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 314 314 315 315 } … … 337 337 putValue(NAME, tr("New Access Token")); 338 338 putValue(SHORT_DESCRIPTION, tr("Click to step through the OAuth authorization process and generate a new Access Token")); 339 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));339 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 340 340 341 341 } … … 363 363 putValue(NAME, tr("Test Access Token")); 364 364 putValue(SHORT_DESCRIPTION, tr("Click test access to the OSM server with the current access token")); 365 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth "));365 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth-small")); 366 366 367 367 }
Note:
See TracChangeset
for help on using the changeset viewer.