Commit Graph

414 Commits

Author SHA1 Message Date
Jean-Philippe Andre 317b9ec559 Efl.Ui.Image: Remove invalid import in eo file 2016-06-17 19:25:47 +09:00
Ji-Youn Park 1f127fe45a efl_ui_win: move some APIs get the object's list in special location to efl_ui_win.
The apis to get the object or object list in special location is useful.
like game app.
so move these APIs from evas canvas to efl_canvas.
2016-06-17 16:06:26 +08:30
Amitesh Singh bceb06d6ba elm_video: make emotion obj as a composite object.
There is no need to reimplement player interface APIs in elm video.
Thanks marcel for this idea.
2016-06-17 10:29:19 +05:30
Jean-Philippe Andre d4b96d33d6 Evas: Mark type as legacy and protected
Only set() is allowed for EO, and it's a constructor,
protected function. Unfortunately, this means a lot
of #define EVAS_OBJECT_PROTECTED
2016-06-17 11:37:39 +09:00
Ji-Youn Park 76d2778177 efl_ui_win: add some evas feature(pointer, cache ) to efl.canvas and efl_ui_win
evas will be internal, so APIs need to open public are moved efl.canvas eo
and efl_ui_win.
2016-06-17 10:30:22 +08:30
Felipe Magno de Almeida 8e4f383d61 efl: Move promise parameter to return in data model
Summary:
Instead of:

efl_model_property_get("name", &promise);

now:

promise = efl_model_property_get("name");

Reviewers: stefan_schmidt, cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D4038
2016-06-16 22:01:07 -03:00
Felipe Magno de Almeida 52e2774523 elementary: Modify parameter from @out void to @inout void
@out parameters doesn't need initialization, so passing a buffer
to a function must be a @in void_ptr or a @inout void, but
never an @out void.
2016-06-16 21:49:28 -03:00
Jee-Yong Um 7343b69b55 elementary: remove non-exist target from Makefile
Summary:
efl_ui_flip_internal_part_eo.h doesn't exist but it belongs to
the target list of Makefile.
Remove it from the list to fix an error when building elementary only.

Test Plan: $ make (in src/lib/elementary path)

Reviewers: jpeg, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-06-16 16:48:17 -07:00
Daniel Hirt 3c5b0bc1b5 Ui text: store SEL_FORMAT_TEXT only for now. 2016-06-16 19:15:20 +01:00
Daniel Hirt aa4b93e250 Ui text: fixup build 2016-06-16 19:15:20 +01:00
Daniel Hirt dbc82782d1 Ui text: introduce this new text widget
This composite object utilizes the Efl.Canvas.Text, Efl.Canvas.Text.Cursor and
Efl.Ui.Interactive API to server as a proper replacement for the Elm Entry
widget.

@feature
2016-06-16 19:15:20 +01:00
Tom Hacohen eabf319b11 Ui text interactive: introduce this new object (rebase squash)
@feature

Ui text: Add a new interactive version of Canvas.Text

This object is internal and is essentially a Canvas.Text that accepts
key and mouse input. It should be used by Ui.Text as the text
layout/input driver.

Ui text interactive: Add include guard to header.

Ui internal text: Improve input handling support and add selection.

Ui internal text: Add a lot of imf stuff.

Add more text selection handling code.

Add support for allowing selection.

Efl.Ui.Text.Interactive: (reword) code format fix.

Efl.Ui.Text.Interactive: Remove useless struct members.

Add multiline toggle support and a constructor.

Text interactive: Add support for legcay newline.

Text interactive: Use the new cursor_equal function.

Efl.Ui.Text.Interactive: (Rebase split) fixup cursor

Efl.Ui.Interactive: (Rebase split) fixup line_jump_by usage

Text interactive: Cleanup tab/return handling.

Text interactive: Use cursor_equal more.

Text interactive: Simplify and unify selection handling in key input.

Text interactive: Fix user text change reporting.

This is useful for implementing undo/redo.

Text interactive: Add documentation to event.

Efl text interactive: (Rebase reword) Add a new interface to be used later.

Ui text interactive: Migrate one missing change_info call.

Ui text interactive: Mark the correct type for the change event.

Ui text interactive: (Edited) Move to elementary and add "selection,changed".

This is useful for implementing selection handlers. We had to move it to
elementary because we started referencing cursors.

Ui internal: Emit an event for selection changed.

Ui text interactive: Remove unused code.

Ui text interactive: Remove more unused code.

Ui text interactive: Remove more unused code.

Ui text interactive: Rename improperly named function.

Ui text interactive: Update code to the new canvas text api.

Ui text interactive: provide access to the selection cursors.

This is the new API for manipulation selection outside of the object.
Just manipulate these cursors to manipulate the selection.

Fix previous commit.

Ui interactive: Clean up internal functions.

