void setting_drawer_list_init()
{
SETTING_TRACE_BEGIN;
+#if 0
/* <navigationbar> */__drawer_add("navigationbar", navigationbar_func);
+#endif
/* <bool> */__drawer_add("bool", checkbox_func);
/* <string> */__drawer_add("string", editbox_func);
/* <group> */__drawer_add("group", group_func);
setting_plugin_destroy(node);
-// pd->scroller = NULL;
-// pd->navi_bar = NULL;
-// pd->cfg_file = NULL;
+ pd->scroller = NULL;
+ pd->navi_bar = NULL;
+ pd->cfg_file = NULL;
-// pd->root = NULL;
+ pd->root = NULL;
}
*/
static void* navigationbar_func(void *data, xmlNode *xmlObj)
{
+#if 1
SETTING_TRACE_BEGIN;
ret_if(!data || !xmlObj);
- //Draw_Data *pd = node->pd;
PluginNode* node = (PluginNode*)data;
Draw_Data *pd = node->pd;
{
if (!xmlStrcmp(cur->name, (const xmlChar*)"button")) {
btn[i] = xmlGetProp(cur, "title");
- SETTING_TRACE("------>>> node type : Element, name=%s id=%s / btn[%d] = %s ", cur->name,xmlGetProp(cur, "id"), i, btn[i]);
+ SETTING_TRACE("------>>> node type : Element, name=%s id=%s / btn[%d] = %s ",
+ cur->name,xmlGetProp(cur, "id"),
+ i,
+ btn[i]);
i++;
}
cur = cur->next;
___click_softkey_back_cb, data, &pd->scroller,
&(pd->navi_bar));
+#endif
return NULL;
};
// <setting>
static void* setting_func(void *data, xmlNode *xmlObj)
{
-#if 0/*{{{*/
- // DO NOTHING
+ SETTING_TRACE_BEGIN;
+ ret_if(!data || !xmlObj);
+
+#if 1/*{{{*/
+ //Draw_Data *pd = node->pd;
+ PluginNode* node = (PluginNode*)data;
+ Draw_Data *pd = node->pd;
+
//----------------------------------------------------------------
// [DATA] title, btn[0], btn[1]
- Draw_Data *pd = data;
const char *title = (char*)xmlGetProp(xmlObj, "title");
- char *btn[2] = {0, };
+ char *btn[2] = {/* 0 */"OK", /* 1 */"NO"};
// find child nodes named 'elements'
-#if 0
+ #if 0
if (xmlObj->children) {
xmlNode* cur = xmlObj->children;
int i =0;
{
if (!xmlStrcmp(cur->name, (const xmlChar*)"button")) {
btn[i] = xmlGetProp(cur, "title");
- SETTING_TRACE("------>>> node type : Element, name=%s id=%s / btn[%d] = %s ", cur->name,xmlGetProp(cur, "id"), i, btn[i]);
+ SETTING_TRACE("------>>> node type : Element, name=%s id=%s / btn[%d] = %s ",
+ cur->name,xmlGetProp(cur, "id"),
+ i,
+ btn[i]);
i++;
}
cur = cur->next;
}
}
-#endif
+ #endif
//----------------------------------------------------------------
+ SETTING_TRACE("before setting_create_layout_navi_bar_genlist");
// [UI] with DATA
pd->ly_main = setting_create_layout_navi_bar_genlist(pd->win_get,
pd->win_get,
_(title),
- _("NO"), _("YES"),
+ _(btn[1]), _(btn[0]),
___click_softkey_back_cb,
- ___click_softkey_back_cb, pd, &pd->scroller,
+ ___click_softkey_back_cb, data, &pd->scroller,
&(pd->navi_bar));
-#endif/*}}}*/
+ SETTING_TRACE("after setting_create_layout_navi_bar_genlist");
+#endif/*}}}*/
return NULL;
}