platform/upstream/efl.git
5 years agoTemporarily enabled svg as hot fix 87/211487/2 submit/tizen/20190806.020207
WooHyun Jung [Tue, 6 Aug 2019 01:11:53 +0000 (10:11 +0900)]
Temporarily enabled svg as hot fix

When svg is disabled, tizen-themes are failed
to be built with the following error message"

"void LottieParserImpl::ParseNext(): Assertion `0'
failed."

This patch needs to be reverted after the error is
fixed by Hermet :)

@tizen_fix

Change-Id: I79607a797cd139180f668dc18a800277022336e2

5 years agoector_software_rasterizer: Add default value for stroke's miter_limit 78/211478/1
JunsuChoi [Mon, 5 Aug 2019 09:08:50 +0000 (18:08 +0900)]
ector_software_rasterizer: Add default value for stroke's miter_limit

Summary:
Currently the default value of miter_limit is defined as 0.
miter_limit should be specified to a value other than 0. becuase it is affected by width.
See below for an explanation of this.
https://www.freetype.org/freetype2/docs/reference/ft2-glyph_stroker.html#ft_stroker_linejoin

There is no particular reason why the default value is 0x4.
It only refers to the standard of web svg.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-miterlimit

Test Plan:
   setenv("ECTOR_BACKEND", "default", 1);
   elm_init(argc, argv);
   Evas_Object *win = elm_win_util_standard_add(NULL, "test");
   evas_object_smart_callback_add(win, "delete,request", win_del, 0);
   elm_win_autodel_set(win, 1);
   Evas_Object *bg = elm_bg_add(win);
   elm_bg_color_set(bg, 255,255,255);
   evas_object_size_hint_align_set(bg, EVAS_HINT_FILL, EVAS_HINT_FILL);
   evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_show(bg);

   Evas *evas = evas_object_evas_get(win);

   Evas_Object *vg = evas_object_vg_add(evas);
   evas_object_show(vg);
   Evas_Object *container = evas_vg_container_add(vg);

   Evas_Object *shape = evas_vg_shape_add(container); //Default is EFL_GFX_JOIN_MITER
   evas_vg_shape_append_rect(shape, 0, 0, 100 , 100, 0, 0);
   evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255);
   evas_vg_shape_stroke_width_set(shape, 10);
   evas_vg_node_origin_set(shape, 50, 150);

   shape = evas_vg_shape_add(container);
   evas_vg_shape_append_rect(shape, 0, 0, 100 , 100, 0, 0);
   evas_vg_shape_stroke_join_set(shape, EFL_GFX_JOIN_BEVEL);
   evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255);
   evas_vg_shape_stroke_width_set(shape, 10);
   evas_vg_node_origin_set(shape, 200, 150);

   shape = evas_vg_shape_add(container);
   evas_vg_shape_append_rect(shape, 0, 0, 100 , 100, 0, 0);
   evas_vg_shape_stroke_join_set(shape, EFL_GFX_JOIN_ROUND);
   evas_vg_shape_stroke_color_set(shape, 255, 0, 0, 255);
   evas_vg_shape_stroke_width_set(shape, 10);
   evas_vg_node_origin_set(shape, 350, 150);

   evas_object_vg_root_node_set(vg, container);
   elm_object_content_set(bg, vg);

   elm_win_resize_object_add(win, bg);
   evas_object_resize(win, WIDTH, HEIGHT);
   evas_object_show(win);
   elm_run();
   elm_shutdown();

Reviewers: smohanty, Hermet, kimcinoo

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9492

Change-Id: I42ad77c8e31d3a6ad10ce894c3c535e00d932be4

5 years agoRevert "Revert "Backported missing svg loader from upstream"" 23/211223/2
Hermet Park [Wed, 31 Jul 2019 07:30:03 +0000 (16:30 +0900)]
Revert "Revert "Backported missing svg loader from upstream""

This reverts commit b016b078d8baa2d0d8d753415133aac0cdc1364a.

Change-Id: I038c93d2e2faae9658b82283320480849f75fdb7

5 years agoelm_module_tizen_helper : needs to include the definition for EAPI 70/211470/1
WooHyun Jung [Mon, 5 Aug 2019 11:43:50 +0000 (20:43 +0900)]
elm_module_tizen_helper : needs to include the definition for EAPI

Change-Id: I81084d2d24cdcd0f3a4dd32f092d84aa84c448ca

5 years agofix build errors while doing integration works 54/211454/2 submit/tizen/20190805.083058
WooHyun Jung [Mon, 5 Aug 2019 07:32:08 +0000 (16:32 +0900)]
fix build errors while doing integration works

1. set @beta to properties which include void_ptr
2. EFL_UI_EVENT_CLICKED -> EFL_INPUT_EVENT_CLICKED
3. apply EFL_CANVAS_GROUP_CALC_OPS to tizen only widgets
4. fix wrong integration for evas_gl_api.c

Change-Id: Iec7a61f1c37925b8c9ae9c965807b2ec3ffb8732

5 years agovg json: --log level 27/211127/2
Hermet Park [Tue, 30 Jul 2019 07:58:02 +0000 (16:58 +0900)]
vg json: --log level

Vector needs to try load a lottie file in a brutal force way,
If the input source is not identified.

