Commit Graph

86 Commits

Author SHA1 Message Date
ChunEon Park 7c915bb141 elementary/button - prevent the clicked event, when button is disabled or freezed events.
SVN revision: 65883
2011-12-05 04:03:12 +00:00
ChunEon Park 085e500875 elemlentary - minor changes.
guarantee the compatibility for priveous content_set/get/unset changes. 



SVN revision: 65320
2011-11-17 00:42:14 +00:00
ChunEon Park 236192cd9a elementary - modified content_set/get/unset part names to be simple names.
Previous part names are just the swallow part names
but in modified version, the part names chaned to simpler meaning names to use.

i.e for button

elm_object_content_part_set(button, "elm.swallow.icon", icon);
-> elm_object_content_part_set(button, "icon", icon);




SVN revision: 65295
2011-11-16 12:51:53 +00:00
Daniel Juyung Seo bafe9c7426 elm: Use appropriate add/del_full for evas event callbacks.
SVN revision: 64536
2011-10-31 00:13:32 +00:00
ChunEon Park 8d85b136bf elementary/button -> use elm_object_content_set/get/unset
SVN revision: 64370
2011-10-25 01:23:25 +00:00
Daniel Juyung Seo 8d54a54260 elm button: Added _del_pre_hook to button. This reduces unnecessary calculations
and min setttings.


SVN revision: 63378
2011-09-14 09:53:11 +00:00
WooHyun Jung abf2d0ba62 elementary : indentation and some small changes
SVN revision: 62845
2011-08-26 02:02:15 +00:00
Carsten Haitzler ee218406b0 add visual feedback on accessibility mouseover too
SVN revision: 62713
2011-08-23 07:44:49 +00:00
Daniel Juyung Seo 98ac8c429a elm: Removed trailing whitespaces.
I always try to maintain elm with no trailing whitespaces. Please do not commit trailing whitespaces anymore.
I think maintaining a library clean is a good job. Once it gets mess, it's hard to fix them all at once.
1. Removing trailing whitespaces.
2. Fixing indentations.
3. Removing build errors and warnings.


SVN revision: 62595
2011-08-19 15:26:04 +00:00
Carsten Haitzler 3d52581f0e and start on allowing modified behavior when in access mode. ie turn
it on and off. just settable by env var and config file for now.



SVN revision: 62591
2011-08-19 14:39:27 +00:00
Carsten Haitzler a3592b4da6 and now add a "clicked" say... when u click.
SVN revision: 62587
2011-08-19 11:47:30 +00:00
Carsten Haitzler 6c1869043c button -> say state if disabled.
SVN revision: 62586
2011-08-19 11:20:45 +00:00
Carsten Haitzler 430e7463f5 this is... the beginning of accessibility supportin elm. it's direct
as in elm manages it itself - all it needs is a module to send text
to. one is provided here that just execs espeak and handles a stream
of things for it to say. this is only a start and is still being
fleshed out.



SVN revision: 62585
2011-08-19 11:07:42 +00:00
Tom Hacohen fc6c3c3fc8 Elm: Make all the widgets accept "default" as the default.
SVN revision: 61002
2011-07-04 10:52:23 +00:00
Tom Hacohen 4b0af66c91 Elementary: Rename elm_object_label_* -> elm_object_text_part_*.
This name is better as it also applies for entries, and not just
for labels.

SVN revision: 60975
2011-07-04 09:18:16 +00:00
ChunEon Park 4f7d35eb6b elementary/button - added pressed signal
SVN revision: 60892
2011-06-30 23:43:24 +00:00
Tom Hacohen f0a6330e3f Elm button: add the elm_object_text_set/get hooks.
deprecate: elm_button_label_set and elm_button_label_get

SVN revision: 60799
2011-06-29 07:11:50 +00:00
Iván Briano 89ae35c22a Example for button and moving docs around
SVN revision: 60738
2011-06-27 17:16:00 +00:00
ChunEon Park c7c99ddea6 elementry / entry, menu, notify, list, gengrid, actionslider, image, icon, anchorview, fileselector_button, calendar, photocam, anchorblock,
button, map, colorselector, hover, photo, diskselector, index, bubble, pager, hoversel, check, scrolled_entry, clock, flipselector

	    updated signal callback list in the  doxygen. 

            should update genlist, progressbar ... 



