Commit 01d1e6c907840bae2eefa99c83fce25ac07973e0
1 parent
bab8db78
Exists in
master
and in
7 other branches
Opção imprimir na barra de botões da árvore de camadas
Showing
6 changed files
with
97 additions
and
5 deletions
Show diff stats
classesjs/classe_arvoredecamadas.js
| @@ -48,8 +48,9 @@ | @@ -48,8 +48,9 @@ | ||
| 48 | if (typeof (i3GEO) === 'undefined') { | 48 | if (typeof (i3GEO) === 'undefined') { |
| 49 | var i3GEO = {}; | 49 | var i3GEO = {}; |
| 50 | } | 50 | } |
| 51 | -//TODO incluir opcao para adicionar a arvore as camadas de fundo | ||
| 52 | -//XODO incluir opcao para imprimir na arvore de camadas | 51 | +//XODO incluir opcao para adicionar a arvore as camadas de fundo |
| 52 | +//TODO incluir opcao para icone de imprimir na arvore de camadas | ||
| 53 | +//TODO incluir icone de ferramentas | ||
| 53 | i3GEO.arvoreDeCamadas = | 54 | i3GEO.arvoreDeCamadas = |
| 54 | { | 55 | { |
| 55 | /** | 56 | /** |
| @@ -328,6 +329,20 @@ i3GEO.arvoreDeCamadas = | @@ -328,6 +329,20 @@ i3GEO.arvoreDeCamadas = | ||
| 328 | */ | 329 | */ |
| 329 | ALTERAOPACIDADE : true, | 330 | ALTERAOPACIDADE : true, |
| 330 | /** | 331 | /** |
| 332 | + * Propriedade: IMPRIMIR | ||
| 333 | + * | ||
| 334 | + * Mostra ou não a opção que permite abrir a ferramenta de impressão | ||
| 335 | + * | ||
| 336 | + * Tipo: | ||
| 337 | + * | ||
| 338 | + * {boolean} | ||
| 339 | + * | ||
| 340 | + * Default: | ||
| 341 | + * | ||
| 342 | + * true | ||
| 343 | + */ | ||
| 344 | + IMPRIMIR : true, | ||
| 345 | + /** | ||
| 331 | * Propriedade: ANIMAMAPA | 346 | * Propriedade: ANIMAMAPA |
| 332 | * | 347 | * |
| 333 | * Mostra ou não a opção que permite gerar uma animação do mapa, ligando e desligando camadas | 348 | * Mostra ou não a opção que permite gerar uma animação do mapa, ligando e desligando camadas |
| @@ -1017,6 +1032,11 @@ i3GEO.arvoreDeCamadas = | @@ -1017,6 +1032,11 @@ i3GEO.arvoreDeCamadas = | ||
| 1017 | "<img " + estilo("animaMapa") + " onclick='i3GEO.mapa.dialogo.animacao();' id='animaMapa' title='" + $trad("p21") | 1032 | "<img " + estilo("animaMapa") + " onclick='i3GEO.mapa.dialogo.animacao();' id='animaMapa' title='" + $trad("p21") |
| 1018 | + "' />"; | 1033 | + "' />"; |
| 1019 | } | 1034 | } |
| 1035 | + if (this.IMPRIMIR === true) { | ||
| 1036 | + ins += | ||
| 1037 | + "<img " + estilo("imprimirMapa") + " onclick='i3GEO.mapa.dialogo.imprimir();' id='imprimirMapa' title='" | ||
| 1038 | + + $trad("d12") + "' />"; | ||
| 1039 | + } | ||
| 1020 | if (this.LIGARDESLIGARTODOS === true) { | 1040 | if (this.LIGARDESLIGARTODOS === true) { |
| 1021 | ins += | 1041 | ins += |
| 1022 | " <img " + estilo("olhoAberto") | 1042 | " <img " + estilo("olhoAberto") |
css/botoes2.css
| 1 | -#abreJanelaLegenda,#localizar,#barraedicao,#abregoogleearth,#uploadgpx,#metar,#carouselTemas,#identificaBalao,#rota,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d | 1 | +#imprimirMapa,#abreJanelaLegenda,#localizar,#barraedicao,#abregoogleearth,#uploadgpx,#metar,#carouselTemas,#identificaBalao,#rota,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d |
| 2 | { | 2 | { |
| 3 | margin: 2px; | 3 | margin: 2px; |
| 4 | cursor: pointer; | 4 | cursor: pointer; |
| @@ -938,6 +938,15 @@ | @@ -938,6 +938,15 @@ | ||
| 938 | height: 18px; | 938 | height: 18px; |
| 939 | } | 939 | } |
| 940 | 940 | ||
| 941 | +#imprimirMapa { | ||
| 942 | + background-image: URL('../imagens/sprite.png'); | ||
| 943 | + background-repeat: no-repeat; | ||
| 944 | + background-position: 0px -2250px; | ||
| 945 | + cursor: pointer; | ||
| 946 | + width: 18px; | ||
| 947 | + height: 18px; | ||
| 948 | +} | ||
| 949 | + | ||
| 941 | #animaMapa { | 950 | #animaMapa { |
| 942 | background-image: URL('../imagens/sprite.png'); | 951 | background-image: URL('../imagens/sprite.png'); |
| 943 | background-repeat: no-repeat; | 952 | background-repeat: no-repeat; |
ferramentas/editorsql/index.js
| @@ -41,8 +41,8 @@ if(typeof(i3GEOF) === 'undefined'){ | @@ -41,8 +41,8 @@ if(typeof(i3GEOF) === 'undefined'){ | ||
| 41 | /* | 41 | /* |
| 42 | Classe: i3GEOF.editorsql | 42 | Classe: i3GEOF.editorsql |
| 43 | */ | 43 | */ |
| 44 | -//XODO incluir opcao para listar uma amostra dos valores de uma coluna | ||
| 45 | -//XODO incluir editor de filtro | 44 | +//TODO incluir opcao para listar uma amostra dos valores de uma coluna |
| 45 | +//TODO incluir editor de filtro | ||
| 46 | i3GEOF.editorsql = { | 46 | i3GEOF.editorsql = { |
| 47 | /* | 47 | /* |
| 48 | Variavel: aguarde | 48 | Variavel: aguarde |
ferramentas/preferencias/dicionario.js
| @@ -464,5 +464,40 @@ i3GEOF.preferencias.dicionario = { | @@ -464,5 +464,40 @@ i3GEOF.preferencias.dicionario = { | ||
| 464 | pt : "O nó de cada tema possuí um ícone que permite expandir/contrair", | 464 | pt : "O nó de cada tema possuí um ícone que permite expandir/contrair", |
| 465 | en : "", | 465 | en : "", |
| 466 | es : "" | 466 | es : "" |
| 467 | + } ], | ||
| 468 | + 'permiteArrastar' : [ { | ||
| 469 | + pt : "Permite arrastar e soltar para modificar a ordem das camadas no mapa", | ||
| 470 | + en : "", | ||
| 471 | + es : "" | ||
| 472 | + } ], | ||
| 473 | + 'mostraIconeRefresh' : [ { | ||
| 474 | + pt : "Mostra o ícone de refresh", | ||
| 475 | + en : "", | ||
| 476 | + es : "" | ||
| 477 | + } ], | ||
| 478 | + 'permiteArrastarLixeira' : [ { | ||
| 479 | + pt : "Permite arrastar e soltar para remover uma camada do mapa", | ||
| 480 | + en : "", | ||
| 481 | + es : "" | ||
| 482 | + } ], | ||
| 483 | + 'mostraIconeOpacidade' : [ { | ||
| 484 | + pt : "Mostra o ícone que abre a ferramenta para modificar a opacidade do mapa", | ||
| 485 | + en : "", | ||
| 486 | + es : "" | ||
| 487 | + } ], | ||
| 488 | + 'mostraIconeImprimir' : [ { | ||
| 489 | + pt : "Mostra o ícone que abre a ferramenta para imprimir o mapa", | ||
| 490 | + en : "", | ||
| 491 | + es : "" | ||
| 492 | + } ], | ||
| 493 | + 'mostraIconeAnima' : [ { | ||
| 494 | + pt : "Mostra o ícone que abre a ferramenta de animação", | ||
| 495 | + en : "", | ||
| 496 | + es : "" | ||
| 497 | + } ], | ||
| 498 | + 'mostraIconeLigar' : [ { | ||
| 499 | + pt : "Mostra o ícone que permite ligar ou desligar todas as camadas", | ||
| 500 | + en : "", | ||
| 501 | + es : "" | ||
| 467 | } ] | 502 | } ] |
| 468 | }; | 503 | }; |
ferramentas/preferencias/index.js
| @@ -203,6 +203,34 @@ i3GEOF.preferencias = { | @@ -203,6 +203,34 @@ i3GEOF.preferencias = { | ||
| 203 | tipo: "multiselect", | 203 | tipo: "multiselect", |
| 204 | elemento: "i3GEO.arvoreDeCamadas.FUNCOES", | 204 | elemento: "i3GEO.arvoreDeCamadas.FUNCOES", |
| 205 | opcoes: i3GEO.arvoreDeCamadas.FUNCOES | 205 | opcoes: i3GEO.arvoreDeCamadas.FUNCOES |
| 206 | + },{ | ||
| 207 | + titulo: $trad('permiteArrastar',i3GEOF.preferencias.dicionario), | ||
| 208 | + tipo: "boolean", | ||
| 209 | + elemento: "i3GEO.arvoreDeCamadas.ARRASTARORDEM" | ||
| 210 | + },{ | ||
| 211 | + titulo: $trad('mostraIconeRefresh',i3GEOF.preferencias.dicionario), | ||
| 212 | + tipo: "boolean", | ||
| 213 | + elemento: "i3GEO.arvoreDeCamadas.REFRESH" | ||
| 214 | + },{ | ||
| 215 | + titulo: $trad('permiteArrastarLixeira',i3GEOF.preferencias.dicionario), | ||
| 216 | + tipo: "boolean", | ||
| 217 | + elemento: "i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA" | ||
| 218 | + },{ | ||
| 219 | + titulo: $trad('mostraIconeOpacidade',i3GEOF.preferencias.dicionario), | ||
| 220 | + tipo: "boolean", | ||
| 221 | + elemento: "i3GEO.arvoreDeCamadas.ALTERAOPACIDADE" | ||
| 222 | + },{ | ||
| 223 | + titulo: $trad('mostraIconeImprimir',i3GEOF.preferencias.dicionario), | ||
| 224 | + tipo: "boolean", | ||
| 225 | + elemento: "i3GEO.arvoreDeCamadas.IMPRIMIR" | ||
| 226 | + },{ | ||
| 227 | + titulo: $trad('mostraIconeAnima',i3GEOF.preferencias.dicionario), | ||
| 228 | + tipo: "boolean", | ||
| 229 | + elemento: "i3GEO.arvoreDeCamadas.ANIMAMAPA" | ||
| 230 | + },{ | ||
| 231 | + titulo: $trad('mostraIconeLigar',i3GEOF.preferencias.dicionario), | ||
| 232 | + tipo: "boolean", | ||
| 233 | + elemento: "i3GEO.arvoreDeCamadas.LIGARDESLIGARTODOS" | ||
| 206 | } | 234 | } |
| 207 | ] | 235 | ] |
| 208 | },{ | 236 | },{ |
imagens/sprite.png