Changeset 23176 in osm
- Timestamp:
- 2010-09-15T15:17:48+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/toms/src
- Files:
-
- 12 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r23166 r23176 450 450 return; 451 451 } else if (str.equals("yellow")) { //$NON-NLS-1$ 452 buoy = new BuoyS aw(this, node);452 buoy = new BuoySpec(this, node); 453 453 return; 454 454 } -
applications/editors/josm/plugins/toms/src/toms/seamarks/SeaMark.java
r23174 r23176 100 100 public final static int ISOL_FLOAT = 5; 101 101 public final static int SPEC_PILLAR = 1; 102 public final static int SPEC_SPAR = 2; 103 public final static int SPEC_SPHERE = 3; 104 public final static int SPEC_BARREL = 4; 105 public final static int SPEC_FLOAT = 5; 106 public final static int SPEC_BEACON = 6; 107 public final static int SPEC_TOWER = 7; 102 public final static int SPEC_CAN = 2; 103 public final static int SPEC_CONE = 3; 104 public final static int SPEC_SPAR = 4; 105 public final static int SPEC_BEACON = 5; 106 public final static int SPEC_TOWER = 6; 107 public final static int SPEC_FLOAT = 7; 108 public final static int SPEC_SPHERE = 8; 109 public final static int SPEC_BARREL = 9; 108 110 109 111 /** -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java
r23174 r23176 413 413 } 414 414 setSectorIndex(0); 415 dlg.cbM01Sector.setSelectedIndex(0); 415 416 dlg.cM01Fired.setSelected(isFired()); 416 417 dlg.rbM01Fired1.setSelected(!isSectored()); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
r23174 r23176 32 32 dlg.cbM01StyleOfMark.addItem(Messages.getString("SmpDialogAction.212")); //$NON-NLS-1$ 33 33 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.01")); //$NON-NLS-1$ 34 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.02")); //$NON-NLS-1$ 35 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.03")); //$NON-NLS-1$ 34 36 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.04")); //$NON-NLS-1$ 37 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.05")); //$NON-NLS-1$ 38 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.06")); //$NON-NLS-1$ 39 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.07")); //$NON-NLS-1$ 35 40 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.08")); //$NON-NLS-1$ 36 41 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.09")); //$NON-NLS-1$ 37 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.07")); //$NON-NLS-1$38 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.05")); //$NON-NLS-1$39 dlg.cbM01StyleOfMark.addItem(Messages.getString("Buoy.06")); //$NON-NLS-1$40 42 dlg.cbM01StyleOfMark.setVisible(true); 41 43 dlg.lM01StyleOfMark.setVisible(true); … … 71 73 if (str.equals("pillar")) //$NON-NLS-1$ 72 74 setStyleIndex(SPEC_PILLAR); 75 else if (str.equals("can")) //$NON-NLS-1$ 76 setStyleIndex(SPEC_CAN); 77 else if (str.equals("conical")) //$NON-NLS-1$ 78 setStyleIndex(SPEC_CONE); 73 79 else if (str.equals("spar")) //$NON-NLS-1$ 74 80 setStyleIndex(SPEC_SPAR); … … 79 85 } 80 86 87 if (keys.containsKey("seamark:beacon_special_purpose:shape")) { //$NON-NLS-1$ 88 str = keys.get("seamark:beacon_special_purpose:shape"); //$NON-NLS-1$ 89 if (str.equals("tower")) //$NON-NLS-1$ 90 setStyleIndex(SPEC_TOWER); 91 else 92 setStyleIndex(SPEC_BEACON); 93 } 94 95 if (keys.containsKey("seamark:light_float:colour")) { 96 setStyleIndex(SPEC_FLOAT); 97 } 98 81 99 if ((keys.containsKey("seamark:type") && keys.get("seamark:type").equals( //$NON-NLS-1$ //$NON-NLS-2$ 82 100 "beacon_special_purpose")) //$NON-NLS-1$
Note:
See TracChangeset
for help on using the changeset viewer.