ZakFormElementPrivate *priv = zak_form_element_get_instance_private (zak_form_element);
priv->name = g_strdup ("");
- priv->is_key = TRUE;
+ priv->is_key = FALSE;
priv->type = g_strdup ("");
priv->value = g_strdup ("");
priv->visible = TRUE;
{
zak_form_element_set_name (element, (const gchar *)xmlNodeGetContent (cur));
}
+ else if (xmlStrcmp (cur->name, (const xmlChar *)"is-key") == 0)
+ {
+ zak_form_element_set_is_key (element, xmlStrEqual ((const gchar *)xmlNodeGetContent (cur), "TRUE"));
+ }
else if (xmlStrcmp (cur->name, (const xmlChar *)"type") == 0)
{
zak_form_element_set_provider_type (element, (const gchar *)xmlNodeGetContent (cur));
{
zak_form_element_set_default_value (element, (const gchar *)xmlNodeGetContent (cur));
}
+ else if (xmlStrcmp (cur->name, (const xmlChar *)"visible") == 0)
+ {
+ zak_form_element_set_visible (element, xmlStrEqual ((const gchar *)xmlNodeGetContent (cur), "TRUE"));
+ }
+ else if (xmlStrcmp (cur->name, (const xmlChar *)"editable") == 0)
+ {
+ zak_form_element_set_editable (element, xmlStrEqual ((const gchar *)xmlNodeGetContent (cur), "TRUE"));
+ }
+ else if (xmlStrcmp (cur->name, (const xmlChar *)"to-load") == 0)
+ {
+ zak_form_element_set_to_load (element, xmlStrEqual ((const gchar *)xmlNodeGetContent (cur), "TRUE"));
+ }
+ else if (xmlStrcmp (cur->name, (const xmlChar *)"to-save") == 0)
+ {
+ zak_form_element_set_to_save (element, xmlStrEqual ((const gchar *)xmlNodeGetContent (cur), "TRUE"));
+ }
cur = cur->next;
}