Commit Graph

151 Commits

Author SHA1 Message Date
Andy Williams 339e572171 elementary: clean code and tests of order_lookup
User configuration has replaced the code based setting of lookup
2016-04-25 19:30:23 +01:00
Andy Williams 5bb29101a9 elementary: Replace icon lookup_order with icon_theme.
The definition of where to load icons is now up to the user
(through the configuration of the icon_theme config value)
rather than being defined in code per-app or even per-component
2016-04-25 16:57:13 +01:00
Andy Williams 4c0fc7559c elementary: Add user setting for icon theme
Beginning of the icon lookup rework.
The library will now store user preference for
the icon theme to use.
2016-04-25 14:56:55 +01:00
Cedric Bail 1aaeaf2b3b elementary: fix callback array declaration to build on Windows. 2016-04-22 14:15:36 -07:00
SangHyeon Lee c5427e875d genlist : arrange focus set in mouse up
Summary :
when mouse up happens, item must be focused, and after that,
select must be called.
current logic, focus is already called inside the select function
and again focus set is called in the end of mouse_up,
so if user new focused widget inside the select callback,
mouse_up forcely take the focus into the item again.
select callback should comes after the focus callback calls
to work properly.

@fix
2016-04-22 16:08:25 +09:00
Cedric BAIL 539d79c0a3 elementary: use Efl.Loop event directly as an API test. 2016-04-21 16:26:25 -07:00
Mike Blumenkrantz 8325b78aed elm_cnp: accept appropriate text types in wl drop handlers
this fixes text dnd

@fix
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz f6f76bf87f elm_cnp: do not send null accepts for every type within wl data offers
once is sufficient
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz c9208871ae elm_cnp: attempt to get all applicable mime types when getting selection
@fix
2016-04-21 13:58:45 -04:00
Carsten Haitzler 5e09d1307b eo base - remove the duplicated key dels and just do eo_key_del() now
this rationalizes all the duplicated key dels (key_data, key_obj and
key_value).
2016-04-21 18:02:31 +09:00
Jean-Philippe Andre 80da5099c1 Elm: Don't install box, table and grid eo files
Box, Table and Grid now belong to legacy land.
Their Evas counterparts are already not installed anymore,
and Efl.Ui.Box and Efl.Ui.Grid are here to replace those
widgets (note: code was initially copy & pasted).

This should fix installed EO files consistency.
2016-04-20 20:39:58 +09:00
Tom Hacohen 5bec0d07b4 Ecore eo: Resolve duplicate Ecore_Cb definition. 2016-04-20 10:11:21 +01:00
Jean-Philippe Andre 2d946d03ae Efl.Pack: Rename methods and properties
- Children are now contents
- Efl.Pack_Layout is now a separate class and
  merges Pack_Engine.
- Removed dumb class Efl.Pack_Item
- Updated docs
- Added pack_ or grid_ prefixes to some methods
2016-04-20 11:15:53 +09:00
Jean-Philippe Andre a0f92d9bef Efl.Ui.Grid: Implement custom layout functions
Untested yet. Will need to add the common 3 classes:
- standard
- homogenous
- homogenous max_size

And then implement a true custom layout function, that
respects weights in a certain manner (need to define it
clearly).
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre e4889ca367 Ui.Box: Fix flow layout
Set align, fix usage with eo_add(EFL_UI_BOX_FLOW_CLASS).
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre f2eff88640 Efl.Ui.Box: Add pack_align property
While at first I wanted to remove the box_align / table_align
properties, it ends up being a necessary value in some cases.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 101cb7fe2a Efl.Ui.Grid: Fix new API behaviour
This fixes the linear API usage with a table.
TODO:
- remove internal table (as it doesn't support layout funcs)
- implement multiple layout functions (regular, homogenous, ...)
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 86a59a3a24 Elm_test/Grid: Add linear API test for Efl.Ui.Grid
At this point, it proves that the grid API does not work.
Some things still need to be implemented or fixed.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre a84468cf4b Elm_test: Add test case for Ui.Grid
Right now the proper layout functions for Ui.Grid are not
implemented, so most controls don't work. This tests that the
grid works fine as a table.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 548efd7fa4 Efl.Ui.Box: Implement flow layouts
This reuses the Evas.Box code, since we are still using the
box internally. The flow layout function is far from perfect
(it works well only with items of same height).

This shows how to use specific layouts provided by EFL.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 24eccb6d62 Efl.Ui.Box: Implement way to override layout function
So, since we don't have function pointers, all the solutions
to reimplementing the layout function are quite convoluted:

1. use events
2. reimplement layout func
3. use an extra object
4. use a generic class (non instanciated)

Promises don't apply here (layout will run multiple times).

Problems:

1. Multiple event callbacks will be called, resulting in
   potential performance impact, extra events, etc...
   Also, there is no way to define standard implementations
   that would be provided by the framework.

2. Reimplementation of a function requires extra EO work
   (create an EO class, etc...), doesn't allow on-the-fly
   change of the layout method.

3. Probably the best solution is to have an object implementing
   the layout. But this means creating an extra object along
   with the container.

4. To avoid the extra object, use a class, and reimplement
   a @class function. This unfortunately requires extra
   EO work.

Solution 4. has been selected, but it's not very nice...
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 11403a4ec4 Elm: Compile in box and grid
Ui.Grid is definitely not complete.
Ui.Box still needs a few adjustments:
- alternative layout
- aspect ratio support
- RTL support
- remove evas box
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 2343aa7900 Efl.Ui.Grid: Add implementation of a grid/table
This is only a partial implementation, work in progress.

The grid object should be a replacement for evas and elementary's
table and grid. Only the layout of items inside the container
is different, otherwise the API should be the same.

For now, this widget is based on an evas table but the full
layout logic will need to be reimplemented, eventually.

@feature
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre b18a993dc0 Efl.Ui.Box: Add implementation of a simple box
This should be the only linear packing container.
This replaces: evas box and elm box.

Edje box needs to be kept around for compatibility,
but it stays an EDC object only (for apps).

Lots of things are still to be fleshed out in this
box implementation:
- Simplify smart object / elm widget code
- Maybe stop using evas object box altogether
- Implement other layout strategies

@feature
2016-04-20 10:47:40 +09:00
Tom Hacohen 6f4f9bd051 Elm glview: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen fb110d2de8 Elm box: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen bd14c3ffd3 Elm web: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 4264a58a11 Elm app server view: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 7d5bcd1a2c Elm slideshow: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 8b6948fa42 Elm app client view: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 64cb0942d4 Elm app server: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen aa577541e8 Elm gengrid: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 8cfa381452 Elm map: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 86720888fa Elm calendar: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 8425b07fbf Elm eo: Make Eina_Compare_Cb accessible to all widgets. 2016-04-19 17:15:28 +01:00
Tom Hacohen 1bddce0113 Elm sys notify interface: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 5e670d05af Elm prefs: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 22345bd744 Elm app client: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 83b8b6da07 Elm multibutton entry: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 7d45bbcc5e Elm app server: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen b2be0b0506 Elm genlist: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 352a9055b2 Elm view list: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen ff0f41933f Elm naviframe item: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 82591ac46e Elm interface fileselector: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 179395126d Elm slider: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 6989db76c2 Elm toolbar item: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen efcf577efd Elm systray: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen 4d026032d0 Elm toolbar: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen e1c1bbbc4a Elm list: Fix eo type errors. 2016-04-19 17:15:28 +01:00
Tom Hacohen bb0bcce384 Elm layout: Fix eo type errors. 2016-04-19 17:15:28 +01:00