Changeset 28529 in osm for applications/editors
- Timestamp:
- 2012-08-06T19:48:39+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/buildings_tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/build.xml
r27984 r28529 30 30 <project name="buildings_tools" default="dist" basedir="."> 31 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="BuildingTools: shortcut changes - binary"/>32 <property name="commit.message" value="BuildingTools: move "use address nodes" option to building size dialog and turn it off by default"/> 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 34 <property name="plugin.main.version" value="5035"/> -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/AdvancedSettingsDialog.java
r25893 r28529 17 17 private final JCheckBox cBigMode = new JCheckBox(tr("Big buildings mode")); 18 18 private final JCheckBox cSoftCur = new JCheckBox(tr("Rotate crosshair")); 19 private final JCheckBox cAddrNode = new JCheckBox(tr("Use address nodes under buildings"));20 19 21 20 public AdvancedSettingsDialog() { … … 31 30 panel.add(cBigMode, GBC.eol().fill(GBC.HORIZONTAL)); 32 31 panel.add(cSoftCur, GBC.eol().fill(GBC.HORIZONTAL)); 33 panel.add(cAddrNode, GBC.eol().fill(GBC.HORIZONTAL));34 32 35 33 cBigMode.setSelected(ToolSettings.isBBMode()); 36 34 cSoftCur.setSelected(ToolSettings.isSoftCursor()); 37 cAddrNode.setSelected(ToolSettings.PROP_USE_ADDR_NODE.get());38 35 39 36 setupDialog(); … … 46 43 ToolSettings.setBBMode(cBigMode.isSelected()); 47 44 ToolSettings.setSoftCursor(cSoftCur.isSelected()); 48 ToolSettings.PROP_USE_ADDR_NODE.put(cAddrNode.isSelected());49 45 } 50 46 } -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/BuildingSizeDialog.java
r24243 r28529 16 16 @SuppressWarnings("serial") 17 17 public class BuildingSizeDialog extends MyDialog { 18 private JFormattedTextField twidth = new JFormattedTextField(NumberFormat.getInstance()); 19 private JFormattedTextField tlenstep = new JFormattedTextField(NumberFormat.getInstance()); 20 private JCheckBox caddr = new JCheckBox(tr("Use Address dialog")); 21 private JCheckBox cAutoSelect = new JCheckBox(tr("Auto-select building")); 18 private final JFormattedTextField twidth = new JFormattedTextField(NumberFormat.getInstance()); 19 private final JFormattedTextField tlenstep = new JFormattedTextField(NumberFormat.getInstance()); 20 private final JCheckBox caddr = new JCheckBox(tr("Use Address dialog")); 21 private final JCheckBox cAutoSelect = new JCheckBox(tr("Auto-select building")); 22 private final JCheckBox cAddrNode = new JCheckBox(tr("Use address nodes under buildings")); 22 23 23 24 public BuildingSizeDialog() { … … 28 29 panel.add(caddr, GBC.eol().fill(GBC.HORIZONTAL)); 29 30 panel.add(cAutoSelect, GBC.eol().fill(GBC.HORIZONTAL)); 31 panel.add(cAddrNode, GBC.eol().fill(GBC.HORIZONTAL)); 30 32 31 33 twidth.setValue(ToolSettings.getWidth()); … … 33 35 caddr.setSelected(ToolSettings.isUsingAddr()); 34 36 cAutoSelect.setSelected(ToolSettings.isAutoSelect()); 37 cAddrNode.setSelected(ToolSettings.PROP_USE_ADDR_NODE.get()); 35 38 36 39 JButton bAdv = new JButton(tr("Advanced...")); … … 74 77 ToolSettings.setAddrDialog(useAddr()); 75 78 ToolSettings.setAutoSelect(cAutoSelect.isSelected()); 79 ToolSettings.PROP_USE_ADDR_NODE.put(cAddrNode.isSelected()); 76 80 } 77 81 } -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/ToolSettings.java
r25893 r28529 14 14 15 15 public class ToolSettings { 16 public static BooleanProperty PROP_USE_ADDR_NODE = new BooleanProperty("buildings_tools.addrNode", true);16 public static BooleanProperty PROP_USE_ADDR_NODE = new BooleanProperty("buildings_tools.addrNode", false); 17 17 private static double width = 0; 18 18 private static double lenstep = 0;
Note:
See TracChangeset
for help on using the changeset viewer.