Commit Graph

115 Commits

Author SHA1 Message Date
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Jihoon Kim 23f20bb23d flip: fix typo in comments 2014-02-05 14:37:46 +09:00
Daniel Juyung Seo 5353aa863c elm: Removed unnecessary null check for free. 2014-01-22 11:13:11 +09:00
Daniel Juyung Seo db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +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
Jihoon Kim 7d6e81c09f elm: replace 0 or 1 with EINA_FALSE or EINA_TRUE 2014-01-08 08:23:58 +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 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
Jean-Philippe Andre 4cf069ede9 Flip: Fix confusion with hitsize and direction
Elm Flip has some confusing API (and documentation as well) regarding
flip directions and hitsize. Basically, it works just as expected
when everything is set to 1 (all hitsizes are 100% and all directions
are enabled), like in the elm example file :)

BUT, it's not actually possible to restrict the hitsize for one
direction.

Example: You want to flip to left only.
Set direction enabled LEFT.
Then, you must set the hitsize for... RIGHT because that's where the
finger interaction will start from (right to left!). BUT since
RIGHT interaction is not enabled, the histize parameter on RIGHT
will have NO effect on the flip.

Here's what this commit fixes:
- Clear up a bit of the confusion between direction and hit area,
through documentation
- Separate hit area position and direction (bugfix)
- Allow for negative hitsize values to DISABLE a specific area
(define previously undefined behaviour)

So, it will be possible for example:
- Enable left/right interactions
- Only on the top 10% of the widget

NOTE: This breaks behaviour! API/ABI are not quite broken but
undefined behaviour just got defined and fixed.
2013-12-11 15:02:20 +09:00
Chris Michael 6ea4c0bcb6 Fix formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-14 11:02:43 +00:00
Chris Michael c4157d841d Stop fetching the same Evas and Clip object 4 times
We can just fetch this information once as it is not going to change
during the for loop.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-14 11:02:43 +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 e756f97dae elm: Longwaited trailing white space removal. Clean elm up! 2013-09-30 22:15:01 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
Daniel Juyung Seo df396c02f7 elm_flip.c: set focus to the flip's content object when flip go to is called. 2013-09-16 00:22:30 +09:00
Daniel Juyung Seo a5ca313305 elm_flip.c: Added support for flip focus direction. 2013-09-12 01:16:58 +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
ChunEon Park 970257d3fc elementary/flip - fix the flip page to not flip on a direction if the direction is disabled. 2013-07-26 21:12:27 +09:00
ChunEon Park 26a8472a45 elementary/flip - use enum for readability. 2013-07-26 20:56:24 +09:00
ChunEon Park c8d99e3b25 elementary/flip - index table by enum. It's more clear. 2013-07-26 20:03:26 +09:00
Daniel Juyung Seo 2bbc41d4ae elm_flip.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:52:16 +09:00
Daniel Juyung Seo ef8701a173 elm: more ELM_FREE_FUNC cleanups. 2013-05-24 00:58:38 +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
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +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
Jaehwan Kim a36ec132c7 Fix the bug which the callbacks of the sub-object are added even if the sub-object is already added the parent object.
SVN revision: 82053
2013-01-03 09:52:57 +00:00
Cedric BAIL fd79c7d9a1 elementary: fix uninitialized data path in elm_flip.
SVN revision: 80210
2012-12-05 06:24:21 +00:00
Daniel Zaoui 0c915e9023 Cleaning: removed include Eo.h in widgets because it was indirectly included by Elementary.h
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79682
2012-11-26 09:29:01 +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
Michael BOUCHAUD e6b83eadc8 elementary: fix flip, who show the two faces at same time
SVN revision: 79535
2012-11-22 11:00:09 +00:00
ChunEon Park 880f6b82a1 elementary/flip - refacatoring (remove duplicated code)
SVN revision: 78822
2012-11-02 04:23:41 +00:00
ChunEon Park 09c3c4706b elementary/flip - don't update map uv for proxy object
SVN revision: 78820
2012-11-02 04:10:59 +00:00
Cedric BAIL 441a2ef861 elementary: Fixes copy&paste error and possible invalid memory access.
Patch by Igor Murzov <e-mail@date.by>


SVN revision: 77397
2012-10-04 02:47:15 +00:00
Christopher Michael 8b3c650468 Elementary: (elm_flip) Not much point in fetching the Z values here if we are not
going to use them.



SVN revision: 75953
2012-09-03 06:32:40 +00:00
Carsten Haitzler bb9d8efe63 fix flip bug where clippers get messed. add a "leaveme" take.
SVN revision: 75006
2012-08-08 10:12:19 +00:00
Carsten Haitzler 4c25cbcb47 fix interactive flip so it works again! :/
SVN revision: 74796
2012-08-02 08:42:06 +00:00
Gustavo Lima Chaves 38ad0afd75 [elm] Flip now inheritable.
SVN revision: 74767
2012-08-01 21:05:08 +00:00
Carsten Haitzler 0991e35a4c fix 1 liner oops in smart member add handler.. yet AGAIN runing the
smart member add... :)



SVN revision: 74648
2012-07-31 12:19:15 +00:00
Gustavo Sverzut Barbieri 88abf5f63d flip: proper api: elm_flip_go_to().
In real world it's very likely you're flipping to something, back or
front, not randomly flipping around based on one button.

I'd say we should deprecate the elm_flip_go().



SVN revision: 74360
2012-07-24 21:57:11 +00:00
Gustavo Sverzut Barbieri e6f2ea6708 flip: make quick sequence of "go" work.
whenever we "go" flip while flipping, we'll enter an inconsitent
state. We should detect where to flip and flip back if required.

Test: go to "Flip" test, click "1" button twice, before the first
animation ends.



SVN revision: 74359
2012-07-24 21:39:12 +00:00
Cedric BAIL 27dc623150 elementary: call this on the samrt object.
SVN revision: 74174
2012-07-19 09:24:29 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Cedric BAIL cf2c7ac35a elementary: randomly testing elementary let me come to this completly broken widget.
SVN revision: 71828
2012-06-08 02:16:19 +00:00
Gustavo Lima Chaves 728f4210c2 [elm] warnings, be gone
SVN revision: 71177
2012-05-16 19:28:07 +00:00
Gustavo Lima Chaves 7a6e223fbf [Elm] Flip now a container.
SVN revision: 71126
2012-05-15 17:37:42 +00:00
Cedric BAIL c5af5517e7 elementary: doing less is always better.
SVN revision: 70607
2012-05-02 06:53:38 +00:00