Commit 3ccc94786a97966bb6a95ed3d8f7e87e83487e0a

Authored by Edmar Moretti
1 parent 89a164bd

Remoção da biblioteca eudock

classesjs/i3geonaocompacto.js
@@ -37,10 +37,8 @@ @@ -37,10 +37,8 @@
37 "../pacotes/yui290/build/progressbar/progressbar-min.js", 37 "../pacotes/yui290/build/progressbar/progressbar-min.js",
38 "../pacotes/yui290/build/storage/storage-min.js", 38 "../pacotes/yui290/build/storage/storage-min.js",
39 "../pacotes/yui290/build/selector/selector-min.js", 39 "../pacotes/yui290/build/selector/selector-min.js",
40 - //"../pacotes/balloon-tooltips/htdocs/js/balloon.config.js",  
41 - //"../pacotes/balloon-tooltips/htdocs/js/balloon.js",  
42 - "../pacotes/eudock/js/euDock.2.0.js",  
43 - "../pacotes/eudock/js/euDock.Image.js", 40 + //"../pacotes/eudock/js/euDock.2.0.js",
  41 + //"../pacotes/eudock/js/euDock.Image.js",
44 "../pacotes/wicket/wicket.js", 42 "../pacotes/wicket/wicket.js",
45 "../pacotes/mustache.js-master/mustache.js", 43 "../pacotes/mustache.js-master/mustache.js",
46 "classe_i3geo.js", 44 "classe_i3geo.js",
interface/openlayersdebug.htm
@@ -134,7 +134,6 @@ @@ -134,7 +134,6 @@
134 </div> 134 </div>
135 </div> 135 </div>
136 </div> 136 </div>
137 -  
138 <script> 137 <script>
139 i3GEO.configura.locaplic = i3GEO.util.protocolo() + "://" + window.location.host + "/i3geo"; 138 i3GEO.configura.locaplic = i3GEO.util.protocolo() + "://" + window.location.host + "/i3geo";
140 i3GEO.configura.autotamanho = false; 139 i3GEO.configura.autotamanho = false;
@@ -151,6 +150,7 @@ @@ -151,6 +150,7 @@
151 150
152 i3GEO.cria(); 151 i3GEO.cria();
153 i3GEO.configura.mapaRefDisplay = "none"; 152 i3GEO.configura.mapaRefDisplay = "none";
  153 + i3GEO.barraDeBotoes.ATIVA = true;
154 i3GEO.barraDeBotoes.TIPO = "olhodepeixe"; 154 i3GEO.barraDeBotoes.TIPO = "olhodepeixe";
155 //ajusta o deslocamento da barra de botoes 155 //ajusta o deslocamento da barra de botoes
156 i3GEO.barraDeBotoes.OFFSET = 11; 156 i3GEO.barraDeBotoes.OFFSET = 11;
js/barradebotoes.js
@@ -907,57 +907,31 @@ i3GEO.barraDeBotoes = @@ -907,57 +907,31 @@ i3GEO.barraDeBotoes =
907 if (i3GEO.barraDeBotoes.ATIVA === false || !$i(i3GEO.Interface.IDCORPO)) { 907 if (i3GEO.barraDeBotoes.ATIVA === false || !$i(i3GEO.Interface.IDCORPO)) {
908 return; 908 return;
909 } 909 }
910 - if (document.onclick)  
911 - euEnv.onclickBK = document.onclick;  
912 910
913 - document.onclick = on_MouseClick;  
914 - euDimensioni();  
915 - offsEut();  
916 - euThread();  
917 - //  
918 - euEnv.imageBasePath = i3GEO.configura.locaplic + "/pacotes/eudock/";  
919 - var botao, dica, titulo, i, dock = new euDock(onde), temp = "dockBg-r.png", tempAjuda = "dockBg-l.png", chaves =  
920 - i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO), n = chaves.length, preload;  
921 - preload = new Image();  
922 - preload.src = i3GEO.configura.locaplic + "/imagens/gisicons/eudock/sobe1.png";  
923 - if (i3GEO.barraDeBotoes.POSICAO === "top") {  
924 - dock.setObjectAlign(i3GEO.Interface.IDCORPO, euUP, (i3GEO.parametros.h) * 1 + i3GEO.barraDeBotoes.OFFSET, euDOWN);  
925 - } else {  
926 - if (onde) {  
927 - dock.setObjectAlign(i3GEO.Interface.IDCORPO, euDOWN, i3GEO.barraDeBotoes.OFFSET, euUP);  
928 - } else {  
929 - dock.setObjectAlign(i3GEO.Interface.IDCORPO, euDOWN, (parseInt(document.body.style.height, 10)) * -1  
930 - + i3GEO.barraDeBotoes.OFFSET, euUP);  
931 - }  
932 - }  
933 - if (i3GEO.barraDeBotoes.MAXBOTOES >= chaves.length) {  
934 - temp = "vazio.png";  
935 - }  
936 - if (i3GEO.barraDeBotoes.AJUDA === false) {  
937 - tempAjuda = "vazio.png";  
938 - }  
939 - dock.setBar({  
940 - left : {  
941 - euImage : {  
942 - image : i3GEO.configura.locaplic + "/pacotes/eudock/barImages/" + tempAjuda  
943 - }  
944 - },  
945 - horizontal : {  
946 - euImage : {  
947 - image : i3GEO.configura.locaplic + "/pacotes/eudock/barImages/dockBg-c-o.png"  
948 - }  
949 - },  
950 - right : {  
951 - euImage : {  
952 - image : i3GEO.configura.locaplic + "/pacotes/eudock/barImages/" + temp  
953 - }  
954 - }  
955 - });  
956 - //i3GEO.barraDeBotoes.AJUDA = false;  
957 - dock.setIconsOffset(7); 911 + var divBarra = document.createElement("div"),
  912 + chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO),
  913 + icones = [],
  914 + n = 7,
  915 + dica, i, botao, titulo, imagem, l;
  916 +
