aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2018-11-05 14:27:05 +0900
committerHermet Park <hermetpark@gmail.com>2018-11-05 14:27:05 +0900
commite97b6b72bebfc91f44c4ab98f3ff1b7920344c07 (patch)
tree9e1d059c319b9208114b05df5356961d81ff06a0 /src/examples
parentelementary transit: add a new api - elm_transit_progress_value_set() (diff)
downloadefl-e97b6b72bebfc91f44c4ab98f3ff1b7920344c07.tar.gz
efl_ui : change efl_ui_view_list to efl_ui_list_view.
Summary: View is not a namespace, but an interface, So, View_List cannot be under the view namespace for now. it looks more suite to be end as View than List on this widget name. Firstly, it follows our common naming rules of class. Also, List_View is commonly presentable name on most UI frameworks, so it is very easy to understand what this widget can do for the user. Test Plan: Make works. Example is not works for now til stable model interface. Reviewers: felipealmeida, woohyun, cedric, Hermet Reviewed By: Hermet Subscribers: larryolj, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7234
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/elementary.mk14
-rw-r--r--src/examples/elementary/efl_ui_list_view_example.edc (renamed from src/examples/elementary/efl_ui_view_list_example.edc)0
-rw-r--r--src/examples/elementary/efl_ui_list_view_example_1.c (renamed from src/examples/elementary/efl_ui_view_list_example_1.c)16
-rw-r--r--src/examples/elementary/efl_ui_list_view_example_2.c (renamed from src/examples/elementary/efl_ui_view_list_example_2.c)8
-rw-r--r--src/examples/elementary/efl_ui_list_view_example_3.c (renamed from src/examples/elementary/efl_ui_view_list_example_3.c)26
5 files changed, 32 insertions, 32 deletions
diff --git a/src/examples/elementary.mk b/src/examples/elementary.mk
index 7146503901..0d0fa0052b 100644
--- a/src/examples/elementary.mk
+++ b/src/examples/elementary.mk
@@ -120,9 +120,9 @@ elementary/efl_thread_4.c \
elementary/efl_thread_5.c \
elementary/efl_thread_6.c \
elementary/efl_ui_list_example_1.c \
-elementary/efl_ui_view_list_example_1.c \
-elementary/efl_ui_view_list_example_2.c \
-elementary/efl_ui_view_list_example_3.c
+elementary/efl_ui_list_view_example_1.c \
+elementary/efl_ui_list_view_example_2.c \
+elementary/efl_ui_list_view_example_3.c
ELM_SRCS += \
elementary/bg_cxx_example_01.cc \
@@ -153,7 +153,7 @@ elementary/evas3d_map_example.edc \
elementary/theme_example.edc \
elementary/layout_example.edc \
elementary/codegen_example.edc \
-elementary/efl_ui_view_list_example.edc \
+elementary/efl_ui_list_view_example.edc \
elementary/prefs_example_03.edc
ELM_EPCS = \
@@ -334,9 +334,9 @@ elementary/efl_thread_4 \
elementary/efl_thread_5 \
elementary/efl_thread_6 \
elementary/efl_ui_list_example_1 \
-elementary/efl_ui_view_list_example_1 \
-elementary/efl_ui_view_list_example_2 \
-elementary/efl_ui_view_list_example_3
+elementary/efl_ui_list_view_example_1 \
+elementary/efl_ui_list_view_example_2 \
+elementary/efl_ui_list_view_example_3
#benchmark3d
#sphere-hunter
diff --git a/src/examples/elementary/efl_ui_view_list_example.edc b/src/examples/elementary/efl_ui_list_view_example.edc
index 75bafe1b83..75bafe1b83 100644
--- a/src/examples/elementary/efl_ui_view_list_example.edc
+++ b/src/examples/elementary/efl_ui_list_view_example.edc
diff --git a/src/examples/elementary/efl_ui_view_list_example_1.c b/src/examples/elementary/efl_ui_list_view_example_1.c
index 86b854261b..e0dc27f11c 100644
--- a/src/examples/elementary/efl_ui_view_list_example_1.c
+++ b/src/examples/elementary/efl_ui_list_view_example_1.c
@@ -1,4 +1,4 @@
-// gcc -o efl_ui_view_list_example_1 efl_ui_view_list_example_1.c `pkg-config --cflags --libs elementary`
+// gcc -o efl_ui_list_view_example_1 efl_ui_list_view_example_1.c `pkg-config --cflags --libs elementary`
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
@@ -24,7 +24,7 @@ char edj_path[PATH_MAX];
static void
_realized_cb(void *data, const Efl_Event *event)
{
- Efl_Ui_View_List_Item_Event *ie = event->info;
+ Efl_Ui_List_View_Item_Event *ie = event->info;
if (!ie->layout) return;
Efl_Ui_Layout_Object *layout = ie->layout;
@@ -35,7 +35,7 @@ _realized_cb(void *data, const Efl_Event *event)
static void
_unrealized_cb(void *data EINA_UNUSED, const Efl_Event *event)
{
- Efl_Ui_View_List_Item_Event *ie = event->info;
+ Efl_Ui_List_View_Item_Event *ie = event->info;
efl_ui_view_model_set(ie->layout, NULL);
efl_del(ie->layout);
@@ -75,7 +75,7 @@ elm_main(int argc, char **argv)
Evas_Object *win, *li;
Eo *model;
- win = elm_win_util_standard_add("viewlist", "Viewlist");
+ win = elm_win_util_standard_add("list_view", "List_View");
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_win_autodel_set(win, EINA_TRUE);
@@ -87,12 +87,12 @@ elm_main(int argc, char **argv)
efl_ui_model_connect(factory, "efl.text", "name");
efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
- li = efl_add(EFL_UI_VIEW_LIST_CLASS, win);
- efl_ui_view_list_layout_factory_set(li, factory);
+ li = efl_add(EFL_UI_LIST_VIEW_CLASS, win);
+ efl_ui_list_view_layout_factory_set(li, factory);
efl_ui_view_model_set(li, model);
- efl_event_callback_add(li, EFL_UI_VIEW_LIST_EVENT_ITEM_REALIZED, _realized_cb, NULL);
-// efl_event_callback_add(li, EFL_UI_VIEW_LIST_EVENT_ITEM_UNREALIZED, _unrealized_cb, NULL);
+ efl_event_callback_add(li, EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED, _realized_cb, NULL);
+// efl_event_callback_add(li, EFL_UI_LIST_VIEW_EVENT_ITEM_UNREALIZED, _unrealized_cb, NULL);
elm_win_resize_object_add(win, li);
evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
diff --git a/src/examples/elementary/efl_ui_view_list_example_2.c b/src/examples/elementary/efl_ui_list_view_example_2.c
index 310aa26976..c624cade19 100644
--- a/src/examples/elementary/efl_ui_view_list_example_2.c
+++ b/src/examples/elementary/efl_ui_list_view_example_2.c
@@ -1,4 +1,4 @@
-// gcc -o efl_ui_view_list_example_2 efl_ui_view_list_example_2.c `pkg-config --cflags --libs elementary`
+// gcc -o efl_ui_list_view_example_2 efl_ui_list_view_example_2.c `pkg-config --cflags --libs elementary`
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -23,7 +23,7 @@ elm_main(int argc, char **argv)
Eo *model, *li;
char *dirname;
- win = elm_win_util_standard_add("viewlist", "Viewlist");
+ win = elm_win_util_standard_add("list_view2", "List_View2");
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_win_autodel_set(win, EINA_TRUE);
@@ -36,8 +36,8 @@ elm_main(int argc, char **argv)
efl_ui_model_connect(factory, "efl.text", "filename");
efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
- li = efl_add(EFL_UI_VIEW_LIST_CLASS, win);
- efl_ui_view_list_layout_factory_set(li, factory);
+ li = efl_add(EFL_UI_LIST_VIEW_CLASS, win);
+ efl_ui_list_view_layout_factory_set(li, factory);
efl_ui_view_model_set(li, model);
evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
diff --git a/src/examples/elementary/efl_ui_view_list_example_3.c b/src/examples/elementary/efl_ui_list_view_example_3.c
index 10524580f3..46d5ca5813 100644
--- a/src/examples/elementary/efl_ui_view_list_example_3.c
+++ b/src/examples/elementary/efl_ui_list_view_example_3.c
@@ -1,4 +1,4 @@
-// gcc -o efl_ui_view_list_example_3 efl_ui_view_list_example_3.c `pkg-config --cflags --libs elementary`
+// gcc -o efl_ui_list_view_example_3 efl_ui_list_view_example_3.c `pkg-config --cflags --libs elementary`
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -113,21 +113,21 @@ static void
_bt_none_clicked(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
{
Evas_Object *li = data;
- efl_ui_view_list_select_mode_set(li, ELM_OBJECT_SELECT_MODE_NONE);
+ efl_ui_list_view_select_mode_set(li, ELM_OBJECT_SELECT_MODE_NONE);
}
static void
_bt_donly_clicked(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
{
Evas_Object *li = data;
- efl_ui_view_list_select_mode_set(li, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+ efl_ui_list_view_select_mode_set(li, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
}
static void
_bt_default_clicked(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
{
Evas_Object *li = data;
- efl_ui_view_list_select_mode_set(li, ELM_OBJECT_SELECT_MODE_DEFAULT);
+ efl_ui_list_view_select_mode_set(li, ELM_OBJECT_SELECT_MODE_DEFAULT);
}
static void
@@ -146,7 +146,7 @@ _bt_unset_clicked(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
static void
_realized_1_cb(void *data EINA_UNUSED, const Efl_Event *event)
{
- Efl_Ui_View_List_Item_Event *ie = event->info;
+ Efl_Ui_List_View_Item_Event *ie = event->info;
evas_object_size_hint_weight_set(ie->layout, EVAS_HINT_EXPAND, 0);
evas_object_size_hint_align_set(ie->layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -157,7 +157,7 @@ _realized_1_cb(void *data EINA_UNUSED, const Efl_Event *event)
static void
_realized_2_cb(void *data EINA_UNUSED, const Efl_Event *event)
{
- Efl_Ui_View_List_Item_Event *ie = event->info;
+ Efl_Ui_List_View_Item_Event *ie = event->info;
printf("relized 2\n");
elm_object_focus_allow_set(ie->layout, EINA_TRUE);
@@ -210,7 +210,7 @@ elm_main(int argc, char **argv)
priv = alloca(sizeof(Priv_Data));
memset(priv, 0, sizeof(Priv_Data));
- win = elm_win_util_standard_add("viewlist", "Viewlist");
+ win = elm_win_util_standard_add("list_view3", "List_View3");
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_win_autodel_set(win, EINA_TRUE);
@@ -225,22 +225,22 @@ elm_main(int argc, char **argv)
efl_ui_model_connect(factory, "efl.text", "filename");
efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
- priv->list1 = efl_add(EFL_UI_VIEW_LIST_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
- efl_event_callback_add(priv->list1, EFL_UI_VIEW_LIST_EVENT_ITEM_REALIZED, _realized_1_cb, priv);
+ priv->list1 = efl_add(EFL_UI_LIST_VIEW_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
+ efl_event_callback_add(priv->list1, EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED, _realized_1_cb, priv);
evas_object_size_hint_weight_set(priv->list1, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(priv->list1, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_pack_end(bx, priv->list1);
- efl_ui_view_list_layout_factory_set(priv->list1, factory);
+ efl_ui_list_view_layout_factory_set(priv->list1, factory);
factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
efl_ui_model_connect(factory, "efl.text", "filename");
efl_ui_model_connect(factory, "signal/efl,state,%v", "selected");
efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
- priv->list2 = efl_add(EFL_UI_VIEW_LIST_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
- efl_event_callback_add(priv->list2, EFL_UI_VIEW_LIST_EVENT_ITEM_REALIZED, _realized_2_cb, priv->list2);
+ priv->list2 = efl_add(EFL_UI_LIST_VIEW_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
+ efl_event_callback_add(priv->list2, EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED, _realized_2_cb, priv->list2);
evas_object_size_hint_weight_set(priv->list2, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(priv->list2, EVAS_HINT_FILL, EVAS_HINT_FILL);
- efl_ui_view_list_layout_factory_set(priv->list2, factory);
+ efl_ui_list_view_layout_factory_set(priv->list2, factory);
vbx = elm_box_add(win);
elm_box_pack_end(bx, vbx);