Changeset 27061 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2011-11-15T18:54:44+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java
r27058 r27061 39 39 for (Cat cat : trafficCats.keySet()) { 40 40 int idx = trafficCats.get(cat); 41 if (dlg.mark != null && (idx == trafficCatBox.getSelectedIndex())) 41 if (dlg.mark != null && (idx == trafficCatBox.getSelectedIndex())) { 42 42 dlg.mark.setCategory(cat); 43 dlg.mark.testValid(); 44 dlg.mark.paintSign(); 45 } 43 46 } 44 47 } … … 50 53 for (Cat cat : warningCats.keySet()) { 51 54 int idx = warningCats.get(cat); 52 if (dlg.mark != null && (idx == warningCatBox.getSelectedIndex())) 55 if (dlg.mark != null && (idx == warningCatBox.getSelectedIndex())) { 53 56 dlg.mark.setCategory(cat); 57 dlg.mark.testValid(); 58 dlg.mark.paintSign(); 59 } 54 60 } 55 61 } … … 85 91 trafficCatBox.setVisible(false); 86 92 warningCatBox.setVisible(false); 93 alLandCatBox.actionPerformed(null); 87 94 } else if (trafficButton.isSelected()) { 88 95 categoryLabel.setVisible(true); … … 90 97 landCatBox.setVisible(false); 91 98 warningCatBox.setVisible(false); 99 alTrafficCatBox.actionPerformed(null); 92 100 } else if (warningButton.isSelected()) { 93 101 categoryLabel.setVisible(true); … … 95 103 landCatBox.setVisible(false); 96 104 trafficCatBox.setVisible(false); 105 alWarningCatBox.actionPerformed(null); 97 106 } else { 98 107 dlg.mark.setCategory(Cat.NONE); … … 188 197 trafficCatBox.setVisible(false); 189 198 warningCatBox.setVisible(false); 199 for (Cat cat : landCats.keySet()) { 200 int item = landCats.get(cat); 201 if (dlg.mark.getCategory() == cat) 202 landCatBox.setSelectedIndex(item); 203 } 190 204 } else if (dlg.mark.getObject() == Obj.SISTAT) { 191 205 categoryLabel.setVisible(true); … … 193 207 landCatBox.setVisible(false); 194 208 warningCatBox.setVisible(false); 209 for (Cat cat : trafficCats.keySet()) { 210 int item = trafficCats.get(cat); 211 if (dlg.mark.getCategory() == cat) 212 trafficCatBox.setSelectedIndex(item); 213 } 195 214 } else if (dlg.mark.getObject() == Obj.SISTAW) { 196 215 categoryLabel.setVisible(true); … … 198 217 landCatBox.setVisible(false); 199 218 trafficCatBox.setVisible(false); 219 for (Cat cat : warningCats.keySet()) { 220 int item = warningCats.get(cat); 221 if (dlg.mark.getCategory() == cat) 222 warningCatBox.setSelectedIndex(item); 223 } 200 224 } else { 201 225 categoryLabel.setVisible(false); … … 203 227 trafficCatBox.setVisible(false); 204 228 warningCatBox.setVisible(false); 205 }206 landCatBox.setSelectedIndex(0);207 for (Cat cat : landCats.keySet()) {208 int item = landCats.get(cat);209 if (dlg.mark.getCategory() == cat)210 landCatBox.setSelectedIndex(item);211 }212 trafficCatBox.setSelectedIndex(0);213 for (Cat cat : trafficCats.keySet()) {214 int item = trafficCats.get(cat);215 if (dlg.mark.getCategory() == cat)216 trafficCatBox.setSelectedIndex(item);217 }218 warningCatBox.setSelectedIndex(0);219 for (Cat cat : warningCats.keySet()) {220 int item = warningCats.get(cat);221 if (dlg.mark.getCategory() == cat)222 warningCatBox.setSelectedIndex(item);223 229 } 224 230 for (Obj obj : objects.keySet()) {
Note:
See TracChangeset
for help on using the changeset viewer.