Change-Id: I5811eab7ddb1791d15d99ed0e9c6ca6699ab6c42

5 years agoefl_ui_animation_view: sync with upstream code. 49/211149/2
Hermet Park [Tue, 30 Jul 2019 10:45:57 +0000 (19:45 +0900)]
efl_ui_animation_view: sync with upstream code.

Change-Id: I511c3665be37da7ad14e2b892e16ca59a90dd2a7

5 years agoRevert "Revert "ecore_wl2_input: do not generate duplicated mouse in events"" 27/211227/2
Hermet Park [Wed, 31 Jul 2019 07:32:11 +0000 (16:32 +0900)]
Revert "Revert "ecore_wl2_input: do not generate duplicated mouse in events""

This reverts commit 1abf7b4373fe10fa860f3ab0c71d9c176c533cfa.

Change-Id: Id1148fe0f03b0b66f039430063ed0658ba843221

5 years agoRevert "Revert "fix build break when wayland2 is not enabled"" 26/211226/2
Hermet Park [Wed, 31 Jul 2019 07:32:00 +0000 (16:32 +0900)]
Revert "Revert "fix build break when wayland2 is not enabled""

This reverts commit c84e03c43c1dac604652915de683df28ec182226.

Change-Id: I100de91a9b22fc5ef3d97a3de209dbd134747216

5 years agoRevert "Revert "move tizen specific structure to its own header"" 25/211225/2
Hermet Park [Wed, 31 Jul 2019 07:31:35 +0000 (16:31 +0900)]
Revert "Revert "move tizen specific structure to its own header""

This reverts commit 0f912e0bde30eaa92ae14c1e7ae527947200bf3d.

Change-Id: Ied971c2f211b1a9f77422259b0d8689b0f5b05ae

5 years agoRevert "Revert "remove unnecessary dependancy from elementary module to keep it same... 24/211224/2
Hermet Park [Wed, 31 Jul 2019 07:31:10 +0000 (16:31 +0900)]
Revert "Revert "remove unnecessary dependancy from elementary module to keep it same as upstream.""

This reverts commit db821525c5ebd458a998de2e9fadd51e8a9cfb53.

Change-Id: Ia90b005793a635691e17af9bb674b8adc9f0bcd1

5 years agoRevert "Revert "meson: move all tizen specific dependancy to 'tizen' option"" 21/211221/2
Hermet Park [Wed, 31 Jul 2019 07:29:50 +0000 (16:29 +0900)]
Revert "Revert "meson: move all tizen specific dependancy to 'tizen' option""

This reverts commit 32a707a0161975d35fe64beff351e1a98433c962.

Change-Id: I7a355d74ec4856ec7d1b7ad93d8012d3116313f3

5 years agoRevert "Revert "meson: move tizen configuration from meson_options to efl.spec"" 20/211220/2
Hermet Park [Wed, 31 Jul 2019 07:29:38 +0000 (16:29 +0900)]
Revert "Revert "meson: move tizen configuration from meson_options to efl.spec""

This reverts commit f1efd064e0e00444b1c523bf979c1866f89cd10a.

Change-Id: Iada00ffe121a943dcecb3ac4ae1bee398d93db5d

5 years agoRevert "Revert "meson: remove unnecessary depenadancy"" 19/211219/2
Hermet Park [Wed, 31 Jul 2019 07:29:25 +0000 (16:29 +0900)]
Revert "Revert "meson: remove unnecessary depenadancy""

This reverts commit 45c14c8a3728ddbaba4b661236f345cb1d43cfa4.

Change-Id: I7f93ef831fd159be1656292a67d9651563cb4380

5 years agoRevert "Revert "meson: Enable dlog logging system only if dlog library available"" 18/211218/2
Hermet Park [Wed, 31 Jul 2019 07:29:07 +0000 (16:29 +0900)]
Revert "Revert "meson: Enable dlog logging system only if dlog library available""

This reverts commit 4b134a0d878fe54953bc73253bfef3c22113a1b3.

Change-Id: Ia56df95a7a5d2c89c4ecd23ab5e4c739d6882409

5 years agoefl_ui_spin: move the step implementation to spin_button
Marcel Hollerbach [Thu, 1 Aug 2019 11:55:06 +0000 (13:55 +0200)]
efl_ui_spin: move the step implementation to spin_button

having efl_ui_spin implementing efl.ui.range_interactive does not make
sense. Efl.Ui.Spin is a not interactive widget, so it should not
implement that interface.

ref T7897

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9475

5 years agoefl_ui_spin_button: fix initial displaying of formatting string
Marcel Hollerbach [Thu, 1 Aug 2019 11:35:53 +0000 (13:35 +0200)]
efl_ui_spin_button: fix initial displaying of formatting string

spin_button should also implement formatted_apply, the label has a
different part name then spin.

ref T8097

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9474

5 years agoefl_ui_spin_button: stop calling only the parent
Marcel Hollerbach [Thu, 1 Aug 2019 11:29:06 +0000 (13:29 +0200)]
efl_ui_spin_button: stop calling only the parent

if the spin button is skipped the spin is called directly, the label
will display the wrong value.

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9473

