Commit Graph

376 Commits

Author SHA1 Message Date
WooHyun Jung 0a1179dde4 elm_layout now supports focused/unfocused smart callback
by itself for widgets that inherit layout class.
If it uses elm_widget's, smart callback will be called at the
beginning or smart_on_focus function.
2014-02-06 16:18:57 +09:00
ChunEon Park dbacb2fef9 elementary - send signal "language,changed" with one way in the widget.
Call the smart callback in the widget infra so that each widget don't need to hook the smart_translate only for the smart call.

This makes reducing duplicated code and supporting language,chagned from all widgets.
2014-01-23 19:30:34 +09:00
ChunEon Park aebdcff513 elementary - use the focused/unfocused string in widget defined.
Now, it will share the strings so that reduce the binary size also user uses it in one way.
2014-01-23 17:27:17 +09:00
Daniel Juyung Seo 0d1ac0fa05 elm: Removed unnecessary null check for eina_list_free. 2014-01-22 10:55:01 +09:00
Daniel Juyung Seo a4f3074f9c elm: Removed unnecessary null check for ecore_timer_del,
ecore_animator_del, and ecore_job_del.

As all efl public free apis get null as valid parameter, we do not need
to check null. I also removed some null check for other free apis which
were right next to timer/animator/job del. After this job code got
cleaner.
2014-01-21 23:18:16 +09:00
Yakov Goldberg 3379c124df all widgets: change Eo API for "elm_widget_theme()" to "theme_apply"
There are elm_widget_theme/theme_set/theme_get functions.
    In Eolian these functions will be described as "theme" method and
    "theme" property. There is clash here.
    So add suffix "_apply" to Eo API for "elm_widget_theme".
2014-01-21 11:08:29 +02:00
SangHyeon Lee cee12e4f94 [Gengrid] Refactoring gengrid item show reigion calculation
Summary:
Gengrid _item_show_region function calculate gengrid x, y moving postion with scroll to type.
Belows are summaries of this refactoring works.

1. Refactoring recalculation of scroll type.

2. Bug fix :
   - when x or y is 0, y or x value is set as default value, it->position-1.
   - when x or y is less then 1, calculation is not correct.
   - make calculate correct position of y when even though scroll direction is horiziontal
     (when virtical, x is also calculation correct position).

3.  change smart data variable s_type to scroll_to_type to make unity on gen widget.
     (genlist smart data variable name is scroll_to_type);

Reviewers: seoz, Hermet, raster

Reviewed By: raster

CC: bluezery

Differential Revision: https://phab.enlightenment.org/D474
2014-01-21 16:54:59 +09:00
Daniel Juyung Seo a7a8b257c2 gengrid, genlist: Fallback into default item style if the required item
style does not exist.
2014-01-08 19:07:56 +09:00
Daniel Juyung Seo d58b4401e8 flip, gengrid: Removed dead assignments which were reported by clang
build.

https://build.enlightenment.org/job/nightly_elm_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-05-1/report-cMar9x.html#EndPath
https://build.enlightenment.org/job/nightly_elm_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-05-1/report-ZMmiQe.html#EndPath
2014-01-07 00:11:00 +09:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Daniel Juyung Seo e63dd3110a elm: Unified eina critical manro to CRI.
Being annoyed by different types of eina critical macros - CRI, CRIT,
 CRITICAL -, I concluded to unify them to one. Discussed on IRC and
 finally, CRI was chosen to meet the consistency with other macros -
 ERR, WRN, INF, DBG - in terms of the number of characters.
If there is any missing bits, please let me know.
2013-12-26 13:03:55 +09:00
Daniel Juyung Seo 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
Ryuan Choi 9816a8cae1 gengrid: Remove unnecessary if statement
Summary: func.content_get is already checked in enclosed block.

Reviewers: seoz, cedric, raster

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D366
2013-12-04 13:16:02 +09:00
Daniel Juyung Seo 38c19d2739 gengrid: refactoring of commit 7187a3124fc6c169fcfec2c249a1fd483481fbba.
- follow the convention for structure name
- removed unnecessary callback
- removed wrong api usage
- removed unnecessary variables
- removed unnecessary parameter passing
- fixed ugly ui
- added 'static' to local function
- changed frame description more descriptive
- fixed formatting
2013-12-02 20:32:14 +09:00
Sanghyeon Lee 8531b7aeed [Gengrid] Enable Scroll To Type when item bring in or show region.
Scrollto positions are divided 4 type
NONE : do not scrollto.
TOP : scrollto position is always top viewport.
MIDDLE : scrollto position is always middle of viewport.
IN : scrollto position to fully visible in viewport.
2013-12-02 15:52:35 +09:00
Tom Hacohen 4c8d03894c Changed Eo class names to be consistent. #2
All the class names are now of the format: Elm_Type_Subtype_Extra