Ui interactive: Fix abuse of selection in word deletion.

Ui text interactive: Fix selection.

Ui text interactive: Fix right key to move next.

Ui text interactive: Fix selection using keyboard.

Ui text interactive: Don't emit selection changed events twice.

We now use the cursor changed event to track changes, so no need
to manually emit events ourselves.

Ui Text interactive: Remove selection,cleared signal, use changed instead.

If the selection cursors are equal, there's no selection, if they are
different, there is.

Ui text interactive: remove redundant code.

Ui text interactive: Don't emit selection changed events on init.

Ui text interactive: Remove unused variable.

Efl.Ui.Interactive: fixup char_coor usage

Ui text interactive: Fix some fixmes.

Ui text interactive: fix selection_cursors_get

Ui text interactive: Skip key down events if marked ON_HOLD.
2016-06-16 19:15:20 +01:00
Larry Jr 963d2af974 elementary: fixed wrong error msg in fileselector 2016-06-14 20:57:05 -03:00
Andy Williams 6c0d51322b elementary: Fix repeated undo of character deletion
Let's not trigger further undo stack changes when we undo changes.
2016-06-14 22:47:22 +01:00
Carsten Haitzler f156737e8f elm - loop auto throttle - only do this once a window has been shown etc
only start throttling ocne we have a window and it has rendered or
been focused or mouse has gone in - then we are surely really visible
and sane and only start throttling if no windows are visible then. if
auto throttle is on this can improve startup time by the trottle amount
2016-06-14 18:15:00 +09:00
Jean-Philippe Andre 8a0e74afa8 evas: Move canvas events to a common interface
This merges window and evas events into a single name.
Some events are marked as @beta as they shouldn't really be
part of our EO API.
2016-06-14 16:27:42 +09:00
Jean-Philippe Andre 254f5ef772 evas object: Move some events to efl_gfx and efl_image
This affects basic evas object events such as:
- show, hide, resize, move,
- changed size hints,
- restack,
- image preloaded, resize, unloaded

Also, switched names to shorter "present form" like "preload"
instead of "preloaded".
2016-06-14 16:27:42 +09:00
Jean-Philippe Andre 70a358357a widget: Switch to pointer & key events
Unfortunately, since all widgets rely on the legacy evas
event structs, I had to add a translation mechanism.
2016-06-14 16:27:42 +09:00
Jean-Philippe Andre 77bd2819b9 fileselector: Remove usage of eo evas object events 2016-06-14 16:27:42 +09:00
Jean-Philippe Andre 1e82603013 spinner: Remove usage of eo evas object event 2016-06-14 16:27:42 +09:00
Jean-Philippe Andre a60f2afd60 elm: Fix compilation warnings 2016-06-14 16:27:42 +09:00
Jean-Philippe Andre 59f3841803 win: Optimize event forward using callback add/del events
This is a common pattern, listen to EO_EVENT_CALLBACK_ADD/DEL in
order to treat those events only when needed.
2016-06-13 20:33:29 +09:00
Jean-Philippe Andre dd24c588fa win: Add event device,changed 2016-06-13 20:33:29 +09:00
Jean-Philippe Andre 4bb8a6bd21 win: Add focus events (in, out, object in/out) 2016-06-13 20:33:29 +09:00
Jean-Philippe Andre be82f4f0fd win: Add event render,pre 2016-06-13 20:33:29 +09:00
Carsten Haitzler dffaed3486 elm - add another mkpath before monitoring a dir to enusre things work 2016-06-13 18:12:33 +09:00
Jean Guyomarc'h 9b949508e3 elementary: don't use an unspecified amount of arguments 2016-06-10 22:27:55 +02:00
Jean-Philippe Andre e165854a78 Evas: Rename Zoomable_Interface to Efl.Ui.Zoomable 2016-06-10 18:06:15 +09:00
Jean-Philippe Andre b2355d7da3 Evas: Rename Selectable_Interface to Efl.Ui.Selectable 2016-06-10 18:06:15 +09:00
Jean-Philippe Andre 31c4fd1f7c Evas: Rename Scrollable_Interface to Efl.Ui.Scrollable 2016-06-10 18:06:15 +09:00
Jean-Philippe Andre d67171940f Evas: Rename Draggable_Interface to Efl.Ui.Draggable 2016-06-10 18:06:10 +09:00
Jean-Philippe Andre e691de04be Evas: Rename Clickable_Interface to Efl.Ui.Clickable
Event prefix is efl_ui:
 EFL_UI_EVENT_CLICKED
 EFL_UI_EVENT_CLICKED_DOUBLE
 ...

The event prefix could be reduced to efl but I personally
prefer with UI.
2016-06-10 17:33:53 +09:00
Yeshwanth Reddivari 55135870ec Label: Fix extra memory allocation of edje message.
Summary: Edje_Message_Float_Set struct is already allocating double and hence no need to add extra double allocation.

