-#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
+#include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
void
void
test_flip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *bx, *bx2, *fl, *o, *bt, *ly;
+ Evas_Object *win, *bx, *bx2, *fl, *o, *bt, *ly;
char buf[PATH_MAX];
- win = elm_win_add(NULL, "flip", ELM_WIN_BASIC);
- elm_win_title_set(win, "Flip");
+ win = elm_win_util_standard_add("flip", "Flip");
elm_win_focus_highlight_enabled_set(win, EINA_TRUE);
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_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), "sky_01.jpg");
elm_bg_file_set(o, buf, NULL);
-<<<<<<< HEAD
- elm_flip_content_front_set(fl, o);
-=======
elm_object_part_content_set(fl, "front", o);
->>>>>>> remotes/origin/upstream
evas_object_show(o);
ly = elm_layout_add(win);
elm_layout_file_set(ly, buf, "layout");
evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-<<<<<<< HEAD
- elm_flip_content_back_set(fl, ly);
-=======
elm_object_part_content_set(fl, "back", ly);
->>>>>>> remotes/origin/upstream
evas_object_show(ly);
bt = elm_button_add(ly);
elm_box_pack_end(o, li);
evas_object_show(li);
-<<<<<<< HEAD
- elm_flip_content_front_set(fl, o);
-=======
elm_object_part_content_set(fl, "front", o);
->>>>>>> remotes/origin/upstream
evas_object_show(o);
en = elm_entry_add(win);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-<<<<<<< HEAD
- elm_flip_content_back_set(fl, en);
-=======
elm_object_part_content_set(fl, "back", en);
->>>>>>> remotes/origin/upstream
evas_object_show(en);
evas_object_show(fl);
void
test_flip3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *bx, *bx2, *fl, *fl_f, *fl_b, *o, *bt, *fr;
+ Evas_Object *win, *bx, *bx2, *fl, *fl_f, *fl_b, *o, *bt, *fr;
char buf[PATH_MAX];
- win = elm_win_add(NULL, "flip3", ELM_WIN_BASIC);
- elm_win_title_set(win, "Flip Flip");
+ win = elm_win_util_standard_add("flip3", "Flip Flip");
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);
elm_object_text_set(fr, "Front");
evas_object_size_hint_align_set(fr, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(fr, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-<<<<<<< HEAD
- elm_flip_content_front_set(fl, fr);
-=======
elm_object_part_content_set(fl, "front", fr);
->>>>>>> remotes/origin/upstream
evas_object_show(fr);
fl_f = elm_flip_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), "sky_01.jpg");
elm_bg_file_set(o, buf, NULL);
-<<<<<<< HEAD
- elm_flip_content_front_set(fl_f, o);
-=======
elm_object_part_content_set(fl_f, "front", o);
->>>>>>> remotes/origin/upstream
evas_object_show(o);
o = elm_bg_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), "sky_02.jpg");
elm_bg_file_set(o, buf, NULL);
-<<<<<<< HEAD
- elm_flip_content_back_set(fl_f, o);
-=======
elm_object_part_content_set(fl_f, "back", o);
->>>>>>> remotes/origin/upstream
evas_object_show(o);
fr = elm_frame_add(win);
elm_object_text_set(fr, "Back");
evas_object_size_hint_align_set(fr, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(fr, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-<<<<<<< HEAD
- elm_flip_content_back_set(fl, fr);
-=======
elm_object_part_content_set(fl, "back", fr);
->>>>>>> remotes/origin/upstream
evas_object_show(fr);
fl_b = elm_flip_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), "sky_03.jpg");
elm_bg_file_set(o, buf, NULL);
-<<<<<<< HEAD
- elm_flip_content_front_set(fl_b, o);
-=======
elm_object_part_content_set(fl_b, "front", o);
->>>>>>> remotes/origin/upstream
evas_object_show(o);
o = elm_bg_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), "sky_04.jpg");
elm_bg_file_set(o, buf, NULL);
-<<<<<<< HEAD
- elm_flip_content_back_set(fl_b, o);
-=======
elm_object_part_content_set(fl_b, "back", o);
->>>>>>> remotes/origin/upstream
evas_object_show(o);
bx2 = elm_box_add(win);
void
test_flip4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *bx, *fl, *im, *li, *bt, *rd, *rdg;
+ Evas_Object *win, *bx, *fl, *im, *li, *bt, *rd, *rdg;
char buf[PATH_MAX];
- win = elm_win_add(NULL, "flip4", ELM_WIN_BASIC);
- elm_win_title_set(win, "Flip Interactive");
+ win = elm_win_util_standard_add("flip-interactive", "Flip Interactive");
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_data_set(win, "fl", fl);
elm_flip_interaction_set(fl, ELM_FLIP_INTERACTION_NONE);
-<<<<<<< HEAD
- elm_flip_interacton_direction_enabled_set(fl, ELM_FLIP_DIRECTION_UP, EINA_TRUE);
- elm_flip_interacton_direction_enabled_set(fl, ELM_FLIP_DIRECTION_DOWN, EINA_TRUE);
- elm_flip_interacton_direction_enabled_set(fl, ELM_FLIP_DIRECTION_LEFT, EINA_TRUE);
- elm_flip_interacton_direction_enabled_set(fl, ELM_FLIP_DIRECTION_RIGHT, EINA_TRUE);
- elm_flip_interacton_direction_hitsize_set(fl, ELM_FLIP_DIRECTION_UP, 0.25);
- elm_flip_interacton_direction_hitsize_set(fl, ELM_FLIP_DIRECTION_DOWN, 0.25);
- elm_flip_interacton_direction_hitsize_set(fl, ELM_FLIP_DIRECTION_LEFT, 0.25);
- elm_flip_interacton_direction_hitsize_set(fl, ELM_FLIP_DIRECTION_RIGHT, 0.25);
-=======
elm_flip_interaction_direction_enabled_set(fl, ELM_FLIP_DIRECTION_UP, EINA_TRUE);
elm_flip_interaction_direction_enabled_set(fl, ELM_FLIP_DIRECTION_DOWN, EINA_TRUE);
elm_flip_interaction_direction_enabled_set(fl, ELM_FLIP_DIRECTION_LEFT, EINA_TRUE);
elm_flip_interaction_direction_hitsize_set(fl, ELM_FLIP_DIRECTION_DOWN, 0.25);
elm_flip_interaction_direction_hitsize_set(fl, ELM_FLIP_DIRECTION_LEFT, 0.25);
elm_flip_interaction_direction_hitsize_set(fl, ELM_FLIP_DIRECTION_RIGHT, 0.25);
->>>>>>> remotes/origin/upstream
evas_object_show(fl);
im = evas_object_image_filled_add(evas_object_evas_get(win));
snprintf(buf, sizeof(buf), "%s/images/%s",
elm_app_data_dir_get(), "twofish.jpg");
evas_object_image_file_set(im, buf, NULL);
-<<<<<<< HEAD
- elm_flip_content_front_set(fl, im);
-=======
elm_object_part_content_set(fl, "front", im);
->>>>>>> remotes/origin/upstream
evas_object_show(im);
#if 0
snprintf(buf, sizeof(buf), "%s/images/%s",
elm_app_data_dir_get(), "sky_04.jpg");
evas_object_image_file_set(im, buf, NULL);
-<<<<<<< HEAD
- elm_flip_content_back_set(fl, im);
-=======
elm_object_part_content_set(fl, "back", im);
->>>>>>> remotes/origin/upstream
evas_object_show(im);
#else
li = elm_list_add(win);
elm_list_item_append(li, "Item 2", NULL, NULL, NULL, NULL);
elm_list_item_append(li, "Item 3 (Which is very long just for testing purposes)", NULL, NULL, NULL, NULL);
elm_list_go(li);
-<<<<<<< HEAD
- elm_flip_content_back_set(fl, li);
-=======
elm_object_part_content_set(fl, "back", li);
->>>>>>> remotes/origin/upstream
evas_object_show(li);
#endif