Thanks to Yakov for pointing out I forgot a few and for giving me a nice
list.
2013-11-07 14:30:22 +00:00
Tom Hacohen 2f1e1554e5 Changed Eo class names to be consistent.
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00
Daniel Juyung Seo 9509986a05 gengrid/genlist: added Eo compatibles for elm_genlist/gengrid_multi_select_mode_set/get() APIs. 2013-11-04 01:15:58 +09:00
Daniel Juyung Seo 6a0f47d120 Genlist/Gengrid: Added multi select mode for genlist/gengrid.
elm_genlist_multi_select_mode_set/get()
elm_gengrid_multi_select_mode_set/get()
2013-11-03 23:58:57 +09:00
Ryuan Choi 5836a25bc8 genlist, gengrid: Add ELM_OBJECT_MULTIPLE_SELECT_MODE_WITH_CONTROL
Summary:
Some applications like file viewer allow multiple selection only with
Control key was pressed.

Reviewers: seoz, raster

Reviewed By: raster

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

Conflicts:
	ChangeLog
	NEWS
2013-11-02 20:53:43 +09:00
Daniel Juyung Seo d22076681b elm: Fixed formatting about smart_event check for code consistency.
- Made it look clearer.
- Removed unnecessary local variables.
- Keep the code sequence consistent.
2013-10-28 23:30:12 +09:00
Ryuan Choi 2452ffe289 gengrid: adopted ELM_PRIV_XXX_SIGNALS to reduce human mistake.
"index,update" signal is missing in signal description.

So, This patch refactored signal declarations to avoid mistakes.
It was introduced since b430c07ca1f1.
2013-10-19 00:14:57 +09:00
Daniel Juyung Seo d9edd168d7 elm_gengrid.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:14:21 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
ChunEon Park a7b11a4c56 elementary/genlist,gengrid - should be cancel the track object before item view is removed. 2013-09-13 16:20:40 +09:00
ChunEon Park f426e08982 elementary/elm_object_item - delete the track objects when genlist/gengrid items are unrealized. 2013-09-13 14:19:41 +09:00
Michaël Bouchaud (yoz) 9271fc7e0f elementary: don't send unrealized item signal on item update 2013-09-09 12:00:58 +02:00
Michaël Bouchaud (yoz) 742abe65e1 elementary: avoid some glitter on gengrid item creation 2013-09-09 11:53:47 +02:00
Daniel Juyung Seo f790e7b1a0 elm_gengrid.c: more ELM_SAFE_FREE macro for gengrid. 2013-09-08 18:50:00 +09:00
Daniel Juyung Seo 745488fff3 genlist/gengrid: use spacer when item edc supports elm.swallow.pad part. 2013-09-06 13:08:21 +09:00
Daniel Juyung Seo beddd2c007 elm_gengrid.c: code cleanup. 2013-08-28 08:47:47 +09:00
ChunEon Park fe0f0a445e elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary setups again when obj <-> sub has connected.
2013-08-27 00:29:45 +09:00
Daniel Juyung Seo f3537869a5 gengrid: implement selectraise feature.
Gengrid item will be raised on selection. This was implemented in genlist, list, and index.
2013-08-26 19:55:28 +09:00
Carsten Haitzler 59e8bc5a35 Fix elm to use key not keyname (so xmodmap works) 2013-07-31 15:16:41 +09:00
Shinwoo Kim c47ef1b7fe [access] use proper name _elm_access_info_get(); not _elm_access_object_get(); to get access information 2013-07-31 12:57:49 +09:00
Daniel Juyung Seo 14c7bf8039 elm_gengrid/genlist.c: removed logically dead code. NULL is already checked.
This fixes 'Logically dead code' warning which was spotted by coverity.
CID 1040038, 1040040, 1040036, 1040037.
2013-07-06 12:49:54 +09:00
Daniel Juyung Seo f1b685897d elm: do not declare SIG_FUCSED/SIG_UNFOCUSED if the const char is not used more than once.
ctxpopup, fileselector_button, naviframe, player, popup, bubble, button, calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid.
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo 8cf2c8a422 calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid: added "focused" and "unfocused" documentations. 2013-06-09 18:55:42 +09:00
Daniel Juyung Seo 4738e0d6ae elm_gengrid.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:53:13 +09:00
Daniel Juyung Seo ef8701a173 elm: more ELM_FREE_FUNC cleanups. 2013-05-24 00:58:38 +09:00
Daniel Juyung Seo ac25946a19 elm: introduce ELM_FREE_FUNC for code quality enhancement.
There are pros and cons but this
1. reduces human mistakes.
2. enhances readability.
3. enhances code quality.
4. removes future bug.
5. was adopted from enlightenment.

