Commit 4d6c02e5257429f6417862df25878db5ff2e69cd

Authored by Edmar Moretti
1 parent 98095dc9

#528

classesjs/classe_arvoredetemas.js
@@ -101,7 +101,9 @@ i3GEO.arvoreDeTemas = { @@ -101,7 +101,9 @@ i3GEO.arvoreDeTemas = {
101 101
102 googleearth: true, 102 googleearth: true,
103 103
104 - uploadarquivo: true //upload de GPX, SHAPEFILE, DBF, CSV e KML 104 + uploadarquivo: true, //upload de GPX, SHAPEFILE, DBF, CSV e KML
  105 +
  106 + flutuante: true //mostra a opção que permite abrir o catálogo em uma janela flutuante
105 } 107 }
106 108
107 Tipo: 109 Tipo:
@@ -134,7 +136,8 @@ i3GEO.arvoreDeTemas = { @@ -134,7 +136,8 @@ i3GEO.arvoreDeTemas = {
134 bookmark: true, 136 bookmark: true,
135 importarwmc: true, 137 importarwmc: true,
136 googleearth: true, 138 googleearth: true,
137 - carregaKml: true 139 + carregaKml: true,
  140 + flutuante: true
138 }, 141 },
139 /* 142 /*
140 Propriedade: FATORESTRELA 143 Propriedade: FATORESTRELA
@@ -343,6 +346,53 @@ i3GEO.arvoreDeTemas = { @@ -343,6 +346,53 @@ i3GEO.arvoreDeTemas = {
343 */ 346 */
344 TEMAS: null, 347 TEMAS: null,
345 /* 348 /*
  349 + Function: flutuante
  350 +
  351 + Abre o catálogo em uma janela flutuante
  352 + */
  353 + flutuante: function(){
  354 + var janela,ins,temp,cabecalho,minimiza,idold,corpo,altura;
  355 + cabecalho = function(){};
  356 + if($i("i3GEOFcatalogo_corpo"))
  357 + {return;}
  358 + minimiza = function(){
  359 + i3GEO.janela.minimiza("i3GEOFcatalogo");
  360 + };
  361 + altura = i3GEO.parametros.w - 150;
  362 + if(altura > 500){
  363 + altura = 500;
  364 + }
  365 + janela = i3GEO.janela.cria(
  366 + "360px",
  367 + altura + "px",
  368 + "",
  369 + "",
  370 + "",
  371 + $trad("g1a"),
  372 + "i3GEOFcatalogo",
  373 + false,
  374 + "hd",
  375 + cabecalho,
  376 + minimiza
  377 + );
  378 + temp = function(){
  379 + delete(i3GEO.arvoreDeTemas.ARVORE);
  380 + };
  381 + YAHOO.util.Event.addListener(janela[0].close, "click", temp,janela[0].panel,{id:janela[0].id},true);
  382 + corpo = $i("i3GEOFcatalogo_corpo");
  383 + corpo.style.backgroundColor = "white";
  384 + corpo.innerHTML = $trad("o1");
  385 + corpo.style.overflow = "auto";
  386 + if($i(i3GEO.arvoreDeTemas.IDHTML)){
  387 + $i(i3GEO.arvoreDeTemas.IDHTML).innerHTML = "";
  388 + i3GEO.arvoreDeTemas.IDHTML = idold;
  389 + }
  390 + idold = i3GEO.arvoreDeTemas.IDHTML;
  391 + delete(i3GEO.arvoreDeTemas.ARVORE);
  392 + i3GEO.arvoreDeTemas.IDHTML = "i3GEOFcatalogo_corpo";
  393 + i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,"");
  394 + },
  395 + /*
346 Function: listaWMS 396 Function: listaWMS
347 397
348 Lista os WMS cadastrados preenchendo o nó OGC-WMS 398 Lista os WMS cadastrados preenchendo o nó OGC-WMS
@@ -861,6 +911,18 @@ i3GEO.arvoreDeTemas = { @@ -861,6 +911,18 @@ i3GEO.arvoreDeTemas = {
861 ); 911 );
862 } 912 }
863 // 913 //
  914 + //abrir catálogo em janela flutuante
  915 + //
  916 + if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.flutuante === true){
  917 + tempNode = new YAHOO.widget.HTMLNode(
  918 + {
  919 + html:"<a href='#' onclick='i3GEO.arvoreDeTemas.flutuante()' >Abrir em janela flutuante</a>",
  920 + idmenu:"",enableHighlight:false,expanded:false
  921 + },
  922 + root
  923 + );
  924 + }
  925 + //
864 //wms 926 //wms
865 // 927 //
866 if(i3GEO.arvoreDeTemas.INCLUIWMS === true){ 928 if(i3GEO.arvoreDeTemas.INCLUIWMS === true){
@@ -2025,7 +2087,7 @@ i3GEO.arvoreDeTemas = { @@ -2025,7 +2087,7 @@ i3GEO.arvoreDeTemas = {
2025 " </tr>"; 2087 " </tr>";
2026 } 2088 }
2027 ins += " </table>"; 2089 ins += " </table>";
2028 - $i(janela[2].id).innerHTML = ins;; 2090 + $i(janela[2].id).innerHTML = ins;
2029 }, 2091 },
2030 2092
2031 /* 2093 /*
classesjs/classe_configura.js
@@ -180,6 +180,7 @@ i3GEO.configura = { @@ -180,6 +180,7 @@ i3GEO.configura = {
180 ], 180 ],
181 "ferramentas": [ 181 "ferramentas": [
182 { id:"omenudataFerramentas0a",text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("g4a")+'</b></span>',url: "#"}, 182 { id:"omenudataFerramentas0a",text: '<span style=color:gray;text-decoration:underline; ><b>'+$trad("g4a")+'</b></span>',url: "#"},
  183 + { id:"omenudataFerramentas4a",text: $trad("g1a"), url: "javascript:i3GEO.arvoreDeTemas.flutuante()"},
183 { id:"omenudataFerramentas1a",text: $trad("t20"), url: "javascript:i3GEO.mapa.dialogo.opacidade()"}, 184 { id:"omenudataFerramentas1a",text: $trad("t20"), url: "javascript:i3GEO.mapa.dialogo.opacidade()"},
184 { id:"omenudataFerramentas2a",text: $trad("p21"), url: "javascript:i3GEO.mapa.dialogo.animacao()"}, 185 { id:"omenudataFerramentas2a",text: $trad("p21"), url: "javascript:i3GEO.mapa.dialogo.animacao()"},
185 { id:"omenudataFerramentas3a",text: $trad("d24t"), url: "javascript:i3GEO.mapa.dialogo.selecao();"}, 186 { id:"omenudataFerramentas3a",text: $trad("d24t"), url: "javascript:i3GEO.mapa.dialogo.selecao();"},