void
sp_view_mgr_play_view_title_label_set(Sp_View_Manager *view_mgr, const char *title)
{
	MP_CHECK(view_mgr);

	Elm_Object_Item *navi_item = sp_view_mgr_get_play_view_navi_item(view_mgr);
	if (navi_item)
		elm_object_item_text_set(navi_item, title);
}
static void
_title_changed_cb(void *data, Evas_Object *obj, void *event_info)
{
   Tab_Data *td = data;
   const char *title = event_info;
   char buf[20] = "";

   if (title)
     strncpy(buf, title, sizeof(buf) - 1);
   elm_object_item_text_set(td->tab, buf);
}
void
sp_view_mgr_set_title_label(Sp_View_Manager *view_mgr, const char *title)
{
	MP_CHECK(view_mgr);

	Evas_Object *navi = sp_view_mgr_get_naviframe(view_mgr);
	MP_CHECK(navi);

	Elm_Object_Item *navi_item = elm_naviframe_top_item_get(navi);
	if (navi_item)
		elm_object_item_text_set(navi_item, title);
}
Beispiel #4
0
void
search_view_count_update(Search_Name *sn)
{
   unsigned int count;
   char buf[128];

   count = elm_genlist_items_count(sn->e->sw.list);
   if (sn->result_count == count) return;

   snprintf(buf, sizeof(buf), "Search Results (%u)", count);
   elm_object_item_text_set(sn->e->sw.tb_it, buf);
}
static void viewer_manager_setup_wizard_button_controller(HEADER_MODES mode)
{
	switch (mode) {
	case HEADER_MODE_OFF:
	case HEADER_MODE_ON:
	    if (manager_object->next_button != NULL && ug_app_state->rbutton_setup_wizard_skip_icon != NULL)
	    	elm_object_item_text_set((Elm_Object_Item *)manager_object->next_button, ug_app_state->rbutton_setup_wizard_skip);

	    if (manager_object->next_button != NULL && ug_app_state->rbutton_setup_wizard_skip_icon != NULL)
	    	elm_toolbar_item_icon_set((Elm_Object_Item *)manager_object->next_button, (const char *)ug_app_state->rbutton_setup_wizard_skip_icon);
	    break;
	case HEADER_MODE_CONNECTED:
	    if (manager_object->next_button != NULL && ug_app_state->rbutton_setup_wizard_next != NULL)
	    	elm_object_item_text_set((Elm_Object_Item *)manager_object->next_button, ug_app_state->rbutton_setup_wizard_next);

	    if (manager_object->next_button != NULL && ug_app_state->rbutton_setup_wizard_next_icon != NULL)
	    	elm_toolbar_item_icon_set((Elm_Object_Item *)manager_object->next_button, (const char *) ug_app_state->rbutton_setup_wizard_next_icon);
	    break;
	default:
		break;
	}
}
Beispiel #6
0
EAPI_MAIN int
elm_main(int argc, char **argv)
{
   Evas_Object *win, *bg, *sc, *ic;
   Elm_Object_Item *seg_it;
   int count, idx;

   win = elm_win_add(NULL, "segment_control", ELM_WIN_BASIC);
   elm_win_title_set(win, "Segment Control Example");
   evas_object_smart_callback_add(win, "delete,request", _on_done, NULL);

   bg = elm_bg_add(win);
   elm_win_resize_object_add(win, bg);
   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_show(bg);

   sc = elm_segment_control_add(win);
   evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(win, sc);
   evas_object_show(sc);

   elm_segment_control_item_add(sc, NULL, "only text");

   ic = elm_icon_add(win);
   elm_icon_standard_set(ic, "close");
   elm_segment_control_item_add(sc, ic, NULL);

   ic = elm_icon_add(win);
   elm_icon_standard_set(ic, "home");
   elm_segment_control_item_add(sc, ic, "Home");

   ic = elm_icon_add(win);
   elm_icon_standard_set(ic, "close");
   elm_segment_control_item_add(sc, ic, "");

   count = elm_segment_control_item_count_get(sc);
   elm_segment_control_item_insert_at(sc, NULL, "Inserted at", count - 1);

   seg_it = elm_segment_control_item_insert_at(sc, NULL, "To be deleted", 2);
   elm_object_item_del(seg_it);

   elm_segment_control_item_insert_at(sc, NULL, "To be deleted", 2);
   elm_segment_control_item_del_at(sc, 2);

   seg_it = elm_segment_control_item_get(sc, 0);
   elm_object_item_text_set(seg_it, "Only Text");

   count = elm_segment_control_item_count_get(sc);
   seg_it = elm_segment_control_item_get(sc, count / 2);
   elm_segment_control_item_selected_set(seg_it, EINA_TRUE);
   seg_it = elm_segment_control_item_selected_get(sc);
   idx = elm_segment_control_item_index_get(seg_it);
   printf("Item selected: %i\n", idx);

   evas_object_show(win);

   elm_run();
   elm_shutdown();

   return 0;
}
Beispiel #7
0
void
tabpanel_item_label_set(Tabpanel_Item *item, const char *label)
{
   elm_object_item_text_set(item->item_tb, label);
}