Changeset 1262 in josm
- Timestamp:
- 2009-01-14T18:32:30+01:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1245 r1262 80 80 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put( 81 81 Shortcut.registerShortcut("mapmode:drawfocus", tr("Mode: Draw Focus"), KeyEvent.VK_N, Shortcut.GROUP_EDIT).getKeyStroke(), tr("Draw")); 82 83 //putValue("help", "Action/AddNode/Autnode");84 selectedColor = Main.pref.getColor(marktr("selected"), Color.red);85 86 drawHelperLine = Main.pref.getBoolean("draw.helper-line", true);87 82 } 88 83 … … 97 92 @Override public void enterMode() { 98 93 super.enterMode(); 94 selectedColor = Main.pref.getColor(marktr("selected"), Color.red); 95 drawHelperLine = Main.pref.getBoolean("draw.helper-line", true); 96 99 97 Main.map.mapView.addMouseListener(this); 100 98 Main.map.mapView.addMouseMotionListener(this); -
trunk/src/org/openstreetmap/josm/gui/preferences/LafPreference.java
r1180 r1262 32 32 private JCheckBox showSplashScreen = new JCheckBox(tr("Show splash screen at startup")); 33 33 private JCheckBox showID = new JCheckBox(tr("Show object ID in selection lists")); 34 private JCheckBox drawHelperLine = new JCheckBox(tr("Draw rubber-band helper line")); 34 35 35 36 public void addGui(PreferenceDialog gui) { … … 77 78 panel.add(showID, GBC.eop().insets(20, 0, 0, 0)); 78 79 80 drawHelperLine.setToolTipText(tr("Draw rubber-band helper line")); 81 drawHelperLine.setSelected(Main.pref.getBoolean("draw.helper-line", true)); 82 panel.add(drawHelperLine, GBC.eop().insets(20, 0, 0, 0)); 83 79 84 panel.add(Box.createVerticalGlue(), GBC.eol().insets(0, 20, 0, 0)); 80 85 … … 91 96 Main.pref.put("draw.splashscreen", showSplashScreen.isSelected()); 92 97 Main.pref.put("osm-primitives.showid", showID.isSelected()); 98 Main.pref.put("draw.helper-line", drawHelperLine.isSelected()); 93 99 return Main.pref.put("laf", ((LookAndFeelInfo)lafCombo.getSelectedItem()).getClassName()); 94 100 }
Note:
See TracChangeset
for help on using the changeset viewer.