This is not all. I will work on enhancing elementary more and more.
2013-05-22 02:24:02 +09:00
Flavio Ceolin d53cc519ff Welcome a new smart callback for scrollables -- page,changed. 2013-05-15 18:57:15 -03:00
Daniel Juyung Seo 9c28b4409e elm_gengrid.c: initialized local variable.
This needs to be re-visited.
I am also looking at you, JackDanielz.
2013-05-10 22:38:33 +09:00
Daniel Zaoui ac01929f37 Elementary: Drag & Drop feature for items containers
New APIs have been added to facilitate DnD for genlist, gengrid and list
widgets.
Tests have been added in the new section DnD to play with that.
2013-05-09 13:57:31 +03:00
Shinwoo Kim 3630715e62 [access][gengrid] fix: gengrid does not work under the accessibility 2013-05-03 19:53:56 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Daniel Juyung Seo 758bbce11d gengrid/genlist: removed relcount leftovers from commit 3f4c3e03c600c87782543cf08de886016f2c192e. 2013-04-02 12:44:27 +09:00
Flavio Ceolin 9ea9e13c26 Genlist, gengrid: two new smart callbacks
Adding ones for mouse pressed and mouse released on items. The event
info for both callbacks are the items being pressed/released.
2013-03-20 13:39:51 -03:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Daniel Juyung Seo 78c042cdbe elm *.c: fixed formatting with EINA_LIST_FREE.
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
Daniel Juyung Seo 8d1effeb20 elm elm_gengrid.c: Optimize item count calculation when an item is appended. Patch by Junki Cho <jk0811.cho@samsung.com>
Do not need to calculate the list count when a gengrid item is appended.
Just use item_count which was already calculated.
2013-03-04 20:32:04 +09:00
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Jaehwan Kim d58d971e6f Add the option about sending signals in content_pos_set.
When the scroller is resized, the signals("elm,action,scroll", "elm,edge,top" so on) shouldn't be sent,
because it's not a scroll-action. So in this case, the content_pos_set should be called without the signals.
2013-02-28 15:18:51 +09:00
ChunEon Park 35c5f65051 elementary/gengrid - support language,changed smart callback
SVN revision: 83846
2013-02-12 07:29:16 +00:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00
Daniel Juyung Seo 84d251acc8 elm list, genlist, gengrid: Added highlighted and unhighlighted signal callbacks.
SVN revision: 82750
2013-01-14 10:12:50 +00:00
Shinwoo Kim 44363b8f19 [access] export some APIs which would improve application side flexibility.
+ elm_access_object_item_register();
  + elm_access_object_item_unregister();
  + elm_access_object_item_access_get();



SVN revision: 82561
2013-01-10 12:00:05 +00:00
DUBEYPRINCE KUMAR ac8e33ea76 From: DUBEYPRINCE KUMAR <prince.dubey@samsung.com>
Subject: [E-devel] [BUG] [ELM] [PATCH] Bug fixes for APIs
elm_gengrid_region_show/bring_in

Please review the attached patches.

Attached patch "elm_gengrid.patch" which fix the bug related to
elm_gengrid_region_show/bring_in APIs.

And patch "test_gengrid.patch" in order to test the fix.



 Change Description:
 
      1. An internal function _item_show_region() is created which does
      the
      calculation for item position.
      
          2. This function is called in _calc_job() as soon as pan
object
gets its
size.

    3. Test_gengrid code enhancement for testing the fix.



SVN revision: 82063
2013-01-03 12:03:55 +00:00
Shinwoo Kim f10fb3e115 [access] export some APIs,and remove unnecessary lines.
+ elm_access_object_register();
  + elm_access_object_unregister();
  + elm_access_text_set();
  + elm_access_text_get();
  + elm_access_cb_set();

These APIs are to use edje part, evas object as an accessible object.
and do not create access object, because access object would be created at run time.
This is different with internal API _elm_access_object_register();


