code clean on plugin-model
authorMyoungJune Park <mj2004.park@samsung.com>
Sun, 23 Dec 2012 07:56:33 +0000 (16:56 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Sun, 23 Dec 2012 07:56:33 +0000 (16:56 +0900)
src/setting-plugin.c

index 44837aa..a2537c6 100755 (executable)
@@ -42,11 +42,12 @@ static Setting_GenGroupItem_Data *g_list_item;      /*TEST*/
  */
 Eina_List *_g_drawer_list = NULL;
 
+#if 0
 /**
  * @return Evas_Object * obj
  */
 static void* navigationbar_func(void *data, xmlNode *xmlObj);
-
+#endif
 
 /*
  * @return void
@@ -497,6 +498,9 @@ static void ___click_softkey_back_cb(void *data, Evas_Object *obj,
        pd->navi_bar = NULL;
        pd->cfg_file = NULL;
 
+
+
+
        pd->root = NULL;
 }
 
@@ -725,6 +729,7 @@ static void* slider_func(void *data, xmlNode *xmlObj)
        return (void*)list_item;
 };
 
+#if 0
 /*
   elm_object_item_data_set(item_to_update->item, item_to_update);
   elm_genlist_item_update(item_to_update->item);
@@ -773,7 +778,7 @@ static void* navigationbar_func(void *data, xmlNode *xmlObj)
 #endif
        return NULL;
 };
-
+#endif
 
 static void __check_mouse_up_cb(void *data, Evas_Object *obj,
                                             void *event_info)
@@ -955,6 +960,9 @@ static void* editbox_func(void *data, xmlNode *xmlObj)
        const char *title = (char*)xmlGetProp(xmlObj, "title");
        const char *key_str= (char*)xmlGetProp(xmlObj, "value");
 
+       //const char *minlength= (char*)xmlGetProp(xmlObj, "minlength");
+       //const char *maxlength= (char*)xmlGetProp(xmlObj, "maxlength");
+
        // TODO: minlength
        // TODO: maxlength
        Setting_GenGroupItem_Data *list_item =
@@ -1098,37 +1106,16 @@ static void* setting_func(void *data, xmlNode *xmlObj)
        SETTING_TRACE_BEGIN;
        ret_if(!data || !xmlObj);
 
-#if 1/*{{{*/
-       //Draw_Data *pd = node->pd;
+#if 1
        PluginNode* node = (PluginNode*)data;
        Draw_Data *pd = node->pd;
 
-       //----------------------------------------------------------------
        // [DATA] title, btn[0], btn[1]
        const char *title = (char*)xmlGetProp(xmlObj, "title");
        char *btn[2] = {/* 0 */"OK", /* 1 */"NO"};
 
-       // find child nodes named 'elements'
-       #if 0
-       if (xmlObj->children) {
-               xmlNode* cur = xmlObj->children;
-               int i =0;
-               while (cur != NULL)
-               {
-                       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]);
-                               i++;
-                       }
-                       cur = cur->next;
-               }
-       }
-       #endif
-       //----------------------------------------------------------------
        SETTING_TRACE("before setting_create_layout_navi_bar_genlist");
+
        // [UI] with DATA
        pd->scroller = elm_genlist_add(pd->win_get);
        retvm_if(pd->scroller == NULL, NULL,
@@ -1139,7 +1126,7 @@ static void* setting_func(void *data, xmlNode *xmlObj)
        /*  Enabling illume notification property for window */
        elm_win_conformant_set(pd->win_get, 1);
        Evas_Object *conformant = elm_conformant_add(pd->win_get);
-       elm_object_style_set(conformant, "internal_layout");    /*  By Kollus. 2011-01-04 */
+       elm_object_style_set(conformant, "internal_layout");
        evas_object_show(conformant);
        elm_object_content_set(conformant, pd->scroller);
 
@@ -1154,7 +1141,7 @@ static void* setting_func(void *data, xmlNode *xmlObj)
                                           &(pd->navi_bar), NULL);
        SETTING_TRACE("after setting_create_layout_navi_bar_genlist");
 
-#endif/*}}}*/
+#endif
        return NULL;
 }
 
@@ -1470,6 +1457,9 @@ void setting_plugin_update(PluginNode* context)
 }
 
 
+/**
+ * set modifiable
+ */
 bool setting_plugin_load(PluginNode* context, const char *cfg_file)
 {
        SETTING_TRACE("cfg_file:%s", cfg_file)