summaryrefslogtreecommitdiff
path: root/src/widget/mf-ug-navi-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/mf-ug-navi-bar.c')
-rw-r--r--[-rwxr-xr-x]src/widget/mf-ug-navi-bar.c288
1 files changed, 155 insertions, 133 deletions
diff --git a/src/widget/mf-ug-navi-bar.c b/src/widget/mf-ug-navi-bar.c
index b94700c..da69082 100755..100644
--- a/src/widget/mf-ug-navi-bar.c
+++ b/src/widget/mf-ug-navi-bar.c
@@ -1,22 +1,24 @@
/*
+ * myfile
+ *
* Copyright 2012 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.0 (the "License");
- *
- * You may not use this file except in compliance with the License.
+ * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
+ *
* http://www.tizenopensource.org/license
*
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an "AS IS" BASIS,
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*
- * See the License for the specific language governing permissions and limitations under the License.
*/
-
#include "mf-ug-winset.h"
#include "mf-ug-cb.h"
#include "mf-ug-fm-svc-wrapper.h"
@@ -80,17 +82,19 @@ static void __mf_ug_navi_bar_create_group_radio_box(void *data)
** Modification : Created function
**
******************************/
-static void __mf_ug_navi_bar_push_content(ugNaviBar *pNavi_s, Evas_Object *NaviContent)
+static void __mf_ug_navi_bar_push_content(void *data, Evas_Object *NaviContent)
{
UG_TRACE_BEGIN;
- ug_mf_retm_if(pNavi_s == NULL, "pNavi_s is NULL");
+ ug_mf_retm_if(data == NULL, "pNavi_s is NULL");
+ ugData *ugd = (ugData *)data;
+ ugNaviBar *pNavi_s = mf_ug_navi_bar_get_in_use_navi(ugd);
- Evas_Object *NaviBar = pNavi_s->ug_pNaviBar;
+ Evas_Object *NaviBar = ugd->ug_MainWindow.ug_pNaviBar;
char *title = pNavi_s->ug_pNaviTitle;
- pNavi_s->ug_pPreNaviItem = pNavi_s->ug_pNaviItem;
+ ugd->ug_MainWindow.ug_pPreNaviItem = ugd->ug_MainWindow.ug_pNaviItem;
- pNavi_s->ug_pNaviItem = elm_naviframe_item_push(NaviBar, title, NULL, NULL, NaviContent, MF_UG_NAVI_STYLE_ENABLE);
+ ugd->ug_MainWindow.ug_pNaviItem = elm_naviframe_item_push(NaviBar, title, NULL, NULL, NaviContent, MF_UG_NAVI_STYLE_ENABLE);
UG_TRACE_END;
}
@@ -169,25 +173,9 @@ void mf_ug_navi_bar_set_select_info_label(void *data, int dir_count, int file_co
char lable_file[UG_LABEL_STRING_LENGTH] = { '\0', };
char *select_lable = NULL;
/*1 TODO: need to update for multi-language */
- if (dir_count > 1) {
- snprintf(lable_dir, sizeof(lable_dir), "%d %s", dir_count, ("folders"));
- } else if (dir_count == 1) {
- snprintf(lable_dir, sizeof(lable_dir), "%d %s", dir_count, ("folder"));
- }
- if (file_count > 1) {
- snprintf(lable_file, sizeof(lable_file), "%d %s", file_count, ("files"));
- } else if (file_count == 1) {
- snprintf(lable_file, sizeof(lable_file), "%d %s", file_count, ("file"));
- }
-
- if (dir_count < 1) {
- select_lable = g_strconcat("Selected (", lable_file, ")", NULL);
- } else if (file_count < 1) {
- select_lable = g_strconcat("Selected (", lable_dir, ")", NULL);
- } else {
- select_lable = g_strconcat("Selected (", lable_dir, " , ", lable_file, ")", NULL);
- }
+ snprintf(lable_file, sizeof(lable_file), "%d", (dir_count+file_count));
+ select_lable = g_strconcat("Selected (", lable_file, ")", NULL);
elm_object_part_text_set(ugd->ug_MainWindow.ug_pSelectInfoLayout, "elm.text", select_lable);
edje_object_part_text_set(_EDJ(ugd->ug_MainWindow.ug_pSelectInfoLayout), "elm.text", select_lable);
@@ -264,7 +252,6 @@ Evas_Object *mf_ug_navi_bar_create_box(Evas_Object * parent)
ug_mf_retvm_if(parent == NULL, NULL, "parent is NULL");
Evas_Object *box = NULL;
- ug_debug("parent is [%p]", parent);
box = elm_box_add(parent);
ug_mf_retvm_if(box == NULL, NULL, "box is NULL");
elm_object_focus_set(box, EINA_FALSE);
@@ -313,33 +300,13 @@ Evas_Object *mf_ug_navi_bar_create_layout(Evas_Object *parent, const char *edj,
** Modification : Created function
**
******************************/
-Evas_Object *mf_ug_navi_bar_pathinfo_label_create(Evas_Object *parent, char *pathinfo)
+Evas_Object *__mf_ug_navi_bar_pathinfo_create(Evas_Object *parent, Evas_Object *content)
{
UG_TRACE_BEGIN;
ug_mf_retvm_if(parent == NULL, NULL, "parent is NULL");
- ug_mf_retvm_if(pathinfo == NULL, NULL, "pathinfo is NULL");
-
- Evas_Object *label = NULL;
-
- label = elm_label_add(parent);
- elm_object_focus_set(label, EINA_FALSE);
- evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_object_text_set(label, pathinfo);
- evas_object_show(label);
- UG_SAFE_FREE_CHAR(pathinfo);
- UG_TRACE_END;
- return label;
-}
-
-Evas_Object *__mf_ug_navi_bar_pathinfo_create(Evas_Object *parent, char *pathinfo)
-{
- UG_TRACE_BEGIN;
- ug_mf_retvm_if(parent == NULL, NULL, "parent is NULL");
- ug_mf_retvm_if(pathinfo == NULL, NULL, "pathinfo is NULL");
+ ug_mf_retvm_if(content == NULL, NULL, "content is NULL");
Evas_Object *layout = NULL;
- Evas_Object *label = NULL;
layout = elm_layout_add(parent);
elm_object_focus_set(layout, EINA_FALSE);
@@ -347,8 +314,7 @@ Evas_Object *__mf_ug_navi_bar_pathinfo_create(Evas_Object *parent, char *pathinf
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
- label = mf_ug_navi_bar_pathinfo_label_create(layout, pathinfo);
- elm_object_part_content_set(layout, "info", label);
+ elm_object_part_content_set(layout, "info", content);
evas_object_show(layout);
UG_TRACE_END;
return layout;
@@ -375,8 +341,7 @@ void mf_ug_navi_bar_create_default_view(void *data)
mf_ug_list_play_destory_playing_file(ugd);
}
- box = mf_ug_navi_bar_create_box(pNavi_s->ug_pNaviBar);
- pNavi_s->ug_pNaviBox = box;
+ box = mf_ug_navi_bar_create_box(ugd->ug_MainWindow.ug_pNaviBar);
if (ugd->ug_Status.ug_bSettingEntry == true && ugd->ug_Status.ug_bInSettingView == true) {
top_layout = mf_ug_navi_bar_create_box(box);
@@ -400,22 +365,34 @@ void mf_ug_navi_bar_create_default_view(void *data)
pathinfo = mf_ug_fm_svc_wapper_path_info_get(ugd->ug_Status.ug_pPath->str);
info = mf_ug_fm_svc_path_info_translate(pathinfo, MF_UG_PATH_INFO_MAX_LENGTH_PORTRAIT);
- pathinfo_layout = __mf_ug_navi_bar_pathinfo_create(top_layout, info);
+
+ Evas_Object *genlist = mf_ug_genlist_create_path_info(top_layout, &ugd->ug_Status.ug_pathinfoitec, info);
+
+ pathinfo_layout = __mf_ug_navi_bar_pathinfo_create(top_layout, genlist);
+
upper_layout = elm_layout_add(top_layout);
elm_object_focus_set(upper_layout, EINA_FALSE);
elm_layout_file_set(upper_layout, UG_EDJ_NAVIGATIONBAR, UG_GRP_UPPER_LAYOUT);
- evas_object_size_hint_weight_set(upper_layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_weight_set(upper_layout, EVAS_HINT_FILL, EVAS_HINT_FILL);//(upper_layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(upper_layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(upper_layout);
- upper_genlist = mf_navi_bar_upper_create(top_layout);
- //mf_ug_genlist_upper_style_set(ugd);
- mf_ug_upper_genlist_item_append(upper_genlist, ugd);
+ Evas_Object *home_btn = elm_button_add(upper_layout);
+ elm_object_text_set(home_btn, MF_UG_LABEL_HOME);
+ evas_object_smart_callback_add(home_btn, "clicked", mf_ug_cb_home_button_cb, ugd);
+ evas_object_show(home_btn);
+
+ Evas_Object *up_btn = elm_button_add(upper_layout);
+ elm_object_text_set(up_btn, MF_UG_LABEL_UPPER);
+ evas_object_smart_callback_add(up_btn, "clicked", mf_ug_cb_upper_click_cb, ugd);
+ evas_object_show(up_btn);
+
+ elm_object_part_content_set(upper_layout, "home", home_btn);
+ elm_object_part_content_set(upper_layout, "upper", up_btn);
- elm_object_part_content_set(upper_layout, "upper", upper_genlist);
- elm_box_pack_end(top_layout, pathinfo_layout);
elm_box_pack_end(top_layout, upper_layout);
+ elm_box_pack_end(top_layout, pathinfo_layout);
ugd->ug_Status.ug_bUpperFlag = true;
}
@@ -426,13 +403,13 @@ void mf_ug_navi_bar_create_default_view(void *data)
}
pNaviLayout = mf_ug_navi_bar_create_layout(box, UG_EDJ_NAVIGATIONBAR, UG_GRP_NAVI_VIEW);
- pNavi_s->ug_pNaviLayout = pNaviLayout;
+ ugd->ug_MainWindow.ug_pNaviLayout = pNaviLayout;
/*set content */
if (ugd->ug_UiGadget.ug_iSelectMode == SINGLE_ALL_MODE || ugd->ug_UiGadget.ug_iSelectMode == SINGLE_FILE_MODE) {
__mf_ug_navi_bar_create_group_radio_box(ugd);
}
newContent = mf_ug_genlist_create_content_list_view(ugd);
- pNavi_s->ug_pContent = newContent;
+ ugd->ug_MainWindow.ug_pContent = newContent;
/*set title segment or title */
if (mf_ug_fm_svc_wapper_is_root_path(ugd)) {
title = g_string_new(MF_UG_LABEL_MYFILES);
@@ -449,19 +426,77 @@ void mf_ug_navi_bar_create_default_view(void *data)
evas_object_show(newContent);
elm_object_part_content_set(pNaviLayout, "part1", newContent);
elm_box_pack_end(box, pNaviLayout);
- __mf_ug_navi_bar_push_content(pNavi_s, box);
+ __mf_ug_navi_bar_push_content(ugd, box);
/*add control bar for navigation bar */
mf_ug_ctrl_bar_set(ugd, pNavi_s);
-#ifdef MF_UG_FEATURE_NEW_UX
- if (ugd->ug_Status.ug_iMmcFlag == MMC_ON && !(ugd->ug_Status.ug_bSettingEntry == true && ugd->ug_Status.ug_bInSettingView == true))
- elm_naviframe_item_title_visible_set(pNavi_s->ug_pNaviItem, EINA_FALSE);
-#endif
+
+ if ((ugd->ug_Status.ug_bSettingEntry == true && ugd->ug_Status.ug_bInSettingView == true)) {
+ elm_naviframe_item_title_visible_set(ugd->ug_MainWindow.ug_pNaviItem, EINA_TRUE);
+ } else if (!mf_ug_fm_svc_wapper_is_root_path(ugd)) {
+ elm_naviframe_item_title_visible_set(ugd->ug_MainWindow.ug_pNaviItem, EINA_FALSE);
+ } else if (ugd->ug_Status.ug_iMmcFlag == MMC_OFF && mf_ug_fm_svc_wapper_is_root_path(ugd)) {
+ elm_naviframe_item_title_visible_set(ugd->ug_MainWindow.ug_pNaviItem, EINA_TRUE);
+ } else {
+ elm_naviframe_item_title_visible_set(ugd->ug_MainWindow.ug_pNaviItem, EINA_FALSE);
+ }
mf_ug_navi_bar_remove_previous_contents(ugd);
UG_TRACE_END;
}
+void mf_ug_navi_bar_create_new_folder_view(void *data)
+{
+
+ UG_TRACE_BEGIN;
+ ugData *ugd = (ugData *)data;
+ ug_mf_retm_if(ugd == NULL, "ugd is NULL");
+
+ Evas_Object *newContent = NULL;
+
+ Evas_Object *pNaviBar = NULL;
+ GString *title = NULL;
+
+ mf_ug_navi_bar_set_navi_to_main(ugd);
+
+ ugNaviBar *pNavi_s = mf_ug_navi_bar_get_in_use_navi(ugd);
+ ug_mf_retm_if(pNavi_s == NULL, "pNavi_s is NULL");
+
+ pNaviBar = ugd->ug_MainWindow.ug_pNaviBar;
+
+ /*set content*/
+ newContent = mf_ug_genlist_create_list_new_folder_style(ugd);
+ /*set title segment or title*/
+ title = g_string_new(MF_UG_LABEL_CREATE);
+
+ if (title != NULL) {
+ pNavi_s->ug_pNaviTitle = g_strdup(title->str);
+ g_string_free(title, TRUE);
+ title = NULL;
+ }
+ /*navigation view integration*/
+ __mf_ug_navi_bar_push_content(ugd, newContent);
+
+ Evas_Object *l_bt = NULL;
+ Evas_Object *r_bt = NULL;
+ r_bt = elm_button_add(pNaviBar);
+ elm_object_focus_set(r_bt, EINA_FALSE);
+ elm_object_style_set(r_bt, "naviframe/title/default");
+ elm_object_text_set(r_bt, MF_UG_LABEL_CANCEL);
+ evas_object_smart_callback_add(r_bt, "clicked", mf_ug_cb_cancel_new_folder_cb, ugd);
+ elm_object_item_part_content_set(ugd->ug_MainWindow.ug_pNaviItem, "title_right_btn", r_bt);
+
+ l_bt = elm_button_add(pNaviBar);
+ elm_object_focus_set(l_bt, EINA_FALSE);
+ elm_object_style_set(l_bt, "naviframe/title/default");
+ elm_object_text_set(l_bt, MF_UG_LABEL_SAVE);
+ evas_object_smart_callback_add(l_bt, "clicked", mf_ug_cb_save_cb, ugd);
+ elm_object_item_part_content_set(ugd->ug_MainWindow.ug_pNaviItem, "title_left_btn", l_bt);
+
+
+
+}
+
/******************************
** Prototype : mf_ug_navi_bar_get_in_use_navi
** Description : Samsung
@@ -498,7 +533,6 @@ ugNaviBar *mf_ug_navi_bar_get_in_use_navi(void *data)
ret = NULL;
}
}
- ug_debug(" ret is [%p]", ret);
UG_TRACE_END;
return ret;
}
@@ -524,9 +558,6 @@ void mf_ug_navi_bar_reset_navi_object(ugNaviBar *pNavi_s)
UG_TRACE_BEGIN;
ug_mf_retm_if(pNavi_s == NULL, "pNavi_s is NULL");
- UG_SAFE_FREE_OBJ(pNavi_s->ug_pNaviBar);
- pNavi_s->ug_pContent = NULL;
- pNavi_s->ug_pNaviCtrlBar = NULL;
pNavi_s->ug_pNaviTitle = NULL;
if (pNavi_s->ug_pCurrentPath != NULL) {
free(pNavi_s->ug_pCurrentPath);
@@ -539,47 +570,6 @@ void mf_ug_navi_bar_reset_navi_object(ugNaviBar *pNavi_s)
}
/******************************
-** Prototype : mf_ug_navi_bar_get_navi_struct_by_navi
-** Description : Samsung
-** Input : void* data
-** Evas_Object* pNaviBar
-** Output : None
-** Return Value :
-** Calls :
-** Called By :
-**
-** History :
-** 1.Date : 2010/12/10
-** Author : Samsung
-** Modification : Created function
-**
-******************************/
-ugNaviBar *mf_ug_navi_bar_get_navi_struct_by_navi(void *data, Evas_Object *pNaviBar)
-{
- UG_TRACE_BEGIN;
- ugData *ugd = (ugData *)data;
- ug_mf_retvm_if(ugd == NULL, NULL, "ugd is NULL");
- ug_mf_retvm_if(pNaviBar == NULL, NULL, "pNaviBar is NULL");
-
- Eina_List *pNaviList = ugd->ug_MainWindow.ug_pNaviBarList;
- ug_mf_retvm_if(pNaviList == NULL, NULL, "pNavi_sList is NULL");
-
- Eina_List *l = NULL;
- void *item = NULL;
-
- ugNaviBar *ret = NULL;
- EINA_LIST_FOREACH(pNaviList, l, item) {
- if (((ugNaviBar *)item)->ug_pNaviBar == pNaviBar) {
- ret = (ugNaviBar *)item;
- break;
- }
- }
- UG_TRACE_END;
- return ret;
-}
-
-
-/******************************
** Prototype : mf_ug_navi_bar_get_navi_struct_by_label
** Description : Samsung
** Input : void* data
@@ -694,8 +684,8 @@ void mf_ug_navi_bar_refresh_navibar_recovered_view(void *data, ugNaviBar *pNaviS
ugd->ug_Status.ug_pPath = g_string_new(pNaviStruct->ug_pCurrentPath);
Evas_Object *newContent = mf_ug_genlist_create_content_list_view(ugd);
- pNaviStruct->ug_pContent = newContent;
- mf_ug_navi_bar_set_new_content(pNaviStruct->ug_pNaviLayout, newContent);
+ ugd->ug_MainWindow.ug_pContent = newContent;
+ mf_ug_navi_bar_set_new_content(ugd->ug_MainWindow.ug_pNaviLayout, newContent);
UG_TRACE_END;
}
@@ -705,10 +695,9 @@ void mf_ug_navi_bar_transition_finished_cb(void *data, Evas_Object *obj, void *e
ug_mf_retm_if(data == NULL, "data is NULL");
ug_mf_retm_if(obj == NULL, "obj is NULL");
ugData *ugd = (ugData *)data;
- ugNaviBar *pNavi_s = mf_ug_navi_bar_get_in_use_navi(ugd);
- Elm_Object_Item *it = pNavi_s->ug_pPreNaviItem;
+ Elm_Object_Item *it = ugd->ug_MainWindow.ug_pPreNaviItem;
UG_SAFE_DEL_NAVI_ITEM(it);
- pNavi_s->ug_pPreNaviItem = NULL;
+ ugd->ug_MainWindow.ug_pPreNaviItem = NULL;
mf_ug_navi_bar_set_blocking(data, false);
evas_object_smart_callback_del(obj, "transition,finished", mf_ug_navi_bar_transition_finished_cb);
UG_TRACE_END;
@@ -721,9 +710,8 @@ void mf_ug_navi_bar_remove_previous_contents(void *data)
ug_mf_retm_if(data == NULL, "data is NULL");
ugData *ugd = (ugData *)data;
Evas_Object *pNaviBar = NULL;
- ugNaviBar *pNavi_s = mf_ug_navi_bar_get_in_use_navi(ugd);
- if (pNavi_s && pNavi_s->ug_pNaviBar) {
- pNaviBar = pNavi_s->ug_pNaviBar;
+ if (ugd->ug_MainWindow.ug_pNaviBar) {
+ pNaviBar = ugd->ug_MainWindow.ug_pNaviBar;
mf_ug_navi_bar_set_blocking(data, true);
evas_object_smart_callback_add(pNaviBar, "transition,finished", mf_ug_navi_bar_transition_finished_cb, ugd);
}
@@ -739,11 +727,11 @@ void mf_ug_navi_bar_del_item_directly(void *data)
if (ugd->ug_Status.ug_b_NaviPushFlag) {
ugNaviBar *pNavi_s_previous = NULL;
pNavi_s_previous = mf_ug_navi_bar_get_in_use_navi(ugd) ;
- if(pNavi_s_previous && pNavi_s_previous->ug_pPreNaviItem)
+ if(pNavi_s_previous && ugd->ug_MainWindow.ug_pPreNaviItem)
{
- UG_SAFE_DEL_NAVI_ITEM(pNavi_s_previous->ug_pPreNaviItem);
+ UG_SAFE_DEL_NAVI_ITEM(ugd->ug_MainWindow.ug_pPreNaviItem);
mf_ug_navi_bar_set_blocking(ugd, false);
- evas_object_smart_callback_del(pNavi_s_previous->ug_pNaviBar, "transition,finished", mf_ug_navi_bar_transition_finished_cb);
+ evas_object_smart_callback_del(ugd->ug_MainWindow.ug_pNaviBar, "transition,finished", mf_ug_navi_bar_transition_finished_cb);
}
}
UG_TRACE_END;
@@ -782,13 +770,47 @@ ugNaviBar *ug_mf_navi_bar_get_navi_from_navilist(Eina_List *navilist, const char
return NULL;
}
-Evas_Object *ug_mf_navi_bar_get_navibar_from_navilist(Eina_List *navilist, const char *label)
+void mf_ug_navi_bar_set_navi_to_main(void *data)
{
- ugNaviBar *pNavi_s = NULL;
- pNavi_s = ug_mf_navi_bar_get_navi_from_navilist(navilist, label);
- if (pNavi_s && pNavi_s->ug_pNaviBar)
- return pNavi_s->ug_pNaviBar;
- else
- return NULL;
+ UG_TRACE_BEGIN;
+ ug_mf_retm_if(data == NULL, "data is NULL");
+ ugData *ugd = (ugData *)data;
+
+ if (ugd->ug_Status.ug_iMmcFlag != MMC_OFF) {
+ elm_object_part_content_unset(ugd->ug_MainWindow.ug_pTabLayout, "elm.swallow.content");
+ evas_object_hide(ugd->ug_MainWindow.ug_pTabBar);
+ elm_object_part_content_unset(ugd->ug_MainWindow.ug_pTabLayout, "elm.swallow.tabbar");
+ evas_object_hide(ugd->ug_MainWindow.ug_pTabLayout);
+ elm_object_part_content_unset(ugd->ug_MainWindow.ug_pMainLayout, "elm.swallow.content");
+ elm_object_part_content_set(ugd->ug_MainWindow.ug_pMainLayout, "elm.swallow.content", ugd->ug_MainWindow.ug_pNaviBar);
+ evas_object_show(ugd->ug_MainWindow.ug_pMainLayout);
+ }
+ UG_TRACE_END;
+}
+
+void mf_ug_navi_bar_reset_tab_to_main(void *data)
+{
+ UG_TRACE_BEGIN;
+ ug_mf_retm_if(data == NULL, "data is NULL");
+ ugData *ugd = (ugData *)data;
+ ugNaviBar *pNavi_s = mf_ug_navi_bar_get_in_use_navi(ugd);
+
+ if (ugd->ug_Status.ug_iMmcFlag != MMC_OFF) {
+ if (mf_ug_fm_svc_wapper_is_root_path(ugd)) {
+ Evas_Object *pOldContent = NULL;
+ pOldContent = elm_object_part_content_unset(ugd->ug_MainWindow.ug_pMainLayout, "elm.swallow.content");
+ elm_object_part_content_set(ugd->ug_MainWindow.ug_pTabLayout, "elm.swallow.content", pOldContent);
+ elm_object_part_content_set(ugd->ug_MainWindow.ug_pTabLayout, "elm.swallow.tabbar", ugd->ug_MainWindow.ug_pTabBar);
+ elm_object_part_content_set(ugd->ug_MainWindow.ug_pMainLayout, "elm.swallow.content", ugd->ug_MainWindow.ug_pTabLayout);
+ evas_object_show(ugd->ug_MainWindow.ug_pTabLayout);
+ evas_object_show(ugd->ug_MainWindow.ug_pTabBar);
+ mf_ug_tab_bar_set_selected_item(mf_ug_tab_bar_get_item_by_label(ugd->ug_MainWindow.ug_pTabBar, pNavi_s->ug_pNaviLabel));
+ }
+ } else {
+ elm_object_part_content_unset(ugd->ug_MainWindow.ug_pMainLayout, "elm.swallow.content");
+ elm_object_part_content_set(ugd->ug_MainWindow.ug_pMainLayout, "elm.swallow.content", ugd->ug_MainWindow.ug_pNaviBar);
+ elm_naviframe_item_title_visible_set(ugd->ug_MainWindow.ug_pNaviItem, EINA_TRUE);
+ }
+ UG_TRACE_END;
}