SVN revision: 81659
2012-12-23 14:50:56 +00:00
Gustavo Lima Chaves 4643908f4f [elm] Fix some copy and paste failures.
Thanks Cedric for reporting.



SVN revision: 80149
2012-12-04 12:52:06 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Daniel Juyung Seo 383eab67b9 elm gengrid: Refactoring. Use simpler code.
SVN revision: 79396
2012-11-16 14:26:10 +00:00
Daniel Juyung Seo 939e024fb4 elm gengrid/genlist: Refactoring. Now genlist/gengrid item new functions look similar.
SVN revision: 79395
2012-11-16 14:26:07 +00:00
Daniel Juyung Seo ea644c1552 elm genlist/gengrid: Refactoring.
SVN revision: 79394
2012-11-16 14:26:04 +00:00
Daniel Juyung Seo 7c3b90dc72 elm gengrid: Removed unnecessary duplicated calls.
SVN revision: 79392
2012-11-16 14:25:46 +00:00
Michael BOUCHAUD 2a4c76ddeb elmentary: add elm_gengrid_nth_item_get
SVN revision: 79296
2012-11-14 16:34:33 +00:00
Daniel Juyung Seo adc7416fcb elm access: Rename access hook name according to elm refactoring.
SVN revision: 78993
2012-11-08 08:33:26 +00:00
Daniel Juyung Seo 4e49a5f52e elm gengrid: Fixed wrong _calc_job parameter. Patch by Bluezery <ohpowel@gmail.com>
On Fri, Oct 19, 2012 at 12:30 PM, Bluezery <ohpowel@gmail.com> wrote:
> Dear all,
>
> There is a bug, invalid data assign into ecore_job.
> Trivial whilte space removal is included also.  it's automated in my editor :D.
>
> Please review this patch.
>
> --
> BRs,
> Kim.

SVN revision: 78221
2012-10-19 04:06:42 +00:00
Daniel Juyung Seo 30dba54610 elm: Fixed indentations for EINA_LIST/INLIST_FOREACH(_SAFE).
SVN revision: 77244
2012-10-01 07:36:27 +00:00
Kim Shinwoo 4de57c2cb9 From: Kim Shinwoo <kimcinoo.efl@gmail.com>
Subject: [E-devel] [patch][elementary] *  access *

Series of of pathes from kim shinwoo. looked good to me - so in they
go, finishing off some more access mode to be more complete.



SVN revision: 75415
2012-08-18 13:52:03 +00:00
Gustavo Lima Chaves 58c743a90e [elm] Gengrid inheritable.
SVN revision: 74694
2012-07-31 22:07:07 +00:00
Daniel Juyung Seo be4d9166f4 elm gengrid: Fixed item_show bug.
SVN revision: 74643
2012-07-31 11:02:27 +00:00
Gustavo Lima Chaves 7d1ffe6195 [elm] Some oopsies--.
SVN revision: 74405
2012-07-25 22:03:07 +00:00
Gustavo Lima Chaves 40c3ef3b46 [elm] Fix bad gengrid porting on a function.
SVN revision: 74149
2012-07-18 21:03:46 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Gustavo Lima Chaves 18a193ad22 [elm] Init code placement fix -- gengrid.
SVN revision: 74002
2012-07-17 16:42:20 +00:00
Gustavo Lima Chaves 9199e0d974 [elm] Forgotten cleanups and comments on gengrid.
SVN revision: 73940
2012-07-16 21:56:18 +00:00
Gustavo Lima Chaves 363cdf94c3 [elm] Gengrid now a scrollable layout.
SVN revision: 73541
2012-07-10 21:40:38 +00:00
Tom Hacohen db4635cfc1 Elm gengrid: (void *) and substraction don't play nicely together.
SVN revision: 72594
2012-06-21 11:55:19 +00:00
Mike Blumenkrantz e2d63d4c40 massive, massive, MASSIVE spankies to the person that wrote gengrid's sorted insert functions. cannot overstate the size of the spankies that await you if I decide to look through the svn logs.
also fixes ticket #984
--This line
\
, and those below, will be ignored--

M    lib/elm_gengrid.c


SVN revision: 72139
2012-06-14 14:11:04 +00:00
Carsten Haitzler 3a7b769a63 use the new escape text set to clear up issues if theme has TEXT vs
TEXTBLOCK items and handling escapes so text is consistend across elm.
fiuxes the fileselector issues kai reported.



