Commit Graph

151 Commits

Author SHA1 Message Date
Tom Hacohen c60f8fbae3 Colorselector: Fix some coding style issues. 2015-12-08 12:56:45 +00:00
Tom Hacohen 4df0ca1168 Colorselector: Fix out of bound read.
high should be the last item of the array, not the length of the array.
As part of this change, I also changed the code to use the better way of
getting the array size.

CID1339827
2015-12-08 12:55:33 +00:00
Shilpa Singh 8f3e250418 colorselector: read color names instead of RGBA when accessibility is set
Summary:
Issue: When accessibility is set, individual color item's RGBA values are read
instead of actual color names.
Solution: Read color names by matching the color RGBA from the array.

Test Plan:
enable accessibility
run elementary test
select colorselector demo
click on individual color palette items

Reviewers: cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 12:37:09 -08:00
Andrii Kroitor b922dbd0cb elm_colorselector: fix color selection with spinners
Reviewers: cedric, Hermet, raster, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-24 04:05:24 +02:00
Jaehwan Kim 0dedfc9248 focus: add the APIs to set the focus next about item.
Add elm_object_focus_next_item_set/get,
elm_object_item_focus_next_object_set/get and
elm_object_item_focus_next_item_set/get.

If the item and object is set at the same time,
the item is preference to object when the focus moves.

This feature is implemented about gengrid.
It will be implemented about ohter widgets.

@feature
2015-09-15 19:53:23 +09:00
Carsten Haitzler be2ae5f410 elm autofocus show - fix cases where focus is inside containers
i found that the focus doesnt auto-show when focusing things inside
scrollers and so on. i had to add more points to trigger auto show.
this fixes that

@fix
2015-09-10 18:29:24 +09:00
Sung-Taek Hong 97d3b02a49 elm_colorselector: modify to select no item when create colorselector
Summary:
Currently, the first item is marked selected when
the colorselector is added. However, this is not normal behavior
since the first item is not shown selected.
Moreover, always selecting the first item during creation does not
sound natural.

Reviewers: cedric, Hermet, woohyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:49:44 +02:00
WooHyun Jung 8da6c9cdda colorselector: fixed up the selected process
When mouse moves out of the color item area,
mouse up should not give selected smart callback.

@fix
2015-08-01 13:15:05 +09:00
Cedric BAIL fac449d7f9 colorselector: remove EINA_UNUSED that where clearly used ! 2015-07-28 23:58:23 +02:00
Vitalii Vorobiov f91bca734c Colorselector: fix wrong object for callback call function
Summary:
When spinner change it's value it should call callbacks for
colorselector but not for spinner.

@fix

Reviewers: raster, reutskiy.v.v, cedric

Reviewed By: reutskiy.v.v, cedric

Subscribers: NikaWhite

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-28 23:58:23 +02:00
j_yong.hwang 1be2af1529 elm_colorselector: change operation order to limit float operation imprecision.
Summary:
The numerical formula below is calculated with the double type.
-> h_pad / edje_object_base_scale_get(wd->resize_obj) * elm_widget_scale_get(obj) * elm_config_scale_get()

But if number of significant figure of the return value goes over 15, the epsilon error will happen.
Because of that, it is better to divide to do later.

