Commit Graph

1516 Commits

Author SHA1 Message Date
Rafael Fonseca 105aeb5967 Fix items alignment in Gengrid.
Now alignment works no matter whether the item is smaller than the grid or not.
Also added a spinner to Gengrid 2 test so we can see the alignment in action
for different item sizes.



SVN revision: 53252
2010-10-11 01:55:07 +00:00
Rafael Fonseca c2b339a567 Make Gengrid 2 test work with recent gengrid modifications.
Before changing gengrid internal to use inlist, passing a NULL item to
insert_before and insert_after functions would make them behave as prepend and
append respectively but now one would just get a SEGV. So test for a selected
item before doing anything ;)



SVN revision: 53251
2010-10-11 01:46:14 +00:00
Gustavo Sverzut Barbieri 77b6c7a816 bugs--
SVN revision: 53249
2010-10-11 01:03:37 +00:00
Gustavo Sverzut Barbieri ada8ac0f82 gengrid more genlist-like.
use inlist so we don't have to find stuff to operate on.

export more methods, like elm_gengrid_item_next_get(),
elm_gengrid_item_prev_get() and elm_gengrid_first_item_get() and elm_gengrid_last_item_get()... so we don't expose elm_gengrid_items_get().

People using the old elm_gengrid_items_get() should move to
elm_gengrid_first_item_get() and then next variant.



SVN revision: 53248
2010-10-10 23:54:11 +00:00
Rafael Fonseca 0090ce210c Add more insertion types to Gengrid.
Gengrid now has modes append, prepend, insert_before and insert_after. To see
them working check the Gengrid 2 test on elementary_test.



SVN revision: 53242
2010-10-10 21:05:23 +00:00
Rafael Fonseca 484d79e3c0 Don't change no_select state when adding item to Gengrid.
If one wants to create a Gengrid with seletion mode disabled and dynamically
add items to it the no select mode would be overwritten. So make Gengrid
selectable by default and just change the selection state when user explicitly
calls elm_gengrid_no_select_mode_set() function.



SVN revision: 53241
2010-10-10 20:45:30 +00:00
Gustavo Sverzut Barbieri 3597572c8c elm_gengrid_item_update()
also missing are elm_gengrid_item_prepend(),
elm_gengrid_item_insert_before() and elm_gengrid_item_insert_after()!
I can't do them right now, so any help is appreciated.



SVN revision: 53236
2010-10-09 19:07:42 +00:00
Gustavo Sverzut Barbieri 6a10964414 don't use ethumb if no path was set yet.
SVN revision: 53235
2010-10-09 18:43:03 +00:00
Boris Faure 6f8f4d7a00 elm: fix doc
SVN revision: 53234
2010-10-09 14:42:04 +00:00
Gustavo Sverzut Barbieri 6037fde0dd work when items are bigger than viewport.
rfonseca, be careful with corner cases... and PLEASE ADD SPACES!!!! it's awful to read (a*b)/c+d/e...



SVN revision: 53225
2010-10-09 01:42:32 +00:00
Gustavo Sverzut Barbieri 17dfe16715 document new style.
SVN revision: 53224
2010-10-09 01:34:01 +00:00
Gustavo Sverzut Barbieri 1f12d25055 thumbnail style without frame.
SVN revision: 53221
2010-10-08 23:18:03 +00:00
Gustavo Sverzut Barbieri e7924d7fac cancel previous request, if any.
SVN revision: 53216
2010-10-08 22:43:17 +00:00
Gustavo Sverzut Barbieri 3bdda23c70 ethumb reload function.
SVN revision: 53215
2010-10-08 22:14:50 +00:00
Tiago Rezende Campos Falcao 3e0c947cde Elm_object_focus give focus to one focusable obj.
SVN revision: 53206
2010-10-08 20:16:52 +00:00
Tiago Rezende Campos Falcao f17463a37f Add Object name in dot dump
Now can generate graphs like this:
https://trac.profusion.mobi/~tiago/editje_elm_dump.png

Call elm_object_tree_dot_dump(obj, "file.dot")
and use $ dot -Tpng file.dot -ofile.png

SVN revision: 53205
2010-10-08 20:16:48 +00:00
Tiago Rezende Campos Falcao cd76f3a7f5 Fix the assignment that discards const qualifier.
SVN revision: 53195
2010-10-08 16:27:07 +00:00
Tiago Rezende Campos Falcao 9ff54ffc12 Fix event propagation in elementary.
Need set ON_HOLD, and check it.

SVN revision: 53194
2010-10-08 16:27:04 +00:00
Tiago Rezende Campos Falcao 7b9804f31a Don't add again one child to the same parent
SVN revision: 53193
2010-10-08 16:27:01 +00:00
Iván Briano 7a9b608068 Shut up gcc about uninitialized use of variables.
SVN revision: 53185
2010-10-08 13:08:43 +00:00
?\236?\157?\180?\235?\170?\133?\236?\158?\172 acec5fa410 From: ?\236?\157?\180?\235?\170?\133?\236?\158?\172 <mjae.lee@samsung.com>
Subject: patch for elm_widget_show_region_set function
  