5 years agoelm toolbar - fix toolbar item separators and refactor aling/fill of item
Carsten Haitzler (Rasterman) [Fri, 2 Aug 2019 16:17:48 +0000 (17:17 +0100)]
elm toolbar - fix toolbar item separators and refactor aling/fill of item

only set this is one place and thus get it consistent/right for
separators vs other items.

@fix

5 years agoelm toolbar - fix packing options at start to avoid visual layout bugs
Carsten Haitzler (Rasterman) [Fri, 2 Aug 2019 14:50:44 +0000 (15:50 +0100)]
elm toolbar - fix packing options at start to avoid visual layout bugs

i spoetted open moving around and shrinking when it shouldnt -
packging options (fill/align) not always set right. this fixes that.

@fix

5 years agoecore evas x and e sync rendering - disable as it's unused
Carsten Haitzler (Rasterman) [Thu, 1 Aug 2019 08:16:47 +0000 (09:16 +0100)]
ecore evas x and e sync rendering - disable as it's unused

this has been optional and unused by e for a very long time ot try
sync front-buffered software rendering with the wm/compositor. we may
as well remove the bloat that is here that is unused... it's been
inactive for many years anyway.

5 years agomono-docs: Add more event args link for event handlers
Xavi Artigas [Fri, 2 Aug 2019 15:29:27 +0000 (17:29 +0200)]
mono-docs: Add more event args link for event handlers

There were some events missing <value> tags (see f01b1134012bafcc4d0c82588230796a7c9ef5bb)

5 years agomono-docs: Escape the recently added docs
Xavi Artigas [Fri, 2 Aug 2019 14:15:20 +0000 (16:15 +0200)]
mono-docs: Escape the recently added docs

This is the second time I forget...

5 years agomono-docs: Add descriptions to event args
Xavi Artigas [Fri, 2 Aug 2019 12:03:26 +0000 (14:03 +0200)]
mono-docs: Add descriptions to event args

Event args structs had fields without description (missing <value> tag).

5 years agomono-docs: Proper indentation for previous commit
Xavi Artigas [Fri, 2 Aug 2019 11:53:19 +0000 (13:53 +0200)]
mono-docs: Proper indentation for previous commit

5 years agomono-docs: Add event args link for event handlers
Xavi Artigas [Fri, 2 Aug 2019 11:49:20 +0000 (13:49 +0200)]
mono-docs: Add event args link for event handlers

For some reason DocFX does not generate links for templated event handlers:
event EventHandler<Efl.Input.IInterfacePointerOutEvt_Args> PointerOutEvt;

After unsuccessfully trying to find out why, this patch adds the link to the
event arguments in a <value> tag, so at least it shows in the documentation
and the reader has somewhere to click to find out what arguments an event
is sending.

5 years agoefl_canvas_rectangle: rendering optmization.
Hermet Park [Fri, 2 Aug 2019 09:17:40 +0000 (18:17 +0900)]
efl_canvas_rectangle: rendering optmization.

There was a weird profiling result that rectangles drawing is much much slower than images.
Checked reason, the computation rect clip area is the overload point.

I don't think it's necesary but we can simplely improve the performance here
by replacing native function.

I tested this by drawing 400 number of rectangles,
and this patch improved up abt 10 fps(sw), 20fps(gl).

@TEST CODE

   MAX_SIZE = 400;

   for(int i=0; i< MAX_SIZE; i++)
   {
      Evas_Object *rect = evas_object_rectangle_add(layout);

      int x = rand() % WINDOW_WIDTH;
      int y = rand() % WINDOW_HEIGHT;

      evas_object_resize(rect, ELM_SCALE_SIZE(200), ELM_SCALE_SIZE(200));
      evas_object_move(rect, x, y);
      evas_object_color_set(rect, (rand() % 256), (rand() % 256), (rand() % 256), 255);
      evas_object_show(rect);

      Elm_Transit *transit = elm_transit_add();
      elm_transit_object_add(transit, rect);

      int dX = rand() % WINDOW_WIDTH;
      int dY = rand() % WINDOW_HEIGHT;

      elm_transit_effect_translation_add(transit, 0, 0, dX - x, dY - y);
      elm_transit_repeat_times_set(transit, -1);
      elm_transit_duration_set(transit, 1.0);

      elm_transit_go(transit);
   }

5 years agoevas rectangle: code refactoring.
Hermet Park [Fri, 2 Aug 2019 09:13:14 +0000 (18:13 +0900)]
evas rectangle: code refactoring.

Just removed white spaces, fixed indentation.

No logical changes.

5 years agoefl_input_clickable: increase the time interval for repeated counter
Jaehyun Cho [Fri, 2 Aug 2019 08:43:45 +0000 (10:43 +0200)]
efl_input_clickable: increase the time interval for repeated counter

Summary:
The repeated counter in Efl.Input.Clickable_Clicked can be used to
identify double click or triple click.

Previously, the repeated counter in Efl.Input.Clickable_Clicked was
calculated within the time interval 0.1 second.

Now, the time interval for the repeated counter is increased to 0.25
second. It seems that 0.25 second is more appropriate to identify if the
two consecutive clicks should be considered together.
(e.g. considered as double click or triple click)
Moreover, in ecore_event and edje, 0.25 second is already used as a time
interval for double click.

