diff --git a/aplicmap/legenda9.htm b/aplicmap/legenda9.htm
index 2aa964a..dd095f3 100755
--- a/aplicmap/legenda9.htm
+++ b/aplicmap/legenda9.htm
@@ -7,7 +7,7 @@
- |
@@ -30,6 +30,7 @@
|
+
[if name=layer_type oper=eq value=0]
[/if]
@@ -45,8 +46,11 @@
[if name=layer_type oper=eq value=8]
[/if]
+ [leg_class_name]
+
+
+
|
- [leg_class_name] |
[/if]
[/if]
diff --git a/classesjs/classe_tema.js b/classesjs/classe_tema.js
index 7568d02..fe3cd96 100644
--- a/classesjs/classe_tema.js
+++ b/classesjs/classe_tema.js
@@ -734,6 +734,33 @@ i3GEO.tema =
"i3GEOF.legenda.iniciaJanelaFlutuante()");
},
/**
+ * Function: editaClasseLegenda
+ *
+ * Abre a janela de dialogo da ferramenta legenda deiretamente no editor de simbolo de uma classe especifica
+ *
+ * Parametros:
+ *
+ * {string} - id que identifica o tema conforme definido no map file
+ */
+ editaClasseLegenda : function(idtema,idclasse) {
+ i3GEO.mapa.ativaTema(idtema);
+ var temp = function() {
+ i3GEOF.legenda.aposIniciar = function(){
+ i3GEOF.legenda.classe = 0;
+ i3GEOF.legenda.estilo = 0;
+ i3GEOF.legenda.editaSimbolo('i3GEOlegendaid_'+idtema+"-"+idclasse);
+ i3GEOF.legenda.aposIniciar = function(){};
+ };
+ i3GEOF.legenda.iniciaJanelaFlutuante(idtema);
+ };
+ i3GEO.util.dialogoFerramenta(
+ "i3GEO.tema.dialogo.editaLegenda()",
+ "legenda",
+ "legenda",
+ "dependencias.php",
+ temp);
+ },
+ /**
* Function: download
*
* Abre a janela de dialogo da ferramenta download
diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js
index 54c10b3..9667313 100644
--- a/ferramentas/legenda/index.js
+++ b/ferramentas/legenda/index.js
@@ -100,6 +100,14 @@ i3GEOF.legenda =
*/
MUSTACHE : "",
/**
+ * Funcao do usuario que e executada apos iniciar a ferramenta
+ */
+ aposIniciar : function(){
+ i3GEOF.legenda.classe = 0;
+ i3GEOF.legenda.estilo = 0;
+ i3GEOF.legenda.editaSimbolo('i3GEOlegendaid_'+i3GEOF.legenda.tema+"-0");
+ },
+ /**
* Susbtitutos para o template
*/
mustacheHash : function() {
@@ -373,8 +381,10 @@ i3GEOF.legenda =
i3GEO.tema.invertestatuslegenda(i3GEOF.legenda.tema);
};
i3GEO.util.aplicaAquarela("i3GEOF.legenda_corpo");
+ i3GEOF.legenda.aposIniciar.call();
} catch (erro) {
i3GEO.janela.tempoMsg(erro);
+ i3GEOF.legenda.aposIniciar = function(){};
}
i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda");
},
@@ -1338,7 +1348,7 @@ i3GEOF.legenda =
}
var item = $i("i3GEOlegendaitensMetade").getElementsByTagName("select")[0].value,
itemid = $i("i3GEOlegendaitensMetadeId").getElementsByTagName("select")[0].value,
- ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten),
+ ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten),
p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php?g_sid="
+ i3GEO.configura.sid
+ "&funcao=alteraclasse"
@@ -1351,8 +1361,8 @@ i3GEOF.legenda =
+ "&opcao=metade&ignorar="
+ $i("i3GEOlegendaignorar").value
+ "&ext="
- + ext,
- cp = new cpaint(),
+ + ext,
+ cp = new cpaint(),
fim = function() {
i3GEOF.legenda.aposAlterarLegenda();
i3GEOF.legenda.aguarde.visibility = "hidden";
diff --git a/js/tema.js b/js/tema.js
index ac9e423..acc3f7a 100644
--- a/js/tema.js
+++ b/js/tema.js
@@ -601,7 +601,7 @@ i3GEO.tema =
* Parametros:
*
* {string} - codigo do tema
- *
+ *
* {objeto} - propriedades (ver ferramentas/graficotema/index.js funcao iniciaJanelaFlutuante)
*/
graficotema : function(idtema,propriedades) {
@@ -732,6 +732,33 @@ i3GEO.tema =
"i3GEOF.legenda.iniciaJanelaFlutuante()");
},
/**
+ * Function: editaClasseLegenda
+ *
+ * Abre a janela de dialogo da ferramenta legenda deiretamente no editor de simbolo de uma classe especifica
+ *
+ * Parametros:
+ *
+ * {string} - id que identifica o tema conforme definido no map file
+ */
+ editaClasseLegenda : function(idtema,idclasse) {
+ i3GEO.mapa.ativaTema(idtema);
+ var temp = function() {
+ i3GEOF.legenda.aposIniciar = function(){
+ i3GEOF.legenda.classe = 0;
+ i3GEOF.legenda.estilo = 0;
+ i3GEOF.legenda.editaSimbolo('i3GEOlegendaid_'+idtema+"-"+idclasse);
+ i3GEOF.legenda.aposIniciar = function(){};
+ };
+ i3GEOF.legenda.iniciaJanelaFlutuante(idtema);
+ };
+ i3GEO.util.dialogoFerramenta(
+ "i3GEO.tema.dialogo.editaLegenda()",
+ "legenda",
+ "legenda",
+ "dependencias.php",
+ temp);
+ },
+ /**
* Function: download
*
* Abre a janela de dialogo da ferramenta download
--
libgit2 0.21.2