Reviewers: Hermet, jpeg, cedric, singh.amitesh

Reviewed By: singh.amitesh

Differential Revision: https://phab.enlightenment.org/D4035
2016-06-10 13:43:44 +05:30
Jean-Philippe Andre 7108ca283c Grid: Fix static grid when size was not set
Since we can change a standard grid into a static grid by
changing the engine, it is necessary to fix the virtual size
first.
2016-06-10 15:07:49 +09:00
Jee-Yong Um c17b3d40a2 Efl.Ui.Grid.Static: Add implementation of simple grid
Summary:
Efl.Ui.Grid.Static uses virtual coordinates when arranging
its child objects. (like Evas.Grid)

Reviewers: jpeg

Subscribers: woohyun, cedric

Differential Revision: https://phab.enlightenment.org/D3989
2016-06-10 14:05:43 +09:00
Jean-Philippe Andre 79abba52c5 Evas: Rename Evas.Image into Efl.Canvas.Image.Internal
Make it abstract.
And add Evas.Image as a legacy-only class.
2016-06-10 13:21:20 +09:00
Jean-Philippe Andre 3bee499503 win: Add new API win_name_get (EO and legacy)
I see no reason to have a set and no get.

@feature
2016-06-10 13:21:16 +09:00
Jean-Philippe Andre 29132d3c25 win: Add legacy elm_win_type_get
This was present in earlier releases.
2016-06-10 13:06:34 +09:00
Stefan Schmidt 7953da836e elm: fix efl_ui_flip header name
I itroduced this typo on my last commit. Thanks Cedric for spotting it.
2016-06-09 17:43:28 +02:00
Stefan Schmidt c3c344da41 elm: efl_ui_flip: add fl_ui_flip_eo.h redirection header lost during rename
When this was renamed from elm_flip to efl_ui_flip the _eo.h header was lost
which is needed as redirection. This broke for me in distcheck when the .eo.h
was going to get generated. It also aligns it with the other headers we have
here.
2016-06-09 16:18:28 +02:00
Jean-Philippe Andre 37625fca91 Evas/Edje/Elm: Use combined_min instead of min everywhere
This allows apps to set the objects min size with hint_min,
while letting the rest of EFL define the minimum size with
rstricted_min.

I don't like the property names much...
2016-06-09 16:37:49 +09:00
Jean-Philippe Andre 748f17b840 Efl.Ui.Box: Simplify layout code with combined_min
Simplify the code and fix an issue.
2016-06-09 16:13:37 +09:00
Sungtaek Hong 0023efb420 elmentary: trigger selected event when mouse is up in index.
Summary:
- selected callback should be called when the user releases a mouse button
  and selects an item.

Reviewers: cedric, jpeg, Hermet, woohyun

Subscribers: conr2d, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-06-08 14:06:36 -07:00
Shilpa Singh db79f8499c elementary: add implementation for elm_multibuttonentry_item_selected_get API
Summary:
Added definition for item_selected_get API
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>

@fix

Test Plan: select an item, call item_selected_get API to check status of the item

Reviewers: cedric, CHAN

Reviewed By: CHAN

Subscribers: CHAN, rajeshps, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-06-08 13:48:24 -07:00
Cedric BAIL 8c7c301faf elementary: cleanup event handler setup for hoversel. 2016-06-08 13:47:19 -07:00
Jee-Yong Um 20c9ff8e04 elementary: rearrange hoversel when its parent is resized
Summary:
Hoversel will be rearranged when its parent is resized.
This patch was written by @godlytalias on tizen side.

Reviewers: cedric

Subscribers: jpeg, godlytalias

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-06-08 13:24:38 -07:00
Yeshwanth Reddivari a1b0fb2c9f elm video: implement player interface
Reviewers: raster, cedric, jpeg, singh.amitesh

Reviewed By: singh.amitesh

Differential Revision: https://phab.enlightenment.org/D4021
2016-06-08 14:47:26 +05:30
Jean-Philippe Andre 62c5ebc784 Efl: Add screen_ prefix to all Efl.Screen apis
This will resolve conflicts between Gfx.size and Screen.size.
2016-06-08 17:25:06 +09:00
Jean-Philippe Andre 5542d6dc48 Efl: Add hint_ prefix to all size hints
This covers:
- base
- step
- aspect

The prefix hint_ is useful for bindings, and does not change
the generated C API.
2016-06-08 17:20:44 +09:00
Jean-Philippe Andre 7872690e73 Efl: Move evas size hints to Efl.Gfx.Size.Hint
This includes:
- align
- min (now content_min)
- request
- max
- padding (now margin)
- weight

This does NOT include:
- display mode (compress, expand... a hint used by naviframe only).
2016-06-08 17:10:07 +09:00