958 if (i3GEO.barraDeBotoes.MAXBOTOES > 0) { 917 if (i3GEO.barraDeBotoes.MAXBOTOES > 0) {
959 n = i3GEO.barraDeBotoes.MAXBOTOES; 918 n = i3GEO.barraDeBotoes.MAXBOTOES;
960 } 919 }
  920 +
  921 + divBarra.style.position = "relative";
  922 + divBarra.style.top = "-50px";
  923 + divBarra.style.margin = "auto";
  924 + divBarra.style.textAlign = "center";
  925 + divBarra.style.width = i3GEO.parametros.w + "px";
  926 + //cria os icones
  927 + icones.push('<div style="z-index: 1; border: 0px solid black; top: 0px; position: relative; text-align: center; margin: auto;" id="euDock_0_bar" class="noprint">');
  928 + icones.push('<img onclick="javascript:i3GEO.util.animaClique(this);i3GEO.barraDeBotoes.ajudaEmLista()" id="euDock_euImage_2" class="noprint" style="position: relative; visibility: visible; left: 0px; top: 0px;" src="' + i3GEO.configura.locaplic + '/pacotes/eudock/barImages/dockBg-l.png">');
  929 + icones.push('<img id="euDock_euImage_3" width="' + 38*n + '" height="28" class="noprint" style="position: relative; visibility: visible; left: 0px; top: 0px;" src="' + i3GEO.configura.locaplic + '/pacotes/eudock/barImages/dockBg-c-o.png" >');
  930 + icones.push('<img id="euDock_euImage_4" class="noprint" style="position: relative; visibility: visible; left: 0px; top: 0px;" src="' + i3GEO.configura.locaplic + '/pacotes/eudock/barImages/dockBg-r.png" >');
  931 + icones.push('</div>');
  932 + icones.push('<div style="margin:auto; z-index: 1; position: relative; border: 0px solid black; cursor: pointer; top: -57px; width: 494px; height: 38px;" id="euDock_0" class="noprint">');
  933 +
  934 + l = 0;
961 for (i = 0; i < n; i += 1) { 935 for (i = 0; i < n; i += 1) {
962 if (i3GEO.barraDeBotoes.INCLUIBOTAO[chaves[i]] && i3GEO.barraDeBotoes.INCLUIBOTAO[chaves[i]] === true) { 936 if (i3GEO.barraDeBotoes.INCLUIBOTAO[chaves[i]] && i3GEO.barraDeBotoes.INCLUIBOTAO[chaves[i]] === true) {
963 botao = i3GEO.barraDeBotoes.defBotao(chaves[i]); 937 botao = i3GEO.barraDeBotoes.defBotao(chaves[i]);
@@ -976,30 +950,41 @@ i3GEO.barraDeBotoes = @@ -976,30 +950,41 @@ i3GEO.barraDeBotoes =
976 titulo = ""; 950 titulo = "";
977 } 951 }
978 } 952 }
979 - dock.addIcon(new Array({  
980 - euImage : {  
981 - image : i3GEO.configura.locaplic + i3GEO.barraDeBotoes.ICONEBOTAO[chaves[i]],  
982 - titulo : titulo  
983 - }  
984 - }), {  
985 - mouseInsideClick : function(x, y, id, posX, posY) {  
986 - i3GEO.util.animaClique($i(euEnv.euDockArray[id].elementsArray[0].id));  
987 - i3GEO.barraDeBotoes.execBotao(euEnv.euDockArray[id].idBotao, x, y, posX, posY);  
988 - },  
989 - idBotao : chaves[i],  
990 - dica : dica,  
991 - titulo : titulo  
992 - }); 953 + imagem = i3GEO.configura.locaplic + i3GEO.barraDeBotoes.ICONEBOTAO[chaves[i]];
  954 + icones.push('<img name="' + chaves[i] + '" class="eudockImagemBottom" onclick="javascript:i3GEO.util.animaClique(this);i3GEO.barraDeBotoes.execBotao(this.name)" style="width: 38px; height: 38px; position: absolute; visibility: visible; left: ' + l + 'px; top: 0px;" src="' + imagem + '" title="' + titulo + '">');
