changeset 1000:905cc67da916

Customize Look and Feel to styleguide of the bsh. gnv/trunk@1201 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 11 Jun 2010 12:06:03 +0000
parents 961c2c89a37c
children ebc3d018af6a
files gnv/ChangeLog gnv/src/main/webapp/images/ol/east-mini.png gnv/src/main/webapp/images/ol/feature_info_off.png gnv/src/main/webapp/images/ol/feature_info_on.png gnv/src/main/webapp/images/ol/folder-open.gif gnv/src/main/webapp/images/ol/folder.gif gnv/src/main/webapp/images/ol/leaf.gif gnv/src/main/webapp/images/ol/navigation_history.png gnv/src/main/webapp/images/ol/north-mini.png gnv/src/main/webapp/images/ol/pan_off.png gnv/src/main/webapp/images/ol/pan_on.png gnv/src/main/webapp/images/ol/south-mini.png gnv/src/main/webapp/images/ol/tool-sprites.gif gnv/src/main/webapp/images/ol/west-mini.png gnv/src/main/webapp/images/ol/wvHeaderBG.gif gnv/src/main/webapp/images/ol/zoom-minus-mini.png gnv/src/main/webapp/images/ol/zoom-plus-mini.png gnv/src/main/webapp/images/ol/zoom-world-mini.png gnv/src/main/webapp/images/ol/zoom_box_off.png gnv/src/main/webapp/images/ol/zoom_box_on.png gnv/src/main/webapp/images/ol/zoombar.png gnv/src/main/webapp/scripts/viewport.jsp gnv/src/main/webapp/styles/ol_style.css
diffstat 23 files changed, 42 insertions(+), 66 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Fri Jun 11 12:00:43 2010 +0000
+++ b/gnv/ChangeLog	Fri Jun 11 12:06:03 2010 +0000
@@ -1,3 +1,36 @@
+2010-06-11  Tim Englich  <tim.englich@intevation.de>
+
+	  Customize Look and Feel to styleguide of the bsh.
+
+	* src/main/webapp/scripts/viewport.jsp: 
+	  Link OpenLayers image-folder to images/ol to get the navigation-bar in
+	  a customize look and feel.
+
+	* src/main/webapp/styles/ol_style.css: 
+	  Added missing styles of Openlayer that must be overriden.
+	
+	* src/main/webapp/images/ol/east-mini.png,
+	  src/main/webapp/images/ol/feature_info_off.png,
+	  src/main/webapp/images/ol/feature_info_on.png,
+	  src/main/webapp/images/ol/folder-open.gif,
+	  src/main/webapp/images/ol/folder.gif,
+	  src/main/webapp/images/ol/leaf.gif,
+	  src/main/webapp/images/ol/navigation_history.png,
+	  src/main/webapp/images/ol/north-mini.png,
+	  src/main/webapp/images/ol/pan_off.png,
+	  src/main/webapp/images/ol/pan_on.png,
+	  src/main/webapp/images/ol/south-mini.png,
+	  src/main/webapp/images/ol/tool-sprites.gif,
+	  src/main/webapp/images/ol/west-mini.png,
+	  src/main/webapp/images/ol/wvHeaderBG.gif,
+	  src/main/webapp/images/ol/zoom_box_off.png,
+	  src/main/webapp/images/ol/zoom_box_on.png,
+	  src/main/webapp/images/ol/zoom-minus-mini.png,
+	  src/main/webapp/images/ol/zoom-plus-mini.png,
+	  src/main/webapp/images/ol/zoom-world-mini.png,
+	  src/main/webapp/images/ol/zoombar.png:
+	  Added missing icons and put an blue-filter to all icons.
+
 2010-06-11  Tim Englich  <tim.englich@intevation.de>
 
 	* src/main/webapp/images/ol/measure_line_off.png,
