Commit Graph

83 Commits

Author SHA1 Message Date
Carsten Haitzler 475e48bc7c colorsel - dont free up palette CONFIG except when clearing palette. 2013-11-08 15:42:31 +09: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 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
Daniel Juyung Seo 2ccb8399e0 elm_colorselector.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:13:53 +09: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
Ryuan Choi 5b32bf60cc colorselector: minor refactoring. remove unnecessary local variable 2013-09-04 10:19:48 +09:00
Rafael Antognolli ddb7b54d79 elm/colorselector: Fix last compatibility problems on the theme.
Also remove a wrong call to set content on "selector", right after it
being set already.
2013-08-27 19:06:14 -03: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
Carsten Haitzler af59342da3 fix namespace probs with colorsel - support backwards compat. 2013-08-01 21:06:22 +09:00
Carsten Haitzler b2ee9057a0 make colorselector set colors correctly (premul argb) and not mess entries 2013-08-01 20:53:50 +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 b45be2b9b7 elm_colorselector.c: removed dead default in switch code which was spotted by coverity. CID 1040039. 2013-07-06 12:10:16 +09:00
Ryuan Choi 54663d2970 colorselector: Remove srgb and lrgb from Elm_Colorselector_Smart_Data
They are always calculated before used so they can be removed from smart data.
2013-06-11 18:57:37 +09:00
Ryuan Choi 215e935ea1 colorselector: Do not send "changed" signal twice when pressed color bar
Regardless of color selector mode, mouse down captured color.
This patch moves callbacks related to picker mode to _start_grab_pick_cb.
2013-06-11 12:22:08 +09:00
Ryuan Choi 15883b69ce elm_colorselector: Refactored not to change RGBA values many times.
For example, colors_set changed RGBA five times (The first is in colors_set itself,
the others are in _hsl_to_rgb which called by _rectangle_redraw).

First, this patch splits _rectangle_redraw to 3 separate functions,
_update_colorbars, _update_hsla_from_colorbar and _update_ergb.
So only proper functions will be called instead of _rectangle_redraw.

Second, SIG_CHANGED will be called when RGBA was only changed.
2013-06-10 16:38:35 +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
Ryuan Choi 287f3cee1c elm_colorselector: Update color bar when color was picked by color picker. 2013-06-05 09:11:16 +09:00
Daniel Juyung Seo 1045cab8a7 elm_colorselector.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:47:36 +09:00
Ryuan Choi cbe6ae16b0 elm_colorselector: Can't receive "changed" signal when clicked color palette.
As document mentioned, "changed" should be emitted when the color value is changed.
So, this patch emits "changed" signal when color value is really changed.
In addition, fixed some formatting issue of test_colorselector.
2013-05-23 18:47:07 +09:00
Daniel Juyung Seo b28104166a elm_colorselector.c: fixed my mistake :( 2013-05-23 17:27:09 +09:00
Daniel Juyung Seo a6376e31b1 elm_colorselector.c: Set the colorselector color first before calling "color,item,selected" callback.
Special thanks to Ryuan Choi. This was detected while reviewing his patch.
2013-05-23 17:24:13 +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
Chris Michael 76eb5c8a1b Add missing HAVE_ELEMENTARY_X guards.
NB: Fixes ticket T107: Building elementary with only wayland support.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-13 12:20:13 +01: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
Yossi Kantor 2b47d9ecd6 Colorselector - selection in palette with up and down arrows is now possible 2013-04-22 11:51:46 +03:00
Daniel Juyung Seo 4ef1ba5088 elm_colorselector.c: fix _item_sizing_eval in a better way.
In the previous way, edje_object_size_min_restricted_calc will never be called because VIEW(item) is an elm_layout.
2013-04-12 03:21:04 +09:00
Daniel Juyung Seo a18a5fa800 elm_colorselector.c: fixed formatting. 2013-04-12 03:19:30 +09:00
Daniel Zaoui 1f62ff7647 Elementary: check object class
We need to check that the object is an edje object before calling the
edje function.
2013-04-09 21:29:24 +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 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
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03: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
Shinwoo Kim a345019094 [colorselector] remove resource leak possibility
SVN revision: 82456
2013-01-09 11:56:57 +00:00
ChunEon Park df32ff9669 elementary/colorselector - SAFETY NULL checking
SVN revision: 82444
2013-01-09 09:01:02 +00:00
Daniel Juyung Seo ffa9c1e793 elm: Refactoring.
Smart data is already initialized so we do not need to re-initialize them if the value equals to 0, NULL, or EINA_FALSE.
Sometimes re-initializing smart data explicitly is needed for readability. So there are left overs.

SVN revision: 82228
2013-01-04 19:10:19 +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
Daniel Juyung Seo 2e31628963 elm colorselector: Palette items resize issue when item size is more than finger size and fixed: 1 1 warning in picker. Patch by Shilpa Onkar Singh <shilpa.singh@samsung.com>
On Tue, Dec 11, 2012 at 8:46 PM, SHILPA ONKAR SINGH <shilpa.singh@samsung.com> wrote:

    Hi All,

    Please find attached bug fix patch for Colorselector.
    This patch fixes the resize issue in palette which happens when
    palette item size is given more than finger size.

    This patch also fixes a fixed: 1 1 warning shown in picker(New addition to colorselector).
    This warning can be seen when we shift from "both mode"(palette+component)  to picker
    mode and back to both mode.

    Change description:
       elm_colorselector: Palette items resize issue when item size is more than finger size and fixed: 1 1 warning in picker
    fixed.

    Signed-Off by: Shilpa Singh(shilpa.singh@samsung.com)

     Thanks & Regards
    Shilpa Singh

SVN revision: 80937
2012-12-14 12:17:49 +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
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
Cedric BAIL 6f20d1cb7f elementary: should work with wayland when both wayland and x11 backend are build.
SVN revision: 77496
2012-10-05 01:59:11 +00:00
Cedric BAIL 98f1dc53d6 elementary: add color picker to elm_colorselector.
SVN revision: 77409
2012-10-04 08:27:07 +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 65410cb43a [elm] Color selector now inheratable.
SVN revision: 74763
2012-08-01 21:04:33 +00:00