SVN revision: 70362
2012-04-20 12:51:10 +00:00
Jihoon Kim b7c213af86 elementary: ignore key event of keypad when NumLock is turned on in calendar, diskselector, gengrid, genlist, and player
SVN revision: 69939
2012-04-06 00:56:06 +00:00
Daniel Juyung Seo 76990d020e elm gengrid: Changed internal function and variable names.
item_moving_effect_timer -> item_reorder_move_animator
_reorder_item_moving_effect_timer_cb -> _reorder_item_move_animator_cb

SVN revision: 69795
2012-03-30 12:31:01 +00:00
Jiyoun Park 8e689efa47 remove deprecated code related with
elm_gengrid_always_select_mode_get/set
elm_gengrid_no_select_mode_get/set
function.


SVN revision: 69285
2012-03-13 07:39:31 +00:00
ChunEon Park f82f22855b elementary/gengrid - fixed incorrect item count reducing
SVN revision: 69248
2012-03-12 11:42:40 +00:00
Jiyoun Park bb9b4b34c8 remove code related with
elm_gengrid_item_gengrid_get
elm_gengrid_item_data_
elm_gengrid_item_disabled
elm_gengrid_item_del
elm_gengrid_item_item_class_set
elm_gengrid_item_direct_sorted_insert
which was deprecated


SVN revision: 69168
2012-03-10 10:35:56 +00:00
Hyoyoung Chang ec5b4619cb From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gengrid - add item_select_mode_set/get
apis

I made a item_select_mode_set/get in elm_gengrid.
It works like genlist_item_select_mode apis.

+EAPI void
+elm_gengrid_item_select_mode_set(Elm_Object_Item *it,
+                                 Elm_Object_Select_Mode mode)
+EAPI Elm_Object_Select_Mode
+elm_gengrid_item_select_mode_get(const Elm_Object_Item *it)

from this morning - left over from last night.



SVN revision: 69056
2012-03-08 13:47:09 +00:00
Daniel Juyung Seo bea13e990e elm gen*: Changed local variable 'no_highlight' -> 'highlight' correctly.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69050
2012-03-08 10:58:32 +00:00
Daniel Juyung Seo f935b1eabd elm gen*: Fixed formatting.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69049
2012-03-08 10:58:29 +00:00
Hyoyoung Chang d8322c51d1 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - fix typos and remove
display_only variable

I found a mistake in example. and display_only value is remained.
It's fixed some trivial errors.



SVN revision: 69000
2012-03-07 16:40:39 +00:00
Mike Blumenkrantz aa78786616 rename elm object select mode values: whoever wrote this deserves spankies
SVN revision: 68982
2012-03-07 16:01:37 +00:00
Daniel Juyung Seo 9f5a98dd60 elm genlist/gengrid: Fixed hilight -> highlight.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68967
2012-03-07 15:02:01 +00:00
Hyoyoung Chang dbdd6294c5 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gengrid - add item_index_get func

I made a patch that's adding elm_gengrid_item_index_get function.

+EAPI int
+elm_gengrid_item_index_get(const Elm_Object_Item *it)

It works like elm_genlist_item_index_get()




SVN revision: 68951
2012-03-07 13:58:30 +00:00
Hyoyoung Chang 2df31b2926 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] gengrid - Some missing APIs is added

After api reivew, some api is missed in gengrid.
So I add this apis to gengrid.

patch file - 0001
+EAPI Eina_List
*elm_gengrid_realized_items_get(const Evas_Object *obj);
+EAPI void
elm_gengrid_realized_items_update(Evas_Object *obj);

patch file - 0002
+EAPI void
elm_gengrid_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy
policy_h, Elm_Scroller_Policy policy_v);
+EAPI void
elm_gengrid_scroller_policy_get(const Evas_Object *obj,
Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);

patch file - 0003
+EAPI unsigned int elm_gengrid_items_count(const Evas_Object *obj);



SVN revision: 68948
2012-03-07 13:46:35 +00:00
Hyoyoung Chang 248f878f0d From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gen{list, grid} - add
no_highlight_mode_set/get

actually change it to hilight_mode/set/get with the inverse.



SVN revision: 68947
2012-03-07 13:37:18 +00:00
Sanjeev BA 0e50d5d966 Add top,middle bring_in and show support to gengrid. Implementation to be done later.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68943
2012-03-07 12:57:17 +00:00
Hyoyoung Chang d1ab1c10e3 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gen{list, grid} - add elm_genlist_select_mode_set

As discussed in irc, I made a patch about unifying
always_select_mode_set and no_select_mode_set.

I'm introducing two apis in genlist (also in gengrid)

