Ignore:
Timestamp:
2018-05-26T17:11:30+02:00 (7 years ago)
Author:
Don-vip
Message:

see #16319 - scale properly all icons using ButtonSpec

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/org/openstreetmap/josm/actions/AbstractInfoAction.java

    r13434 r13842  
    7575                new ButtonSpec(
    7676                        tr("Continue"),
    77                         ImageProvider.get("ok"),
     77                        new ImageProvider("ok"),
    7878                        trn("Click to continue and to open {0} browser", "Click to continue and to open {0} browsers",
    7979                                numBrowsers, numBrowsers),
     
    8282                new ButtonSpec(
    8383                        tr("Cancel"),
    84                         ImageProvider.get("cancel"),
     84                        new ImageProvider("cancel"),
    8585                        tr("Click to abort launching external browsers"),
    8686                        null // no specific help topic
  • TabularUnified trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java

    r13611 r13842  
    222222                            new ButtonSpec(
    223223                                    tr("Abort Merging"),
    224                                     ImageProvider.get("cancel"),
     224                                    new ImageProvider("cancel"),
    225225                                    tr("Click to abort merging nodes"),
    226226                                    null /* no special help topic */
  • TabularUnified trunk/src/org/openstreetmap/josm/actions/RestartAction.java

    r13647 r13842  
    2222import org.openstreetmap.josm.spi.preferences.Config;
    2323import org.openstreetmap.josm.tools.ImageProvider;
     24import org.openstreetmap.josm.tools.ImageProvider.ImageSizes;
    2425import org.openstreetmap.josm.tools.Logging;
    2526import org.openstreetmap.josm.tools.Shortcut;
     
    205206        return new ButtonSpec(
    206207                tr("Restart"),
    207                 ImageProvider.get("restart"),
     208                new ImageProvider("restart").setSize(ImageSizes.LARGEICON).get(),
    208209                tr("Restart the application."),
    209210                ht("/Action/Restart"),
     
    219220        return new ButtonSpec(
    220221                tr("Cancel"),
    221                 ImageProvider.get("cancel"),
     222                new ImageProvider("cancel"),
    222223                tr("Click to restart later."),
    223224                null /* no specific help context */
  • TabularUnified trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r13540 r13842  
    7272                new ButtonSpec(
    7373                        tr("Yes"),
    74                         ImageProvider.get("ok"),
     74                        new ImageProvider("ok"),
    7575                        tr("Simplify all selected ways"),
    76                         null
    77                         ),
    78                         new ButtonSpec(
    79                                 tr("Cancel"),
    80                                 ImageProvider.get("cancel"),
    81                                 tr("Cancel operation"),
    82                                 null
    83                                 )
     76                        null),
     77                new ButtonSpec(
     78                        tr("Cancel"),
     79                        new ImageProvider("cancel"),
     80                        tr("Cancel operation"),
     81                        null)
    8482        };
    8583        return 0 == HelpAwareOptionPane.showOptionDialog(
    8684                Main.parent,
    87                 tr(
    88                         "The selection contains {0} ways. Are you sure you want to simplify them all?",
    89                         numWays
    90                         ),
    91                         tr("Simplify ways?"),
    92                         JOptionPane.WARNING_MESSAGE,
    93                         null, // no special icon
    94                         options,
    95                         options[0],
    96                         ht("/Action/SimplifyWay#ConfirmSimplifyAll")
     85                tr("The selection contains {0} ways. Are you sure you want to simplify them all?", numWays),
     86                tr("Simplify ways?"),
     87                JOptionPane.WARNING_MESSAGE,
     88                null, // no special icon
     89                options,
     90                options[0],
     91                ht("/Action/SimplifyWay#ConfirmSimplifyAll")
    9792                );
    9893    }
  • TabularUnified trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java

    r13612 r13842  
    164164                new ButtonSpec(
    165165                        tr("Check on the server"),
    166                         ImageProvider.get("ok"),
     166                        new ImageProvider("ok"),
    167167                        tr("Click to check whether objects in your local dataset are deleted on the server"),
    168                         null  /* no specific help topic */
    169                         ),
    170                         new ButtonSpec(
    171                                 tr("Ignore"),
    172                                 ImageProvider.get("cancel"),
    173                                 tr("Click to abort and to resume editing"),
    174                                 null /* no specific help topic */
    175                                 ),
     168                        null /* no specific help topic */),
     169                new ButtonSpec(
     170                        tr("Ignore"),
     171                        new ImageProvider("cancel"),
     172                        tr("Click to abort and to resume editing"),
     173                        null /* no specific help topic */),
    176174        };
    177175
Note: See TracChangeset for help on using the changeset viewer.