# HG changeset patch # User Ingo Weinzierl # Date 1318414966 0 # Node ID 981dde77b49ff8a00d45e947825e4a056c1d94e6 # Parent c4c957a9c0928918763ac3331abff889508c17d5 #288 Added icons to the barriers combobox for digitizing features. flys-client/trunk@2946 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c4c957a9c092 -r 981dde77b49f flys-client/ChangeLog --- a/flys-client/ChangeLog Wed Oct 12 09:34:38 2011 +0000 +++ b/flys-client/ChangeLog Wed Oct 12 10:22:46 2011 +0000 @@ -1,3 +1,17 @@ +2011-10-12 Ingo Weinzierl + + flys/issue288 (ÜSK: Legende hinzufügen) + + * src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java: + Added icons to the barrier combobox. + + * src/main/webapp/images/dam.png, + src/main/webapp/images/pipe1.png, + src/main/webapp/images/pipe2.png, + src/main/webapp/images/ditch.png, + src/main/webapp/images/ring_dike.png: New icons used in the barrier + combobox in the digitize panel. + 2011-10-12 Ingo Weinzierl * src/main/java/de/intevation/flys/client/server/CollectionItemAttributeServiceImpl.java: diff -r c4c957a9c092 -r 981dde77b49f flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java Wed Oct 12 09:34:38 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java Wed Oct 12 10:22:46 2011 +0000 @@ -96,7 +96,7 @@ }); form = new DynamicForm(); - form.setWidth(75); + form.setWidth(100); form.setTitlePrefix(""); form.setTitleSuffix(""); @@ -107,10 +107,20 @@ map.put(BARRIER_DAM, MSG.getString(BARRIER_DAM)); map.put(BARRIER_RINGDIKE, MSG.getString(BARRIER_RINGDIKE)); + LinkedHashMap ics = new LinkedHashMap(); + ics.put(BARRIER_PIPE1, BARRIER_PIPE1); + ics.put(BARRIER_PIPE2, BARRIER_PIPE2); + ics.put(BARRIER_DITCH, BARRIER_DITCH); + ics.put(BARRIER_DAM, BARRIER_DAM); + ics.put(BARRIER_RINGDIKE, BARRIER_RINGDIKE); + SelectItem box = new SelectItem(FIELD_BARRIER_TYPE); box.setTitle(""); - box.setWidth(75); + box.setWidth(100); box.setValueMap(map); + box.setImageURLSuffix(".png"); + box.setValueIcons(ics); + box.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent e) { setSelectedControl(); diff -r c4c957a9c092 -r 981dde77b49f flys-client/src/main/webapp/images/dam.png Binary file flys-client/src/main/webapp/images/dam.png has changed diff -r c4c957a9c092 -r 981dde77b49f flys-client/src/main/webapp/images/ditch.png Binary file flys-client/src/main/webapp/images/ditch.png has changed diff -r c4c957a9c092 -r 981dde77b49f flys-client/src/main/webapp/images/pipe1.png Binary file flys-client/src/main/webapp/images/pipe1.png has changed diff -r c4c957a9c092 -r 981dde77b49f flys-client/src/main/webapp/images/pipe2.png Binary file flys-client/src/main/webapp/images/pipe2.png has changed diff -r c4c957a9c092 -r 981dde77b49f flys-client/src/main/webapp/images/ring_dike.png Binary file flys-client/src/main/webapp/images/ring_dike.png has changed