changeset 3349:36cd7d88551a

Added bandwidth field, i18n. flys-client/trunk@5026 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 17 Jul 2012 18:44:42 +0000
parents 8c7cf6b84ba0
children e746e57c65c0
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java
diffstat 6 files changed, 34 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Jul 17 11:47:17 2012 +0000
+++ b/flys-client/ChangeLog	Tue Jul 17 18:44:42 2012 +0000
@@ -1,3 +1,14 @@
+2012-07-17	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* main/java/de/intevation/flys/client/client/FLYSConstants.java,
+	  main/java/de/intevation/flys/client/client/FLYSConstants.properties,
+	  main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
+	  main/java/de/intevation/flys/client/client/FLYSConstants_de.properties:
+	  Added i18n strings for bandwidth.
+
+	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
+	  Include bandwidth field.
+
 2012-07-17	Christian Lins	<christian.lins@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue Jul 17 11:47:17 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Tue Jul 17 18:44:42 2012 +0000
@@ -859,6 +859,8 @@
 
     String pointsize();
 
+    String bandwidth();
+
     String pointcolor();
 
     String showlines();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue Jul 17 11:47:17 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Tue Jul 17 18:44:42 2012 +0000
@@ -438,6 +438,7 @@
 textorientation = Textorientation
 linesize = Linesize
 pointsize = Pointsize
+bandwidth = Bandwidth
 pointcolor = Punktfarbe
 showlines = Show lines
 showlinelabel = Show line label
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue Jul 17 11:47:17 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Tue Jul 17 18:44:42 2012 +0000
@@ -438,6 +438,7 @@
 textorientation = Textausrichtung
 linesize = Liniendicke
 pointsize = Punktdicke
+bandwidth = Bandbreite
 pointcolor = Punktfarbe
 showlines = Linien anzeigen
 showlinelabel = Linienbeschriftung anzeigen
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue Jul 17 11:47:17 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Tue Jul 17 18:44:42 2012 +0000
@@ -440,6 +440,7 @@
 textorientation = Textorientation
 linesize = Linesize
 pointsize = Pointsize
+bandwidth = Bandwidth
 pointcolor = Pointcolor
 showlines = Show lines
 showlinelabel = Show label
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Tue Jul 17 11:47:17 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Tue Jul 17 18:44:42 2012 +0000
@@ -290,7 +290,8 @@
                          "linelabelsize",
                          "linelabelstyle",
                          "linelabelshowbg",
-                         "linelabelbgcolor"};
+                         "linelabelbgcolor",
+                         "bandwidth"};
 
         for (String settingName: sets) {
             StyleSetting set = style.getSetting(settingName);
@@ -362,6 +363,22 @@
                 valueMap.put("24", "24");
                 f.setValueMap(valueMap);
             }
+            else if (name.equals("bandwidth")) {
+                LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
+                valueMap.put("0", "0");
+                valueMap.put("1", "1");
+                valueMap.put("2", "2");
+                valueMap.put("3", "3");
+                valueMap.put("4", "4");
+                valueMap.put("5", "5");
+                valueMap.put("6", "6");
+                valueMap.put("7", "7");
+                valueMap.put("8", "8");
+                valueMap.put("9", "9");
+                valueMap.put("10", "10");
+                valueMap.put("11", "11");
+                f.setValueMap(valueMap);
+            }
             else if (name.equals("pointsize")) {
                 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
                 valueMap.put("1", "1");

http://dive4elements.wald.intevation.org