Test Plan:
1. Run Efl.Ui.Button in elementary_test
2. Do double click or triple click the buttons

Reviewers: segfaultxavi, bu5hm4n, YOhoho

Reviewed By: segfaultxavi, YOhoho

Subscribers: YOhoho, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9485

5 years agoefl_ui/tags: set entry to fill vertically
Mike Blumenkrantz [Thu, 1 Aug 2019 17:34:18 +0000 (13:34 -0400)]
efl_ui/tags: set entry to fill vertically

forgot this in previous patch

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9479

5 years agoefl_ui/tags: use user size hints for internal objects
Mike Blumenkrantz [Thu, 1 Aug 2019 13:20:34 +0000 (09:20 -0400)]
efl_ui/tags: use user size hints for internal objects

restricted min size hint should only be set by an object's own group_calc
function. all other cases should use regular min size hint

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9477

5 years agoefl_ui/flow.box: fix item calc with mixed weights
Mike Blumenkrantz [Thu, 1 Aug 2019 17:31:58 +0000 (13:31 -0400)]
efl_ui/flow.box: fix item calc with mixed weights

if a box contains an entire row of items with weight(0), and the next
row contains items with weights set, the item count must be correctly
incremented so that the box uses the right items in its calculations

@fix

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9480

5 years agoexamples: cast to uintptr_t instead of long
Vincent Torri [Thu, 1 Aug 2019 06:44:00 +0000 (06:44 +0000)]
examples: cast to uintptr_t instead of long

on Windows, long is a 32 bits type

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9470

5 years agoefl_ui_position_manager: add event for updating the range
Marcel Hollerbach [Wed, 31 Jul 2019 17:52:08 +0000 (19:52 +0200)]
efl_ui_position_manager: add event for updating the range

the new event can be used to message back the currently visible range
from the position to the collection / collection_view.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9462

5 years agospinner_example: migrate it to efl::ui::spin_button
Marcel Hollerbach [Thu, 1 Aug 2019 07:55:05 +0000 (09:55 +0200)]
spinner_example: migrate it to efl::ui::spin_button

we should do that more often, that shows issues.
Right now there seems to be an issue with accessors in cxx, something is
freeing the accessor twice. So this feature is disabled right now.

ref T8100

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9471

5 years agoefl_ui_spin_button: rename circulate to wraparound
Marcel Hollerbach [Wed, 31 Jul 2019 16:06:43 +0000 (18:06 +0200)]
efl_ui_spin_button: rename circulate to wraparound

ref T8097

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9461

5 years agoefl_ui_spec: add a test suite for the steady event
Marcel Hollerbach [Wed, 31 Jul 2019 13:19:32 +0000 (15:19 +0200)]
efl_ui_spec: add a test suite for the steady event

this checks that the steady event is correctly emitted after some time.
Right now this test does notthing for EFL_UI_SPIN_CLASS. Reason for this
is that Spin is not interactive, even if it implements the interface for
it. Maybe something we should resolve in future.

ref T7894

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9460

5 years agoefl_ui_spin_button: use the newly emitted event from range_interactive
Marcel Hollerbach [Wed, 31 Jul 2019 15:49:44 +0000 (17:49 +0200)]
efl_ui_spin_button: use the newly emitted event from range_interactive

this event is not also in range_interactive, so better use this.

ref T8097

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9459

5 years agoefl_ui_range_interactive: add a new event
Marcel Hollerbach [Wed, 31 Jul 2019 12:38:13 +0000 (14:38 +0200)]
efl_ui_range_interactive: add a new event

the steady event from slider now moved here. A spec test suite and the
corresponding implementations will follow.

ref T7894

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9458

5 years agocsharp: Add a documentation_string generator
Lauro Moura [Thu, 1 Aug 2019 19:12:12 +0000 (21:12 +0200)]
csharp: Add a documentation_string generator

Summary:
Escapes a single string, without leading `///`

Depends on D9481

Reviewers: segfaultxavi, felipealmeida

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9482

5 years agocsharp: Avoid generating empty <value> tags
Lauro Moura [Thu, 1 Aug 2019 19:12:10 +0000 (21:12 +0200)]
csharp: Avoid generating empty <value> tags

Depends on D9478

Reviewers: segfaultxavi, felipealmeida

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9481

5 years agomono-docs: Add misc struct docs
Xavi Artigas [Thu, 1 Aug 2019 19:12:10 +0000 (21:12 +0200)]
mono-docs: Add misc struct docs

Summary:
Structs have a convenience constructor which was missing parameter documentation.
Struct fields need a <value> tag or there is a hole in the generated docs.
The documentation for the type of the field has been used, when available.

Test Plan: Build docs and look at generated pages for structs.

Reviewers: lauromoura, vitor.sousa, felipealmeida

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9478

5 years agoeolian: remove __builtin_free_cb
Daniel Kolesa [Thu, 1 Aug 2019 14:54:00 +0000 (16:54 +0200)]
eolian: remove __builtin_free_cb

This has long been unused. If we need to replace this eventually,
it should be done correctly.

5 years agoeolian: disallow ptr() in containers in stable API
Daniel Kolesa [Thu, 1 Aug 2019 14:47:52 +0000 (16:47 +0200)]
eolian: disallow ptr() in containers in stable API