SVN revision: 58335
2011-04-04 16:34:18 +00:00
Daniel Juyung Seo 8a108db5ab Elementary: Use pre-defined type Edje_Signal_Cb instead of describing all of its parameters.
SVN revision: 58283
2011-04-03 05:32:17 +00:00
ChunEon Park 0369dbff50 elementary / calendar, button, colorselector, bg, cnp_helper, bubble, check, box, clock - removed white spaces
SVN revision: 58253
2011-04-01 11:35:07 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
Daniel Juyung Seo c2c9a2f723 Elementary elm_button.c: Fixed unnecessary spaces.f
SVN revision: 57682
2011-03-11 02:27:12 +00:00
Daniel Juyung Seo c94d05f948 Elementary button: Fixed 'if' statement indentation. Thanks Sebastian.
SVN revision: 57437
2011-02-28 21:23:59 +00:00
Daniel Juyung Seo 110e58531c Elementary elm_button.c: Fix formatting.
SVN revision: 57400
2011-02-27 22:59:12 +00:00
Tom Hacohen c04d8990f0 Elementary: Added on-the-fly UI-mirroing support to all of the widgets
SVN revision: 56846
2011-02-09 16:14:02 +00:00
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +00:00
Carsten Haitzler 2696d9a740 Rajeev Ranjan(in India) made a patch for elm_button.
Reasons for this patch are as follows. 

1. Clicked signal is emitted from button when mouse release region
coincides
with button region and there has not been any drag outside the region
during
pressed state. (theme change)

2. Unpressed signal is emitted from button every time we press on
button and
unpress it irrespective of whether we unpress in button's region or
outside.
(theme change)

3. The unsetting of maximum size hint has been removed from _sizing_eval
function as there is a possibility that some application may set this
hint
and if we unset it then this information set by application will be
lost.

4. Modification in test code for button to show the difference between
clicked and unpressed signal emission from this widget. Added a
scroller in
the heirarchy to show the effect of hold on clicked signal emission.



SVN revision: 55687
2010-12-21 09:32:50 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
helen 030b697366 EINA_SAFETY_ON_NULL_RETURN
Checking parameters with EINA_SAFETY_ON_NULL_RETURN and
EINA_SAFETY_ON_NULL_RETURN_VAL in Elementary

SVN revision: 55188
2010-12-03 14:08:33 +00:00
Tiago Rezende Campos Falcao a609cc1b69 Elementary patch for supporting keypad
Author: Jihoon Kim <jihoon48.kim@samsung.com>

SVN revision: 55062
2010-11-29 13:56:33 +00:00
Iván Briano ea3dda3527 And let's not expose internal objects when setting signal callbacks on widgets.
SVN revision: 54004
2010-10-29 18:21:58 +00:00
Tiago Rezende Campos Falcao 352893a5af Add missing getters to elm_button
SVN revision: 53920
2010-10-27 14:38:45 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Tiago Rezende Campos Falcao 738bfaa747 Review of content setters, getters and unsetters
Revised the parent, icon, end and content setter and getters of
elementary objects.
Review to smart objects and widgets items will be the next steps.

SVN revision: 53425
2010-10-14 18:54:42 +00:00
Tiago Rezende Campos Falcao 3fb08d420f Elm Button with custom focus highlight
SVN revision: 53145
2010-10-07 14:49:35 +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
Tiago Rezende Campos Falcao 52e3df6faf Fix: _event_hook must return EINA_FALSE if widget is disable
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
* button
* check
* file selector button
* radio
* toggle

SVN revision: 52890
2010-09-29 12:22:41 +00:00
Tiago Rezende Campos Falcao 2aa5e5313f Button animate when click with keyboard
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52601
2010-09-22 17:45:53 +00:00
Tiago Rezende Campos Falcao fc4a19b171 Listen Space/Return in some widgets
widgets:
* button
* check
* file selector button
* hoversel
* radio
* toggle

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52600
2010-09-22 17:45:49 +00:00
Tiago Rezende Campos Falcao 2bc6b517c3 Complete some widgets with activate_hook
widgets:
* button
* check
* file selector button
* hoversel
* radio

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52598
2010-09-22 17:45:43 +00:00
김지훈 d5b8d09591 From: 김지훈 <imfine98@gmail.com>
Subject: patch for indentation and using enum in elementary

I send the patch for elementary.
In this patch, I fixed the indentation of Elementary.h.in.
In addition, I use EINA_TRUE or EINA_FALSE instead of 1 or 0.
EVAS_HINT_EXPAND and EVA_HINT_FILL is used instead of 1.0 and -1.0.
Thanks.



SVN revision: 52447
2010-09-19 02:30:14 +00:00
Lucas De Marchi 3fd31b24a0 Finish unscrewing patch-fu
SVN revision: 50820
2010-08-04 19:00:15 +00:00
Lucas De Marchi 54531a69ed FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Iván Briano 2bec9f57d8 Set evas focus for some objects when focused. More will come later.
SVN revision: 48179
2010-04-20 20:03:05 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00