diff --git a/classesjs/classe_analise.js b/classesjs/classe_analise.js index ffe91f6..54ba127 100644 --- a/classesjs/classe_analise.js +++ b/classesjs/classe_analise.js @@ -73,10 +73,7 @@ i3GEO.analise = { * Ferramenta mapa de calor */ heatmap : function() { - i3GEO.util.dialogoFerramenta( - "i3GEO.analise.dialogo.heatmap()", - "heatmap", - "heatmap"); + i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.heatmap()","heatmap","heatmap","dependencias.php","i3GEOF.heatmap.iniciaJanelaFlutuante()"); }, /** * Function: saiku diff --git a/ferramentas/heatmap/index.js b/ferramentas/heatmap/index.js index 12616ee..877d36c 100644 --- a/ferramentas/heatmap/index.js +++ b/ferramentas/heatmap/index.js @@ -50,6 +50,18 @@ i3GEOF.heatmap = i3GEOF.heatmap.iniciaDicionario(); }, /** + * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php + */ + MUSTACHE : "", + /** + * Susbtitutos para o template + */ + mustacheHash : function() { + var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.heatmap.dicionario); + dicionario["locaplic"] = i3GEO.configura.locaplic; + return dicionario; + }, + /** * Function: iniciaDicionario * * Carrega o dicionário e chama a função que inicia a ferramenta @@ -93,11 +105,7 @@ i3GEOF.heatmap = * String com o código html */ html : function() { - var ins = ''; - ins += '
'; - ins += '
'; - ins += '
'; - ins += '
'; + var ins = Mustache.render(i3GEOF.heatmap.MUSTACHE, i3GEOF.heatmap.mustacheHash()); return ins; }, /** @@ -133,26 +141,20 @@ i3GEOF.heatmap = } }, t0 : function() { - var ins = - "" - + "

" + $trad('ajuda', i3GEOF.heatmap.dicionario) + "

" - + $trad('ajuda2', i3GEOF.heatmap.dicionario); i3GEO.util.proximoAnterior( "", "i3GEOF.heatmap.t1()", - ins, + "", "i3GEOFgradeDePontost0", "i3GEOheatmapresultado", true, "i3GEOF.heatmap_rodape"); }, t1 : function() { - var ins = "

" + $trad('selecionaTema', i3GEOF.heatmap.dicionario) + ":

"; - ins += "
"; i3GEO.util.proximoAnterior( "i3GEOF.heatmap.t0()", "i3GEOF.heatmap.t2()", - ins, + "", "i3GEOF.heatmap.t1", "i3GEOheatmapresultado", true, @@ -160,15 +162,10 @@ i3GEOF.heatmap = i3GEOF.heatmap.comboTemasSel(); }, t2 : function() { - var ins = "

" + $trad('valorPonto', i3GEOF.heatmap.dicionario) + "

" - + "

" - + "

" + $trad('selecionaAtributo', i3GEOF.heatmap.dicionario) + "

" - + "
"; - i3GEO.util.proximoAnterior( "i3GEOF.heatmap.t1()", "i3GEOF.heatmap.t3()", - ins, + "", "i3GEOF.heatmap.t2", "i3GEOheatmapresultado", true, @@ -176,41 +173,25 @@ i3GEOF.heatmap = i3GEOF.heatmap.comboItens(); }, t3 : function() { - var ins = "

" + $trad('tituloNovaCamada', i3GEOF.heatmap.dicionario); - ins += - "

"; - - ins += "

" + $trad('valorRaio', i3GEOF.heatmap.dicionario); - ins += "

"; - - ins += "

" + $trad('opacidade', i3GEOF.heatmap.dicionario); - ins += - "

"; - - //ins += "

" + $trad('valorMaximoPonto', i3GEOF.heatmap.dicionario); - //ins += "

"; - i3GEO.util.proximoAnterior( "i3GEOF.heatmap.t2()", "i3GEOF.heatmap.t4()", - ins, + "", "i3GEOF.heatmap.t3", "i3GEOheatmapresultado", true, "i3GEOF.heatmap_rodape"); }, t4 : function() { - var b,ins = "

" + $trad('adicionaTema', i3GEOF.heatmap.dicionario); - ins += "

"; i3GEO.util.proximoAnterior( "i3GEOF.heatmap.t3()", "", - ins, + "", "i3GEOF.heatmap.t4", "i3GEOheatmapresultado", true, "i3GEOF.heatmap_rodape"); - b = new YAHOO.widget.Button("i3GEOheatmapbotao1", { + var b = new YAHOO.widget.Button("i3GEOheatmapbotao1", { onclick : { fn : i3GEOF.heatmap.criaheatmap } diff --git a/ferramentas/heatmap/template_mst.html b/ferramentas/heatmap/template_mst.html index fb78edc..8618adb 100644 --- a/ferramentas/heatmap/template_mst.html +++ b/ferramentas/heatmap/template_mst.html @@ -1,2 +1,52 @@ -

+
+
+ +

{{{ajuda}}} +

{{{ajuda2}}} +

+
+

{{{selecionaTema}}}:

+
+
+
+

{{{valorPonto}}}

+
+ +
+
+

{{{selecionaAtributo}}}

+
+
+
+

+ {{{tituloNovaCamada}}}
+

+
+ +
+
+
+

+ {{{valorRaio}}}
+

+
+ +
+
+
+

+ {{{opacidade}}}
+

+
+ +
+
+
+

+ {{{adicionaTema}}}
+
+ +

+
\ No newline at end of file -- libgit2 0.21.2