5 years agotests/ecore_wl2: Add test for ecore_wl2_input_name_get
Christopher Michael [Thu, 1 Aug 2019 13:04:09 +0000 (09:04 -0400)]
tests/ecore_wl2: Add test for ecore_wl2_input_name_get

ref T8016

5 years agotests/ecore_wl2: Add test for ecore_wl2_input_keymap_get
Christopher Michael [Thu, 1 Aug 2019 12:59:26 +0000 (08:59 -0400)]
tests/ecore_wl2: Add test for ecore_wl2_input_keymap_get

ref T8016

5 years agotests/ecore_wl2: Add test for ecore_wl2_input_display_get function
Christopher Michael [Thu, 1 Aug 2019 12:56:42 +0000 (08:56 -0400)]
tests/ecore_wl2: Add test for ecore_wl2_input_display_get function

ref T8016

5 years agotests/ecore_wl2: Add test for ecore_wl2_input_seat_id_get function
Christopher Michael [Thu, 1 Aug 2019 12:53:45 +0000 (08:53 -0400)]
tests/ecore_wl2: Add test for ecore_wl2_input_seat_id_get function

ref T8016

5 years agotests/ecore_wl2: Fix assert tests for some window functions
Christopher Michael [Thu, 1 Aug 2019 12:53:21 +0000 (08:53 -0400)]
tests/ecore_wl2: Fix assert tests for some window functions

ref T8016

5 years agotests/ecore_wl2: Add start of Ecore_Wl2_Input API tests
Christopher Michael [Thu, 1 Aug 2019 12:41:07 +0000 (08:41 -0400)]
tests/ecore_wl2: Add start of Ecore_Wl2_Input API tests

ref T8016

5 years agoefl_ui_collection: Mark unused parameter
Christopher Michael [Thu, 1 Aug 2019 12:32:42 +0000 (08:32 -0400)]
efl_ui_collection: Mark unused parameter

double align is actually unused in this function, so mark it as such

5 years agoeolian_mono: Fix whitespace in generated cs files
Xavi Artigas [Thu, 1 Aug 2019 11:27:51 +0000 (13:27 +0200)]
eolian_mono: Fix whitespace in generated cs files

Pet peeve of mine.

5 years agofix warning
Marcel Hollerbach [Thu, 1 Aug 2019 09:40:05 +0000 (11:40 +0200)]
fix warning

5 years agoelementary_test: add a test to show our frame widget
Marcel Hollerbach [Thu, 27 Jun 2019 15:52:53 +0000 (17:52 +0200)]
elementary_test: add a test to show our frame widget

it does not work yet, but we at least have the chance of seeing it.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9194

5 years agoefl_input_clickable: add longpress_abort
WooHyun Jung [Thu, 1 Aug 2019 09:19:51 +0000 (09:19 +0000)]
efl_input_clickable: add longpress_abort

Now, a specific class which uses efl_input_clickable_util is able
to cancel ongoing longpress event by calling longpress_abort.

This commit shows how efl_ui_text uses longpress_abort to satisfy
its own longpress use case

ref T7847

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9455

5 years agoefl_ui_clickable_util: remove efl_input_processed_set
WooHyun Jung [Thu, 1 Aug 2019 08:19:16 +0000 (17:19 +0900)]
efl_ui_clickable_util: remove efl_input_processed_set

Summary:
efl_input_processed_set needs to be used only when specific
event marks that it is monopolizing current user interaction.
(such as scrolling).
But, press event or unpress event looks not that proper.

Reviewers: bu5hm4n, Jaehyun_Cho

Reviewed By: bu5hm4n, Jaehyun_Cho

Subscribers: AbdullehGhujeh, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9454

5 years agoefl_ui_position_manager: move from accessor to function callback
Marcel Hollerbach [Tue, 30 Jul 2019 09:13:46 +0000 (11:13 +0200)]
efl_ui_position_manager: move from accessor to function callback

this commit enables access to the item structure of the collection via a
function callback. The function callback now enables batching for items,
which does not pay off right now. However, a few more optimizations can
be done in order to get the whole payoff.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9445

5 years agoeolian-cxx: Add special type tags to make function_wrapper specializations unique
Felipe Magno de Almeida [Wed, 31 Jul 2019 21:26:34 +0000 (18:26 -0300)]
eolian-cxx: Add special type tags to make function_wrapper specializations unique

Reviewers: lauromoura, bu5hm4n, woohyun

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9469

5 years agoeolian-cxx: Generate eot files
Felipe Magno de Almeida [Wed, 31 Jul 2019 21:23:35 +0000 (18:23 -0300)]
eolian-cxx: Generate eot files

Summary:
Eolian Type files were not being generated, which made some template
specialization to not be defined, for example for function_wrappers.

Reviewers: bu5hm4n, woohyun, lauromoura

Reviewed By: lauromoura

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9468

5 years agoefl_ui/win: use efl_ui_image internally for non-legacy widgets
Mike Blumenkrantz [Wed, 31 Jul 2019 18:37:41 +0000 (14:37 -0400)]
efl_ui/win: use efl_ui_image internally for non-legacy widgets