+EAPI void
+elm_genlist_select_mode_set(Evas_Object *obj,
Elm_Object_Select_Mode_Type mode)

+EAPI Elm_Object_Select_Mode_Type
+elm_genlist_select_mode_get(const Evas_Object *obj);

And added a enum in elm_general.h


+typedef enum
+{
+   ELM_OBJECT_NORMAL_SELECT = 0, /**< default select mode */
+   ELM_OBJECT_ALWAYS_SELECT, /**< always select mode */
+   ELM_OBJECT_NO_SELECT, /**< no select mode */
+
+   ELM_OBJECT_SELECT_MODE_MAX
+} Elm_Object_Select_Mode_Type;

After this is commited, i'll send a patch about examples and
edje_external.




SVN revision: 68937
2012-03-07 12:43:19 +00:00
Daniel Juyung Seo 480c61f20a elm: Formatting. No spacing after casting.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68807
2012-03-06 11:51:42 +00:00
Carsten Haitzler c233923591 use version as an actual version and bring back macros for setting up
class header for those using const item class structs.



SVN revision: 68770
2012-03-06 05:02:36 +00:00
ChunEon Park b5c7288f05 elementary/genlist, gengrid - reverted item_class version checking.
The version field is not for preventing ABI break but just for checking allocator (to not free the item class created by user)



SVN revision: 68670
2012-03-05 02:46:29 +00:00
Daniel Juyung Seo bc793f5880 elm gengrid: Fixed freezing bug. Closed trac #980
Signed-off-by: Daniel Juyung Seo <seojuyung@gmail.com>

SVN revision: 68651
2012-03-04 05:03:25 +00:00
ChunEon Park 2b3dad09a2 elementary/gengrid - removed elm_gengrid_item_sorted_insert
and rename elm_gengrid_item_direct_sorted_insert to elm_gengrid_item_sorted_insert



SVN revision: 68545
2012-02-29 10:30:51 +00:00
ChunEon Park 67d14d50ed elementary/gengrid - elm_gengrid_item_item_class_set -> elm_gengrid_item_item_class_update
SVN revision: 68542
2012-02-29 09:01:24 +00:00
ChunEon Park 0759538f5e elementary/genlist, gengrid - added itc version checking.
SVN revision: 68539
2012-02-29 07:51:23 +00:00
ChunEon Park c5a473f0cc elementary/gengrid - deprecated elm_gengrid_item_object_get()
SVN revision: 68537
2012-02-29 06:44:35 +00:00
ChunEon Park ebd409c78a elementary/genlist, gengrid - more reviews
SVN revision: 68534
2012-02-29 06:22:59 +00:00
Mike Blumenkrantz 0497ef0cda same commit, but for gengrid
SVN revision: 68444
2012-02-25 11:54:50 +00:00
ChunEon Park c5232c4741 elementary - removed unnecessary checkings
SVN revision: 68393
2012-02-24 08:53:01 +00:00
Hyoyoung Chang 7ab200383d From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gengrid - add item class management api
(1/3)

As like genlist item class management api, I added 4 apis to
elm_gengrid.

+EAPI Elm_Gengrid_Item_Class *elm_gengrid_item_class_new(void);
+EAPI void elm_gengrid_item_class_free(Elm_Gengrid_Item_Class *itc);
+EAPI void elm_gengrid_item_class_ref(Elm_Gengrid_Item_Class *itc);
+EAPI void elm_gengrid_item_class_unref(Elm_Gengrid_Item_Class *itc);

gengrid item class is maintained by gengrid in automatic manner.
it maintains its reference count. and item_class_free api marks
"delete_me".
Unless item_class_free, item class will not be freed.



SVN revision: 68308
2012-02-23 07:36:12 +00:00
Mike Blumenkrantz 8fb0f58c98 add elm_genlist_item_count(), change (int)wd->count to (uint)wd->item_count, fix a shadow var
SVN revision: 68240
2012-02-21 23:59:25 +00:00
Christopher Michael 15d1c06a20 Elm: Fix 'variable may be used uninitialized' warnings.
SVN revision: 67675
2012-02-01 12:29:14 +00:00
ChunEon Park 40e51b5fea elementary/gengrid - deprecated elm_gengrid_item_del()
please use elm_object_item_del() instead



SVN revision: 67621
2012-01-31 03:03:17 +00:00
ChunEon Park f12f55ea5a elementary/gengrid - deprecated APIs
elm_gengrid_item_disabled_set/get

please use elm_object_item_disabled_set/get instead



