Ignore:
Timestamp:
2014-12-20T04:16:30+01:00 (9 years ago)
Author:
Don-vip
Message:

see #10858 - rename NoteDialog to NotesDialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java

    r7820 r7852  
    3030import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    3131import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
    32 import org.openstreetmap.josm.gui.dialogs.NoteDialog;
     32import org.openstreetmap.josm.gui.dialogs.NotesDialog;
    3333import org.openstreetmap.josm.io.NoteExporter;
    3434import org.openstreetmap.josm.io.XmlWriter;
     
    9999            ImageIcon icon = null;
    100100            if (note.getId() < 0) {
    101                 icon = NoteDialog.ICON_NEW_SMALL;
     101                icon = NotesDialog.ICON_NEW_SMALL;
    102102            } else if (note.getState() == State.closed) {
    103                 icon = NoteDialog.ICON_CLOSED_SMALL;
     103                icon = NotesDialog.ICON_CLOSED_SMALL;
    104104            } else {
    105                 icon = NoteDialog.ICON_OPEN_SMALL;
     105                icon = NotesDialog.ICON_OPEN_SMALL;
    106106            }
    107107            int width = icon.getIconWidth();
     
    139139
    140140            g.setColor(ColorHelper.html2color(Main.pref.get("color.selected")));
    141             g.drawRect(p.x - (NoteDialog.ICON_SMALL_SIZE / 2), p.y - NoteDialog.ICON_SMALL_SIZE, NoteDialog.ICON_SMALL_SIZE - 1, NoteDialog.ICON_SMALL_SIZE - 1);
    142 
    143             int tx = p.x + (NoteDialog.ICON_SMALL_SIZE / 2) + 5;
    144             int ty = p.y - NoteDialog.ICON_SMALL_SIZE - 1;
     141            g.drawRect(p.x - (NotesDialog.ICON_SMALL_SIZE / 2), p.y - NotesDialog.ICON_SMALL_SIZE, NotesDialog.ICON_SMALL_SIZE - 1, NotesDialog.ICON_SMALL_SIZE - 1);
     142
     143            int tx = p.x + (NotesDialog.ICON_SMALL_SIZE / 2) + 5;
     144            int ty = p.y - NotesDialog.ICON_SMALL_SIZE - 1;
    145145            g.translate(tx, ty);
    146146
     
    159159    @Override
    160160    public Icon getIcon() {
    161         return NoteDialog.ICON_OPEN_SMALL;
     161        return NotesDialog.ICON_OPEN_SMALL;
    162162    }
    163163
     
    219219            Point notePoint = Main.map.mapView.getPoint(note.getLatLon());
    220220            //move the note point to the center of the icon where users are most likely to click when selecting
    221             notePoint.setLocation(notePoint.getX(), notePoint.getY() - NoteDialog.ICON_SMALL_SIZE / 2);
     221            notePoint.setLocation(notePoint.getX(), notePoint.getY() - NotesDialog.ICON_SMALL_SIZE / 2);
    222222            double dist = clickPoint.distanceSq(notePoint);
    223223            if (minDistance > dist && clickPoint.distance(notePoint) < snapDistance ) {
Note: See TracChangeset for help on using the changeset viewer.