993 } 955 }
  956 + l += 38;
994 } 957 }
995 - $i(euEnv.euDockArray.euDock_0.bar.elementsArray.left.id).onclick = function() {  
996 - // i3GEO.ajuda.ATIVAJANELA = true;  
997 - // i3GEO.ajuda.abreJanela();  
998 - i3GEO.barraDeBotoes.ajudaEmLista();  
999 - };  
1000 - /*  
1001 - * $i("euDock_0").onmouseout = function(){ var temp = $i("i3geoMarcaIcone"); if(temp){ temp.style.display = "none"; } };  
1002 - */ 958 + icones.push('</div>');
  959 +
  960 + divBarra.innerHTML = icones.join("");
  961 +
  962 + //adiciona a barra ao mapa
  963 + if(!onde){
  964 + onde = document.body;
  965 + }
  966 + onde.appendChild(divBarra);
  967 +
  968 + return;
  969 +
  970 + //
  971 + euEnv.imageBasePath = i3GEO.configura.locaplic + "/pacotes/eudock/";
  972 + var botao, dica, titulo, i, dock = new euDock(onde), temp = "dockBg-r.png", tempAjuda = "dockBg-l.png", chaves =
  973 + i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO), n = chaves.length, preload;
  974 + preload = new Image();
  975 + preload.src = i3GEO.configura.locaplic + "/imagens/gisicons/eudock/sobe1.png";
  976 + if (i3GEO.barraDeBotoes.POSICAO === "top") {
  977 + dock.setObjectAlign(i3GEO.Interface.IDCORPO, euUP, (i3GEO.parametros.h) * 1 + i3GEO.barraDeBotoes.OFFSET, euDOWN);
  978 + } else {
  979 + if (onde) {
  980 + dock.setObjectAlign(i3GEO.Interface.IDCORPO, euDOWN, i3GEO.barraDeBotoes.OFFSET, euUP);
  981 + } else {
  982 + dock.setObjectAlign(i3GEO.Interface.IDCORPO, euDOWN, (parseInt(document.body.style.height, 10)) * -1
  983 + + i3GEO.barraDeBotoes.OFFSET, euUP);
  984 + }
  985 + }
  986 +
  987 +
1003 $i(euEnv.euDockArray.euDock_0.bar.elementsArray.right.id).onclick = 988 $i(euEnv.euDockArray.euDock_0.bar.elementsArray.right.id).onclick =
1004 function() { 989 function() {
1005 var dica, titulo, chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO), n = chaves.length, nb = 990 var dica, titulo, chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO), n = chaves.length, nb =
js/i3geonaocompacto.js
@@ -37,10 +37,8 @@ @@ -37,10 +37,8 @@
37 "../pacotes/yui290/build/progressbar/progressbar-min.js", 37 "../pacotes/yui290/build/progressbar/progressbar-min.js",
38 "../pacotes/yui290/build/storage/storage-min.js", 38 "../pacotes/yui290/build/storage/storage-min.js",
39 "../pacotes/yui290/build/selector/selector-min.js", 39 "../pacotes/yui290/build/selector/selector-min.js",
40 - //"../pacotes/balloon-tooltips/htdocs/js/balloon.config.js",  
41 - //"../pacotes/balloon-tooltips/htdocs/js/balloon.js",  
42 - "../pacotes/eudock/js/euDock.2.0.js",  
43 - "../pacotes/eudock/js/euDock.Image.js", 40 + //"../pacotes/eudock/js/euDock.2.0.js",
  41 + //"../pacotes/eudock/js/euDock.Image.js",
44 "../pacotes/wicket/wicket.js", 42 "../pacotes/wicket/wicket.js",
45 "../pacotes/mustache.js-master/mustache.js", 43 "../pacotes/mustache.js-master/mustache.js",
46 "ini_i3geo.js", 44 "ini_i3geo.js",