SVN revision: 67620
2012-01-31 02:40:08 +00:00
ChunEon Park cc7f2a51a9 elementary/genlist, gengrid - modified internal variable type to clean up the unnecessary casting
SVN revision: 67600
2012-01-30 10:39:32 +00:00
ChunEon Park 7c0738c762 elementary/gengrid - Elm_Gengrid_Item -> Elm_Object_Item
Be happy! now all widgets are using the Elm_Object_Item interface.



SVN revision: 67599
2012-01-30 10:29:51 +00:00
ChunEon Park 4ee72ae553 elementary/genlsit, gengrid - removed duplicated disabled field.
deprecated elm_genlist_item_disabled_set/get, 
please use elm_object_item_disabled_set/get instead.



SVN revision: 67562
2012-01-27 07:36:36 +00:00
ChunEon Park da7b8465a3 elementary/genlist - Elm_Genlist_Item -> Elm_Object_Item
SVN revision: 67370
2012-01-20 05:18:31 +00:00
Michael BOUCHAUD 772d3daba0 elementary: add a filled state to gengrid. auto fill the first line if not
SVN revision: 66869
2012-01-04 14:33:39 +00:00
Carsten Haitzler 39f63f3bf6 split up all elm headers. not perfect, but a big start
SVN revision: 66662
2011-12-30 06:49:28 +00:00
Daniel Juyung Seo 5c57fb3438 elm gengrid: Fixed crashed on Enter event with no selected item. Patch by
Jeonghyun Yoon <jh0506.yun@samsung.com>

2011/12/23 윤정현 <jh0506.yun@samsung.com>:
> Dear All.
>
> I found a bug in elm_gengrid.c
>
> Gengrid will be crashed if input “Enter” key when selected is null.
>
> I fixed code, please review this small patch.
>
> Thanks.



SVN revision: 66471
2011-12-23 06:52:05 +00:00
Daniel Juyung Seo 2f3a338139 elm genlist/gengrid: Changed 'labels' to 'texts' in edc.
SVN revision: 66205
2011-12-14 16:36:09 +00:00
Daniel Juyung Seo 8d0301505a elm genlist/gengrid: Added documentation. Fixed documentation. Fixed
formatting.

SVN revision: 65931
2011-12-06 01:23:55 +00:00
Daniel Juyung Seo 95f6ebae61 elm genlist/gengrid: Refactoring. Moved global function pointers to
widget data.

SVN revision: 65930
2011-12-06 01:19:12 +00:00
Mike Blumenkrantz 608d52ba61 missed some things with my tooltip api break
SVN revision: 65917
2011-12-05 17:14:07 +00:00
Mike Blumenkrantz 890a378db7 API BREAK
elm_XXX_tooltip_size_restrict_disable() -> elm_XXX_tooltip_window_mode_set()
elm_XXX_tooltip_size_restrict_disabled_get() -> elm_XXX_tooltip_window_mode_get()


SVN revision: 65909
2011-12-05 15:25:09 +00:00
Daniel Juyung Seo d22eb91185 elm gen/genlist: Renamed elm_gen.h to elm_genlist.h. elm_gen will be removed and elm_genlist will survive.
SVN revision: 65815
2011-12-02 14:09:24 +00:00
Cedric BAIL 926e801b59 elementary: now elm_gen*_clear only destroy the item created before calling it.
NOTE: As side fix, both genlist and gengrid now share their Widget_Data. Need
a lot more work to be clean and match our quality standard.

NOTE2: Genclear is now faster as it doesn't require to mark all item that need
to be removed, but just increase one int.



SVN revision: 65811
2011-12-02 13:43:02 +00:00
Daniel Juyung Seo 9266096bdf elm gengrid/genlist: Changed 'label_get' to 'text_get' according to the
recent elementary api corrections.

I changed item class's 'label_get' to 'text_get'. But 'label_get' is still
supported by union structure. So 'label_get' will just give you
deprecated warnings while compiling but it's recommended to fix your
apps to 'text_get'. Sometimes when you initialize item class using
braces, you will get 'missing braces around initializer' but ignore
this. That warning will be gone after I remove 'label_get' backport. I
will remove this 'label_get' backport after I finish below
jobs.

[TODO]
1. Fix all apps in trunk.
2. Change edc "labels" to "texts" as well. I haven't done this yet.


