changeset 1541:959e1d0df941

Fixed typo, more stub for add points ui. flys-client/trunk@3760 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 25 Jan 2012 08:42:46 +0000
parents cd88a257a5e6
children 3e2ef8e0a0dc
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java
diffstat 2 files changed, 22 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Jan 25 08:29:52 2012 +0000
+++ b/flys-client/ChangeLog	Wed Jan 25 08:42:46 2012 +0000
@@ -1,3 +1,8 @@
+2012-01-25  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java:
+	  Fix typo, more stub for add points ui.
+
 2012-01-25  Felix Wolfsteller <felix.wolfsteller@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/ui/chart/ChartToolbar.java	Wed Jan 25 08:29:52 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java	Wed Jan 25 08:42:46 2012 +0000
@@ -49,7 +49,7 @@
 
     protected ImgButton chartProperties;
 
-    protected ImgButton addPoints;
+    protected Button addPoints;
 
     protected PanControl panControl;
 
@@ -66,7 +66,13 @@
         historyBack     = new ImgButton();
         panControl      = new PanControl(chartTab, MSG.pan());
         chartProperties = new ImgButton();
-        addPoints       = new ImgButton();
+        addPoints       = new Button("Points");
+
+        addPoints.addClickHandler(new ClickHandler() {
+            public void onClick(ClickEvent event) {
+                openPointWindow();
+            }
+        });
 
         datacage.addClickHandler(new ClickHandler() {
             public void onClick(ClickEvent event) {
@@ -141,11 +147,12 @@
             }
         });
 
+
         initLayout();
     }
 
     /** Set width, height and other properties of an imagebutton. */
-    public void adjustImageButton(ImageButton imgButton) {
+    public void adjustImageButton(ImgButton imgButton) {
         imgButton.setWidth(20);
         imgButton.setHeight(20);
         imgButton.setShowDown(false);
@@ -184,6 +191,7 @@
         addMember(zoombox);
         addMember(panControl);
         addMember(chartProperties);
+        addMember(addPoints);
         addMember(spacer);
         addMember(position);
     }
@@ -197,5 +205,11 @@
         editor.show();
     }
 
+
+    /** Open editor for custom points. */
+    protected void openPointWindow() {
+
+        // TBD   
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org