Reviewers: woohyun, raster, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-28 23:58:23 +02:00
Amitesh Singh 460f66af98 colorselector: fix compilation warnings. 2015-07-10 20:47:24 +05:30
Jean-Philippe Andre 21bdc5d78d Elm.Colorselector: Fix crash in infinite callback loop
In most cases the code would not crash (I can't understand why),
but in some cases Eo would complain about call stack overflow.
Yep, that's a lot of recursive calls.

The mouse_down callback was trying to cancel its triggering
event and then send again the same mouse_down event. Why? I guess
because it was easier that also having a callback for move (drag
the colorselector arrows). Ugly...

This widget is in dire need for some love.
2015-07-10 15:29:12 +09:00
Avi Levin 04ee4036d0 elm_image, elm_colorselector: porting evas smart callbacks to eo 2015-07-02 08:04:03 +03:00
Vitalii Vorobiov 32d9ccc76a elm_colorselector: pixel-picker accuracy fix
Summary:
Looking at the base array of pixels,
the real middle of taken picture
is actually number 8 from array of 17 pixels (which starts from 0).

@fix

Reviewers: reutskiy.v.v, raster, NikaWhite, cedric

Reviewed By: NikaWhite, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:24:08 +02:00
Sung-Taek Hong b38c83cd73 elm_colorselector: fix horiz/vertical padding to be affected by base_scale in edc
Summary:
elm_colorselector get its padding size from data in edc.
However, when calculating the padding size, it does not consider
base_scale of the style from where it gets padding size.
In this commit, the padding size from edc is divided by its
base_scale so that desirable size can be calculated.

@fix

Reviewers: Hermet, woohyun

Subscribers: woohyun, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-22 12:36:57 +02:00
Youngbok Shin e8b50f5788 colorselector: add safety check for NULL pointer from ecore_x_image_new().
Summary:
ecore_x_image_new() API can return NULL.
@fix

Reviewers: raster, woohyun, Hermet, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-17 15:59:19 +02:00
Tom Hacohen 27b72840c8 Adjust usage of eo_constructor() according to recent changes. 2015-05-20 13:03:28 +01:00
kumar navneet 6b1d3f0651 Patch to fix accessibility issue in coloselector item.
Summary:
Issue: accessibility not working in colorselector item
Soln: Fixed accessibility issue
Signed-off By: Kumar Navneet <k.navneet@samsung.com>
Signed-off By: Shilpa Singh <shilpa.singh@samsung.com>

Test Plan: export ELM_ACCESS_MODE=1, run elementary test and test color selector palette item.

Reviewers: cedric, Hermet, shilpasingh, raster

Reviewed By: shilpasingh

Subscribers: govi, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2496
2015-05-19 21:09:38 +09:00
shilpa.singh dde6e49e49 [Elm_ColorSelector]: Unnecessary widget creations, code execution avoided.
Summary:
Issue: Too many widgets get created during smart add itself, even if
not necessary, adding to the launch time.
Solution:
Create widgets based on mode, check for modes in generic functions
like smart theme, focus etc:-

Test Plan: elementary_test can be used to test colorselector demo.

Reviewers: cedric, raster, Hermet

Subscribers: rajeshps, govi, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2532
2015-05-19 20:56:48 +09:00
Jean-Philippe Andre 315175083b colorselector,scroller: Check return value of elm_layout_theme_set
Fixes:
- CID1273968
- CID1291831
2015-04-07 15:26:46 +09:00
Mike Blumenkrantz 6d33a125c4 colorselector: support "changed,user" smart callback
this allows users to avoid getting callbacks from api calls
2015-04-05 16:01:50 -04:00
Daniel Juyung Seo cce206ff53 colorselector: Check return value of elm_layout_theme_set as other widgets do.
This fixes coverity CID 1273969.
2015-03-04 20:59:36 +09:00
Andrii Kroitor 67068df957 elm_colorselector update
Summary:
elm_colorselector: replaced entries with spinners
elm_colorselector: extended styling support
elm_colorselector: changed colors alignment in palette

Reviewers: Hermet, reutskiy.v.v, tasn, cedric, seoz, raster

Reviewed By: reutskiy.v.v

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1513
2015-03-03 20:07:50 +09:00
Tom Hacohen e2dcfa64ae Fix code to conform to recent Eo changes. 2015-02-23 17:16:21 +00:00
Daniel Juyung Seo c982744473 colorselector: Remove unnecessary pointer redirection.
Elm_Colorselector_Data pointer is already there.
2015-01-22 07:39:34 +09:00
Jee-Yong Um a83e01cad3 elm_colorselector: Fixed to make palette_box have proper height
Summary:
palette_box had stretched height exceeding its items size.
Now it will have proper height fitting to own items.

Reviewers: Hermet, Jaehyun, raster

Reviewed By: raster

Subscribers: raster, Hermet

Differential Revision: https://phab.enlightenment.org/D1840
2015-01-12 13:36:55 +09:00
ChunEon Park 625a299e4a colorselector: memory leak fix in _color_bars_add
Summary:
this function is called at least twice: in _smart_add and every time _theme_apply is called.
so we need either correctly free sd->cb_data or reuse it

@fix

Reviewers: seoz, cedric, raster, Hermet

Subscribers: reutskiy.v.v

Projects: #elementary

Differential Revision: https://phab.enlightenment.org/D1841
2015-01-07 11:42:08 +09:00
Jee-Yong Um c890310c01 elm_colorselector: Fixed to get proper min size with picker only mode
Summary:
Fixed to make colorselector have proper min size
when colorselector is in ELM_COLORSELECTOR_PICKER mode

@fix

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1832
2014-12-30 13:11:50 +09:00
Jee-Yong Um 17552b42b8 elm_colorselector: Fix layout broken in ELM_COLORSELECTOR_ALL mode
Summary:
Fix layout broken in ELM_COLORSELECTOR_ALL mode
due to missing part for layout sizing evaluation

@fix

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1802
2014-12-23 09:50:52 +09:00
Jee-Yong Um 8357725dc3 elm_colorselector: fix not intended duplication
Summary:
When colorselector widget is added, there are two align set command on palette_box part,
but that for picker part is omitted.
Apply elm_box_align_set function to picker part correctly.

@fix

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1790
2014-12-19 14:28:15 +09:00
Daniel Juyung Seo fb4b67afb5 hoversel, popup, colorselector: Optimize eo item usage.
Remove unnecessary pointer reference.
2014-11-25 21:54:26 +09:00
Daniel Zaoui b01d01528a Object Items: remove casts that are no more needed.
It includes casts to Eo, Elm_Object_Item and to specific items data.
This belongs to the cleaning phase of the object items porting to Eo.
2014-11-12 12:03:57 +02:00
Daniel Zaoui e1d7009ff3 Elm Colorselector Item: Migrate to Eo 2014-11-12 11:56:02 +02:00
Daniel Zaoui a9b13f7633 Elm Widget Item: Migrate to Eo
Since we want to support legacy inheritance mechanism, code is not
finished and will have to be cleaned when all the items are ported.
2014-11-12 11:52:10 +02:00
Lukasz Stanislawski 2ca1f8a75a atspi: properly include at-spi headers.
Summary:
Change requested by TAsn. Previuosly AT-SPI headers were kept private
and included directly into elementary source code. From now on,
AT-SPI headers can be included from Elementary.h public header, however
will be marked as beta APIs.

Commit includes following changes:
* include all atspi headers into new elm_interfaces.h header.
* marking all at-spi interfaces methods/properties as @protected.
* wrap all common headers with EFL_BETA_API_SUPPORT.
* make some common APIs visible in lib, by adding EAPI attribute
  (if someone decides to use beta APIs).

Test Plan: out-off tree build with gcc, g++

Reviewers: tasn

Reviewed By: tasn

Subscribers: seoz, q66, kuuko

Maniphest Tasks: T1721

Differential Revision: https://phab.enlightenment.org/D1528
2014-10-17 16:57:26 +01:00
Tom Hacohen 7629c147eb Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61 in
the EFL tree.
2014-09-25 17:39:34 +01:00
Lukasz Stanislawski 09b9ef0bc0 atspi: expose more actions through atspi bus.
Summary:
Main purpose of exposing widget actions and keyboard shortcuts
is to allow accessibility clients to implement alternative methods
of GUI navigation.

Reviewers: z.kosinski

Reviewed By: z.kosinski

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1227
2014-07-25 11:58:16 +02:00
Tom Hacohen 1bcdadb52e Eolian classes: Fix according to namespace changes in efl. 2014-06-30 17:52:16 +01:00
Zbigniew Kosinski 9ce23f0004 atspi:Set roles for widgets
Reviewers: stanluk, m.jagiello, raster

Differential Revision: https://phab.enlightenment.org/D930
2014-06-11 11:07:16 +09:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Daniel Juyung Seo 8ffbf246f4 elm: fixed trivial formattings.
Just found them while reading codes.
2014-05-10 23:44:27 +09:00
ChunEon Park 5ab6a7739f widgets - don't handle the events(key,mouse) if the object is disabled.
we can prevent to handle the widget events from the widget infra,
if the object is disabled.

conceptually, disabled object should not be interacted to user input(key, mouse)
2014-04-16 10:59:43 +09:00
Tom Hacohen 1c51dbce13 colorselector: Adjusted to Eo2. 2014-04-10 09:35:00 +01:00
Jaeun Choi 837fc28ed4 calendar, colorselector, diskselector: fix build warnings
Summary: This patch fixed build warnings in calendar, colorselector and diskselector.

Test Plan: make

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D685
2014-04-01 22:22:02 +09:00
Jaeun Choi 121f5446c7 check, colorselector, calendar, diskselector: apply key binding
Summary:
apply key binding to 4 widgets
this revision is only for reviewing
I'll send 4 seperate patches after review is done.

Test Plan: None

Reviewers: Hermet, seoz, raster

Differential Revision: https://phab.enlightenment.org/D678
2014-04-01 11:10:25 +09:00
Daniel Juyung Seo c8309645ed elm: Fixed shadow variable build warning.
declaration of 'access' shadows a global declaration
2014-03-23 02:05:18 +09:00
Daniel Zaoui 9a240dfedc Eolian: Integration of Color Selector 2014-03-20 15:19:49 +02:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Ryuan Choi 7c4288548b colorselector: Do not add custom palette color to the palette of config
Summary:
elm_colorselector_palette_color_add() clears the palette if config_load is true.
It means that this API will add paletter color only for this colorselector object.

Fixes T786

Test Plan: Added elm_colorselector_palette.

Reviewers: seoz, raster

Maniphest Tasks: T786

Differential Revision: https://phab.enlightenment.org/D557
2014-02-17 21:26:14 +09:00