# HG changeset patch # User Ingo Weinzierl # Date 1325693139 0 # Node ID bd6c8b06cb94f9f01f1bdd6e5b3614eb43dc4b72 # Parent 83b913a6eecbed493f9c902123ab2807d100b370 Improved the StyledEditorWindow to support a list of pointsizes. flys-client/trunk@3588 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 83b913a6eecb -r bd6c8b06cb94 flys-client/ChangeLog --- a/flys-client/ChangeLog Wed Jan 04 15:57:07 2012 +0000 +++ b/flys-client/ChangeLog Wed Jan 04 16:05:39 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-04 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java: + Added support for multiple point sizes. + 2012-01-04 Ingo Weinzierl * src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties, diff -r 83b913a6eecb -r bd6c8b06cb94 flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java Wed Jan 04 15:57:07 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java Wed Jan 04 16:05:39 2012 +0000 @@ -178,6 +178,7 @@ "font", "textstyle", "textsize", + "pointsize", "textcolor", "textorientation", "backgroundcolor", @@ -252,6 +253,16 @@ valueMap.put("24", "24"); f.setValueMap(valueMap); } + else if (name.equals("pointsize")) { + LinkedHashMap valueMap = new LinkedHashMap(); + valueMap.put("1", "1"); + valueMap.put("3", "3"); + valueMap.put("5", "5"); + valueMap.put("7", "7"); + valueMap.put("9", "9"); + valueMap.put("11", "11"); + f.setValueMap(valueMap); + } f.setValue(value); } else if (type.equals("boolean")) {