Commit c6e9ff108de7fc56ed4d0b361b47e071a3703510
1 parent
e238eae5
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
118 additions
and
41 deletions
Show diff stats
classesjs/classe_editorgm.js
| 1 | //TODO documentar | 1 | //TODO documentar |
| 2 | -//TODO traduzir | ||
| 3 | //TODO incluir balao de informacoes como um elemento grafico de desenho | 2 | //TODO incluir balao de informacoes como um elemento grafico de desenho |
| 4 | //TODO incluir caixas de texto | 3 | //TODO incluir caixas de texto |
| 5 | //TODO incluir undo na edicao | 4 | //TODO incluir undo na edicao |
| @@ -197,15 +196,15 @@ i3GEO.editorGM = { | @@ -197,15 +196,15 @@ i3GEO.editorGM = { | ||
| 197 | */ | 196 | */ |
| 198 | html:function(){ | 197 | html:function(){ |
| 199 | var ins = '<div style=margin-left:5px >' + | 198 | var ins = '<div style=margin-left:5px >' + |
| 200 | - ' <button title="Desenhar um poligono" onclick="i3GEO.editorGM.digitalizaPol(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/polygon-create.png" /></button>' + | ||
| 201 | - ' <button title="Adicionar ponto" onclick="i3GEO.editorGM.digitalizaPt(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/point-create.png" /></button>' + | ||
| 202 | - ' <button title="Capturar elemento de um tema" onclick="i3GEO.editorGM.capturaPoligonoTema.ativa(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/layer-import.png" /></button>' + | ||
| 203 | - ' <button title="Selecionar" onclick="i3GEO.editorGM.seleciona(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/select.png" /></button>' + | ||
| 204 | - ' <button title="Selecionar tudo" onclick="i3GEO.editorGM.selectAll(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/selectall.png" /></button>' + | ||
| 205 | - ' <button title="Remove selecionado (não apaga)" onclick="i3GEO.editorGM.deleteSelectedShape()"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/selected-delete.png" /></button>' + | ||
| 206 | - ' <button title="Salvar/excluir dados" onclick="i3GEO.editorGM.salvaLimite.inicia()"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/vector-save.png" /></button>' + | ||
| 207 | - ' <button title="Editar atributos" onclick="i3GEO.editorGM.editarAtributos.ativa(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/annotation-form.png" /></button>' + | ||
| 208 | - ' <button title="Ajuda" onmousedown="i3GEO.editorGM.mudaicone()" onclick="i3GEO.editorGM.ajuda()" ><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/help-contents.png" /></button>' + | 199 | + ' <button title="'+$trad("dpol")+'" onclick="i3GEO.editorGM.digitalizaPol(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/polygon-create.png" /></button>' + |
| 200 | + ' <button title="'+$trad("dponto")+'" onclick="i3GEO.editorGM.digitalizaPt(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/point-create.png" /></button>' + | ||
| 201 | + ' <button title="'+$trad("capturar")+'" onclick="i3GEO.editorGM.capturaPoligonoTema.ativa(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/layer-import.png" /></button>' + | ||
| 202 | + ' <button title="'+$trad("d24t")+'" onclick="i3GEO.editorGM.seleciona(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/select.png" /></button>' + | ||
| 203 | + ' <button title="'+$trad("studo")+'" onclick="i3GEO.editorGM.selectAll(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/selectall.png" /></button>' + | ||
| 204 | + ' <button title="'+$trad("excsel")+'" onclick="i3GEO.editorGM.deleteSelectedShape()"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/selected-delete.png" /></button>' + | ||
| 205 | + ' <button title="'+$trad("salvexc")+'" onclick="i3GEO.editorGM.salvaLimite.inicia()"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/vector-save.png" /></button>' + | ||
| 206 | + ' <button title="'+$trad("edatrib")+'" onclick="i3GEO.editorGM.editarAtributos.ativa(this)"><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/annotation-form.png" /></button>' + | ||
| 207 | + ' <button title="'+$trad("s1")+'" onmousedown="i3GEO.editorGM.mudaicone()" onclick="i3GEO.editorGM.ajuda()" ><img src="'+i3GEO.configura.locaplic+'/imagens/gisicons/help-contents.png" /></button>' + | ||
| 209 | ' <br><div id="i3geoCartoRegioesEditaveisDiv" ><img style="display:block;z-index:2" src="'+i3GEO.configura.locaplic+'/imagens/aguarde.gif" /></div></div>'; //combo para escolher a regiao | 208 | ' <br><div id="i3geoCartoRegioesEditaveisDiv" ><img style="display:block;z-index:2" src="'+i3GEO.configura.locaplic+'/imagens/aguarde.gif" /></div></div>'; //combo para escolher a regiao |
| 210 | return ins; | 209 | return ins; |
| 211 | }, | 210 | }, |
| @@ -272,7 +271,7 @@ i3GEO.editorGM = { | @@ -272,7 +271,7 @@ i3GEO.editorGM = { | ||
| 272 | * @param boolean indica se deve ser feita uma confirmacao ou nao antes de apagar | 271 | * @param boolean indica se deve ser feita uma confirmacao ou nao antes de apagar |
| 273 | */ | 272 | */ |
| 274 | deleteSelectedShape: function(naoconfirma) { | 273 | deleteSelectedShape: function(naoconfirma) { |
| 275 | - i3GEO.janela.tempoMsg("Para excluir o registro utilize a ferramenta de identificacao"); | 274 | + i3GEO.janela.tempoMsg($trad("meneditor1")); |
| 276 | if(!naoconfirma){ | 275 | if(!naoconfirma){ |
| 277 | naoconfirma = false; | 276 | naoconfirma = false; |
| 278 | } | 277 | } |
| @@ -280,7 +279,7 @@ i3GEO.editorGM = { | @@ -280,7 +279,7 @@ i3GEO.editorGM = { | ||
| 280 | n = i3GEO.desenho.googlemaps.shapes.length; | 279 | n = i3GEO.desenho.googlemaps.shapes.length; |
| 281 | if(n > 0){ | 280 | if(n > 0){ |
| 282 | if(naoconfirma === false){ | 281 | if(naoconfirma === false){ |
| 283 | - var x = window.confirm("Remove as figuras selecionadas?"); | 282 | + var x = window.confirm($trad("excsel")+"?"); |
| 284 | } | 283 | } |
| 285 | else{ | 284 | else{ |
| 286 | x = true; | 285 | x = true; |
| @@ -295,7 +294,7 @@ i3GEO.editorGM = { | @@ -295,7 +294,7 @@ i3GEO.editorGM = { | ||
| 295 | } | 294 | } |
| 296 | } | 295 | } |
| 297 | else{ | 296 | else{ |
| 298 | - i3GEO.janela.tempoMsg("Selecione pelo menos uma figura"); | 297 | + i3GEO.janela.tempoMsg($trad("selum")); |
| 299 | } | 298 | } |
| 300 | }, | 299 | }, |
| 301 | /** | 300 | /** |
| @@ -416,7 +415,7 @@ i3GEO.editorGM = { | @@ -416,7 +415,7 @@ i3GEO.editorGM = { | ||
| 416 | //obtem os dados buscando nos itens que vem da requisicao ao wms | 415 | //obtem os dados buscando nos itens que vem da requisicao ao wms |
| 417 | temp = retorno.data[0].resultado[0]; | 416 | temp = retorno.data[0].resultado[0]; |
| 418 | if(temp === " "){ | 417 | if(temp === " "){ |
| 419 | - i3GEO.janela.tempoMsg("Nada encontrado"); | 418 | + i3GEO.janela.tempoMsg($trad("meneditor2")); |
| 420 | return; | 419 | return; |
| 421 | } | 420 | } |
| 422 | i3GEO.editorGM.mudaicone(); | 421 | i3GEO.editorGM.mudaicone(); |
| @@ -479,7 +478,7 @@ i3GEO.editorGM = { | @@ -479,7 +478,7 @@ i3GEO.editorGM = { | ||
| 479 | var onde = $i("i3geoCartoRegioesEditaveisDiv"), | 478 | var onde = $i("i3geoCartoRegioesEditaveisDiv"), |
| 480 | temp = function(dados){ | 479 | temp = function(dados){ |
| 481 | var n = dados.length, | 480 | var n = dados.length, |
| 482 | - ins = '<br><p class="paragrafo" >Camadas editáveis:</p>', | 481 | + ins = '<br><p class="paragrafo" >'+$trad("camedit")+':</p>', |
| 483 | i; | 482 | i; |
| 484 | ins += "<select onchange='i3GEO.editorGM.comboRegiaoEditavelOnchange(this)' id='i3geoCartoRegioesEditaveis' style='width:175px' ><option value=''>---</option>"; | 483 | ins += "<select onchange='i3GEO.editorGM.comboRegiaoEditavelOnchange(this)' id='i3geoCartoRegioesEditaveis' style='width:175px' ><option value=''>---</option>"; |
| 485 | for(i=0;i<n;i++){ | 484 | for(i=0;i<n;i++){ |
| @@ -698,7 +697,7 @@ i3GEO.editorGM = { | @@ -698,7 +697,7 @@ i3GEO.editorGM = { | ||
| 698 | */ | 697 | */ |
| 699 | inicia: function(){ | 698 | inicia: function(){ |
| 700 | if(i3GEO.login.verificaCookieLogin() === false){ | 699 | if(i3GEO.login.verificaCookieLogin() === false){ |
| 701 | - i3GEO.janela.tempoMsg("Você precisa fazer login para usar a opção de salvar no banco de dados"); | 700 | + i3GEO.janela.tempoMsg($trad("meneditor3")); |
| 702 | if(i3GEO.editorGM.selectedShapes().length > 0){ | 701 | if(i3GEO.editorGM.selectedShapes().length > 0){ |
| 703 | var temp = i3GEO.editorGM.toWKT(i3GEO.editorGM.selectedShapes()[0]); | 702 | var temp = i3GEO.editorGM.toWKT(i3GEO.editorGM.selectedShapes()[0]); |
| 704 | i3GEO.mapa.dialogo.wkt2layer(temp); | 703 | i3GEO.mapa.dialogo.wkt2layer(temp); |
| @@ -797,7 +796,7 @@ i3GEO.editorGM = { | @@ -797,7 +796,7 @@ i3GEO.editorGM = { | ||
| 797 | minimiza = function(){ | 796 | minimiza = function(){ |
| 798 | i3GEO.janela.minimiza("salvaLimite"); | 797 | i3GEO.janela.minimiza("salvaLimite"); |
| 799 | }; | 798 | }; |
| 800 | - titulo = "<div class='i3GeoTituloJanela'>Salva limite </div>"; | 799 | + titulo = "<div class='i3GeoTituloJanela'>"+$trad("sdados")+"</div>"; |
| 801 | janela = i3GEO.janela.cria( | 800 | janela = i3GEO.janela.cria( |
| 802 | "300px", | 801 | "300px", |
| 803 | "265px", | 802 | "265px", |
| @@ -822,10 +821,10 @@ i3GEO.editorGM = { | @@ -822,10 +821,10 @@ i3GEO.editorGM = { | ||
| 822 | */ | 821 | */ |
| 823 | gravaDados: function(comwkt){ | 822 | gravaDados: function(comwkt){ |
| 824 | if(i3GEO.login.verificaCookieLogin() === false){ | 823 | if(i3GEO.login.verificaCookieLogin() === false){ |
| 825 | - i3GEO.janela.tempoMsg("Você precisa fazer login para usar essa opção"); | 824 | + i3GEO.janela.tempoMsg($trad("meneditor3")); |
| 826 | return; | 825 | return; |
| 827 | } | 826 | } |
| 828 | - if(!window.confirm("Grava mesmo os dados?")){ | 827 | + if(!window.confirm($trad("sdados")+"?")){ |
| 829 | return; | 828 | return; |
| 830 | } | 829 | } |
| 831 | var p,codigo_tipo_regiao = $i("i3geoCartoRegioesEditaveis").value, | 830 | var p,codigo_tipo_regiao = $i("i3geoCartoRegioesEditaveis").value, |
| @@ -846,7 +845,7 @@ i3GEO.editorGM = { | @@ -846,7 +845,7 @@ i3GEO.editorGM = { | ||
| 846 | } | 845 | } |
| 847 | else{ | 846 | else{ |
| 848 | if(identificadornovo === identificador && $i("inputNomeElemento").value === nome){ | 847 | if(identificadornovo === identificador && $i("inputNomeElemento").value === nome){ |
| 849 | - i3GEO.janela.tempoMsg("Valores iguais ao original"); | 848 | + i3GEO.janela.tempoMsg($trad("meneditor4")); |
| 850 | return; | 849 | return; |
| 851 | } | 850 | } |
| 852 | } | 851 | } |
| @@ -859,10 +858,10 @@ i3GEO.editorGM = { | @@ -859,10 +858,10 @@ i3GEO.editorGM = { | ||
| 859 | */ | 858 | */ |
| 860 | excluiPoligono: function(){ | 859 | excluiPoligono: function(){ |
| 861 | if(i3GEO.login.verificaCookieLogin() === false){ | 860 | if(i3GEO.login.verificaCookieLogin() === false){ |
| 862 | - i3GEO.janela.tempoMsg("Você precisa fazer login para usar essa opção"); | 861 | + i3GEO.janela.tempoMsg($trad("meneditor3")); |
| 863 | return; | 862 | return; |
| 864 | } | 863 | } |
| 865 | - if(!window.confirm("Exclui mesmo o poligono?")){ | 864 | + if(!window.confirm($trad("excsel")+"?")){ |
| 866 | return; | 865 | return; |
| 867 | } | 866 | } |
| 868 | var codigo_tipo_regiao = $i("i3geoCartoRegioesEditaveis").value, | 867 | var codigo_tipo_regiao = $i("i3geoCartoRegioesEditaveis").value, |
| @@ -877,7 +876,7 @@ i3GEO.editorGM = { | @@ -877,7 +876,7 @@ i3GEO.editorGM = { | ||
| 877 | }, | 876 | }, |
| 878 | p = i3GEO.configura.locaplic+"/admin/php/metaestat.php?funcao=mantemDadosRegiao&tipo=excluir"; | 877 | p = i3GEO.configura.locaplic+"/admin/php/metaestat.php?funcao=mantemDadosRegiao&tipo=excluir"; |
| 879 | if(identificador === ""){ | 878 | if(identificador === ""){ |
| 880 | - i3GEO.janela.tempoMsg("É necessário ter um código para poder excluir"); | 879 | + i3GEO.janela.tempoMsg($trad("meneditor5")); |
| 881 | } | 880 | } |
| 882 | else{ | 881 | else{ |
| 883 | cpJSON.call(p,"foo",temp,"&codigo_tipo_regiao="+codigo_tipo_regiao+"&identificador="+identificador); | 882 | cpJSON.call(p,"foo",temp,"&codigo_tipo_regiao="+codigo_tipo_regiao+"&identificador="+identificador); |
| @@ -929,7 +928,7 @@ i3GEO.editorGM = { | @@ -929,7 +928,7 @@ i3GEO.editorGM = { | ||
| 929 | minimiza = function(){ | 928 | minimiza = function(){ |
| 930 | i3GEO.janela.minimiza("editaAtributos"); | 929 | i3GEO.janela.minimiza("editaAtributos"); |
| 931 | }; | 930 | }; |
| 932 | - titulo = "<div class='i3GeoTituloJanela'>Atributos </div>"; | 931 | + titulo = "<div class='i3GeoTituloJanela'>"+$trad("atrib")+"</div>"; |
| 933 | janela = i3GEO.janela.cria( | 932 | janela = i3GEO.janela.cria( |
| 934 | "250px", | 933 | "250px", |
| 935 | "265px", | 934 | "265px", |
| @@ -945,7 +944,7 @@ i3GEO.editorGM = { | @@ -945,7 +944,7 @@ i3GEO.editorGM = { | ||
| 945 | ); | 944 | ); |
| 946 | $i("editaAtributos_corpo").style.backgroundColor = "white"; | 945 | $i("editaAtributos_corpo").style.backgroundColor = "white"; |
| 947 | $i("editaAtributos_corpo").innerHTML = html; | 946 | $i("editaAtributos_corpo").innerHTML = html; |
| 948 | - i3GEO.janela.tempoMsg("Após escolher a medida da variável, clique no mapa para escolher o limite geográfico."); | 947 | + i3GEO.janela.tempoMsg($trad("meneditor6")); |
| 949 | YAHOO.util.Event.addListener(janela[0].close, "click", i3GEO.editorGM.mudaicone); | 948 | YAHOO.util.Event.addListener(janela[0].close, "click", i3GEO.editorGM.mudaicone); |
| 950 | }, | 949 | }, |
| 951 | /** | 950 | /** |
| @@ -961,6 +960,7 @@ i3GEO.editorGM = { | @@ -961,6 +960,7 @@ i3GEO.editorGM = { | ||
| 961 | ''; | 960 | ''; |
| 962 | return ins; | 961 | return ins; |
| 963 | }, | 962 | }, |
| 963 | + //TODO traduzir | ||
| 964 | /** | 964 | /** |
| 965 | * Monta um combo para escolha de uma variavel que sera editada | 965 | * Monta um combo para escolha de uma variavel que sera editada |
| 966 | * Executa i3GEO.php.listaVariavel | 966 | * Executa i3GEO.php.listaVariavel |
classesjs/classe_editorol.js
| 1 | -//TODO documentar | ||
| 2 | //TODO incluir balao de informacoes como um elemento grafico de desenho | 1 | //TODO incluir balao de informacoes como um elemento grafico de desenho |
| 3 | //TODO incluir caixas de texto | 2 | //TODO incluir caixas de texto |
| 4 | //TODO incluir undo na edicao | 3 | //TODO incluir undo na edicao |
| @@ -1419,13 +1418,12 @@ i3GEO.editorOL = { | @@ -1419,13 +1418,12 @@ i3GEO.editorOL = { | ||
| 1419 | controles.push(button); | 1418 | controles.push(button); |
| 1420 | adiciona = true; | 1419 | adiciona = true; |
| 1421 | } | 1420 | } |
| 1422 | - //TODO traduzir | ||
| 1423 | if(botoes.apaga===true){ | 1421 | if(botoes.apaga===true){ |
| 1424 | button = new OpenLayers.Control.Button({ | 1422 | button = new OpenLayers.Control.Button({ |
| 1425 | displayClass: "editorOLapaga", | 1423 | displayClass: "editorOLapaga", |
| 1426 | trigger: function(){ | 1424 | trigger: function(){ |
| 1427 | if(i3GEO.desenho.layergrafico.selectedFeatures.length > 0){ | 1425 | if(i3GEO.desenho.layergrafico.selectedFeatures.length > 0){ |
| 1428 | - var x = window.confirm("Exclui os elementos selecionados?"); | 1426 | + var x = window.confirm($trad("excsel")+"?"); |
| 1429 | if(x){ | 1427 | if(x){ |
| 1430 | i3GEO.editorOL.guardaBackup(); | 1428 | i3GEO.editorOL.guardaBackup(); |
| 1431 | i3GEO.desenho.layergrafico.removeFeatures(i3GEO.desenho.layergrafico.selectedFeatures); | 1429 | i3GEO.desenho.layergrafico.removeFeatures(i3GEO.desenho.layergrafico.selectedFeatures); |
| @@ -1433,15 +1431,15 @@ i3GEO.editorOL = { | @@ -1433,15 +1431,15 @@ i3GEO.editorOL = { | ||
| 1433 | i3GEO.editorOL.listaGeometrias(); | 1431 | i3GEO.editorOL.listaGeometrias(); |
| 1434 | } | 1432 | } |
| 1435 | if(typeof i3geoOL !== "undefined"){ | 1433 | if(typeof i3geoOL !== "undefined"){ |
| 1436 | - i3GEO.janela.tempoMsg("Para excluir registros do banco de dados utilize a ferramenta de identificacao"); | 1434 | + i3GEO.janela.tempoMsg($trad("meneditor1")); |
| 1437 | } | 1435 | } |
| 1438 | } | 1436 | } |
| 1439 | } | 1437 | } |
| 1440 | else{ | 1438 | else{ |
| 1441 | - i3GEO.janela.tempoMsg("Selecione pelo menos um elemento"); | 1439 | + i3GEO.janela.tempoMsg($trad("seluma")); |
| 1442 | } | 1440 | } |
| 1443 | }, | 1441 | }, |
| 1444 | - title: "apaga selecionados", | 1442 | + title: $trad("excsel"), |
| 1445 | type: OpenLayers.Control.TYPE_BUTTON | 1443 | type: OpenLayers.Control.TYPE_BUTTON |
| 1446 | }); | 1444 | }); |
| 1447 | controles.push(button); | 1445 | controles.push(button); |
| @@ -1463,7 +1461,7 @@ i3GEO.editorOL = { | @@ -1463,7 +1461,7 @@ i3GEO.editorOL = { | ||
| 1463 | button = new OpenLayers.Control.Button({ | 1461 | button = new OpenLayers.Control.Button({ |
| 1464 | displayClass: "editorOLpropriedades", | 1462 | displayClass: "editorOLpropriedades", |
| 1465 | trigger: function(){i3GEO.editorOL.propriedades();}, | 1463 | trigger: function(){i3GEO.editorOL.propriedades();}, |
| 1466 | - title: "propriedades", | 1464 | + title: $trad("p13"), |
| 1467 | type: OpenLayers.Control.TYPE_BUTTON | 1465 | type: OpenLayers.Control.TYPE_BUTTON |
| 1468 | }); | 1466 | }); |
| 1469 | controles.push(button); | 1467 | controles.push(button); |
| @@ -1473,7 +1471,7 @@ i3GEO.editorOL = { | @@ -1473,7 +1471,7 @@ i3GEO.editorOL = { | ||
| 1473 | button = new OpenLayers.Control.Button({ | 1471 | button = new OpenLayers.Control.Button({ |
| 1474 | displayClass: "editorOLsalva", | 1472 | displayClass: "editorOLsalva", |
| 1475 | trigger: function(){i3GEO.editorOL.salvaGeometrias();}, | 1473 | trigger: function(){i3GEO.editorOL.salvaGeometrias();}, |
| 1476 | - title: "salva", | 1474 | + title: $trad("salva"), |
| 1477 | type: OpenLayers.Control.TYPE_BUTTON | 1475 | type: OpenLayers.Control.TYPE_BUTTON |
| 1478 | }); | 1476 | }); |
| 1479 | controles.push(button); | 1477 | controles.push(button); |
| @@ -1488,7 +1486,7 @@ i3GEO.editorOL = { | @@ -1488,7 +1486,7 @@ i3GEO.editorOL = { | ||
| 1488 | catch(e) | 1486 | catch(e) |
| 1489 | {window.open("openlayers_ajuda.php");} | 1487 | {window.open("openlayers_ajuda.php");} |
| 1490 | }, | 1488 | }, |
| 1491 | - title: "ajuda", | 1489 | + title: $trad("s1"), |
| 1492 | type: OpenLayers.Control.TYPE_BUTTON | 1490 | type: OpenLayers.Control.TYPE_BUTTON |
| 1493 | }); | 1491 | }); |
| 1494 | controles.push(button); | 1492 | controles.push(button); |
| @@ -1527,7 +1525,7 @@ i3GEO.editorOL = { | @@ -1527,7 +1525,7 @@ i3GEO.editorOL = { | ||
| 1527 | catch(e){} | 1525 | catch(e){} |
| 1528 | } | 1526 | } |
| 1529 | }, | 1527 | }, |
| 1530 | - title: "fecha editor", | 1528 | + title: $trad("x74"), |
| 1531 | type: OpenLayers.Control.TYPE_BUTTON | 1529 | type: OpenLayers.Control.TYPE_BUTTON |
| 1532 | }); | 1530 | }); |
| 1533 | controles.push(button); | 1531 | controles.push(button); |
| @@ -1765,9 +1763,9 @@ i3GEO.editorOL = { | @@ -1765,9 +1763,9 @@ i3GEO.editorOL = { | ||
| 1765 | YAHOO.namespace("editorOL.listaGeometrias"); | 1763 | YAHOO.namespace("editorOL.listaGeometrias"); |
| 1766 | YAHOO.editorOL.listaGeometrias.panel = new YAHOO.widget.Panel("panellistagEditor", {zIndex:20000, iframe:true, width:"320px", visible:false, draggable:true, close:true } ); | 1764 | YAHOO.editorOL.listaGeometrias.panel = new YAHOO.widget.Panel("panellistagEditor", {zIndex:20000, iframe:true, width:"320px", visible:false, draggable:true, close:true } ); |
| 1767 | if(i3GEO && typeof i3GEO != undefined && i3GEO != "") | 1765 | if(i3GEO && typeof i3GEO != undefined && i3GEO != "") |
| 1768 | - {YAHOO.editorOL.listaGeometrias.panel.setHeader("Geometrias <div id='panellistagEditor_minimizaCabecalho' class='container-minimiza'></div>");} | 1766 | + {YAHOO.editorOL.listaGeometrias.panel.setHeader($trad("u6")+" <div id='panellistagEditor_minimizaCabecalho' class='container-minimiza'></div>");} |
| 1769 | else | 1767 | else |
| 1770 | - {YAHOO.editorOL.listaGeometrias.panel.setHeader("Geometrias");} | 1768 | + {YAHOO.editorOL.listaGeometrias.panel.setHeader($trad("u6"));} |
| 1771 | YAHOO.editorOL.listaGeometrias.panel.setFooter(""); | 1769 | YAHOO.editorOL.listaGeometrias.panel.setFooter(""); |
| 1772 | YAHOO.editorOL.listaGeometrias.panel.render(document.body); | 1770 | YAHOO.editorOL.listaGeometrias.panel.render(document.body); |
| 1773 | YAHOO.editorOL.listaGeometrias.panel.center(); | 1771 | YAHOO.editorOL.listaGeometrias.panel.center(); |
| @@ -1786,7 +1784,7 @@ i3GEO.editorOL = { | @@ -1786,7 +1784,7 @@ i3GEO.editorOL = { | ||
| 1786 | geos = i3GEO.desenho.layergrafico.features, | 1784 | geos = i3GEO.desenho.layergrafico.features, |
| 1787 | n = geos.length, | 1785 | n = geos.length, |
| 1788 | ins = "<table class=lista4 >"; | 1786 | ins = "<table class=lista4 >"; |
| 1789 | - ins += "<tr><td><i>Geometrias</i></td><td><i>Opções</i></td><td></td><td></td></tr>"; | 1787 | + ins += "<tr><td><i>"+$trad("u6")+"</i></td><td><i>"+$trad("opcoes")+"</i></td><td></td><td></td></tr>"; |
| 1790 | 1788 | ||
| 1791 | while(n > 0){ | 1789 | while(n > 0){ |
| 1792 | n -= 1; | 1790 | n -= 1; |
| @@ -1794,8 +1792,9 @@ i3GEO.editorOL = { | @@ -1794,8 +1792,9 @@ i3GEO.editorOL = { | ||
| 1794 | ins += "<tr><td>"+g.CLASS_NAME+"</td><td style='cursor:pointer;color:blue' onclick='javascript:i3GEO.editorOL.selFeature("+n+")'>seleciona</td><td style='cursor:pointer;color:blue' onclick='javascript:i3GEO.editorOL.unselFeature("+n+")'>limpa</td><td style='cursor:pointer;color:blue' onclick='javascript:i3GEO.editorOL.flashFeaturesI("+n+")'>brilha</td></tr>"; | 1792 | ins += "<tr><td>"+g.CLASS_NAME+"</td><td style='cursor:pointer;color:blue' onclick='javascript:i3GEO.editorOL.selFeature("+n+")'>seleciona</td><td style='cursor:pointer;color:blue' onclick='javascript:i3GEO.editorOL.unselFeature("+n+")'>limpa</td><td style='cursor:pointer;color:blue' onclick='javascript:i3GEO.editorOL.flashFeaturesI("+n+")'>brilha</td></tr>"; |
| 1795 | } | 1793 | } |
| 1796 | ins += "</table>"; | 1794 | ins += "</table>"; |
| 1797 | - if(geos.length === 0) | ||
| 1798 | - {ins = "Nenhum elemento gráfico encontrado. Utilize as opções de criação de geometrias.";} | 1795 | + if(geos.length === 0){ |
| 1796 | + ins = $trad("meneditor2"); | ||
| 1797 | + } | ||
| 1799 | YAHOO.editorOL.listaGeometrias.panel.show(); | 1798 | YAHOO.editorOL.listaGeometrias.panel.show(); |
| 1800 | if(i3GEO.configura) | 1799 | if(i3GEO.configura) |
| 1801 | {temp = $i("panellistagEditor").getElementsByTagName("div")[2];} | 1800 | {temp = $i("panellistagEditor").getElementsByTagName("div")[2];} |
| @@ -1810,7 +1809,7 @@ i3GEO.editorOL = { | @@ -1810,7 +1809,7 @@ i3GEO.editorOL = { | ||
| 1810 | YAHOO.namespace("editorOL.ferramentas"); | 1809 | YAHOO.namespace("editorOL.ferramentas"); |
| 1811 | YAHOO.editorOL.ferramentas.panel = new YAHOO.widget.Panel("panelferramentasEditor", {zIndex:20000, iframe:true, width:"300px", visible:false, draggable:true, close:true } ); | 1810 | YAHOO.editorOL.ferramentas.panel = new YAHOO.widget.Panel("panelferramentasEditor", {zIndex:20000, iframe:true, width:"300px", visible:false, draggable:true, close:true } ); |
| 1812 | var ins = "" + | 1811 | var ins = "" + |
| 1813 | - '<p class=paragrafo >Operações sobre as figuras selecionadas:</p>' + | 1812 | + '<p class=paragrafo >'+$trad("opsel")+':</p>' + |
| 1814 | '<select onchange="i3GEO.editorOL.processageo(this.value);this.value = \'\'" >' + | 1813 | '<select onchange="i3GEO.editorOL.processageo(this.value);this.value = \'\'" >' + |
| 1815 | ' <option value="">---</option>' + | 1814 | ' <option value="">---</option>' + |
| 1816 | ' <option value=union >União</option>'; | 1815 | ' <option value=union >União</option>'; |
classesjs/dicionario.js
| @@ -2213,6 +2213,84 @@ g_traducao = { | @@ -2213,6 +2213,84 @@ g_traducao = { | ||
| 2213 | pt: "selecionar tudo", | 2213 | pt: "selecionar tudo", |
| 2214 | en:"", | 2214 | en:"", |
| 2215 | es:"" | 2215 | es:"" |
| 2216 | +}], | ||
| 2217 | +"excsel": [ | ||
| 2218 | +{ | ||
| 2219 | + pt: "Remove os elementos selecionados", | ||
| 2220 | + en:"", | ||
| 2221 | + es:"" | ||
| 2222 | +}], | ||
| 2223 | +"opcoes": [ | ||
| 2224 | +{ | ||
| 2225 | + pt: "Opções", | ||
| 2226 | + en:"", | ||
| 2227 | + es:"" | ||
| 2228 | +}], | ||
| 2229 | +"meneditor1": [ | ||
| 2230 | +{ | ||
| 2231 | + pt: "Para excluir registros do banco de dados utilize a ferramenta de identificação", | ||
| 2232 | + en:"", | ||
| 2233 | + es:"" | ||
| 2234 | +}], | ||
| 2235 | +"meneditor2": [ | ||
| 2236 | +{ | ||
| 2237 | + pt: "Nenhum elemento gráfico encontrado. Utilize as opções de criação de geometrias.", | ||
| 2238 | + en:"", | ||
| 2239 | + es:"" | ||
| 2240 | +}], | ||
| 2241 | +"meneditor3": [ | ||
| 2242 | +{ | ||
| 2243 | + pt: "Você precisa fazer login para usar a opção de salvar no banco de dados", | ||
| 2244 | + en:"", | ||
| 2245 | + es:"" | ||
| 2246 | +}], | ||
| 2247 | +"meneditor4": [ | ||
| 2248 | +{ | ||
| 2249 | + pt: "Valores iguais ao original", | ||
| 2250 | + en:"", | ||
| 2251 | + es:"" | ||
| 2252 | +}], | ||
| 2253 | +"meneditor5": [ | ||
| 2254 | +{ | ||
| 2255 | + pt: "É necessário ter um código para poder excluir", | ||
| 2256 | + en:"", | ||
| 2257 | + es:"" | ||
| 2258 | +}], | ||
| 2259 | +"meneditor6": [ | ||
| 2260 | +{ | ||
| 2261 | + pt: "Após escolher a medida da variável, clique no mapa para escolher o limite geográfico.", | ||
| 2262 | + en:"", | ||
| 2263 | + es:"" | ||
| 2264 | +}], | ||
| 2265 | +"opsel": [ | ||
| 2266 | +{ | ||
| 2267 | + pt: "Operações sobre as figuras selecionadas", | ||
| 2268 | + en:"", | ||
| 2269 | + es:"" | ||
| 2270 | +}], | ||
| 2271 | +"capturar": [ | ||
| 2272 | +{ | ||
| 2273 | + pt: "Capturar elemento de um tema", | ||
| 2274 | + en:"", | ||
| 2275 | + es:"" | ||
| 2276 | +}], | ||
| 2277 | +"salvexc": [ | ||
| 2278 | +{ | ||
| 2279 | + pt: "Salvar/excluir dados", | ||
| 2280 | + en:"", | ||
| 2281 | + es:"" | ||
| 2282 | +}], | ||
| 2283 | +"edatrib": [ | ||
| 2284 | +{ | ||
| 2285 | + pt: "Editar atributos", | ||
| 2286 | + en:"", | ||
| 2287 | + es:"" | ||
| 2288 | +}], | ||
| 2289 | +"camedit": [ | ||
| 2290 | +{ | ||
| 2291 | + pt: "Camadas editáveis", | ||
| 2292 | + en:"", | ||
| 2293 | + es:"" | ||
| 2216 | }] | 2294 | }] |
| 2217 | }; | 2295 | }; |
| 2218 | //YAHOO.log("carregou dicionario", "Classes i3geo"); | 2296 | //YAHOO.log("carregou dicionario", "Classes i3geo"); |