switch to using a fully non-legacy widget when this is not being created
with elm_win_add

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9466

5 years agoefl_ui/tags: use flow box internally
Mike Blumenkrantz [Wed, 31 Jul 2019 18:02:47 +0000 (14:02 -0400)]
efl_ui/tags: use flow box internally

the existing layout code here is basically just a flow box, so use that
instead to avoid mixing legacy widgets in unified ones

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9463

5 years agoevas_textblock: change font-size/font-family only using EFL.Text.Font Interface
ali [Mon, 29 Jul 2019 20:18:37 +0000 (20:18 +0000)]
evas_textblock: change font-size/font-family only using EFL.Text.Font Interface

Currently:
User cannot change font size only, he needs to set both font and font size with (**efl_text_font_font_set**)
To change size only, you need to make two calls, one to get font (**efl_text_font_font_get**) , then pass it again with new size to (**efl_text_font_font_set**).

New Behaviour:
If user want to change size only, then he passes NULL as font argument to keep same font.
If user want to change font only, then he passes 0 as font-size argument, to keep same font-size.

Notes:
This is not best solution, but it better than current behaviour.
I think best solution to have separate function to set font size, but It might break current api or duplicate functions.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9158

5 years agoefl_ui_check/radio: use clickable
Marcel Hollerbach [Wed, 31 Jul 2019 13:02:05 +0000 (09:02 -0400)]
efl_ui_check/radio: use clickable

Summary:
with this commit the state of the check / radio buttons are changes when
the Widget is clicked. The Widget is now using clickable and emits all
the events.

ref T7865

Reviewers: segfaultxavi, zmike, Jaehyun_Cho, woohyun

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7865

Differential Revision: https://phab.enlightenment.org/D9456

5 years agoevas events - fix segv if pointer data is freed by cb
Carsten Haitzler (Rasterman) [Wed, 31 Jul 2019 13:05:06 +0000 (14:05 +0100)]
evas events - fix segv if pointer data is freed by cb

callback can free what is in context. avoid that problem

@fix

5 years agoEfl.Composite_Model: Improve docs.
Xavi Artigas [Wed, 31 Jul 2019 12:24:53 +0000 (14:24 +0200)]
Efl.Composite_Model: Improve docs.

5 years agoecore_wl2: Changed log macro ERR->EINA_LOG_ERR.
Woochanlee [Wed, 31 Jul 2019 11:34:56 +0000 (07:34 -0400)]
ecore_wl2: Changed log macro ERR->EINA_LOG_ERR.

Summary:
When the ecore_wl2_shutdown() calling without ecore_wl2_init().

It makes crash.

Reviewers: eagleeye, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9452

5 years agoDocFX: Update README with Deployment instructions
Xavi Artigas [Wed, 31 Jul 2019 10:53:48 +0000 (12:53 +0200)]
DocFX: Update README with Deployment instructions

The deployment process is currently manual so we better write it down.

5 years agoEfl.Ui.Spin: Remove mouse wheel interaction
Xavi Artigas [Wed, 31 Jul 2019 10:36:37 +0000 (10:36 +0000)]
Efl.Ui.Spin: Remove mouse wheel interaction

This widget is now meant as a base class for other widgets, with very limited
user interaction. Efl.Ui.Spin_Button already takes care of mouse wheel events.

Ref T7897

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9453

5 years agoefl_ui_spotlight: pop() unpacks content although there is one content
Jaehyun Cho [Wed, 31 Jul 2019 09:16:51 +0000 (09:16 +0000)]
efl_ui_spotlight: pop() unpacks content although there is one content

Previously, pop() does not unpack content if there is one content.

Now, pop() unpacks content without transition if there is one content.
Since there is no transition, NULL future is returned.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9450

5 years agoRevert "edje/calc: clamp part calc size to 0"
Carsten Haitzler (Rasterman) [Wed, 31 Jul 2019 09:12:26 +0000 (10:12 +0100)]
Revert "edje/calc: clamp part calc size to 0"

This reverts commit 895ffd93cc5d9e183420bbedb86ec92f5c7e5369.

This commit broke E's widget toolbars that only had text - so many
config dialogs broke. too simple to fix - it's a wrong premise to
begin with it would seem.

5 years agoslider_cxx: fix casting
Marcel Hollerbach [Wed, 31 Jul 2019 08:57:26 +0000 (10:57 +0200)]
slider_cxx: fix casting

this object now needs to be casted, in order to have the event
available.

5 years agoefl_pan: improve docs
Marcel Hollerbach [Tue, 30 Jul 2019 10:09:53 +0000 (12:09 +0200)]
efl_pan: improve docs

Summary: documentation now reflects what is happening in the functions

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8863

5 years agoefl_ui_spec: add test suite for range_display events
Marcel Hollerbach [Wed, 31 Jul 2019 08:18:02 +0000 (10:18 +0200)]
efl_ui_spec: add test suite for range_display events

Summary:
this test case ensures the correct emittation of the newly added events.

ref T7895
Depends on D9372

Reviewers: segfaultxavi, zmike, woohyun, cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7895

Differential Revision: https://phab.enlightenment.org/D9373

5 years agoefl_ui_*: add the new events to the widgets
Marcel Hollerbach [Mon, 22 Jul 2019 11:09:03 +0000 (13:09 +0200)]
efl_ui_*: add the new events to the widgets

