Commit a808f9e6e57ef9079c07b951b186a6da63bd2672
1 parent
4c4a50ba
Exists in
master
and in
7 other branches
Incluido botão para testar a barra de escalas na ferramenta de modificação dos p…
…arâmetros da escala gráfica inserida no mapa.
Showing
2 changed files
with
13 additions
and
10 deletions
Show diff stats
ferramentas/opcoes_escala/index.htm
@@ -10,16 +10,16 @@ | @@ -10,16 +10,16 @@ | ||
10 | <table summary="" class=lista3 width="90%"> | 10 | <table summary="" class=lista3 width="90%"> |
11 | <tr> | 11 | <tr> |
12 | <td>Largura:</td> | 12 | <td>Largura:</td> |
13 | - <td><input onchange=testaBarra() style="cursor:text" size=4 class=digitar type='text' id=w value='' /></td> | 13 | + <td><input style="cursor:text" size=4 class=digitar type='text' id=w value='' /></td> |
14 | </tr> | 14 | </tr> |
15 | <tr> | 15 | <tr> |
16 | <td>Altura:</td> | 16 | <td>Altura:</td> |
17 | - <td><input onchange=testaBarra() style="cursor:text" size=4 class=digitar type='text' id=h value='' /></td> | 17 | + <td><input style="cursor:text" size=4 class=digitar type='text' id=h value='' /></td> |
18 | </tr> | 18 | </tr> |
19 | <tr> | 19 | <tr> |
20 | <td>Unidade:</td> | 20 | <td>Unidade:</td> |
21 | <td> | 21 | <td> |
22 | - <select onchange=testaBarra() id=unidade > | 22 | + <select id=unidade > |
23 | <option value=3 selected >Metros</option> | 23 | <option value=3 selected >Metros</option> |
24 | <option value=4 >Km</option> | 24 | <option value=4 >Km</option> |
25 | </select> | 25 | </select> |
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | <tr> | 28 | <tr> |
29 | <td>Estilo:</td> | 29 | <td>Estilo:</td> |
30 | <td> | 30 | <td> |
31 | - <select onchange=testaBarra() id=estilo > | 31 | + <select id=estilo > |
32 | <option value=0 selected >Bloco</option> | 32 | <option value=0 selected >Bloco</option> |
33 | <option value=1 >Linear</option> | 33 | <option value=1 >Linear</option> |
34 | <option value=2 >Sem barra</option> | 34 | <option value=2 >Sem barra</option> |
@@ -37,25 +37,27 @@ | @@ -37,25 +37,27 @@ | ||
37 | </tr> | 37 | </tr> |
38 | <tr> | 38 | <tr> |
39 | <td>Intervalos:</td> | 39 | <td>Intervalos:</td> |
40 | - <td><input onchange=testaBarra() style="cursor:text" size=4 class=digitar type='text' id=intervalos value='' /></td> | 40 | + <td><input style="cursor:text" size=4 class=digitar type='text' id=intervalos value='' /></td> |
41 | </tr> | 41 | </tr> |
42 | <tr> | 42 | <tr> |
43 | <td>Cor:</td> | 43 | <td>Cor:</td> |
44 | - <td><input onchange=testaBarra() style="cursor:text" size=12 class=digitar type='text' id=cor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('cor')" /></td> | 44 | + <td><input style="cursor:text" size=12 class=digitar type='text' id=cor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('cor')" /></td> |
45 | </tr> | 45 | </tr> |
46 | <tr> | 46 | <tr> |
47 | <td>Fundo:</td> | 47 | <td>Fundo:</td> |
48 | - <td><input onchange=testaBarra() style="cursor:text" size=12 class=digitar type='text' id=bcor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('bcor')" /></td> | 48 | + <td><input style="cursor:text" size=12 class=digitar type='text' id=bcor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('bcor')" /></td> |
49 | </tr> | 49 | </tr> |
50 | <tr> | 50 | <tr> |
51 | <td>Contorno:</td> | 51 | <td>Contorno:</td> |
52 | - <td><input onchange=testaBarra() style="cursor:text" size=10 class=digitar type='text' id=ocor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('ocor')" /></td> | 52 | + <td><input style="cursor:text" size=10 class=digitar type='text' id=ocor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('ocor')" /></td> |
53 | </tr> | 53 | </tr> |
54 | </table> | 54 | </table> |
55 | <div style=top:10px;left:0px;text-align:left; onclick="executa()"> | 55 | <div style=top:10px;left:0px;text-align:left; onclick="executa()"> |
56 | <input id=botao1 size=20 type=button value="Aplicar" /> | 56 | <input id=botao1 size=20 type=button value="Aplicar" /> |
57 | </div> | 57 | </div> |
58 | - | 58 | + <div style="width:100px;left:100px;position:relative;text-align:left;top:-17px;" onclick="testaBarra()"> |
59 | + <input id=botao2 size=20 type=button value="Testar" /> | ||
60 | + </div> | ||
59 | <div id=teste style=left:0px;top:10px; > | 61 | <div id=teste style=left:0px;top:10px; > |
60 | </div> | 62 | </div> |
61 | </div> | 63 | </div> |
ferramentas/opcoes_escala/index.js
@@ -32,10 +32,10 @@ YAHOO.example.init = function () | @@ -32,10 +32,10 @@ YAHOO.example.init = function () | ||
32 | function onPushButtonsMarkupReady() | 32 | function onPushButtonsMarkupReady() |
33 | { | 33 | { |
34 | new YAHOO.widget.Button("botao1"); | 34 | new YAHOO.widget.Button("botao1"); |
35 | + new YAHOO.widget.Button("botao2"); | ||
35 | } | 36 | } |
36 | YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady); | 37 | YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady); |
37 | }() | 38 | }() |
38 | - | ||
39 | function inicia(retorno) | 39 | function inicia(retorno) |
40 | { | 40 | { |
41 | if (retorno.data != undefined) | 41 | if (retorno.data != undefined) |
@@ -50,6 +50,7 @@ function inicia(retorno) | @@ -50,6 +50,7 @@ function inicia(retorno) | ||
50 | $i("cor").value = cor | 50 | $i("cor").value = cor |
51 | $i("bcor").value = bcor | 51 | $i("bcor").value = bcor |
52 | $i("ocor").value = ocor | 52 | $i("ocor").value = ocor |
53 | + testaBarra() | ||
53 | } | 54 | } |
54 | aguarde("none") | 55 | aguarde("none") |
55 | } | 56 | } |