Changeset 12846 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
- Timestamp:
- 2017-09-13T23:24:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
r12841 r12846 39 39 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 40 40 import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel; 41 import org.openstreetmap.josm.spi.preferences.Config; 41 42 import org.openstreetmap.josm.tools.GBC; 42 43 import org.openstreetmap.josm.tools.Logging; … … 124 125 // Show splash screen on startup 125 126 showSplashScreen.setToolTipText(tr("Show splash screen at startup")); 126 showSplashScreen.setSelected( Main.pref.getBoolean("draw.splashscreen", true));127 showSplashScreen.setSelected(Config.getPref().getBoolean("draw.splashscreen", true)); 127 128 panel.add(showSplashScreen, GBC.eop().insets(20, 0, 0, 0)); 128 129 129 130 // Show ID in selection 130 131 showID.setToolTipText(tr("Show object ID in selection lists")); 131 showID.setSelected( Main.pref.getBoolean("osm-primitives.showid", false));132 showID.setSelected(Config.getPref().getBoolean("osm-primitives.showid", false)); 132 133 133 134 // Show localized names 134 135 showLocalizedName.setToolTipText(tr("Show localized name in selection lists, if available")); 135 showLocalizedName.setSelected( Main.pref.getBoolean("osm-primitives.localize-name", true));136 showLocalizedName.setSelected(Config.getPref().getBoolean("osm-primitives.localize-name", true)); 136 137 ExpertToggleAction.addVisibilitySwitcher(showLocalizedName); 137 138 … … 202 203 public boolean ok() { 203 204 boolean mod = false; 204 Main.pref.putBoolean("draw.splashscreen", showSplashScreen.isSelected());205 Main.pref.putBoolean("osm-primitives.showid", showID.isSelected());206 Main.pref.putBoolean("osm-primitives.localize-name", showLocalizedName.isSelected());205 Config.getPref().putBoolean("draw.splashscreen", showSplashScreen.isSelected()); 206 Config.getPref().putBoolean("osm-primitives.showid", showID.isSelected()); 207 Config.getPref().putBoolean("osm-primitives.localize-name", showLocalizedName.isSelected()); 207 208 MapFrame.MODELESS.put(modeless.isSelected()); 208 Main.pref.putBoolean(ToggleDialog.PROP_DYNAMIC_BUTTONS.getKey(), dynamicButtons.isSelected());209 Main.pref.putBoolean(DateUtils.PROP_ISO_DATES.getKey(), isoDates.isSelected());210 Main.pref.putBoolean(FileChooserManager.PROP_USE_NATIVE_FILE_DIALOG.getKey(), nativeFileChoosers.isSelected());209 Config.getPref().putBoolean(ToggleDialog.PROP_DYNAMIC_BUTTONS.getKey(), dynamicButtons.isSelected()); 210 Config.getPref().putBoolean(DateUtils.PROP_ISO_DATES.getKey(), isoDates.isSelected()); 211 Config.getPref().putBoolean(FileChooserManager.PROP_USE_NATIVE_FILE_DIALOG.getKey(), nativeFileChoosers.isSelected()); 211 212 MapMover.PROP_ZOOM_REVERSE_WHEEL.put(zoomReverseWheel.isSelected()); 212 213 NavigatableComponent.PROP_ZOOM_INTERMEDIATE_STEPS.put(zoomIntermediateSteps.isSelected());
Note:
See TracChangeset
for help on using the changeset viewer.