From afa02bc69f4bdeda187221f3ad9ebcc2f768034f Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 21 Jan 2008 18:19:12 +0000 Subject: [PATCH] --- classesjs/jsobjects/jsUI-Treeview/component_i3geo.js | 249 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ documentacao/index/General17.html | 39 +++++++++++++++++++++++++++++++++++++++ documentacao/search/GeneralNumbers.html | 20 ++++++++++++++++++++ documentacao/search/VariablesNumbers.html | 20 ++++++++++++++++++++ imagens/visual/default/sprite.png | Bin 0 -> 8430 bytes imagens/visual/laranja/branco.gif | Bin 0 -> 49 bytes imagens/visual/laranja/sprite.png | Bin 0 -> 8430 bytes 7 files changed, 328 insertions(+), 0 deletions(-) create mode 100644 classesjs/jsobjects/jsUI-Treeview/component_i3geo.js create mode 100644 documentacao/index/General17.html create mode 100644 documentacao/search/GeneralNumbers.html create mode 100644 documentacao/search/VariablesNumbers.html create mode 100644 imagens/visual/default/sprite.png create mode 100644 imagens/visual/laranja/branco.gif create mode 100644 imagens/visual/laranja/sprite.png diff --git a/classesjs/jsobjects/jsUI-Treeview/component_i3geo.js b/classesjs/jsobjects/jsUI-Treeview/component_i3geo.js new file mode 100644 index 0000000..20540bc --- /dev/null +++ b/classesjs/jsobjects/jsUI-Treeview/component_i3geo.js @@ -0,0 +1,249 @@ +function treeviewNew(treeviewName, skinName, treeviewParent, rootDir) +{ + if (treeviewName == null || treeviewName == "") + return false; + if (rootDir == null) + rootDir = g_locaplic+"/classesjs/jsobjects"; + jsUIGblAddSkin("jsUI-Treeview", skinName, rootDir); + if (treeviewParent == null || treeviewParent == "" || treeviewParent == undefined) + treeviewParent = document.body; + if (typeof(treeviewParent) != "object") + treeviewParent = document.getElementById(treeviewParent); + var tvDiv = document.createElement("div"); + //tvDiv.style.height = "100%"; + tvDiv.style.width = "100%"; + tvDiv.style.overflow = "auto"; //era auto + tvDiv.className = "TreeviewMain"; + tvDiv.id = treeviewName; + treeviewParent.appendChild(tvDiv); + var tbObject = TreeviewPvtConstructTaskbar(treeviewName, tvDiv, treeviewParent, rootDir); + return tbObject; +} + +// Private constructor method +// Used to attach taskbar elements and methods to a given instance of the treeview +function TreeviewPvtConstructTaskbar(treeviewName, treeviewDiv, treeviewParent, rootDir) +{ + var tbObject; + treeviewName = document.getElementById(treeviewName); + eval("treeviewName.element = treeviewDiv"); //element + /*eval(treeviewName + ".createItem = TreeviewPubCreateItem"); //method + eval(treeviewName + ".itemClick = doNothing"); //event + eval(treeviewName + ".itemExpand = doNothing"); //event + eval(treeviewName + ".TreeviewParent = treeviewParent"); //private property + eval(treeviewName + ".rootDir = rootDir"); //private property + eval("tbObject = " + treeviewName); //assignment*/ + eval("treeviewName.createItem = TreeviewPubCreateItem"); //method + eval("treeviewName.itemClick = doNothing"); //event + eval("treeviewName.itemExpand = doNothing"); //event + eval("treeviewName.TreeviewParent = treeviewParent"); //private property + eval("treeviewName.rootDir = rootDir"); //private property + eval("tbObject = treeviewName"); //assignment + return tbObject; +} + +function TreeviewPubCreateItem(itemID, itemName, itemImg, hasChildren, preload, show, parentID) //public name: createItem +{ + var naveg; + if (document.all) + naveg = "IE"; + else + naveg = "MOZ"; + var tbItem = document.createElement("ul"); + //tbItem.style.backgroundColor="gray"; + tbItem.id = itemID; + if (parentID == null) + tbItem.style.marginBottom = "0px"; + tbItem.className = "TreeviewItem"; + if (naveg == "MOZ") + tbItem.style.overflow = "auto"; + else + tbItem.style.overflow = "hidden"; + tbItem.hasChildren = hasChildren; + tbItem.preload = preload; + //tbItem.onmouseover = TreeviewPvtItemOver; + //tbItem.onmouseout = TreeviewPvtItemOut; + if (!show) + tbItem.style.display = "none"; + var tbImg = document.createElement("img"); + tbImg.className = "mais"; + tbImg.src = this.rootDir + "/../../imagens/branco.gif"; + if (hasChildren == false) + tbImg.className = "menos"; + else if (hasChildren == true) + tbImg.className = "mais"; + else + tbImg.src = this.rootDir + "/jsUI-Treeview/unknown.gif"; + tbImg.onclick = TreeviewPvtExpandClick; + //incluido pelo edmar + if (hasChildren != false) + {tbItem.appendChild(tbImg);} + + if (typeof(itemImg)=="object") + {var tbIcon = itemImg;} + else + { + var tbIcon = document.createElement("img"); + //tbIcon.src = itemImg; + tbIcon.src = this.rootDir + "/../../imagens/branco.gif"; + tbIcon.className = itemImg; + } + if (itemImg != null) + { + tbIcon.onclick = TreeviewPvtItemClick; + tbIcon.ondblclick = TreeviewPvtExpandClick; + tbIcon.style.marginRight = "4px"; + //tbIcon.align = "absmiddle"; + tbItem.appendChild(tbIcon); + } + var tbText = document.createElement("span"); + //tbText.style.backgroundColor="gray" + tbText.className = "TreeviewItemTextOut"; + //tbText.ondblclick = TreeviewPvtExpandClick; + tbText.ondblclick = TreeviewPvtExpandClick; + tbText.innerHTML += itemName; + tbItem.appendChild(tbText); + if (parentID == null || parentID == "") + this.element.appendChild(tbItem); + else + { + var parentObj = document.getElementById(parentID); + if (parentObj.hasChildren != false) + { + parentObj.appendChild(tbItem); + if (show) + { + parentObj.childNodes[0].className = "menos"; + //see if there are hidden children and show them too + var allArray = parentObj.childNodes; + if (allArray.length > 0) + { + for (var a=0;a 0) + { + for (var a=0;a + +Index - I3Geo + + + + + + + + + +
Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
W
 w, Mapa. objmapa
 WCaguarde
 WCativa
 WCchamadados
 WCcriano
 WCgetcapabilities
 WCinicia
 WClistafuncoes
 WClistaServicos
 WClistatemas
 WCmostraDados
 WCmostraFuncoes
 WCmostraParFuncoes
 WCmostraTemas
 WCselParFuncao
 WCverMapa
 WCwsdl
 wd(depreciado)
 wdocaf
 wdocaf2
 wdocafechaf
 web services
 Webservices
 wiki
 wms_bbox
 wms_bbox2txt
 wms_descricao
 wms_descricaon
 wms_descricaov
 wms_estilos
 wms_exceptions
 wms_formats
 wms_formatsinfo
 wms_layer2html
 wms_layer3html
 wms_layer4html
 wms_layers
 wms_onlineresource
 wms_srs
 wms_title
 wms_version
 wms_xpnode2content
 WS Cliente
 wscliente.js
X
 xml2html
$xmlsistemas, Menutemas
 xy2imagem
 xy2wkt
Z
 zerocal/ index.htm
 zerocal/ index.html
 zoomboxf
 zoomiauto
 zoomIP
 zoomoauto
 zoomponto
 zoomPonto
 zoomtema
 zoomTema, Temas
 zoomtemaf
 zoomtot
+ +
Largura do mapa criado
function WCaguarde()
Gera mensagem de aguarde.
function WCativa(id)
Ativa uma opção.
function WCchamadados(retorno)
Busca os dados de uma função de um serviço
function WCcriano(idnovo,
texto,
imagem,
pai,
tipo)
Cria um nó na árvore de opções
function WCgetcapabilities(tipo)
Executa ajax para buscar resultado do getcapabilities.
function WCinicia()
Monta a árvore de opções e preenche a DIV arvore.
function WClistafuncoes()
Busca a lista de funções de um WS
function WClistaServicos(tipo)
Lista os serviços cadastrados.
function WClistatemas()
Busca a lista de temas de um WMS ou WFS
function WCmostraDados(retorno)
Mostra os dados de uma função de um serviço
function WCmostraFuncoes(retorno)
Mostra o retorno da chamada ajax que busca a lista de temas
function WCmostraParFuncoes(retorno)
Mostra o retorno da chamada ajax que busca as funcoes de um WS
function WCmostraTemas(retorno)
Mostra o retorno da chamada ajax que busca a lista de temas
function WCselParFuncao(funcao)
Lista os parâmetros de uma função para o usuário digitar os valores.
function WCverMapa()
Mostra o mapa
function WCwsdl()
Abre o servico WSDL em uma nova janela
wd
Indica se a janela interna foi clicada.
function wdocaf(wlargura,
waltura,
wsrc,
nx,
ny,
texto)
Abre a janela docável para executar algum programa.
function wdocaf2(wlargura,
waltura,
wsrc,
nx,
ny,
texto)
Abre uma segunda janela docável para executar algum programa relativo a outra janela.
function wdocafechaf(odoca)
Fecha uma janela docável.
Processa serviços OGC.
function wiki()
Abre a janela de busca na wikipedia.
function wms_bbox($dom)
Retorna o BBOX de um WMS.
function wms_bbox2txt($node)
Convert a BoundingBox node into a text string de um wms.
function wms_descricao ($dom,
$xp)
Retorna a descrição de um serviço (nó).
function wms_descricaon ($dom,
$xp,
$n)
Retorna a descrição de um serviço (filho de um nó).
function wms_descricaov ($dom,
$xp,
$attrib)
Retorna a descrição de um serviço (atributo).
function wms_estilos ($dom)
Retorna os estilos de um WMS.
function wms_exceptions ($dom)
Retorna as exceptions de um WMS.
function wms_formats ($dom)
Retorna os formatos de imagem de um WMS.
function wms_formatsinfo ($dom)
Retorna os formatos existentes de retorno da opção getfeatureinfo.
function wms_layer2html( $node,
$tipo ,
 $layer)
Convert a Layer node into an HTML representation wms.
function wms_layer3html($node)
Convert a Layer node into an HTML representation sem radio.
function wms_layer4html($layer)
Convert a Layer into an HTML WMS.
function wms_layers ($dom)
Retorna os layers de um WMS.
function wms_onlineresource ($dom)
Retorna o recurso on-line de um WMS.
function wms_srs($dom)
Retorna os SRSs WMS.
function wms_title ($dom)
Retorna o título de um WMS.
function wms_version ($dom)
Retorna a versao.
function wms_xpnode2content($xp_node)
Read the content child node of an element tag node WMS.
Funções de leitura de web services e montagem da lista de serviços para conexão remota.
+ + + +
function xml2html ($str)
Converte caracteres XML em HTML.
protected $xmlsistemas
xml com a lista de sistemas
function xy2imagem($map_file,
$xy)
Converte coordenadas geograficas em coordenadas de imagem e retorna um ponto.
function xy2wkt($xy)
Converte coordenadas em wkt.
+ + + +
function zoomboxf (tipo)
Faz o zoom no mapa utilizando a opção de desenhar um retângulo.
function zoomiauto()
Aproxima o mapa tendo o centro como referência.
function zoomIP()
Localiza no mapa o usuário baseado em seu número IP.
function zoomoauto()
Afasta o mapa tendo o centro como referência.
Desloca o centro do mapa para um ponto específico.
function zoomPonto()
Localiza uma coordenada no mapa.
function zoomPonto($xy)
Desloca o centro do mapa para um ponto específico.
Muda a extensão geográfica do mapa de acordo com a abrangência de um tema.
function zoomTema()
Zoom para um tema.
function zoomtemaf(tema)
Zoom para o tema
function zoomtot()
Zoom para a extensão default.
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/documentacao/search/GeneralNumbers.html b/documentacao/search/GeneralNumbers.html new file mode 100644 index 0000000..5d90c87 --- /dev/null +++ b/documentacao/search/GeneralNumbers.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + +
Loading...
9”;, $mensagemInicia=”I3Geo versão 3
Searching...
No Matches
\ No newline at end of file diff --git a/documentacao/search/VariablesNumbers.html b/documentacao/search/VariablesNumbers.html new file mode 100644 index 0000000..5d90c87 --- /dev/null +++ b/documentacao/search/VariablesNumbers.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + +
Loading...
9”;, $mensagemInicia=”I3Geo versão 3
Searching...
No Matches
\ No newline at end of file diff --git a/imagens/visual/default/sprite.png b/imagens/visual/default/sprite.png new file mode 100644 index 0000000..743f35e Binary files /dev/null and b/imagens/visual/default/sprite.png differ diff --git a/imagens/visual/laranja/branco.gif b/imagens/visual/laranja/branco.gif new file mode 100644 index 0000000..07d04f2 Binary files /dev/null and b/imagens/visual/laranja/branco.gif differ diff --git a/imagens/visual/laranja/sprite.png b/imagens/visual/laranja/sprite.png new file mode 100644 index 0000000..743f35e Binary files /dev/null and b/imagens/visual/laranja/sprite.png differ -- libgit2 0.21.2