# HG changeset patch # User Felix Wolfsteller # Date 1327480966 0 # Node ID 959e1d0df9417eb67123b74ae3fd5cbc4f6762f4 # Parent cd88a257a5e6ebef9853f60a04124649058b1c9f Fixed typo, more stub for add points ui. flys-client/trunk@3760 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r cd88a257a5e6 -r 959e1d0df941 flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java: diff -r cd88a257a5e6 -r 959e1d0df941 flys-client/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 :