back in again. i backed it out because of unrelated issues.



SVN revision: 53184
2010-10-08 12:50:40 +00:00
Brett Nash 3cb99669ee Make sure we handle data length correctly on text length.
SVN revision: 53179
2010-10-08 04:14:13 +00:00
Eduardo de Barros Lima 15d98ebdff Elementary: Don't #define _GNU_SOURCE
Use proper AC_GNU_SOURCE macro in configure.ac instead.



SVN revision: 53168
2010-10-07 21:34:43 +00:00
Gustavo Sverzut Barbieri 93df5252df copy&paste left-overs
SVN revision: 53161
2010-10-07 20:01:42 +00:00
Gustavo Sverzut Barbieri 21f2f1c7c5 genlist's height-for-width mode is in.
I'll commit this to bring some attention to the topic, it is harmless
for people that do not use it, but for users it may be slow on list
resize.



SVN revision: 53160
2010-10-07 19:57:20 +00:00
Bruno Dilly eeeb5214a1 Add yet another kind of list widget to elm - diskpicker
This is one more widget whose idea come from Samsung set of
contributions to Elementary.



SVN revision: 53150
2010-10-07 18:44:43 +00:00
Tiago Rezende Campos Falcao f24cfca511 Removing unused variables to clean compile
SVN revision: 53146
2010-10-07 14:49:37 +00:00
Tiago Rezende Campos Falcao 3fb08d420f Elm Button with custom focus highlight
SVN revision: 53145
2010-10-07 14:49:35 +00:00
Iván Briano 4c8980e47e Filter input text in entries.
Users can set filters of their own (text only, no format now) or use the
predefined ones.


SVN revision: 53141
2010-10-07 12:50:00 +00:00
Carsten Haitzler 4f3090af01 and handle disables for everything else that has disable hooks.
SVN revision: 53138
2010-10-07 07:44:50 +00:00
RAJEEV RANJAN 46acbce93e From: RAJEEV RANJAN <rajeev.r@samsung.com>
Subject: Patch to address some focus and disabling issue in elementary
widgets

We have observed some generic issues in Elementary widgets.

1. Widgets not getting disabled if we call elm_object_disabled_set(ob,
EINA_TRUE) followed by elm_object_style_set(obj, <style_name>);

This works fine if we disable the widget after changing the style(call
to theme_hook happens here).


It happens because we are not sending the edje signal in theme_hook of
the widgets, if the widget is already in disabled state.

I have added this code in theme_hook of elm_button as an example and
we will need to apply the similar stuff in all other widgets if needed.

 
 
 2. The widget gets focused in a particular scenario even though we
call elm_object_focus_allow_set(obj, EINA_FALSE).

The code snippet to explain the scenario which we observed was like
this:

Evas_Object *button = NULL, *icon = NULL;

button = elm_button_add(parent);

elm_object_focus_allow_set(button, EINA_FALSE);

icon = elm_icon_add(button);

elm_icon_file_set(icon, EDJE_PATH, "test.icon");

elm_button_icon_set(button, icon);

 
  
  An icon object does not take focus by default. But still whenever
the focus returned to the parent(layout in this case) after closing
some popup, the button gets focused though we had disabled it
explicitly.
 
 The reason is in this case, when we call elm_icon_add(button), icon
gets added to button as a sub-object and in this call, we set
sd->child_can_focus for button(the parent) as true because till now,
the focus property for icon has not been set to false which by default
is true. 
 
 This was set later in the function elm_icon_add() as follows:
 elm_widget_can_focus_set(obj, EINA_FALSE);
  
  Actually this should be set before adding icon as sub-object of the
parent which in this case is a button.
 
 I have done the required modification in the function elm_icon_add().
  
  Attached to this mail is the patch file for these two issues.The
revision from which I have created this patch file is 53129.
We may need to do similar changes in other widgets if required.



SVN revision: 53137
2010-10-07 07:31:24 +00:00
Carsten Haitzler 5dcabea22e other part of genlist tree expand depth patch. test code.
SVN revision: 53136
2010-10-07 07:30:44 +00:00
서주영 49b72fa771 From: 서주영 <juyung.seo@samsung.com>
Subject: [EFL] Small Patch for Genlist : elm_genlist_item_expanded_depth_get() API

I added one API to genlist : elm_genlist_item_expanded_depth_get(). This is 
used to get an item's expanded depth. I tested this with latest SVN revision
53090.

Can you review this patch and apply this to upstream?
 


