rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=0565f4b1688d79a2d8e10e94abb12b1d2e75d21d
commit 0565f4b1688d79a2d8e10e94abb12b1d2e75d21d Author: Vitalii Vorobiov <vi.vorob...@samsung.com> Date: Thu Dec 17 16:44:04 2015 +0200 property_demo: text and swallow property for different text and content set --- src/bin/Makefile.am | 2 ++ src/bin/ui/property_demo_swallow.c | 55 ++++++++++++++++++++++++++++++++++++++ src/bin/ui/property_demo_text.c | 46 +++++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+) diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am index 011cc52..1848ee9 100644 --- a/src/bin/Makefile.am +++ b/src/bin/Makefile.am @@ -68,6 +68,8 @@ libete_a_SOURCES = \ ../../src/bin/ui/property_sound.c \ ../../src/bin/ui/property_style.c \ ../../src/bin/ui/property_color.c \ +../../src/bin/ui/property_demo_swallow.c \ +../../src/bin/ui/property_demo_text.c \ ../../src/bin/ui/blocks/ui_widget_list.c \ ../../src/bin/ui/blocks/ui_signal_list.c \ ../../src/bin/ui/blocks/ui_states_list.c \ diff --git a/src/bin/ui/property_demo_swallow.c b/src/bin/ui/property_demo_swallow.c new file mode 100644 index 0000000..af13cbb --- /dev/null +++ b/src/bin/ui/property_demo_swallow.c @@ -0,0 +1,55 @@ +/* + * Edje Theme Editor + * Copyright (C) 2013-2014 Samsung Electronics. + * + * This file is part of Edje Theme Editor. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; If not, see www.gnu.org/licenses/lgpl.html. + */ + +#include "property_private.h" +#include "property_macros.h" +#include "main_window.h" +#include "string_common.h" +#include "common_macro.h" +#include "new_history.h" +#include "editor.h" +#include "validator.h" + +#include "signals.h" + +#define DEMO_SWALLOW_PROP_DATA "image_prop_data" + +#define DEMO_SWALLOW_PROP_DATA_GET() \ + assert(property != NULL); \ + Demo_Swallow_Prop_Data *pd = evas_object_data_get(property, DEMO_SWALLOW_PROP_DATA); \ + assert(pd != NULL); + +struct _Demo_Swallow_Prop_Data +{ + Evas_Object *name; + Evas_Object *visibility; + + Evas_Object *swallow_content; + + Evas_Object *color; + Evas_Object *picture; + Evas_Object *widget; + + Evas_Object *size_h, *size_w; + Evas_Object *hint_h, *hint_w; + Evas_Object *align_x, *align_y; +}; +typedef struct _Demo_Swallow_Prop_Data Demo_Swallow_Prop_Data; + + diff --git a/src/bin/ui/property_demo_text.c b/src/bin/ui/property_demo_text.c new file mode 100644 index 0000000..7d2f73a --- /dev/null +++ b/src/bin/ui/property_demo_text.c @@ -0,0 +1,46 @@ +/* + * Edje Theme Editor + * Copyright (C) 2013-2014 Samsung Electronics. + * + * This file is part of Edje Theme Editor. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; If not, see www.gnu.org/licenses/lgpl.html. + */ + +#include "property_private.h" +#include "property_macros.h" +#include "main_window.h" +#include "string_common.h" +#include "common_macro.h" +#include "new_history.h" +#include "editor.h" +#include "validator.h" + +#include "signals.h" + +#define DEMO_TEXT_PROP_DATA "image_prop_data" + +#define DEMO_TEXT_PROP_DATA_GET() \ + assert(property != NULL); \ + Demo_Text_Prop_Data *pd = evas_object_data_get(property, DEMO_TEXT_PROP_DATA); \ + assert(pd != NULL); + +struct _Demo_Text_Prop_Data +{ + Evas_Object *name; + Evas_Object *visibility; + Evas_Object *text; +}; +typedef struct _Demo_Text_Prop_Data Demo_Text_Prop_Data; + + --