SVN revision: 65751
2011-12-01 06:15:08 +00:00
Daniel Juyung Seo 35fc57e252 elm gen/gengrid/genlist: Moved more gen stuffs to genlist. Most of all gen stuffs were moved to genlist as of now. This is for elementary 1.0 release.
SVN revision: 65722
2011-11-30 17:31:01 +00:00
Daniel Juyung Seo 0cabbec4e1 elm gen/gengrid/genlist: Partially removing gen. Partially merging gengrid into genlist. (Season 2)
SVN revision: 65721
2011-11-30 17:13:57 +00:00
Daniel Juyung Seo 462f1dc43d elm gen/gengrid/genlist: Partially removing gen. Partially merging gengrid into genlist.
SVN revision: 65718
2011-11-30 16:03:03 +00:00
Daniel Juyung Seo d397598ab1 elm gen/gengrid/genlist: Fixed wrong elm_gen_clear changes.
SVN revision: 65717
2011-11-30 14:40:22 +00:00
Michael BOUCHAUD 76285554aa elementary: fix wrong calculation for gengrid group items
SVN revision: 65714
2011-11-30 11:03:22 +00:00
Daniel Juyung Seo 6f1dd8c84d elm gen/gengrid/genlist: Undeprecate some gengrid/genlist APIs and
deprecate all elm_gen APIs.

We will merge gengrid into genlist later and remove elm_gen.
I updated http://trac.enlightenment.org/e/wiki/ElementaryChanges
I will fix other libraries/programs in trunk soon.


SVN revision: 65700
2011-11-30 00:59:19 +00:00
Daniel Juyung Seo 6a8740dad7 elm gengrid: Removed remaining deprecated signals.
SVN revision: 65475
2011-11-21 08:08:58 +00:00
Daniel Juyung Seo 2a477fe8af elm gengrid/genlist: Remove deprecated signals.
This was already announced a month ago.
http://trac.enlightenment.org/e/changeset/64200


SVN revision: 65474
2011-11-21 08:06:40 +00:00
Cedric BAIL a48828b85f elementary: kinetic is back in elm_gengrid.
SVN revision: 64866
2011-11-07 11:26:09 +00:00
Bruno Dilly cee4098e1f Elementary: remove vars set but not used
Remove almost all of them. Remaining:
  - device on _event_history_clear, elm_gesture_layer
  - config has a hand of these cases.
  - ctxpopup var inside macro
  - segment control edje external (it's unfinished)



SVN revision: 64365
2011-10-24 23:43:34 +00:00
Daniel Juyung Seo 23de0435b9 elm genlist/gengrid: Applied genlist/gengrid icons -> contents changes
to themes. Changed detour-elm and darkness theme as well.
Tips) Change genlist/gengrid's "icons" to "contents" in edc.


SVN revision: 64345
2011-10-24 02:27:04 +00:00
Daniel Juyung Seo 2bb2b1f0ee elm gen/gengrid/genlist: Changed item class's icon_get to content_get.
Do not limit the swallowed objects to icon. This had to be done before
elm 1.0 and now it's time to break. This will break all applications
which are using gengrid/genlist. Please fix it icon_get -> content_get.

TODO
1. fix theme as well.
2. fix documents.


SVN revision: 64344
2011-10-24 02:10:35 +00:00
Mike Blumenkrantz 9a12b8f12b check for value before strcmp
SVN revision: 64291
2011-10-22 06:30:14 +00:00
Mike Blumenkrantz 81fb2abd7e deprecate all genlist/gengrid functions related to 64281
SVN revision: 64282
2011-10-22 00:26:21 +00:00
Mike Blumenkrantz 9cffa1a766 add bounce settings to genlist wd
SVN revision: 64280
2011-10-21 23:51:26 +00:00
Mike Blumenkrantz e22f36e214 deprecate elm_genlist/grid_item_selected_get -> elm_gen_item_selected_get
SVN revision: 64279
2011-10-21 23:22:26 +00:00
Mike Blumenkrantz b148562870 deprecate elm_genlist_item_selected_set and elm_gengrid_item_selected_set: use elm_gen_item_selected_set instead
SVN revision: 64277
2011-10-21 23:10:56 +00:00
Mike Blumenkrantz 82cfec36d5 deprecate elm_genlist_clear and elm_gengrid_clear: use elm_gen_clear instead
SVN revision: 64276
2011-10-21 23:05:02 +00:00
Mike Blumenkrantz 5852948858 more genlist/gengrid merging: select+clear are now abstracted
SVN revision: 64275
2011-10-21 22:55:45 +00:00
Mike Blumenkrantz ffed36961e even more reordering, also convert some evas coords to int
SVN revision: 64269
2011-10-21 21:04:06 +00:00