Changeset 10465 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2016-06-23T18:45:21+02:00 (8 years ago)
Author:
stoecker
Message:

Old style SideButton usage, see #12994

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/DeleteFromRelationConfirmationDialog.java

    r10378 r10465  
    319319        OKAction() {
    320320            putValue(NAME, tr("OK"));
    321             putValue(SMALL_ICON, ImageProvider.get("ok"));
     321            new ImageProvider("ok").getResource().attachImageIcon(this);
    322322            putValue(SHORT_DESCRIPTION, tr("Click to close the dialog and remove the object from the relations"));
    323323        }
     
    333333        CancelAction() {
    334334            putValue(NAME, tr("Cancel"));
    335             putValue(SMALL_ICON, ImageProvider.get("cancel"));
     335            new ImageProvider("cancel").getResource().attachImageIcon(this);
    336336            putValue(SHORT_DESCRIPTION, tr("Click to close the dialog and to abort deleting the objects"));
    337337        }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java

    r10428 r10465  
    342342            putValue(NAME, tr("On/Off"));
    343343            putValue(SHORT_DESCRIPTION, tr("Turn selected styles on or off"));
    344             new ImageProvider("apply").getResource().attachImageIcon(this);
     344            new ImageProvider("apply").getResource().attachImageIcon(this, true);
    345345            updateEnabledState();
    346346        }
     
    466466            putValue(NAME, tr("Save as..."));
    467467            putValue(SHORT_DESCRIPTION, tr("Save a copy of this Style to file and add it to the list"));
    468             putValue(SMALL_ICON, ImageProvider.get("copy"));
     468            new ImageProvider("copy").getResource().attachImageIcon(this);
    469469            setEnabled(tblStyles.getSelectedRows().length == 1);
    470470        }
     
    562562            putValue(NAME, tr("Info"));
    563563            putValue(SHORT_DESCRIPTION, tr("view meta information, error log and source definition"));
    564             putValue(SMALL_ICON, ImageProvider.get("info"));
     564            new ImageProvider("info").getResource().attachImageIcon(this);
    565565            setEnabled(tblStyles.getSelectedRows().length == 1);
    566566        }
Note: See TracChangeset for help on using the changeset viewer.