Changeset 22816 in osm for applications/editors/josm/plugins/toms/src
- Timestamp:
- 2010-08-27T20:38:03+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/toms/src/toms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r22789 r22816 169 169 170 170 dia = this; 171 171 String str = Main.pref.get("mappaint.style.sources"); 172 if (!str.contains("dev.openseamap.org")) { 173 if (!str.equals("")) str += new String(new char[] {0x1e}); 174 Main.pref.put("mappaint.style.sources", str + "http://dev.openseamap.org/josm/seamark_styles.xml"); 175 } 172 176 } 173 177 -
applications/editors/josm/plugins/toms/src/toms/seamarks/SeaMark.java
r22722 r22816 92 92 public final static int SPEC_FLOAT = 5; 93 93 public final static int SPEC_BEACON = 6; 94 public final static int SPEC_TOWER = 7; 94 95 public final static int LIGHT_HOUSE = 1; 95 96 public final static int LIGHT_MAJOR = 2; -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
r22732 r22816 32 32 dlg.cbM01StyleOfMark.addItem("Float"); 33 33 dlg.cbM01StyleOfMark.addItem("Beacon"); 34 dlg.cbM01StyleOfMark.addItem("Tower"); 34 35 35 36 dlg.cbM01Kennung.removeAllItems(); … … 85 86 "beacon_special_purpose")) 86 87 || keys.containsKey("seamark:special_purpose_beacon:colour") 87 || keys.containsKey("seamark:special_purpose_beacon:shape")) 88 setStyleIndex(SPEC_BEACON); 89 else if (keys.containsKey("seamark:light_float:colour") 88 || keys.containsKey("seamark:special_purpose_beacon:shape")) { 89 if (keys.containsKey("seamark:special_purpose_beacon:shape") 90 && keys.get("seamark:soecial_purpose_beacon:shape").equals("tower")) 91 setStyleIndex(SPEC_TOWER); 92 else 93 setStyleIndex(SPEC_BEACON); 94 } else if (keys.containsKey("seamark:light_float:colour") 90 95 && keys.get("seamark:light_float:colour").equals("yellow")) 91 96 setStyleIndex(SPEC_FLOAT); … … 163 168 image += "_Beacon"; 164 169 break; 170 case SPEC_TOWER: 171 image += "_Tower"; 172 break; 165 173 default: 166 174 } … … 236 244 "seamark:beacon_special_purpose:colour", "yellow")); 237 245 break; 246 case SPEC_TOWER: 247 super.saveSign("beacon_special_purpose"); 248 Main.main.undoRedo.add(new ChangePropertyCommand(node, 249 "seamark:beacon_special_purpose:shape", "tower")); 250 Main.main.undoRedo.add(new ChangePropertyCommand(node, 251 "seamark:beacon_special_purpose:colour", "yellow")); 252 break; 238 253 default: 239 254 }
Note:
See TracChangeset
for help on using the changeset viewer.