コード例 #1
0
static void
_list_item_cb2(void *data, Evas_Object *obj, void *event_info)
{
   Evas_Object *ctxpopup;
   Elm_Object_Item *it;
   Evas_Coord x,y;

   if (list_mouse_down > 0) return;

   ctxpopup = elm_ctxpopup_add(obj);
   evas_object_smart_callback_add(ctxpopup, "dismissed", _dismissed_cb, NULL);
   elm_ctxpopup_horizontal_set(ctxpopup, EINA_TRUE);

   item_new(ctxpopup, NULL, "home");
   item_new(ctxpopup, NULL, "file");
   item_new(ctxpopup, NULL, "delete");
   item_new(ctxpopup, NULL, "folder");
   it = item_new(ctxpopup, NULL, "edit");
   elm_object_item_disabled_set(it, EINA_TRUE);
   item_new(ctxpopup, NULL, "clock");

   evas_pointer_canvas_xy_get(evas_object_evas_get(obj), &x, &y);
   evas_object_move(ctxpopup, x, y);
   evas_object_show(ctxpopup);

   elm_list_item_selected_set(event_info, EINA_FALSE);
}
コード例 #2
0
/* Button "Cancel" from Register Page */
static void
cancel_clicked (void *data, Evas_Object *obj, const char *emission, const char *source)
{
   elm_pager_content_promote(App.info.pager, App.info.pgMain);

   if (App.selection)
     elm_list_item_selected_set(App.selection, EINA_FALSE);
}
コード例 #3
0
ファイル: list_example_03.c プロジェクト: Limsik/e17
static void
_unselect_cb(void *data, Evas_Object *obj, void *event_info)
{
   Elm_Object_Item *selected_item;
   Evas_Object *li = data;

   selected_item = elm_list_selected_item_get(li);
   elm_list_item_selected_set(selected_item, EINA_FALSE);
}
コード例 #4
0
ファイル: products_list.c プロジェクト: leiflm/bksystem
void products_list_reset(void)
{
   Elm_Object_Item *eoi;

   ecore_thread_main_loop_begin();
   if ((eoi = elm_list_selected_item_get(ui.products.list)))
     elm_list_item_selected_set(eoi, EINA_FALSE);
   ecore_thread_main_loop_end();
}
コード例 #5
0
void
converter_distance(void *data, Evas_Object *obj, void *event_info)
{
   Elm_List_Item *it;
   it = elm_list_selected_item_get(obj);
   elm_list_item_selected_set(it, EINA_FALSE);

   Pginfo *info = data;
   elm_pager_content_promote(info->pager, info->pg2);
}
コード例 #6
0
ファイル: list_example_03.c プロジェクト: Limsik/e17
static void
_select_prev_cb(void *data, Evas_Object *obj, void *event_info)
{
   Elm_Object_Item *selected_item, *prev_item;
   Evas_Object *li = data;

   selected_item = elm_list_selected_item_get(li);
   if (!selected_item) return;

   prev_item = elm_list_item_prev(selected_item);
   if (prev_item)
     elm_list_item_selected_set(prev_item, EINA_TRUE);
}
コード例 #7
0
ファイル: elm_widget_helper.c プロジェクト: gzorin/e17
void
list_selected_set(Evas_Object *obj, const char *value)
{
   Elm_Object_Item *list_it;
   const Eina_List *iter;

   EINA_LIST_FOREACH(elm_list_items_get(obj), iter, list_it)
     {
        if (strstr(elm_list_item_label_get(list_it), value))
          {
             elm_list_item_selected_set(list_it, EINA_TRUE);
             return;
          }
     }
}
コード例 #8
0
/* Button "Next" from Browse Page */
static void
next_clicked (void *data, Evas_Object *obj, const char *emission, const char *source)
{
   Db_Entry *Contact;
   Elm_List_Item *next;

   next = elm_list_item_next(App.selection);

   if (next)
     {
	App.selection = next;
	elm_list_item_selected_set(App.selection, EINA_TRUE);
	Contact = (Db_Entry*) elm_list_item_data_get(App.selection);
	load_values(Contact);
     }
}
コード例 #9
0
/* Button "Previous" from Browse Page */
static void
previous_clicked (void *data, Evas_Object *obj, const char *emission, const char *source)
{
   Db_Entry *Contact;
   Elm_List_Item *prev;

   prev = elm_list_item_prev(App.selection);

   if (prev)
     {
	App.selection = prev;
	elm_list_item_selected_set(App.selection, EINA_TRUE);
	Contact = (Db_Entry*) elm_list_item_data_get(App.selection);
	load_values(Contact);
     }
}
コード例 #10
0
/* Button "Save" from Register Page */
static void
save_clicked (void *data, Evas_Object *obj, const char *emission, const char *source)
{
   Db_Entry ContactReg;

   ContactReg.Name = entry_value_get(obj, "EntryName");
   ContactReg.Email = entry_value_get(obj, "EntryEmail");
   ContactReg.Phone = entry_value_get(obj, "EntryPhone");
   ContactReg.Street = entry_value_get(obj, "EntryStreet");
   ContactReg.Neighborhood = entry_value_get(obj, "EntryNeighborhood");
   ContactReg.Gender = radio_value_get(obj, "RadioGender");

   add_update_user(ContactReg);

   elm_pager_content_promote(App.info.pager, App.info.pgMain);

   if (App.selection)
     elm_list_item_selected_set(App.selection, EINA_FALSE);
}
コード例 #11
0
ファイル: tab-view.c プロジェクト: zeroise91/DITAllApiChecker
 void _tab_view_layout_fill_cb2depth(void *data, Evas_Object *obj, void *event_info)
{
	RETM_IF(!obj, "obj is NULL");
	RETM_IF(!data, "data is NULL");


    elm_list_item_selected_set(event_info, EINA_FALSE);
    notification_data *notification_info = (notification_data *)data;




    Evas_Object *navi = evas_object_data_get(notification_info->status, "view_data");

    RETM_IF(!navi, "navi is NULL");

    notification_info->callback(notification_info);
    layout_view_add(navi, notification_info);
}
コード例 #12
0
void nfc_fill_item_cb(void *data, Evas_Object *obj, void *event_info)
{
	elm_list_item_selected_set(event_info, EINA_FALSE);
	notification_data* notify_info=(notification_data*)data;
	layout_view_data2 *datas = calloc(1, sizeof(layout_view_data2));
	Evas_Object* lists=notify_info->status;

	datas->navi = evas_object_data_get(lists, "view_data");

	datas->name = notify_info->name;
	datas->layout = ui_utils_layout_add(datas->navi, _layout_view_destroy2, datas);

	if(!datas->layout)
	{
		free(datas);
		return ;
	}


	Evas_Object* list= elm_list_add(datas->layout);

	notification_data *notification_list = NULL;
	int size=0;
	//
	notification_list=nfc_component_list_get(&size);

	for(int i=0;i<size;i++){

		notification_list[i].status=lists;
		elm_list_item_append(list,notification_list[i].name,NULL,NULL,_tab_view_layout_fill_cb2depth,&notification_list[i]);
	}


	evas_object_hide(elm_object_part_content_unset(datas->layout, "elm.swallow.content"));
	elm_object_part_content_set(datas->layout, "elm.swallow.content", list);
	evas_object_show(list);


	datas->navi_item = elm_naviframe_item_push(datas->navi, datas->name, NULL, NULL,datas->layout , NULL);
	//	_tab_view_layout_fill_cb2depth(data,obj,event_info);
}
コード例 #13
0
static void install_pfx_button_cb(void *data, Evas_Object *obj, void *event_info) {

    struct ListElement *current = (struct ListElement *) data;
    struct ug_data *ad = get_ug_data();
    Elm_Object_Item *it = (Elm_Object_Item *) elm_list_selected_item_get(obj);
    if (it){
        elm_list_item_selected_set(it, EINA_FALSE);
    }

    char *path;
    CertSvcString certSvcString_path;
    int result;
    result = asprintf(&path, "%s/%s", dir_path, current->name);
    if(result == -1){
        LOGD("aspfintf failed (-1)");
        return;
    }
    certsvc_string_new(ad->instance, path, strlen(path), &certSvcString_path);

    int returned_value;
    if(certsvc_pkcs12_has_password(ad->instance, certSvcString_path, &returned_value)
            != CERTSVC_SUCCESS){
        LOGD("Wrong PKCS12 or PFX file.");
        elm_naviframe_item_pop(ad->navi_bar);
        return;
    }

    switch (returned_value){
    case CERTSVC_TRUE:
        LOGD("%s is passwod protected", current->name);
        put_pkcs12_name_and_pass_cb(current, NULL, NULL);
        return;

    case CERTSVC_FALSE:
        LOGD("%s is NOT passwod protected", current->name);
        put_pkcs12_name_cb(current, NULL, NULL);
        return;
    }
}
コード例 #14
0
static void list_selected_cb(void *data, Evas_Object *obj, void *event_info)
{
    Elm_Object_Item *it = (Elm_Object_Item *) event_info;
    elm_list_item_selected_set(it, EINA_FALSE);
}