previous commit introduced new events to range_display. This commit
ensures correct emittation of those events.

ref T7895

Differential Revision: https://phab.enlightenment.org/D9372

5 years agoefl_ui_range_display: move events from spin
Marcel Hollerbach [Mon, 22 Jul 2019 10:27:20 +0000 (12:27 +0200)]
efl_ui_range_display: move events from spin

we concluded min,reached and max,reached should be on every widget that
implements range_display. This here is the start of that work, the
events are moved, next commit fixes all widgets, the last commits
enables tests in the spec unit test.

ref T7897
ref T7895

Differential Revision: https://phab.enlightenment.org/D9371

5 years agoefl_ui_item: remove sizing eval code
Marcel Hollerbach [Sun, 28 Jul 2019 15:21:37 +0000 (17:21 +0200)]
efl_ui_item: remove sizing eval code

i do not know why this code is there. But the same code is called in
layout itself, additionally this results in way less calls for
calculating the minsize (Not sure why).

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9425

5 years agoefl_ui_spotlight: add scroll_block to Manager_Scroll
Jaehyun Cho [Tue, 30 Jul 2019 07:05:02 +0000 (07:05 +0000)]
efl_ui_spotlight: add scroll_block to Manager_Scroll

To support blocking of scrolling movement, @property scroll_block has
been added to Manager_Scroll.
If scroll_block is set to be true, then scrolling movement by mouse
input is blocked.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9444

5 years agovg json: --log level
Hermet Park [Tue, 30 Jul 2019 07:58:02 +0000 (16:58 +0900)]
vg json: --log level

Vector needs to try load a lottie file in a brutal force way,
If the input source is not identified.

5 years agocsharp: Add EFL_BETA guards around new test
Lauro Moura [Tue, 30 Jul 2019 20:36:52 +0000 (17:36 -0300)]
csharp: Add EFL_BETA guards around new test

Summary:
The test method is not generated when beta is disabled as
`Eina.Value_Type` is marked @beta and eolian complains if we try to use
it.

Other `Eina.Value` methods work despite `Eina.Value` also being beta due
to its usage as stable through the keyword `any_value[_ptr]`.

Reviewers: vitor.sousa, bu5hm4n, felipealmeida

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9449

5 years agoecore: Fix download test.
Lauro Moura [Tue, 30 Jul 2019 19:22:03 +0000 (15:22 -0400)]
ecore: Fix download test.

Summary:
After ecore_main_loop_quit() changes, calling it from outside the main
loop does not make the next iteration of the main loop quit, causing the
original version of the test to deadlock.

Also update the function documentation about it.

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, felipealmeida, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9448

5 years agoefl_ui/layout: use MAX macro for min size clamping in group calc
Mike Blumenkrantz [Tue, 30 Jul 2019 17:12:14 +0000 (13:12 -0400)]
efl_ui/layout: use MAX macro for min size clamping in group calc

Summary: Depends on D9442

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric, #reviewers, #committers

Tags: #efl_widgets

Differential Revision: https://phab.enlightenment.org/D9447

5 years agoefl_ui: always set restricted_min size hints internally
Mike Blumenkrantz [Tue, 30 Jul 2019 17:12:07 +0000 (13:12 -0400)]
efl_ui: always set restricted_min size hints internally

Summary:
regular min size hint is for users, internal calcs should use restricted

@fix

Depends on D9441

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9442

5 years agoelm_layout: move elm_layout_sizing_restricted_eval to layout mixin
Mike Blumenkrantz [Tue, 30 Jul 2019 17:12:00 +0000 (13:12 -0400)]
elm_layout: move elm_layout_sizing_restricted_eval to layout mixin

Summary:
this function should never need to be called on new widgets

Depends on D9440

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9441

5 years agoelm_layout: create a mixin to provide elm_layout_sizing_eval
Mike Blumenkrantz [Tue, 30 Jul 2019 17:11:54 +0000 (13:11 -0400)]
elm_layout: create a mixin to provide elm_layout_sizing_eval

Summary:
this removes elm_layout_sizing_eval entirely from the implementation
hierarchy of any efl_ui-based widgets, ensuring that future code will
correctly use efl_canvas_group functionality

Depends on D9439

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9440

5 years agoefl_ui/layout_base: add subobjs_calc internal functionality
Mike Blumenkrantz [Tue, 30 Jul 2019 17:11:41 +0000 (13:11 -0400)]
efl_ui/layout_base: add subobjs_calc internal functionality

Summary:
this functionality forces group_calc on a layout's subobjects during
layout group_calc so that the layout's own group_calc will yield consistent
and correct results

currently this is only used in panel widgets

Depends on D9437

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9438

5 years agoefl_ui/layout_base: add "finger_size_multiplier" property
Mike Blumenkrantz [Tue, 30 Jul 2019 17:11:35 +0000 (13:11 -0400)]
efl_ui/layout_base: add "finger_size_multiplier" property

Summary:
this feature is set on objects which inherit from layout_base in order to
allow automatically application of variable finger sizes based on a
widget's needs

an example of this would be a calendar, which is 7:8 fingers