Binary file gnv/src/main/webapp/images/ol/east-mini.png has changed
Binary file gnv/src/main/webapp/images/ol/feature_info_off.png has changed
Binary file gnv/src/main/webapp/images/ol/feature_info_on.png has changed
Binary file gnv/src/main/webapp/images/ol/folder-open.gif has changed
Binary file gnv/src/main/webapp/images/ol/folder.gif has changed
Binary file gnv/src/main/webapp/images/ol/leaf.gif has changed
Binary file gnv/src/main/webapp/images/ol/navigation_history.png has changed
Binary file gnv/src/main/webapp/images/ol/north-mini.png has changed
Binary file gnv/src/main/webapp/images/ol/pan_off.png has changed
Binary file gnv/src/main/webapp/images/ol/pan_on.png has changed
Binary file gnv/src/main/webapp/images/ol/south-mini.png has changed
Binary file gnv/src/main/webapp/images/ol/tool-sprites.gif has changed
Binary file gnv/src/main/webapp/images/ol/west-mini.png has changed
Binary file gnv/src/main/webapp/images/ol/wvHeaderBG.gif has changed
Binary file gnv/src/main/webapp/images/ol/zoom-minus-mini.png has changed
Binary file gnv/src/main/webapp/images/ol/zoom-plus-mini.png has changed
Binary file gnv/src/main/webapp/images/ol/zoom-world-mini.png has changed
Binary file gnv/src/main/webapp/images/ol/zoom_box_off.png has changed
Binary file gnv/src/main/webapp/images/ol/zoom_box_on.png has changed
Binary file gnv/src/main/webapp/images/ol/zoombar.png has changed
--- a/gnv/src/main/webapp/scripts/viewport.jsp	Fri Jun 11 12:00:43 2010 +0000
+++ b/gnv/src/main/webapp/scripts/viewport.jsp	Fri Jun 11 12:06:03 2010 +0000
@@ -7,6 +7,7 @@
 request.getParameter(MapClientStandaloneAction.MAPCLIENTSTANDALONE_KEY).equals("true");
 MapService mapService = SessionModelFactory.getInstance().getSessionModel(request).getLocalMapService();
 %>
+OpenLayers.ImgPath = "images/ol/";
 OpenLayers.ProxyHost= "/cgi-bin/proxy.cgi?url=";
 OpenLayers.Lang.setCode('<%=SessionModelFactory.getInstance().getSessionModel(request).getCurrentLocale().getLanguage() %>');
 Ext.BLANK_IMAGE_URL = "scripts/openlayers/OpenLayers-2.9/theme/default/img/blank.gif";
--- a/gnv/src/main/webapp/styles/ol_style.css	Fri Jun 11 12:00:43 2010 +0000
+++ b/gnv/src/main/webapp/styles/ol_style.css	Fri Jun 11 12:06:03 2010 +0000
@@ -34,26 +34,23 @@
 }
 
 
-.olControlPanel .olControlHistoryBackItemActive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/view_previous_on.png");
-}
-.olControlPanel .olControlHistoryBackItemInactive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/view_previous_off.png");
+.olControlNavigationHistory {
+   background-image: url("../images/ol/navigation_history.png");
+   background-repeat: no-repeat;
+   width:  22px;
+   height: 22px;
+
 }
 
 .olControlPanel .olControlPanItemActive { 
   width:  22px;  
   height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/pan_on.png");
+  background-image: url("../images/ol/pan_on.png");
 }
 .olControlPanel .olControlPanItemInactive { 
   width:  22px;  
   height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/pan_off.png");
+  background-image: url("../images/ol/pan_off.png");
 }
 
 .olControlPanel .olControlZoomBoxItemActive { 
@@ -67,61 +64,6 @@
   background-image: url("../images/ol/zoom_box_off.png");
 }
 
-.olControlPanel .olControlDrawPointItemActive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/draw_point_on.png");
-}
-.olControlPanel .olControlDrawPointItemInactive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/draw_point_off.png");
-}
-
-.olControlPanel .olControlDrawLineItemActive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/draw_line_on.png");
-}
-.olControlPanel .olControlDrawLineItemInactive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/draw_line_off.png");
-}
-
-.olControlPanel .olControlDrawPolygonItemActive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/draw_polygon_on.png");
-}
-.olControlPanel .olControlDrawPolygonItemInactive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../scripts/openlayers/OpenLayers-2.9/theme/default/img/draw_polygon_off.png");
-}
-
-.olControlPanel .olControlMeasureLineItemActive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../images/ol/measure_line_on.png");
-}
-.olControlPanel .olControlMeasureLineItemInactive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../images/ol/measure_line_off.png");
-}
-
-.olControlPanel .olControlMeasurePolygonItemActive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../images/ol/measure_polygon_on.png");
-}
-.olControlPanel .olControlMeasurePolygonItemInactive { 
-  width:  22px;  
-  height: 22px;
-  background-image: url("../images/ol/measure_polygon_off.png");
-}
-
 div.olControlMousePosition {
     color: #FFFFFF
 }

http://dive4elements.wald.intevation.org