comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java @ 880:22dc88b17253

Added tooltips for the maptoolbar. flys-client/trunk@2709 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 13 Sep 2011 04:49:10 +0000
parents dcecdd9693a8
children cf0f906921de
comparison
equal deleted inserted replaced
879:5a299d49a989 880:22dc88b17253
200 public void onClick(ClickEvent event) { 200 public void onClick(ClickEvent event) {
201 floodMap.getMap().zoomToMaxExtent(); 201 floodMap.getMap().zoomToMaxExtent();
202 } 202 }
203 }); 203 });
204 204
205 zoomToMax.setTooltip(MSG.zoomMaxExtent());
206
205 return zoomToMax; 207 return zoomToMax;
206 } 208 }
207 209
208 210
209 protected ImgButton createZoomBoxControl() { 211 protected ImgButton createZoomBoxControl() {
222 activateZoomBox(false); 224 activateZoomBox(false);
223 } 225 }
224 }; 226 };
225 227
226 ImgButton button = createToggleButton(MSG.zoom_in(), cmd); 228 ImgButton button = createToggleButton(MSG.zoom_in(), cmd);
227 Map map = getMap(); 229 button.setTooltip(MSG.zoomIn());
230
231 Map map = getMap();
228 map.addControl(zoomBox); 232 map.addControl(zoomBox);
229 233
230 return button; 234 return button;
231 } 235 }
232 236
240 if (level > 1) { 244 if (level > 1) {
241 map.zoomTo(level-1); 245 map.zoomTo(level-1);
242 } 246 }
243 } 247 }
244 }); 248 });
249
250 zoomOut.setTooltip(MSG.zoomOut());
245 251
246 return zoomOut; 252 return zoomOut;
247 } 253 }
248 254
249 255
264 activatePan(false); 270 activatePan(false);
265 } 271 }
266 }; 272 };
267 273
268 final ImgButton button = createToggleButton(MSG.pan(), cmd); 274 final ImgButton button = createToggleButton(MSG.pan(), cmd);
275 button.setTooltip(MSG.moveMap());
269 276
270 return button; 277 return button;
271 } 278 }
272 279
273 280
330 activateSelectFeature(false); 337 activateSelectFeature(false);
331 } 338 }
332 }; 339 };
333 340
334 ImgButton button = createToggleButton(MSG.selectFeature(), cmd); 341 ImgButton button = createToggleButton(MSG.selectFeature(), cmd);
342 button.setTooltip(MSG.selectObject());
335 343
336 return button; 344 return button;
337 } 345 }
338 346
339 347
358 feature.destroy(); 366 feature.destroy();
359 } 367 }
360 } 368 }
361 } 369 }
362 }); 370 });
371
372 remove.setTooltip(MSG.removeObject());
363 373
364 return remove; 374 return remove;
365 } 375 }
366 376
367 377

http://dive4elements.wald.intevation.org