Commit 37bc2a445e69cc73a0f776a6625d66c3247a9ddf
1 parent
ea41e01d
Exists in
master
and in
7 other branches
Inclusão do botão de aplicar alterações no rodapé da janela flutuante
Showing
2 changed files
with
29 additions
and
6 deletions
Show diff stats
ferramentas/legenda/index.js
| @@ -129,22 +129,27 @@ i3GEOF.legenda = | @@ -129,22 +129,27 @@ i3GEOF.legenda = | ||
| 129 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia"); | 129 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia"); |
| 130 | // eventos das guias | 130 | // eventos das guias |
| 131 | $i("i3GEOlegendaguia6").onclick = function() { | 131 | $i("i3GEOlegendaguia6").onclick = function() { |
| 132 | + i3GEOF.legenda.ativaAplicar("none"); | ||
| 132 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia6", "i3GEOlegendaguia"); | 133 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia6", "i3GEOlegendaguia"); |
| 133 | }; | 134 | }; |
| 134 | $i("i3GEOlegendaguia1").onclick = function() { | 135 | $i("i3GEOlegendaguia1").onclick = function() { |
| 136 | + i3GEOF.legenda.ativaAplicar("none"); | ||
| 135 | i3GEOF.legenda.mostralegenda(); | 137 | i3GEOF.legenda.mostralegenda(); |
| 136 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia"); | 138 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia"); |
| 137 | }; | 139 | }; |
| 138 | $i("i3GEOlegendaguia2").onclick = function() { | 140 | $i("i3GEOlegendaguia2").onclick = function() { |
| 141 | + i3GEOF.legenda.ativaAplicar("none"); | ||
| 139 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia2", "i3GEOlegendaguia"); | 142 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia2", "i3GEOlegendaguia"); |
| 140 | }; | 143 | }; |
| 141 | $i("i3GEOlegendaguia3").onclick = function() { | 144 | $i("i3GEOlegendaguia3").onclick = function() { |
| 142 | i3GEO.janela.tempoMsg($trad('ajuda', i3GEOF.legenda.dicionario)); | 145 | i3GEO.janela.tempoMsg($trad('ajuda', i3GEOF.legenda.dicionario)); |
| 143 | }; | 146 | }; |
| 144 | $i("i3GEOlegendaguia4").onclick = function() { | 147 | $i("i3GEOlegendaguia4").onclick = function() { |
| 148 | + i3GEOF.legenda.ativaAplicar("none"); | ||
| 145 | i3GEOF.legenda.mostraGrafico(); | 149 | i3GEOF.legenda.mostraGrafico(); |
| 146 | }; | 150 | }; |
| 147 | $i("i3GEOlegendaguia5").onclick = function() { | 151 | $i("i3GEOlegendaguia5").onclick = function() { |
| 152 | + i3GEOF.legenda.ativaAplicar("none"); | ||
| 148 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia5", "i3GEOlegendaguia"); | 153 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia5", "i3GEOlegendaguia"); |
| 149 | }; | 154 | }; |
| 150 | var b = new YAHOO.widget.Button("i3GEOlegendabotao1", { | 155 | var b = new YAHOO.widget.Button("i3GEOlegendabotao1", { |
| @@ -232,12 +237,7 @@ i3GEOF.legenda = | @@ -232,12 +237,7 @@ i3GEOF.legenda = | ||
| 232 | } | 237 | } |
| 233 | }); | 238 | }); |
| 234 | b.addClass("rodar"); | 239 | b.addClass("rodar"); |
| 235 | - b = new YAHOO.widget.Button("i3GEOlegendabotao10", { | ||
| 236 | - onclick : { | ||
| 237 | - fn : i3GEOF.legenda.aplicaEstilo | ||
| 238 | - } | ||
| 239 | - }); | ||
| 240 | - b.addClass("rodar"); | 240 | + |
| 241 | b = new YAHOO.widget.Button("i3GEOlegendabotao17", { | 241 | b = new YAHOO.widget.Button("i3GEOlegendabotao17", { |
| 242 | onclick : { | 242 | onclick : { |
| 243 | fn : i3GEOF.legenda.alteraGeometriaTema | 243 | fn : i3GEOF.legenda.alteraGeometriaTema |
| @@ -380,6 +380,7 @@ i3GEOF.legenda = | @@ -380,6 +380,7 @@ i3GEOF.legenda = | ||
| 380 | }; | 380 | }; |
| 381 | minimiza = function() { | 381 | minimiza = function() { |
| 382 | var t = i3GEO.janela.minimiza("i3GEOF.legenda","100px"); | 382 | var t = i3GEO.janela.minimiza("i3GEOF.legenda","100px"); |
| 383 | + i3GEOF.legenda.ativaAplicar("none"); | ||
| 383 | if(t === "min"){ | 384 | if(t === "min"){ |
| 384 | $i("i3GEOFlegendaCabecalhoI").style.display = "none"; | 385 | $i("i3GEOFlegendaCabecalhoI").style.display = "none"; |
| 385 | } else { | 386 | } else { |
| @@ -439,6 +440,25 @@ i3GEOF.legenda = | @@ -439,6 +440,25 @@ i3GEOF.legenda = | ||
| 439 | i.zIndex = i3GEO.janela.ULTIMOZINDEX; | 440 | i.zIndex = i3GEO.janela.ULTIMOZINDEX; |
| 440 | i3GEO.janela.ULTIMOZINDEX++; | 441 | i3GEO.janela.ULTIMOZINDEX++; |
| 441 | }, | 442 | }, |
| 443 | + ativaAplicar : function(tipo){ | ||
| 444 | + var b = $i("i3GEOlegendabotao10"); | ||
| 445 | + if(b){ | ||
| 446 | + b.style.display = tipo; | ||
| 447 | + } | ||
| 448 | + else{ | ||
| 449 | + YAHOO.i3GEO.janela.manager.find("i3GEOF.legenda").setFooter( | ||
| 450 | + '<input id="i3GEOlegendabotao10" type="button" value="'+$trad('aplicaAlteracoes',i3GEOF.legenda.dicionario)+'" style="width: 450px;cursor:pointer;color:blue;display: block;"/>' | ||
| 451 | + ); | ||
| 452 | + b = new YAHOO.widget.Button("i3GEOlegendabotao10", { | ||
| 453 | + onclick : { | ||
| 454 | + fn : i3GEOF.legenda.aplicaEstilo | ||
| 455 | + } | ||
| 456 | + }); | ||
| 457 | + b.addClass("rodar"); | ||
| 458 | + $i("i3GEOlegendabotao10-button").style.width = "100%"; | ||
| 459 | + $i("i3GEOlegendabotao10").style.width = "100%"; | ||
| 460 | + } | ||
| 461 | + }, | ||
| 442 | /* | 462 | /* |
| 443 | * Function: aposAlterarLegenda | 463 | * Function: aposAlterarLegenda |
| 444 | * | 464 | * |
| @@ -1057,6 +1077,7 @@ i3GEOF.legenda = | @@ -1057,6 +1077,7 @@ i3GEOF.legenda = | ||
| 1057 | try { | 1077 | try { |
| 1058 | $i("i3GEOlegendaguia1obj").style.display = "none"; | 1078 | $i("i3GEOlegendaguia1obj").style.display = "none"; |
| 1059 | $i("i3GEOlegendaguia3obj").style.display = "block"; | 1079 | $i("i3GEOlegendaguia3obj").style.display = "block"; |
| 1080 | + i3GEOF.legenda.ativaAplicar("block"); | ||
| 1060 | id = id.split("-"); | 1081 | id = id.split("-"); |
| 1061 | i3GEOF.legenda.classe = id[1]; | 1082 | i3GEOF.legenda.classe = id[1]; |
| 1062 | i3GEOF.legenda.estilo = 0; | 1083 | i3GEOF.legenda.estilo = 0; |
ferramentas/legenda/template_mst.html
| @@ -213,9 +213,11 @@ | @@ -213,9 +213,11 @@ | ||
| 213 | <input id='i3GEOlegendabotao14' class='executar' size='8' type='button' value='{{{desce}}}' /> | 213 | <input id='i3GEOlegendabotao14' class='executar' size='8' type='button' value='{{{desce}}}' /> |
| 214 | <div id='i3GEOlegendaParametrosEstilos' style='position: relative; top: 10px; left: 0px; text-align: left'></div> | 214 | <div id='i3GEOlegendaParametrosEstilos' style='position: relative; top: 10px; left: 0px; text-align: left'></div> |
| 215 | <br> <br> | 215 | <br> <br> |
| 216 | + <!-- | ||
| 216 | <p class='paragrafo' style='font-size: 10px'> | 217 | <p class='paragrafo' style='font-size: 10px'> |
| 217 | <input id='i3GEOlegendabotao10' size='35' type='button' value='{{{aplicaAlteracoes}}}' /> | 218 | <input id='i3GEOlegendabotao10' size='35' type='button' value='{{{aplicaAlteracoes}}}' /> |
| 218 | </p> | 219 | </p> |
| 220 | + --> | ||
| 219 | <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendamostraEstilo'></div> | 221 | <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendamostraEstilo'></div> |
| 220 | <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendasimbolos'></div> | 222 | <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendasimbolos'></div> |
| 221 | </fieldset> | 223 | </fieldset> |