Commit 4bd0c7670ebea43a55ee6152c9a38f091218a76c
1 parent
5a660fd7
Exists in
master
and in
7 other branches
-
Showing
6 changed files
with
82 additions
and
195 deletions
Show diff stats
ferramentas/graficointerativo1/index.js
... | ... | @@ -120,16 +120,6 @@ i3GEOF.graficointerativo1 = |
120 | 120 | w: "450px", |
121 | 121 | h: "400px", |
122 | 122 | /** |
123 | - * iniciaDicionario (depreciado na versao 6.0) | |
124 | - * | |
125 | - * Carrega o dicionário e chama a função que inicia a ferramenta | |
126 | - * | |
127 | - * O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script | |
128 | - */ | |
129 | - iniciaDicionario : function(parametros) { | |
130 | - i3GEOF.tabela.iniciaJanelaFlutuante(parametros); | |
131 | - }, | |
132 | - /** | |
133 | 123 | * Configura o grafico conforme um objeto contendo parametros e opcionalmente os dados Alguns parametros possuem definicoes padrao, |
134 | 124 | * usadas quando o valor nao e passado |
135 | 125 | * |
... | ... | @@ -801,22 +791,19 @@ i3GEOF.graficointerativo1 = |
801 | 791 | $i(idjanela + "i3GEOgraficointerativo1ComboY").innerHTML = |
802 | 792 | "<div>" + temp + " <div class='i3geoForm100 i3geoFormIconeEdita' style='float: left;left:10px;' ><input title='" + $trad('digitaTituloLegenda', i3GEOF.graficointerativo1.dicionario) |
803 | 793 | + "' type=text id='" + idjanela |
804 | - + "i3GEOgraficointerativo1ComboYidTitulo' value='' /></div>" + "<div class='i3geoForm100 i3geoFormIconeEdita' style='float: left;left:15px;' ><input id='" + idjanela | |
805 | - + "i3GEOgraficointerativo1ComboYidcor' title='cor' type='text' value='' /></div>" | |
806 | - + "<img alt='aquarela.gif' style=position:relative;top:3px;left:15px;cursor:pointer src='" | |
807 | - + i3GEO.configura.locaplic + "/imagens/aquarela.gif' onclick='i3GEOF.graficointerativo1.corj(\"" + idjanela | |
808 | - + "i3GEOgraficointerativo1ComboYidcor\")' /></div><br>"; | |
794 | + + "i3GEOgraficointerativo1ComboYidTitulo' value='' /></div>" | |
795 | + + "<div class='i3geoForm100 i3geoFormIconeAquarela' style='float: left;left:15px;' ><input id='" + idjanela | |
796 | + + "i3GEOgraficointerativo1ComboYidcor' title='cor' type='text' value='0,0,0' /></div>" | |
797 | + + "</div><br>"; | |
798 | + i3GEO.util.aplicaAquarela(idjanela + "i3GEOgraficointerativo1ComboY"); | |
809 | 799 | |
810 | - //$i(idjanela + "i3GEOgraficointerativo1ComboXid").id = idjanela + "i3GEOgraficointerativo1ComboYid"; | |
811 | 800 | //para escolher o item de X |
812 | 801 | $i(idjanela + "i3GEOgraficointerativo1ComboX").innerHTML = |
813 | 802 | "<div class=styled-select >" + retorno.dados + " <div class='i3geoForm i3geoFormIconeEdita' style='width:240px;float: right;' ><input title='" + $trad('digitaTituloLegenda', i3GEOF.graficointerativo1.dicionario) |
814 | 803 | + "' type=text id='" + idjanela |
815 | 804 | + "i3GEOgraficointerativo1ComboXidTitulo' value='' /></div></div>"; |
816 | 805 | |
817 | - //$i(idjanela + "i3GEOgraficointerativo1ComboXid").style.width = "160px"; | |
818 | 806 | if ($i(idjanela + "i3GEOgraficointerativo1ComboYid")) { |
819 | - //$i(idjanela + "i3GEOgraficointerativo1ComboYid").style.width = "160px"; | |
820 | 807 | adicionaFilho = |
821 | 808 | function() { |
822 | 809 | var no = document.createElement("div"), id = "CorG" + parseInt(Math.random() * 100000, 10), novoselect; |
... | ... | @@ -824,16 +811,15 @@ i3GEOF.graficointerativo1 = |
824 | 811 | + retorno.dados |
825 | 812 | + "<div class='i3geoForm100 i3geoFormIconeEdita' style='float:left;left:10px;' >" |
826 | 813 | + "<input title='" + $trad('digitaTituloLegenda', i3GEOF.graficointerativo1.dicionario) |
827 | - + "' type=text value='' /></div>" + " <div class='i3geoForm100 i3geoFormIconeEdita' style='float: left;left:15px;' ><input id='" + id | |
828 | - + "' type=text value='' title='cor' /></div>" | |
829 | - + "<img alt='aquarela.gif' style=position:relative;top:3px;left:15px;cursor:pointer src='" | |
830 | - + i3GEO.configura.locaplic | |
831 | - + "/imagens/aquarela.gif' onclick='i3GEOF.graficointerativo1.corj(\"" + id + "\")' /><br>"; | |
814 | + + "' type=text value='' /></div>" | |
815 | + + " <div class='i3geoForm100 i3geoFormIconeAquarela' style='float: left;left:15px;' ><input id='" + id | |
816 | + + "' type=text value='' title='cor' /></div><br>"; | |
832 | 817 | novoselect = no.getElementsByTagName("select")[0]; |
833 | 818 | novoselect.id = ""; |
834 | 819 | novoselect.onchange = adicionaFilho; |
835 | 820 | $i(idjanela + "i3GEOgraficointerativo1ComboY").appendChild(document.createElement("br")); |
836 | 821 | $i(idjanela + "i3GEOgraficointerativo1ComboY").appendChild(no); |
822 | + i3GEO.util.aplicaAquarela(no.id); | |
837 | 823 | }; |
838 | 824 | $i(idjanela + "i3GEOgraficointerativo1ComboYid").onchange = adicionaFilho; |
839 | 825 | } | ... | ... |
ferramentas/graficotema/index.js
... | ... | @@ -189,11 +189,11 @@ i3GEOF.graficoTema = { |
189 | 189 | for (i=0;i<n; i++){ |
190 | 190 | ins.push("<tr><td><input size=2 style='cursor:pointer;border:0px solid white;' name="+retorno.data.valores[i].item+" type=checkbox id=i3GEOgraficotema"+retorno.data.valores[i].item+" /></td>"); |
191 | 191 | ins.push("<td> "+retorno.data.valores[i].item+"</td>"); |
192 | - ins.push("<td> <input id=i3GEOgraficotema"+retorno.data.valores[i].item+"cor type=text size=13 value="+i3GEO.util.randomRGB()+" /></td>"); | |
193 | - ins.push("<td> <img style=cursor:pointer src='"+i3GEO.configura.locaplic+"/imagens/aquarela.gif' onclick=\"i3GEOF.graficoTema.corj('i3GEOgraficotema"+retorno.data.valores[i].item+"cor')\" /></td></tr>"); | |
192 | + ins.push("<td><div class='i3geoForm100 i3geoFormIconeAquarela' ><input id=i3GEOgraficotema"+retorno.data.valores[i].item+"cor type=text size=13 value="+i3GEO.util.randomRGB()+" /></td></tr>"); | |
194 | 193 | } |
195 | 194 | ins.push("</table>"); |
196 | 195 | $i("i3GEOgraficotemalistai").innerHTML = ins.join(""); |
196 | + i3GEO.util.aplicaAquarela("i3GEOgraficotemalistai"); | |
197 | 197 | } |
198 | 198 | catch(e) |
199 | 199 | {$i("i3GEOgraficotemalistai").innerHTML = "<p style=color:red >Erro<br>"+e;} | ... | ... |
ferramentas/inseregrafico/index.js
... | ... | @@ -279,11 +279,11 @@ i3GEOF.insereGrafico = { |
279 | 279 | for (i=0;i<n; i++){ |
280 | 280 | ins.push("<tr><td><input size=2 style='cursor:pointer' name="+retorno.data.valores[i].item+" type=checkbox id=i3GEOinseregrafico"+retorno.data.valores[i].item+" /></td>"); |
281 | 281 | ins.push("<td> "+retorno.data.valores[i].item+"</td>"); |
282 | - ins.push("<td> <input id=i3GEOinseregrafico"+retorno.data.valores[i].item+"cor type=text size=13 value="+i3GEO.util.randomRGB()+" /></td>"); | |
283 | - ins.push("<td> <img style=cursor:pointer src='"+i3GEO.configura.locaplic+"/imagens/aquarela.gif' onclick=\"i3GEOF.insereGrafico.corj('i3GEOinseregrafico"+retorno.data.valores[i].item+"cor')\" /></td></tr>"); | |
282 | + ins.push("<td><div class='i3geoForm100 i3geoFormIconeAquarela' ><input id=i3GEOinseregrafico"+retorno.data.valores[i].item+"cor type=text size=13 value="+i3GEO.util.randomRGB()+" /></div></td></tr>"); | |
284 | 283 | } |
285 | 284 | ins.push("</table>"); |
286 | 285 | $i("i3GEOinseregraficolistai").innerHTML = ins.join(""); |
286 | + i3GEO.util.aplicaAquarela("i3GEOinseregraficolistai"); | |
287 | 287 | } |
288 | 288 | catch(e) |
289 | 289 | {$i("i3GEOinseregraficolistai").innerHTML = "<p style=color:red >Erro "+e+"<br>";} | ... | ... |
ferramentas/opcoes_escala/dicionario.js
ferramentas/opcoes_escala/index.js
1 | - | |
2 | -/*jslint plusplus:false,white:false,undef: false, rhino: true, onevar: true, evil: true */ | |
3 | - | |
4 | -/* | |
5 | -Title: Barra de escala | |
6 | - | |
7 | -Altera as propriedades da barra de escala do mapa. | |
8 | - | |
9 | -Veja: | |
10 | - | |
11 | -<i3GEO.mapa.dialogo.opcoesEscala> | |
12 | - | |
13 | -Arquivo: | |
14 | - | |
15 | -i3geo/ferramentas/opcoes_escala/index.js.php | |
16 | - | |
17 | -Licenca: | |
18 | - | |
19 | -GPL2 | |
20 | - | |
21 | -i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
22 | - | |
23 | -Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | |
24 | -Desenvolvedor: Edmar Moretti edmar.moretti@gmail.com | |
25 | - | |
26 | -Este programa é software livre; você pode redistribuí-lo | |
27 | -e/ou modificá-lo sob os termos da Licença Pública Geral | |
28 | -GNU conforme publicada pela Free Software Foundation; | |
29 | - | |
30 | -Este programa é distribuído na expectativa de que seja útil, | |
31 | -porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
32 | -de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | |
33 | -Consulte a Licença Pública Geral do GNU para mais detalhes. | |
34 | -Você deve ter recebido uma cópia da Licença Pública Geral do | |
35 | -GNU junto com este programa; se não, escreva para a | |
36 | -Free Software Foundation, Inc., no endereço | |
37 | -59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | |
38 | -*/ | |
39 | 1 | if(typeof(i3GEOF) === 'undefined'){ |
40 | 2 | var i3GEOF = {}; |
41 | 3 | } |
... | ... | @@ -50,12 +12,6 @@ i3GEOF.opcoesEscala = { |
50 | 12 | Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. |
51 | 13 | */ |
52 | 14 | aguarde: "", |
53 | - /* | |
54 | - Para efeitos de compatibilidade antes da versão 4.7 que não tinha dicionário | |
55 | - */ | |
56 | - criaJanelaFlutuante: function(){ | |
57 | - i3GEOF.opcoesEscala.iniciaDicionario(); | |
58 | - }, | |
59 | 15 | /** |
60 | 16 | * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php |
61 | 17 | */ |
... | ... | @@ -68,35 +24,10 @@ i3GEOF.opcoesEscala = { |
68 | 24 | dicionario["sim"] = $trad("x14"); |
69 | 25 | dicionario["nao"] = $trad("x15"); |
70 | 26 | dicionario["locaplic"] = i3GEO.configura.locaplic; |
71 | - dicionario["Escalaw"] = $inputText('','','i3GEOopcoesEscalaw','',4,''); | |
72 | - dicionario["Escalah"] = $inputText('','','i3GEOopcoesEscalah','',4,''); | |
73 | - dicionario["Escalaintervalos"] = $inputText('','','i3GEOopcoesEscalaintervalos','',4,''); | |
74 | - dicionario["Escalacor"] = $inputText('','','i3GEOopcoesEscalacor','',12,''); | |
75 | - dicionario["Escalabcor"] = $inputText('','','i3GEOopcoesEscalabcor','',12,''); | |
76 | - dicionario["Escalaocor"] = $inputText('','','i3GEOopcoesEscalaocor','',12,''); | |
77 | 27 | dicionario["asp"] = '"'; |
78 | 28 | return dicionario; |
79 | 29 | }, |
80 | 30 | /* |
81 | - Function: iniciaDicionario | |
82 | - | |
83 | - Carrega o dicionário e chama a função que inicia a ferramenta | |
84 | - | |
85 | - O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script | |
86 | - */ | |
87 | - iniciaDicionario: function(){ | |
88 | - if(typeof(i3GEOF.opcoesEscala.dicionario) === 'undefined'){ | |
89 | - i3GEO.util.scriptTag( | |
90 | - i3GEO.configura.locaplic+"/ferramentas/opcoes_escala/dicionario.js", | |
91 | - "i3GEOF.opcoesEscala.iniciaJanelaFlutuante()", | |
92 | - "i3GEOF.opcoesEscala.dicionario_script" | |
93 | - ); | |
94 | - } | |
95 | - else{ | |
96 | - i3GEOF.opcoesEscala.iniciaJanelaFlutuante(); | |
97 | - } | |
98 | - }, | |
99 | - /* | |
100 | 31 | Function: inicia |
101 | 32 | |
102 | 33 | Inicia a ferramenta. É chamado por criaJanelaFlutuante |
... | ... | @@ -108,15 +39,18 @@ i3GEOF.opcoesEscala = { |
108 | 39 | inicia: function(iddiv){ |
109 | 40 | try{ |
110 | 41 | $i(iddiv).innerHTML += i3GEOF.opcoesEscala.html(); |
111 | - new YAHOO.widget.Button( | |
42 | + var b = new YAHOO.widget.Button( | |
112 | 43 | "i3GEOopcoesEscalabotao1", |
113 | 44 | {onclick:{fn: i3GEOF.opcoesEscala.executa}} |
114 | 45 | ); |
115 | - new YAHOO.widget.Button( | |
46 | + b.addClass("rodar"); | |
47 | + b = new YAHOO.widget.Button( | |
116 | 48 | "i3GEOopcoesEscalabotao2", |
117 | 49 | {onclick:{fn: i3GEOF.opcoesEscala.testa}} |
118 | 50 | ); |
51 | + b.addClass("rodar"); | |
119 | 52 | i3GEOF.opcoesEscala.parametrosAtuais(); |
53 | + i3GEO.util.aplicaAquarela("i3GEOF.opcoesEscala_corpo"); | |
120 | 54 | } |
121 | 55 | catch(erro){i3GEO.janela.tempoMsg(erro);} |
122 | 56 | if(i3GEO.Interface.ATUAL !== "padrao") |
... | ... | @@ -149,7 +83,7 @@ i3GEOF.opcoesEscala = { |
149 | 83 | //cria a janela flutuante |
150 | 84 | titulo = $trad("p4")+" <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=3' > </a>"; |
151 | 85 | janela = i3GEO.janela.cria( |
152 | - "250px", | |
86 | + "280px", | |
153 | 87 | "350px", |
154 | 88 | "", |
155 | 89 | "", | ... | ... |
ferramentas/opcoes_escala/template_mst.html
1 | -<table summary='' class='lista'> | |
2 | - <tr> | |
3 | - <td>{{{incluiNoMapa}}}:</td> | |
4 | - <td> | |
5 | - <select id='i3GEOopcoesEscalastatus'> | |
6 | - <option value=3>{{{sim}}}</option> | |
7 | - <option value=1>{{{nao}}}</option> | |
8 | - <option value=0>---</option> | |
9 | - </select> | |
10 | - <td> | |
11 | - </tr> | |
12 | - <tr> | |
13 | - <td> </td> | |
14 | - <td></td> | |
15 | - </tr> | |
16 | - <tr> | |
17 | - <td>Largura:</td> | |
18 | - <td>{{{Escalaw}}}</td> | |
19 | - </tr> | |
20 | - <tr> | |
21 | - <td> </td> | |
22 | - <td></td> | |
23 | - </tr> | |
24 | - <tr> | |
25 | - <td>{{{altura}}}:</td> | |
26 | - <td>{{{Escalah}}}</td> | |
27 | - </tr> | |
28 | - <tr> | |
29 | - <td> </td> | |
30 | - <td></td> | |
31 | - </tr> | |
32 | - <tr> | |
33 | - <td>{{{unidade}}}:</td> | |
34 | - <td> | |
35 | - <select id='i3GEOopcoesEscalaunidade'> | |
36 | - <option value='3' selected>Metros</option> | |
37 | - <option value='4'>Km</option> | |
38 | - </select> | |
39 | - <td> | |
40 | - </tr> | |
41 | - <tr> | |
42 | - <td> </td> | |
43 | - <td></td> | |
44 | - </tr> | |
45 | - <tr> | |
46 | - <td>{{{estilo}}}:</td> | |
47 | - <td> | |
48 | - <select id='i3GEOopcoesEscalaestilo'> | |
49 | - <option value='0' selected>{{{bloco}}}</option> | |
50 | - <option value='1'>{{{linear}}}</option> | |
51 | - <option value='2'>{{{semBarra}}}</option> | |
52 | - </select> | |
53 | - </td> | |
54 | - </tr> | |
55 | - <tr> | |
56 | - <td> </td> | |
57 | - <td></td> | |
58 | - </tr> | |
59 | - <tr> | |
60 | - <td>{{{intervalos}}}:</td> | |
61 | - <td>{{{Escalaintervalos}}}</td> | |
62 | - </tr> | |
63 | - <tr> | |
64 | - <td> </td> | |
65 | - <td></td> | |
66 | - </tr> | |
67 | - <tr> | |
68 | - <td>{{{cor}}}:</td> | |
69 | - <td> | |
70 | - {{{Escalacor}}} | |
71 | - <img alt='aquarela.gif' style='cursor: pointer' src='{{{locaplic}}}/imagens/aquarela.gif' onclick='i3GEOF.opcoesEscala.corj({{{asp}}}i3GEOopcoesEscalacor{{{asp}}})' /> | |
72 | - </td> | |
73 | - </tr> | |
74 | - <tr> | |
75 | - <td> </td> | |
76 | - <td></td> | |
77 | - </tr> | |
78 | - <tr> | |
79 | - <td>{{{fundo}}}:</td> | |
80 | - <td> | |
81 | - {{{Escalabcor}}} | |
82 | - <img alt='aquarela.gif' style='cursor: pointer' src='{{{locaplic}}}/imagens/aquarela.gif' onclick='i3GEOF.opcoesEscala.corj({{{asp}}}i3GEOopcoesEscalabcor{{{asp}}})' /> | |
83 | - </td> | |
84 | - </tr> | |
85 | - <tr> | |
86 | - <td> </td> | |
87 | - <td></td> | |
88 | - </tr> | |
89 | - <tr> | |
90 | - <td>{{{contorno}}}:</td> | |
91 | - <td> | |
92 | - {{{Escalaocor}}} | |
93 | - <img alt='aquarela.gif' style='cursor: pointer' src='{{{locaplic}}}/imagens/aquarela.gif' onclick='i3GEOF.opcoesEscala.corj({{{asp}}}i3GEOopcoesEscalaocor{{{asp}}})' /> | |
94 | - </td> | |
95 | - </tr> | |
96 | -</table> | |
1 | +<p class='paragrafo'>{{{incluiNoMapa}}}:</p> | |
2 | +<div class='styled-select'> | |
3 | + <select id='i3GEOopcoesEscalastatus'> | |
4 | + <option value=3>{{{sim}}}</option> | |
5 | + <option value=1>{{{nao}}}</option> | |
6 | + <option value=0>---</option> | |
7 | + </select> | |
8 | +</div> | |
9 | +<br> | |
10 | +<p class='paragrafo'>{{{largura}}}:</p> | |
11 | +<div class='i3geoForm i3geoFormIconeEdita'> | |
12 | + <input type='text' id='i3GEOopcoesEscalaw' value='' /> | |
13 | +</div> | |
14 | +<br> | |
15 | +<p class='paragrafo'>{{{altura}}}:</p> | |
16 | +<div class='i3geoForm i3geoFormIconeEdita'> | |
17 | + <input type='text' id='i3GEOopcoesEscalah' value='' /> | |
18 | +</div> | |
19 | +<br> | |
20 | +<p class='paragrafo'>{{{unidade}}}:</p> | |
21 | +<div class='styled-select'> | |
22 | + <select id='i3GEOopcoesEscalaunidade'> | |
23 | + <option value='3' selected>Metros</option> | |
24 | + <option value='4'>Km</option> | |
25 | + </select> | |
26 | +</div> | |
27 | +<br> | |
28 | +<p class='paragrafo'>{{{estilo}}}:</p> | |
29 | +<div class='styled-select'> | |
30 | + <select id='i3GEOopcoesEscalaestilo'> | |
31 | + <option value='0' selected>{{{bloco}}}</option> | |
32 | + <option value='1'>{{{linear}}}</option> | |
33 | + <option value='2'>{{{semBarra}}}</option> | |
34 | + </select> | |
35 | +</div> | |
36 | +<br> | |
37 | +<p class='paragrafo'>{{{intervalos}}}:</p> | |
38 | +<div class='i3geoForm i3geoFormIconeEdita'> | |
39 | + <input type='text' id='i3GEOopcoesEscalaintervalos' value='' /> | |
40 | +</div> | |
41 | +<br> | |
42 | +<p class='paragrafo'>{{{cor}}}:</p> | |
43 | +<div class='i3geoForm100 i3geoFormIconeAquarela'> | |
44 | + <input type='text' id='i3GEOopcoesEscalacor' value='' /> | |
45 | +</div> | |
46 | +<br> | |
47 | +<p class='paragrafo'>{{{fundo}}}:</p> | |
48 | +<div class='i3geoForm100 i3geoFormIconeAquarela'> | |
49 | + <input type='text' id='i3GEOopcoesEscalabcor' value='' /> | |
50 | +</div> | |
51 | +<br> | |
52 | +<p class='paragrafo'>{{{contorno}}}:</p> | |
53 | +<div class='i3geoForm100 i3geoFormIconeAquarela'> | |
54 | + <input type='text' id='i3GEOopcoesEscalaocor' value='' /> | |
55 | +</div> | |
97 | 56 | <br> |
98 | 57 | <p class='paragrafo'> |
99 | 58 | <input id='i3GEOopcoesEscalabotao1' size='20' type='button' value='{{{aplica}}}' /> |
59 | +</p> | |
60 | +<p class='paragrafo'> | |
100 | 61 | <input id='i3GEOopcoesEscalabotao2' size='20' type='button' value='{{{testa}}}' /> |
101 | 62 | </p> |
102 | 63 | <br> | ... | ... |