SVN revision: 53134
2010-10-07 06:45:36 +00:00
Carsten Haitzler cddcaed64e aaaagh! free the member list! :)
SVN revision: 53131
2010-10-07 03:53:53 +00:00
Gustavo Sverzut Barbieri c577aef267 example with button that propagates event to the list item.
SVN revision: 53122
2010-10-06 22:47:12 +00:00
Gustavo Sverzut Barbieri 4091d2cbd3 event catcher should be the lowest object!
this damn bitch made me waste hours hunting a supposedly bug in Evas
event dispatch system just to realize the bug was in the theme... and
list in the LIST + COMPRESSED! :-( Everything else was correct.

The idea of "end" is that we may want to have some action item as
well, such as a button (see modification in test_list.c). In this case
we want the button to receive the event before the list item (or even
block the event going to the list item). Use case: add a "delete"
button to the item, click delete and you want to avoid it being
selected (think of a bookmark where you want to delete a folder, but
select the item would enter that folder that you want to delete).




SVN revision: 53121
2010-10-06 22:45:46 +00:00
Tiago Rezende Campos Falcao d959e612eb Adding custom chain to focus.
Added set, get, unset, prepend and append (relative or not).

Set - overwrite the custom chain
Unset - Delete the custom chain
Get- Return the custom chain
Append - append after the relative object or in the end
Prepend - prepend before the relative object or in the start

SVN revision: 53115
2010-10-06 20:24:22 +00:00
Tiago Rezende Campos Falcao ef18ffa4f4 Set const where need in focus_next_get functions set
SVN revision: 53114
2010-10-06 20:24:19 +00:00
Tiago Rezende Campos Falcao 434ed6e093 Adding elm_widget_focus_cycle method
This will cycle focus inside the sub-tree of one object.

SVN revision: 53113
2010-10-06 20:24:16 +00:00
Tiago Rezende Campos Falcao 198ca1fd95 Rename focus method from cycle to next_get
SVN revision: 53112
2010-10-06 20:24:13 +00:00
Tiago Rezende Campos Falcao c3e3585e83 Optimized Linear Focus Chain
Before, the focus_cycle try pass the focus to next, and try again if
need loop the objects. Now, the focus cycle return possible next
object and if is necessary loop or not to focus this returned object.

SVN revision: 53111
2010-10-06 20:24:09 +00:00
Gustavo Lima Chaves a3ba92f0dc Elementary Flippicker, a fresh new widget.
This is one more widget whose idea come from Samsung set of
contributions to Elementary.

There is a known bug involving embryo + string functions, which will,
if in "stress", appear at the labels of the widget. Not time to attack
it right now, though.



SVN revision: 53109
2010-10-06 18:40:04 +00:00
Iván Briano 4cc43413ae Kill job when shutting down highlight
SVN revision: 53104
2010-10-06 16:42:46 +00:00
Tiago Rezende Campos Falcao c9ee489cd8 Genlist expanding items when press Return or Space
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

See elementary_test Genlist Tree

SVN revision: 53079
2010-10-05 19:10:11 +00:00
Tiago Rezende Campos Falcao 3d8c3dfc6f List with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up and Down to navigate without multi selection. Hold shift +
up/down to multi select.

SVN revision: 53078
2010-10-05 19:10:08 +00:00
Tiago Rezende Campos Falcao 802673163b elm_list_item_bring_in
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

function bring_in in list, like genlist and gengrid

SVN revision: 53077
2010-10-05 19:10:06 +00:00
Tiago Rezende Campos Falcao 231d40149a List with keyboard scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Keys:
up
kp_up
down
kp_down
left
kp_left
right
kp_right
Page Up
Page Down
Home
End

p.s.: kp = key pad

SVN revision: 53076
2010-10-05 19:10:03 +00:00
Tiago Rezende Campos Falcao 1dada2a0a8 List with els_scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

The list use elm_scroller instead els_scroller like the others. This is
a problem, because the scroller is son of the list, so when you click on
an item, the event will be done in the item (an edje object) that will
pass to the box it is inside, the box will pass the event to the
scroller and then to the list. So, with the event arriving the scroller
first than the list, if you press up, the navigation between item will
not happen because the scroller is treating the event first. So a good
solution is to pass the list to use smart scroller intead elm_scroller
(like genlist and gengrid).

SVN revision: 53075
2010-10-05 19:10:00 +00:00
Tiago Rezende Campos Falcao 2bd4bbaa57 Gendrid with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up, Down, Left and Right to navigate without multi selection.
Hold shift + up/down/left/right to multi select.

SVN revision: 53074
2010-10-05 19:09:58 +00:00
Tiago Rezende Campos Falcao 47f13424e2 Genlist with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up and Down to navigate without multi selection. Hold shift + up/down to
multi select.

SVN revision: 53073
2010-10-05 19:09:55 +00:00