int i;
bx = elm_box_add(win);
-<<<<<<< HEAD
- printf(" ADD lv 3 = %p [%i]\n", bx, (BLOK * (int)evas_object_data_get(obj, "num")));
-=======
printf(" ADD lv 3 = %p [%i]\n", bx, (BLOK * (int)(long)evas_object_data_get(obj, "num")));
->>>>>>> remotes/origin/upstream
#ifdef HOMOG
elm_box_homogeneous_set(bx, EINA_TRUE);
#endif
char buf[32];
snprintf(buf, sizeof(buf), "%i",
-<<<<<<< HEAD
- (i + (BLOK * (int)evas_object_data_get(obj, "num"))));
-=======
(i + (BLOK * (int)(long)evas_object_data_get(obj, "num"))));
->>>>>>> remotes/origin/upstream
bt = elm_button_add(win);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
int i;
bx = elm_box_add(win);
-<<<<<<< HEAD
- printf(" ADD lv 2 = %p [%i]\n", bx, (BLOK * (int)evas_object_data_get(obj, "num")));
-=======
printf(" ADD lv 2 = %p [%i]\n", bx, (BLOK * (int)(long)evas_object_data_get(obj, "num")));
->>>>>>> remotes/origin/upstream
#ifdef HOMOG
elm_box_homogeneous_set(bx, EINA_TRUE);
#endif
// scrollbar will be wrong until enough
// children have been realized and the
// real size is known
-<<<<<<< HEAD
- evas_object_data_set(fc, "num", (void *)(i + (BLOK * (int)evas_object_data_get(obj, "num"))));
-=======
evas_object_data_set(fc, "num", (void *)(long)(i + (BLOK * (int)(long)evas_object_data_get(obj, "num"))));
->>>>>>> remotes/origin/upstream
evas_object_size_hint_min_set(fc, 0, DEFSZ);
evas_object_size_hint_weight_set(fc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(fc, EVAS_HINT_FILL, EVAS_HINT_FILL);
int i;
bx = elm_box_add(win);
-<<<<<<< HEAD
- printf(" ADD lv 1 = %p [%i]\n", bx, (BLOK * (int)evas_object_data_get(obj, "num")));
-=======
printf(" ADD lv 1 = %p [%i]\n", bx, (BLOK * (int)(long)evas_object_data_get(obj, "num")));
->>>>>>> remotes/origin/upstream
#ifdef HOMOG
elm_box_homogeneous_set(bx, EINA_TRUE);
#endif
// scrollbar will be wrong until enough
// children have been realized and the
// real size is known
-<<<<<<< HEAD
- evas_object_data_set(fc, "num", (void *)(i + (BLOK * (int)evas_object_data_get(obj, "num"))));
-=======
evas_object_data_set(fc, "num", (void *)(long)(i + (BLOK * (int)(long)evas_object_data_get(obj, "num"))));
->>>>>>> remotes/origin/upstream
evas_object_size_hint_min_set(fc, 0, DEFSZ);
evas_object_size_hint_weight_set(fc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(fc, EVAS_HINT_FILL, EVAS_HINT_FILL);
// scrollbar will be wrong until enough
// children have been realized and the
// real size is known
-<<<<<<< HEAD
- evas_object_data_set(fc, "num", (void *)i);
-=======
evas_object_data_set(fc, "num", (void *)(long)i);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_min_set(fc, 0, DEFSZ);
evas_object_size_hint_weight_set(fc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(fc, EVAS_HINT_FILL, EVAS_HINT_FILL);
#include <Elementary.h>
-<<<<<<< HEAD
-=======
#include "test.h"
#include <Elementary_Cursor.h>
->>>>>>> remotes/origin/upstream
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifndef ELM_LIB_QUICKLAUNCH
-<<<<<<< HEAD
-=======
struct _api_data
{
unsigned int state; /* What state we are testing */
elm_object_disabled_set(obj, a->state == API_STATE_LAST);
}
->>>>>>> remotes/origin/upstream
static void
my_show_it(void *data,
Evas_Object *obj __UNUSED__,
printf("Right edge!\n");
}
-<<<<<<< HEAD
-=======
static void
_cleanup_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
free(data);
}
->>>>>>> remotes/origin/upstream
void
test_list(void *data __UNUSED__,
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
-<<<<<<< HEAD
- Evas_Object *win, *bg, *li, *ic, *ic2, *bx, *tb2, *bt;
- char buf[PATH_MAX];
- Elm_Object_Item *list_it1, *list_it2, *list_it3, *list_it4, *list_it5;
-=======
Evas_Object *win, *bg, *li, *ic, *ic2, *bx, *tb2, *bt, *bxx;
char buf[PATH_MAX];
Elm_Object_Item *list_it1, *list_it2, *list_it3, *list_it4, *list_it5;
api_data *api = calloc(1, sizeof(api_data));
->>>>>>> remotes/origin/upstream
win = elm_win_add(NULL, "list", ELM_WIN_BASIC);
elm_win_title_set(win, "List");
elm_win_autodel_set(win, EINA_TRUE);
-<<<<<<< HEAD
-=======
evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api);
->>>>>>> remotes/origin/upstream
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);
-<<<<<<< HEAD
- li = elm_list_add(win);
- elm_win_resize_object_add(win, li);
- elm_list_mode_set(li, ELM_LIST_LIMIT);
- evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-=======
bxx = elm_box_add(win);
elm_win_resize_object_add(win, bxx);
evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bt);
elm_box_pack_end(bxx, li);
->>>>>>> remotes/origin/upstream
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 1, 1);
- list_it1 = elm_list_item_append(li, "Hello", ic, NULL, NULL, NULL);
- ic = elm_icon_add(win);
- snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 1, 1);
list_it1 = elm_list_item_append(li, "Hello", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
elm_list_item_append(li, "world", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
- ic2 = elm_icon_add(win);
- elm_icon_standard_set(ic2, "clock");
- elm_icon_scale_set(ic2, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
elm_icon_resizable_set(ic2, 0, 0);
->>>>>>> remotes/origin/upstream
list_it2 = elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.0, EVAS_HINT_EXPAND);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 1, 1);
- list_it1 = elm_list_item_append(li, "Hello", ic, NULL, NULL, NULL);
- ic = elm_icon_add(win);
- snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 1, 1);
list_it1 = elm_list_item_append(li, "Hello", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
elm_list_item_append(li, "world", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
- ic2 = elm_icon_add(win);
- elm_icon_standard_set(ic2, "clock");
- elm_icon_scale_set(ic2, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
elm_icon_resizable_set(ic2, 0, 0);
->>>>>>> remotes/origin/upstream
list_it2 = elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
elm_list_item_selected_set(list_it, EINA_TRUE);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
elm_list_item_append(li, "world", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
- ic2 = elm_icon_add(win);
- elm_icon_standard_set(ic2, "clock");
- elm_icon_scale_set(ic2, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
elm_icon_resizable_set(ic2, 0, 0);
->>>>>>> remotes/origin/upstream
elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx2 = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx2, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx2, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
ic2 = elm_button_add(win);
elm_object_text_set(ic2, "Click me");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
ic2 = elm_button_add(win);
elm_object_text_set(ic2, "Click me");
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
- ic2 = elm_icon_add(win);
- elm_icon_standard_set(ic2, "clock");
- elm_icon_scale_set(ic2, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
elm_icon_resizable_set(ic2, 0, 0);
->>>>>>> remotes/origin/upstream
elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
evas_object_size_hint_align_set(ic, 0.0, EVAS_HINT_EXPAND);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
struct Pginfo
{
-<<<<<<< HEAD
- Evas_Object *pager, *win;
-=======
Evas_Object *naviframe, *win;
->>>>>>> remotes/origin/upstream
};
static void
struct Pginfo *info = data;
if (!info) return;
-<<<<<<< HEAD
- elm_pager_content_pop(info->pager);
-=======
elm_naviframe_item_pop(info->naviframe);
->>>>>>> remotes/origin/upstream
}
static void
elm_box_pack_start(box, entry);
elm_box_pack_end(box, button);
-<<<<<<< HEAD
- elm_pager_content_push(info->pager, box);
-=======
elm_naviframe_item_simple_push(info->naviframe, box);
->>>>>>> remotes/origin/upstream
}
void
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
-<<<<<<< HEAD
- Evas_Object *win, *bg, *li, *ic, *ic2, *pager;
-=======
Evas_Object *win, *bg, *li, *ic, *ic2, *naviframe;
->>>>>>> remotes/origin/upstream
static struct Pginfo info = {NULL, NULL};
char buf[PATH_MAX];
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bg);
-<<<<<<< HEAD
- pager = elm_pager_add(win);
- elm_win_resize_object_add(win, pager);
- evas_object_size_hint_weight_set(pager, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(pager, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_show(pager);
- info.pager = pager;
-=======
naviframe = elm_naviframe_add(win);
elm_win_resize_object_add(win, naviframe);
evas_object_size_hint_weight_set(naviframe, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(naviframe, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(naviframe);
info.naviframe = naviframe;
->>>>>>> remotes/origin/upstream
li = elm_list_add(win);
evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_list_mode_set(li, ELM_LIST_COMPRESS);
evas_object_smart_callback_add(li, "swipe", test_list4_swipe, &info);
-<<<<<<< HEAD
- elm_pager_content_push(pager, li);
-=======
elm_naviframe_item_simple_push(naviframe, li);
->>>>>>> remotes/origin/upstream
static char pf_data[] = "Pink Floyd were formed in 1965, and originally consisted of university" \
"students Roger Waters, Nick Mason, Richard Wright, and Syd Barrett. The group were a popular" \
"conceptalbums The Dark Side of the Moon, Wish You Were Here, Animals, and The Wall.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/mystrale.jpg", elm_app_data_dir_get());
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
elm_list_item_append(li, "Pink Floyd", ic, NULL, NULL, &pf_data);
"their first album going multi-platinum globally.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/mystrale_2.jpg", elm_app_data_dir_get());
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
elm_list_item_append(li, "Dire Straits", ic, NULL, NULL, &ds_data);
"perform at stadium-sized venues.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_17.png", elm_app_data_dir_get());
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 1, 1);
-=======
elm_icon_resizable_set(ic, 1, 1);
->>>>>>> remotes/origin/upstream
elm_icon_file_set(ic, buf, NULL);
elm_list_item_append(li, "Uriah Heep", ic, NULL, NULL, &uh_data);
"two weeks before the group's first United States tour.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_21.png", elm_app_data_dir_get());
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
- ic2 = elm_icon_add(win);
- elm_icon_standard_set(ic2, "clock");
- elm_icon_scale_set(ic2, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
elm_icon_file_set(ic, buf, NULL);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
elm_icon_resizable_set(ic2, 0, 0);
->>>>>>> remotes/origin/upstream
elm_list_item_append(li, "Rush", ic, ic2, NULL, &r_data);
elm_list_go(li);
}
// store callbacks to handle loading/parsing/freeing of store items from src
-<<<<<<< HEAD
-static Elm_Genlist_Item_Class itc1 =
-{
- "message", { NULL, NULL, NULL, NULL}
-};
-=======
static Elm_Genlist_Item_Class *itc1;
->>>>>>> remotes/origin/upstream
static const Elm_Store_Item_Mapping it1_mapping[] =
{
static Eina_Bool
_st_store_list(void *data __UNUSED__, Elm_Store_Item_Info *item_info)
{
-<<<<<<< HEAD
- Elm_Store_Item_Info_Filesystem *info = (Elm_Store_Item_Info_Filesystem *)item_info;
- int id;
- char sort_id[7];
-
- // create a sort id based on the filename itself assuming it is a numeric
- // value like the id number in mh mail folders which is what this test
- // uses as a data source
- char *file = strrchr(info->path, '/');
- if (file) file++;
- else file = info->path;
- id = atoi(file);
- sort_id[0] = ((id >> 30) & 0x3f) + 32;
- sort_id[1] = ((id >> 24) & 0x3f) + 32;
- sort_id[2] = ((id >> 18) & 0x3f) + 32;
- sort_id[3] = ((id >> 12) & 0x3f) + 32;
- sort_id[4] = ((id >> 6) & 0x3f) + 32;
- sort_id[5] = ((id >> 0) & 0x3f) + 32;
- sort_id[6] = 0;
- info->base.sort_id = strdup(sort_id);
- // choose the item genlist item class to use (only item style should be
- // provided by the app, store will fill everything else in, so it also
- // has to be writable
- info->base.item_class = &itc1; // based on item info - return the item class wanted (only style field used - rest reset to internal funcs store sets up to get label/icon etc)
- info->base.mapping = it1_mapping;
- info->base.data = NULL; // if we can already parse and load all of item here and want to - set this
- return EINA_TRUE; // return true to include this, false not to
-=======
Elm_Store_Item_Info_Filesystem *info = (Elm_Store_Item_Info_Filesystem *)item_info;
int id;
char sort_id[7];
info->base.mapping = it1_mapping;
info->base.data = NULL; // if we can already parse and load all of item here and want to - set this
return EINA_TRUE; // return true to include this, false not to
->>>>>>> remotes/origin/upstream
}
// ************************************************************************
//// * End of separate thread function. *
static void
_st_store_fetch(void *data __UNUSED__, Elm_Store_Item *sti)
{
-<<<<<<< HEAD
- const char *path = elm_store_item_filesystem_path_get(sti);
- My_Item *myit;
- FILE *f;
- char buf[4096], *p;
- Eina_Bool have_content = EINA_FALSE;
- char *content = NULL, *content_pos = NULL, *content_end = NULL;
-
- // if we already have my item data - skip
- if (elm_store_item_data_get(sti)) return;
- // open the mail file and parse it
- f = fopen(path, "rb");
- if (!f) return;
-
- // alloc my item in memory that holds data to show in the list
- myit = calloc(1, sizeof(My_Item));
- if (!myit)
- {
- fclose(f);
- return;
- }
- while (fgets(buf, sizeof(buf), f))
- {
- if (!have_content)
- {
- if (!isblank(buf[0]))
- {
- // get key: From:, Subject: etc.
- if (!strncmp(buf, "From:", 5))
- {
- p = buf + 5;
- while ((*p) && (isblank(*p))) p++;
- p = strdup(p);
- if (p)
- {
- myit->from = p;
- p = strchr(p, '\n');
- if (p) *p = 0;
- }
- }
- else if (!strncmp(buf, "Subject:", 8))
- {
- p = buf + 8;
- while ((*p) && (isblank(*p))) p++;
- p = strdup(p);
- if (p)
- {
- myit->subject = p;
- p = strchr(p, '\n');
- if (p) *p = 0;
- }
- }
- else if (!strncmp(buf, "Date:", 5))
- {
- p = buf + 5;
- while ((*p) && (isblank(*p))) p++;
- p = strdup(p);
- if (p)
- {
- myit->date = p;
- p = strchr(p, '\n');
- if (p) *p = 0;
- }
- }
- else if (buf[0] == '\n') // begin of content
- have_content = EINA_TRUE;
- }
- }
- else
- {
- // get first 320 bytes of content/body
- if (!content)
- {
- content = calloc(1, 320);
- content_pos = content;
- content_end = content + 319;
- }
- strncat(content_pos, buf, content_end - content_pos - 1);
- content_pos = content + strlen(content);
- }
- }
- fclose(f);
- myit->head_content = elm_entry_utf8_to_markup(content);
- free(content);
- elm_store_item_data_set(sti, myit);
-=======
const char *path = elm_store_item_filesystem_path_get(sti);
My_Item *myit;
FILE *f;
myit->head_content = elm_entry_utf8_to_markup(content);
free(content);
elm_store_item_data_set(sti, myit);
->>>>>>> remotes/origin/upstream
}
// ************************************************************************
//// * End of separate thread function. *
static void
_st_store_unfetch(void *data __UNUSED__, Elm_Store_Item *sti)
{
-<<<<<<< HEAD
- My_Item *myit = elm_store_item_data_get(sti);
- if (!myit) return;
- if (myit->from) free(myit->from);
- if (myit->subject) free(myit->subject);
- if (myit->date) free(myit->date);
- if (myit->head_content) free(myit->head_content);
- free(myit);
- elm_store_item_data_set(sti, NULL);
-=======
My_Item *myit = elm_store_item_data_get(sti);
if (!myit) return;
if (myit->from) free(myit->from);
if (myit->date) free(myit->date);
if (myit->head_content) free(myit->head_content);
free(myit);
->>>>>>> remotes/origin/upstream
}
void
test_store(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
-<<<<<<< HEAD
- Evas_Object *win, *bg, *gl, *bx;
-
- Elm_Store *st;
-
- win = elm_win_add(NULL, "store", ELM_WIN_BASIC);
- elm_win_title_set(win, "Store");
- elm_win_autodel_set(win, EINA_TRUE);
-
- 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);
-
- bx = elm_box_add(win);
- evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bx);
- evas_object_show(bx);
-
- gl = elm_genlist_add(win);
- elm_genlist_height_for_width_mode_set(gl, EINA_TRUE);
- evas_object_smart_callback_add(gl, "selected", _st_selected, NULL);
- evas_object_smart_callback_add(gl, "clicked,double", _st_double_clicked, NULL);
- evas_object_smart_callback_add(gl, "longpressed", _st_longpress, NULL);
- evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(gl, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_box_pack_end(bx, gl);
- evas_object_show(gl);
-
- st = elm_store_filesystem_new();
- elm_store_list_func_set(st, _st_store_list, NULL);
- elm_store_fetch_func_set(st, _st_store_fetch, NULL);
- //elm_store_fetch_thread_set(st, EINA_FALSE);
- elm_store_unfetch_func_set(st, _st_store_unfetch, NULL);
- elm_store_sorted_set(st, EINA_TRUE);
- elm_store_target_genlist_set(st, gl);
- elm_store_filesystem_directory_set(st, "./store");
-
- evas_object_resize(win, 480, 800);
- evas_object_show(win);
-=======
Evas_Object *win, *bg, *gl, *bx;
Elm_Store *st;
evas_object_resize(win, 480, 800);
evas_object_show(win);
->>>>>>> remotes/origin/upstream
}
#endif
if (p->multi_exists)
elm_list_multi_select_set(obj, p->multi);
if (p->always_select_exists)
-<<<<<<< HEAD
- elm_list_always_select_mode_set(obj, p->always_select);
-=======
{
if (p->always_select)
elm_list_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_ALWAYS);
else
elm_list_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_DEFAULT);
}
->>>>>>> remotes/origin/upstream
}
static Eina_Bool
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
{
-<<<<<<< HEAD
- elm_list_always_select_mode_set(obj, param->i);
-=======
if (param->i)
elm_list_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_ALWAYS);
else
elm_list_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_DEFAULT);
->>>>>>> remotes/origin/upstream
return EINA_TRUE;
}
}
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
{
-<<<<<<< HEAD
- param->i = elm_list_always_select_mode_get(obj);
-=======
if (elm_list_select_mode_get (obj) ==
ELM_OBJECT_SELECT_MODE_ALWAYS)
param->i = EINA_TRUE;
else
param->i = EINA_FALSE;
->>>>>>> remotes/origin/upstream
return EINA_TRUE;
}
}
/* enable multiple selection and always select */
elm_list_multi_select_set(li, EINA_TRUE);
-<<<<<<< HEAD
- elm_list_always_select_mode_set(li, EINA_TRUE);
-=======
elm_list_select_mode_set(li, ELM_OBJECT_SELECT_MODE_ALWAYS);
->>>>>>> remotes/origin/upstream
/* set bounce and scroller policy */
elm_list_bounce_set(li, EINA_TRUE, EINA_TRUE);
snprintf(label, sizeof(label), "Item %i", counter++);
ic = elm_icon_add(li);
elm_icon_standard_set(ic, "home");
-<<<<<<< HEAD
- elm_icon_scale_set(ic, EINA_FALSE, EINA_FALSE);
-=======
elm_icon_resizable_set(ic, EINA_FALSE, EINA_FALSE);
->>>>>>> remotes/origin/upstream
list_it = elm_list_item_append(li, label, ic, NULL, NULL, NULL);
if (!list_it)
Elm_List_Mode mode;
Elm_List_Mode h_mode;
Evas_Coord minw[2], minh[2];
-<<<<<<< HEAD
- Eina_Bool scr_minw : 1;
- Eina_Bool scr_minh : 1;
-=======
Elm_Object_Select_Mode select_mode;
->>>>>>> remotes/origin/upstream
int walking;
int movements;
struct {
Evas_Coord x, y;
} history[SWIPE_MOVES];
-<<<<<<< HEAD
-=======
Eina_Bool scr_minw : 1;
Eina_Bool scr_minh : 1;
->>>>>>> remotes/origin/upstream
Eina_Bool swipe : 1;
Eina_Bool fix_pending : 1;
Eina_Bool on_hold : 1;
Eina_Bool multi : 1;
-<<<<<<< HEAD
- Eina_Bool always_select : 1;
-=======
->>>>>>> remotes/origin/upstream
Eina_Bool longpressed : 1;
Eina_Bool wasselected : 1;
};
#define ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, ...) \
ELM_OBJ_ITEM_CHECK_OR_RETURN(it, __VA_ARGS__); \
-<<<<<<< HEAD
-if (((Elm_List_Item *) it)->deleted) \
-=======
if (((Elm_List_Item *)it)->deleted) \
->>>>>>> remotes/origin/upstream
{ \
ERR("ERROR: "#it" has been DELETED.\n"); \
return __VA_ARGS__; \
(!strcmp(ev->keyname, "KP_Home")))
{
it = eina_list_data_get(wd->items);
-<<<<<<< HEAD
- elm_list_item_bring_in((Elm_Object_Item *) it);
-=======
elm_list_item_bring_in((Elm_Object_Item *)it);
->>>>>>> remotes/origin/upstream
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
return EINA_TRUE;
}
(!strcmp(ev->keyname, "KP_End")))
{
it = eina_list_data_get(eina_list_last(wd->items));
-<<<<<<< HEAD
- elm_list_item_bring_in((Elm_Object_Item *) it);
-=======
elm_list_item_bring_in((Elm_Object_Item *)it);
->>>>>>> remotes/origin/upstream
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
return EINA_TRUE;
}
if (!wd) return;
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-<<<<<<< HEAD
- if ((it->highlighted) || (it->base.disabled)) return;
-=======
if ((it->highlighted) || (it->base.disabled) ||
(wd->select_mode == ELM_OBJECT_SELECT_MODE_NONE)) return;
->>>>>>> remotes/origin/upstream
evas_object_ref(obj);
_elm_list_walk(wd);
if (!wd) return;
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-<<<<<<< HEAD
- if (it->base.disabled) return;
- if (it->selected)
- {
- if (wd->always_select) goto call;
-=======
if (it->base.disabled || (wd->select_mode == ELM_OBJECT_SELECT_MODE_NONE)) return;
if (it->selected)
{
if (wd->select_mode == ELM_OBJECT_SELECT_MODE_ALWAYS) goto call;
->>>>>>> remotes/origin/upstream
return;
}
it->selected = EINA_TRUE;
if (it->func) it->func((void *)it->base.data, WIDGET(it), it);
evas_object_smart_callback_call(obj, SIG_SELECTED, it);
-<<<<<<< HEAD
- it->wd->last_selected_item = (Elm_Object_Item *) it;
-=======
it->wd->last_selected_item = (Elm_Object_Item *)it;
->>>>>>> remotes/origin/upstream
_elm_list_unwalk(wd);
evas_object_unref(obj);
static void
_item_disable(Elm_Object_Item *it)
{
-<<<<<<< HEAD
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
if (item->base.disabled)
edje_object_signal_emit(VIEW(item), "elm,state,disabled", "elm");
else
static void
_item_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content)
{
-<<<<<<< HEAD
- ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
Evas_Object **icon_p = NULL;
Eina_Bool dummy = EINA_FALSE;
static Evas_Object *
_item_content_get(const Elm_Object_Item *it, const char *part)
{
-<<<<<<< HEAD
- ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
if ((!part) || (!strcmp(part, "start")))
{
static Evas_Object *
_item_content_unset(const Elm_Object_Item *it, const char *part)
{
-<<<<<<< HEAD
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
if ((!part) || (!strcmp(part, "start")))
{
Evas_Object *obj = item->icon;
-<<<<<<< HEAD
- _item_content_set((Elm_Object_Item *) it, part, NULL);
-=======
_item_content_set((Elm_Object_Item *)it, part, NULL);
->>>>>>> remotes/origin/upstream
return obj;
}
else if (!strcmp(part, "end"))
{
Evas_Object *obj = item->end;
-<<<<<<< HEAD
- _item_content_set((Elm_Object_Item *) it, part, NULL);
-=======
_item_content_set((Elm_Object_Item *)it, part, NULL);
->>>>>>> remotes/origin/upstream
return obj;
}
return NULL;
static void
_item_text_set(Elm_Object_Item *it, const char *part, const char *text)
{
-<<<<<<< HEAD
- ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
- Elm_List_Item *list_it = (Elm_List_Item *) it;
-=======
Elm_List_Item *list_it = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
if (part && strcmp(part, "default")) return;
if (!eina_stringshare_replace(&list_it->label, text)) return;
if (VIEW(list_it))
static const char *
_item_text_get(const Elm_Object_Item *it, const char *part)
{
-<<<<<<< HEAD
- ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
- if (part && strcmp(part, "default")) return NULL;
- return ((Elm_List_Item *) it)->label;
-=======
if (part && strcmp(part, "default")) return NULL;
return ((Elm_List_Item *)it)->label;
->>>>>>> remotes/origin/upstream
}
static Eina_Bool
_item_del_pre_hook(Elm_Object_Item *it)
{
-<<<<<<< HEAD
- ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE);
-
- Evas_Object *obj = WIDGET(it);
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Evas_Object *obj = WIDGET(it);
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
}
EAPI void
-<<<<<<< HEAD
-elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select)
-=======
elm_list_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode mode)
->>>>>>> remotes/origin/upstream
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
-<<<<<<< HEAD
- wd->always_select = always_select;
-}
-
-EAPI Eina_Bool
-=======
if (mode >= ELM_OBJECT_SELECT_MODE_MAX)
return;
if (wd->select_mode != mode)
}
EINA_DEPRECATED EAPI Eina_Bool
->>>>>>> remotes/origin/upstream
elm_list_always_select_mode_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
-<<<<<<< HEAD
- return wd->always_select;
-=======
Elm_Object_Select_Mode oldmode = elm_list_select_mode_get(obj);
if (oldmode == ELM_OBJECT_SELECT_MODE_ALWAYS)
return EINA_TRUE;
return EINA_FALSE;
->>>>>>> remotes/origin/upstream
}
EAPI void
wd->items = eina_list_append(wd->items, it);
it->node = eina_list_last(wd->items);
elm_box_pack_end(wd->box, VIEW(it));
-<<<<<<< HEAD
- return (Elm_Object_Item *) it;
-=======
return (Elm_Object_Item *)it;
->>>>>>> remotes/origin/upstream
}
EAPI Elm_Object_Item *
wd->items = eina_list_prepend(wd->items, it);
it->node = wd->items;
elm_box_pack_start(wd->box, VIEW(it));
-<<<<<<< HEAD
- return (Elm_Object_Item *) it;
-=======
return (Elm_Object_Item *)it;
->>>>>>> remotes/origin/upstream
}
EAPI Elm_Object_Item *
wd->items = eina_list_prepend_relative_list(wd->items, it, before_it->node);
it->node = before_it->node->prev;
elm_box_pack_before(wd->box, VIEW(it), VIEW(before_it));
-<<<<<<< HEAD
- return (Elm_Object_Item *) it;
-=======
return (Elm_Object_Item *)it;
->>>>>>> remotes/origin/upstream
}
EAPI Elm_Object_Item *
wd->items = eina_list_append_relative_list(wd->items, it, after_it->node);
it->node = after_it->node->next;
elm_box_pack_after(wd->box, VIEW(it), VIEW(after_it));
-<<<<<<< HEAD
- return (Elm_Object_Item *) it;
-=======
return (Elm_Object_Item *)it;
->>>>>>> remotes/origin/upstream
}
EAPI Elm_Object_Item *
it->node = before->node->prev;
elm_box_pack_before(wd->box, VIEW(it), VIEW(before));
}
-<<<<<<< HEAD
- return (Elm_Object_Item *) it;
-=======
return (Elm_Object_Item *)it;
->>>>>>> remotes/origin/upstream
}
EAPI void
elm_list_item_separator_set(Elm_Object_Item *it, Eina_Bool setting)
{
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
-<<<<<<< HEAD
- ((Elm_List_Item *) it)->is_separator = !!setting;
-=======
((Elm_List_Item *)it)->is_separator = !!setting;
->>>>>>> remotes/origin/upstream
}
EAPI Eina_Bool
elm_list_item_separator_get(const Elm_Object_Item *it)
{
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE);
-<<<<<<< HEAD
- return ((Elm_List_Item *) it)->is_separator;
-=======
return ((Elm_List_Item *)it)->is_separator;
->>>>>>> remotes/origin/upstream
}
EAPI void
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it);
Evas_Object *obj = WIDGET(it);
Widget_Data *wd = elm_widget_data_get(obj);
-<<<<<<< HEAD
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
if (!wd) return;
selected = !!selected;
elm_list_item_selected_get(const Elm_Object_Item *it)
{
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE);
-<<<<<<< HEAD
- return ((Elm_List_Item *) it)->selected;
-=======
return ((Elm_List_Item *)it)->selected;
->>>>>>> remotes/origin/upstream
}
EAPI void
elm_list_item_prev(const Elm_Object_Item *it)
{
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-<<<<<<< HEAD
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
if (item->node->prev) return item->node->prev->data;
else return NULL;
}
elm_list_item_next(const Elm_Object_Item *it)
{
ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL);
-<<<<<<< HEAD
- Elm_List_Item *item = (Elm_List_Item *) it;
-=======
Elm_List_Item *item = (Elm_List_Item *)it;
->>>>>>> remotes/origin/upstream
if (item->node->next) return item->node->next->data;
else return NULL;
}
*
* @note Default value is #ELM_LIST_SCROLL.
*
-<<<<<<< HEAD
- * Values <b> don't </b> work as bitmask, only one can be choosen.
-=======
* Values <b> don't </b> work as bitmask, only one can be chosen.
->>>>>>> remotes/origin/upstream
*
* @see elm_list_mode_set()
* @see elm_list_mode_get()
{
ELM_LIST_COMPRESS = 0, /**< Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one won't be able to scroll it in that direction. */
ELM_LIST_SCROLL, /**< Default value. Won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end with zero dimensions. The list will respect the container's geometry and, if any of its items won't fit into its transverse axis, one will be able to scroll it in that direction (large items will get cropped). */
-<<<<<<< HEAD
- ELM_LIST_LIMIT, /**< Set a minimun size hint on the list object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a minimum size hint will be set for its transverse axis, so that the @b largest item in that direction fits well. Can have effects bounded by setting the list object's maximum size hints. */
-=======
ELM_LIST_LIMIT, /**< Set a minimum size hint on the list object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a minimum size hint will be set for its transverse axis, so that the @b largest item in that direction fits well. Can have effects bounded by setting the list object's maximum size hints. */
->>>>>>> remotes/origin/upstream
ELM_LIST_EXPAND, /**< Besides setting a minimum size on the transverse axis, just like the previous mode, will set a minimum size on the longitudinal axis too, trying to reserve space to all its children to be visible at a time. Can have effects bounded by setting the list object's maximum size hints. */
ELM_LIST_LAST /**< Indicates error if returned by elm_list_mode_get() */
} Elm_List_Mode;
EAPI Eina_Bool elm_list_horizontal_get(const Evas_Object *obj);
/**
-<<<<<<< HEAD
- * Enable or disable always select mode on the list object.
- *
- * @param obj The list object
- * @param always_select @c EINA_TRUE to enable always select mode or
- * @c EINA_FALSE to disable it.
- *
- * @note Always select mode is disabled by default.
- *
- * Default behavior of list items is to only call its callback function
- * the first time it's pressed, i.e., when it is selected. If a selected
- * item is pressed again, and multi-select is disabled, it won't call
- * this function (if multi-select is enabled it will unselect the item).
- *
- * If always select is enabled, it will call the callback function
- * everytime a item is pressed, so it will call when the item is selected,
- * and again when a selected item is pressed.
- *
- * @see elm_list_always_select_mode_get()
- * @see elm_list_multi_select_set()
- *
- * @ingroup List
- */
-EAPI void elm_list_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
-
-/**
- * Get a value whether always select mode is enabled or not, meaning that
- * an item will always call its callback function, even if already selected.
- *
- * @param obj The list object
- * @return @c EINA_TRUE means horizontal mode selection is enabled.
- * @c EINA_FALSE indicates it's disabled. If @p obj is @c NULL,
- * @c EINA_FALSE is returned.
- *
- * @see elm_list_always_select_mode_set() for details.
- *
- * @ingroup List
- */
-EAPI Eina_Bool elm_list_always_select_mode_get(const Evas_Object *obj);
-=======
* Set the list select mode.
*
* @param obj The list object
*/
EAPI Elm_Object_Select_Mode
elm_list_select_mode_get(const Evas_Object *obj);
->>>>>>> remotes/origin/upstream
/**
* Set bouncing behaviour when the scrolled content reaches an edge.
* axis is reached scrolling.
*
* @param obj The list object.
-<<<<<<< HEAD
- * @param h_bounce Pointer where to store the bounce state of the horizontal
- * axis.
- * @param v_bounce Pointer where to store the bounce state of the vertical
-=======
* @param h_bounce Pointer to store the bounce state of the horizontal
* axis.
* @param v_bounce Pointer to store the bounce state of the vertical
->>>>>>> remotes/origin/upstream
* axis.
*
* @see elm_scroller_bounce_get()
* @see elm_list_scroller_policy_get() for details.
*
* @param obj The list object.
-<<<<<<< HEAD
- * @param policy_h Pointer where to store horizontal scrollbar policy.
- * @param policy_v Pointer where to store vertical scrollbar policy.
-=======
* @param policy_h Pointer to store horizontal scrollbar policy.
* @param policy_v Pointer to store vertical scrollbar policy.
->>>>>>> remotes/origin/upstream
*
* @ingroup List
*/
* A new item will be created and appended to the list, i.e., will
* be set as @b last item.
*
-<<<<<<< HEAD
- * Items created with this method can be deleted with
- * elm_list_item_del().
-=======
* Items created with this method can be deleted with elm_object_item_del().
->>>>>>> remotes/origin/upstream
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_widget_item_del_cb_set().
*
-<<<<<<< HEAD
- * If a function is passed as argument, it will be called everytime this item
-=======
* If a function is passed as argument, it will be called every time this item
->>>>>>> remotes/origin/upstream
* is selected, i.e., the user clicks over an unselected item.
* If always select is enabled it will call this function every time
* user clicks over an item (already selected or not).
* li = elm_list_add(win);
* ic = elm_icon_add(win);
* elm_icon_file_set(ic, "path/to/image", NULL);
-<<<<<<< HEAD
- * elm_icon_scale_set(ic, EINA_TRUE, EINA_TRUE);
-=======
* elm_icon_resizable_set(ic, EINA_TRUE, EINA_TRUE);
->>>>>>> remotes/origin/upstream
* elm_list_item_append(li, "label", ic, NULL, NULL, NULL);
* elm_list_go(li);
* evas_object_show(li);
* @endcode
*
* @see elm_list_always_select_mode_set()
-<<<<<<< HEAD
- * @see elm_list_item_del()
-=======
* @see elm_object_item_del()
->>>>>>> remotes/origin/upstream
* @see elm_widget_item_del_cb_set()
* @see elm_list_clear()
* @see elm_icon_add()
* A new item will be created and prepended to the list, i.e., will
* be set as @b first item.
*
-<<<<<<< HEAD
- * Items created with this method can be deleted with
- * elm_list_item_del().
-=======
* Items created with this method can be deleted with elm_object_item_del().
->>>>>>> remotes/origin/upstream
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_widget_item_del_cb_set().
*
-<<<<<<< HEAD
- * If a function is passed as argument, it will be called everytime this item
-=======
* If a function is passed as argument, it will be called every time this item
->>>>>>> remotes/origin/upstream
* is selected, i.e., the user clicks over an unselected item.
* If always select is enabled it will call this function every time
* user clicks over an item (already selected or not).
*
* @see elm_list_item_append() for a simple code example.
* @see elm_list_always_select_mode_set()
-<<<<<<< HEAD
- * @see elm_list_item_del()
-=======
* @see elm_object_item_del()
->>>>>>> remotes/origin/upstream
* @see elm_widget_item_del_cb_set()
* @see elm_list_clear()
* @see elm_icon_add()
* A new item will be created and added to the list. Its position in
* this list will be just before item @p before.
*
-<<<<<<< HEAD
- * Items created with this method can be deleted with
- * elm_list_item_del().
-=======
* Items created with this method can be deleted with elm_object_item_del().
->>>>>>> remotes/origin/upstream
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_widget_item_del_cb_set().
*
-<<<<<<< HEAD
- * If a function is passed as argument, it will be called everytime this item
-=======
* If a function is passed as argument, it will be called every time this item
->>>>>>> remotes/origin/upstream
* is selected, i.e., the user clicks over an unselected item.
* If always select is enabled it will call this function every time
* user clicks over an item (already selected or not).
*
* @see elm_list_item_append() for a simple code example.
* @see elm_list_always_select_mode_set()
-<<<<<<< HEAD
- * @see elm_list_item_del()
-=======
* @see elm_object_item_del()
->>>>>>> remotes/origin/upstream
* @see elm_widget_item_del_cb_set()
* @see elm_list_clear()
* @see elm_icon_add()
* A new item will be created and added to the list. Its position in
* this list will be just after item @p after.
*
-<<<<<<< HEAD
- * Items created with this method can be deleted with
- * elm_list_item_del().
-=======
* Items created with this method can be deleted with elm_object_item_del().
->>>>>>> remotes/origin/upstream
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_widget_item_del_cb_set().
*
-<<<<<<< HEAD
- * If a function is passed as argument, it will be called everytime this item
-=======
* If a function is passed as argument, it will be called every time this item
->>>>>>> remotes/origin/upstream
* is selected, i.e., the user clicks over an unselected item.
* If always select is enabled it will call this function every time
* user clicks over an item (already selected or not).
*
* @see elm_list_item_append() for a simple code example.
* @see elm_list_always_select_mode_set()
-<<<<<<< HEAD
- * @see elm_list_item_del()
-=======
* @see elm_object_item_del()
->>>>>>> remotes/origin/upstream
* @see elm_widget_item_del_cb_set()
* @see elm_list_clear()
* @see elm_icon_add()
* this list will be found comparing the new item with previously inserted
* items using function @p cmp_func.
*
-<<<<<<< HEAD
- * Items created with this method can be deleted with
- * elm_list_item_del().
-=======
* Items created with this method can be deleted with elm_object_item_del().
->>>>>>> remotes/origin/upstream
*
* Associated @p data can be properly freed when item is deleted if a
* callback function is set with elm_widget_item_del_cb_set().
*
-<<<<<<< HEAD
- * If a function is passed as argument, it will be called everytime this item
-=======
* If a function is passed as argument, it will be called every time this item
->>>>>>> remotes/origin/upstream
* is selected, i.e., the user clicks over an unselected item.
* If always select is enabled it will call this function every time
* user clicks over an item (already selected or not).
*
* @see elm_list_item_append() for a simple code example.
* @see elm_list_always_select_mode_set()
-<<<<<<< HEAD
- * @see elm_list_item_del()
-=======
* @see elm_object_item_del()
->>>>>>> remotes/origin/upstream
* @see elm_widget_item_del_cb_set()
* @see elm_list_clear()
* @see elm_icon_add()
*
* @param obj The list object
*
-<<<<<<< HEAD
- * @see elm_list_item_del()
-=======
* @see elm_object_item_del()
->>>>>>> remotes/origin/upstream
* @see elm_list_item_append()
*
* @ingroup List
* or @c NULL on failure.
*
* @see elm_list_item_append()
-<<<<<<< HEAD
- * @see elm_list_item_del()
-=======
* @see elm_object_item_del()
->>>>>>> remotes/origin/upstream
* @see elm_list_clear()
*
* @ingroup List
* This sets the selected state of the given item @p it.
* @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
*
-<<<<<<< HEAD
- * If a new item is selected the previosly selected will be unselected,
- * unless multiple selection is enabled with elm_list_multi_select_set().
- * Previoulsy selected item can be get with function
-=======
* If a new item is selected the previously selected will be unselected,
* unless multiple selection is enabled with elm_list_multi_select_set().
* Previously selected item can be get with function
->>>>>>> remotes/origin/upstream
* elm_list_selected_item_get().
*
* Selected items will be highlighted.
* @param it The list item to be shown.
*
* It won't animate list until item is visible. If such behavior is wanted,
-<<<<<<< HEAD
- * use elm_list_bring_in() intead.
-=======
* use elm_list_bring_in() instead.
->>>>>>> remotes/origin/upstream
*
* @ingroup List
*/
EAPI void elm_list_item_bring_in(Elm_Object_Item *it);
/**
-<<<<<<< HEAD
- * Delete the item from the list.
- *
- * @param it The item of list to be deleted.
- *
- * If deleting all list items is required, elm_list_clear()
- * should be used instead of getting items list and deleting each one.
- *
- * @see elm_list_clear()
- * @see elm_list_item_append()
- * @see elm_widget_item_del_cb_set()
- *
- * @ingroup List
- */
-EAPI void elm_list_item_del(Elm_Object_Item *it);
-
-/**
-=======
->>>>>>> remotes/origin/upstream
* Gets the base object of the item.
*
* @param it The list item