Changeset 781 in josm for trunk/src


Ignore:
Timestamp:
2008-08-15T13:06:31+02:00 (16 years ago)
Author:
stoecker
Message:

added Anti-aliasing checkbox. Closes #1416 and #1417.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java

    r721 r781  
    2828        private JCheckBox sourceBounds = new JCheckBox(tr("Draw boundaries of downloaded data"));
    2929        private JCheckBox inactive = new JCheckBox(tr("Draw inactive layers in other color"));
     30        private JCheckBox useAntialiasing = new JCheckBox(tr("Smooth map graphics (antialiasing)"));
    3031
    3132        public void addGui(PreferenceDialog gui) {
     
    111112                gui.display.add(segmentOrderNumber, GBC.eop().insets(20,0,0,0));
    112113               
     114                // antialiasing
     115                useAntialiasing.setToolTipText(tr("Apply antialiasing to the map view resulting in a smoother appearance."));
     116                useAntialiasing.setSelected(Main.pref.getBoolean("mappaint.use-antialiasing"));
     117                gui.display.add(useAntialiasing, GBC.eop().insets(20,0,0,0));
     118               
    113119                // downloaded area
    114120                sourceBounds.setToolTipText(tr("Draw the boundaries of data loaded from the server."));
     
    135141                Main.pref.put("draw.data.downloaded_area", sourceBounds.isSelected());
    136142                Main.pref.put("draw.data.inactive_color", inactive.isSelected());
     143                Main.pref.put("mappaint.use-antialiasing", useAntialiasing.isSelected());
    137144    }
    138145}
Note: See TracChangeset for help on using the changeset viewer.