this functionality is disabled by passing 0,0 as the property

@feature

Depends on D9436

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9437

5 years agoefl_ui/layout: implement group_calc, add finger size for inherited layouts
Mike Blumenkrantz [Tue, 30 Jul 2019 17:11:30 +0000 (13:11 -0400)]
efl_ui/layout: implement group_calc, add finger size for inherited layouts

Summary:
this adds a group_calc implementation for the layout object (not layout_base)
to allow differentiation between inherited layout calcs and layout object
calcs

by using this, we can automatically apply finger size to inherited layout
calcs if the implementation ever reaches this point

Depends on D9435

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9436

5 years agoefl_ui/layout: use min size hints when calculating layout size
Mike Blumenkrantz [Tue, 30 Jul 2019 17:11:24 +0000 (13:11 -0400)]
efl_ui/layout: use min size hints when calculating layout size

Summary:
for legacy layouts, all min size hints should be considered when performing
size calculations

for non-legacy layouts, only "user" min size hints should be considered, as we
are calculating the restricted min size hint in this function

Depends on D9434

Reviewers: bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9435

5 years agoefl_ui: change calls to elm_layout_sizing_eval to efl_canvas_group_change
Mike Blumenkrantz [Tue, 30 Jul 2019 17:11:19 +0000 (13:11 -0400)]
efl_ui: change calls to elm_layout_sizing_eval to efl_canvas_group_change

Summary:
elm_layout_sizing_eval is a legacy function which should not need to be called
on new widgets

Reviewers: segfaultxavi, bu5hm4n

Reviewed By: bu5hm4n

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl_widgets

Maniphest Tasks: T8059

Differential Revision: https://phab.enlightenment.org/D9434

5 years agoRevert "evas_object_textblock: add support for variation sequences"
Marcel Hollerbach [Tue, 30 Jul 2019 17:09:12 +0000 (19:09 +0200)]
Revert "evas_object_textblock: add support for variation sequences"

This reverts commit f7ce771e3243e19f8a12672ea2be752dedccbcf6.

5 years agocsharp: Add marshal support for Eina.ValueType
Lauro Moura [Tue, 30 Jul 2019 14:05:26 +0000 (11:05 -0300)]
csharp: Add marshal support for Eina.ValueType

Summary:
It uses a custom marshaler and a helper boxing class to convert between
the managed enum values and the native Eina_Value_Type pointers.

To be used by future MVVM machinery.

Reviewers: vitor.sousa, felipealmeida

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9443

5 years agoeolian_gen: generate freefuncs for strbuf/binbuf
Daniel Kolesa [Tue, 30 Jul 2019 13:54:23 +0000 (15:54 +0200)]
eolian_gen: generate freefuncs for strbuf/binbuf

5 years agoeolian: make strbuf ownable
Daniel Kolesa [Tue, 30 Jul 2019 13:53:21 +0000 (15:53 +0200)]
eolian: make strbuf ownable

5 years agoFix typo in Efl prefix
Xavi Artigas [Tue, 30 Jul 2019 13:36:32 +0000 (15:36 +0200)]
Fix typo in Efl prefix

This annoyed me far far far more than it should.

5 years agoedje/calc: clamp part calc size to 0
Mike Blumenkrantz [Mon, 29 Jul 2019 14:58:07 +0000 (10:58 -0400)]
edje/calc: clamp part calc size to 0

this could previously have been negative

@fix

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9431

5 years agoelm/config: fix config usage with EFL_RUN_IN_TREE set
Mike Blumenkrantz [Mon, 29 Jul 2019 16:41:59 +0000 (12:41 -0400)]
elm/config: fix config usage with EFL_RUN_IN_TREE set

when running in tree, elm_config should not attempt to access files
outside the tree, nor should it attempt to overwrite any existing config
files

@fix

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9433

5 years agoelm/config: monitor MODIFIED events on config files
Mike Blumenkrantz [Mon, 29 Jul 2019 14:59:27 +0000 (10:59 -0400)]
elm/config: monitor MODIFIED events on config files

eio/inotify now receives these events when the config file is modified,
even though the file is copied onto that location. this fixes config
updating at runtime

@fix

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9432

5 years agoefl_ui_pan: emit position changed when content is resized
Marcel Hollerbach [Thu, 25 Jul 2019 18:54:49 +0000 (20:54 +0200)]
efl_ui_pan: emit position changed when content is resized

even if the position is not really changed here, the min / max relation
has changed. If we do not emit this event here, every user (that
calculates a relative position) would have to monitor the pan position
and the size of the content. This simplifies the given usecase, and
fixes the scroller position when new items are added to the collection.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9411

5 years agoelm_test: add a example that shows efl_ui_item instances
Marcel Hollerbach [Mon, 29 Jul 2019 13:00:32 +0000 (15:00 +0200)]
elm_test: add a example that shows efl_ui_item instances

this is just a little showcase to show the possible items

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9430

5 years agoelm_test: add option for running all tests on startup
Mike Blumenkrantz [Wed, 24 Jul 2019 20:19:26 +0000 (16:19 -0400)]
elm_test: add option for running all tests on startup

this is useful for doing quick testing when making invasive changes that
affect a large number of widgets, such as rewriting all sizing calc code

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9407