Commit Graph

2148 Commits

Author SHA1 Message Date
Vaibhav Gupta 394a7e1d4d Entry: Context Menu is now configurable
Summary:
Added a config variable Context_Menu_Disabled to make the appearance
of the context menu configurable.

@feature

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Reviewers: Hermet, SanghyeonLee, raster, singh.amitesh

Subscribers: stefan_schmidt, alok25, cedric, thiepha, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2463
2015-12-11 16:08:54 +09:00
Jean Guyomarc'h aa93516e5f elementary_test: fix memory leak
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:06:37 -08:00
Stefan Schmidt 337c51c946 test: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 21:57:58 +01:00
Stefan Schmidt 3a4c2a9b45 test_gesture_layer: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 16:24:58 +01:00
Stefan Schmidt e0148bb076 test_access: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second
argument. Say Thank You to smatch for finding this issues for us.
2015-11-30 16:24:58 +01:00
Chris Michael 5ee3227847 elementary: Fix test_colorclass function
The test_colorclass function (and prototype) were incorrect in that
they did not have the proper function parameters defined. This lead to
a warning when building elementary tests.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-30 09:54:03 -05:00
Stefan Schmidt b53aeeb3ee test: correct declaration of function with no parameters
We have to use void in a function declaration if we want no function
parameters. Using just empty parenthesis means the function takes an
unspecified number of parameters.

We had it correct for most declarations and this series fixes it for
the rest.

Thanks for the sparse semantic parser for pointing this out.
2015-11-26 17:51:50 +01:00
Stefan Schmidt 3698cd5375 elm_prefcs_cc: correct declaration of function with no parameters
We have to use void in a function declaration if we want no function
parameters. Using just empty parenthesis means the function takes an
unspecified number of parameters.

We had it correct for most declarations and this series fixes it for
the rest.

Thanks for the sparse semantic parser for pointing this out.
2015-11-26 17:51:50 +01:00
Stefan Schmidt 3580978391 elm_prefs: mark some local symbols static and align thus with their declaration 2015-11-11 17:47:57 +01:00
Stefan Schmidt 0ea4c7b13c elm_prefs: remove some unused functions 2015-11-11 17:45:13 +01:00
godly.talias 087529298b hoversel: add item disabling support.
Summary:
Hoversel items can be disabled using elm_object_item_disabled_set
@feature

Test Plan: elementary_test

Reviewers: prince.dubey, shilpasingh, raster, Hermet, conr2d, cedric

Subscribers: poornima.srinivasan, rajeshps

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-10 15:15:31 -08:00
shashank.p 1e2b58a8c8 genlist: modified first/last/prev/next get API for filtered list.
Summary: elm_genlist_first_item_get(), elm_genlist_last_item_get(), elm_genlist_item_prev_get(), elm_genlist_item_next_get() should return the next filtered item if filter is applied on the genlist.

Test Plan: test_genlist.c => Genlist Filter demo updated

Reviewers: shilpasingh, cedric, SanghyeonLee

Subscribers: divyesh, rajeshps

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09 16:03:08 -08: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
Carsten Haitzler 0d81f89fe7 genlist tree test - minor - show all callbacks called so people know
act as "docs" so people can see what is called when. minor just in elm
test.
2015-11-05 11:44:16 +09:00
Amitesh Singh c86b0c08c4 test_explode: use evas_object_clipees_has instead
fixes memory leak and better performance
2015-11-02 08:58:15 +05:30
Shilpa Singh ffaee8f599 multibuttonentry: when item is clicked/selected, select function not called issue fix.
Summary:
The select function set in item_append does not get called on item selection issue fix.
As per documentation, the function has to get called.

@fix

Test Plan: elementary_test is updated with the demo

Reviewers: navnbeet, Hermet, CHAN, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
Jee-Yong Um d0b244313e hoversel: remove scrollable_set/get() API
Summary:
Hoversel scrollability can be considered as default behavior of hoversel.
These APIs are not necessary any more.

Reviewers: cedric, DaveMDS

Subscribers: DaveMDS, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
Amitesh Singh 9aff275143 test_gesture_layer: use bigger font size for entry 2015-10-30 10:17:01 +05:30
Daniel Juyung Seo 24797adcf5 elm: Fix typos fun! 2015-10-29 02:08:16 +09:00
Jee-Yong Um e71b32cf60 hoversel: expands scrollable hoversel as large as it can
Summary:
In D2063, "max_size" data item is added to limit the number of items
to show at a time when hoversel is expanded.
However, it limits the number of items too few, so makes scrollable
function useless.
This patch removes limitation of hoversel size with pixels,
but if it needs, developers can set the limitation yet.
(By theme customization)

Test Plan:
elementary_test "hoversel"
click the second hoversel

Reviewers: DaveMDS, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-26 01:47:46 +01:00
Carsten Haitzler e7dbba85c9 elm test - make automated test betetr by auto-exiting after 50 bounces 2015-10-20 14:05:05 +09:00
Carsten Haitzler 5a4ee64637 elm test - genlist test - add bounce option test for testing performance
for release we need to test performance - esp of evas and eo in real life usage
and scroling is just such one. this adds a simple automated scrolling
test to genlist test (hit the button or ELM_TEST_AUTOBOUNCE=1
elementary_test -to genlist) so you can get consistent input and benchmark info
2015-10-20 12:26:31 +09:00
Cedric BAIL a3806857ca hoversel: rename label_auto_changed -> auto_update
Thanks to Davide Andreoli for his review and suggestion.
2015-10-19 11:55:30 -07:00
Amitesh Singh 56951adbfb test_genlist: set focus on popup's button 2015-10-17 00:50:17 +05:30
Chris Michael e03df78dbb elementary: Remove unused static variable
Summary: clang reports _list_focus_objects as being an unused static
variable, so remove

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-10-14 10:04:03 -04:00
Jean-Philippe Andre 310f7d0321 elm_test: Fix bug in GLView test
Scenario:
  const char * accel = accel_get();
  accel_set("gl:depth");

Now accel may not be valid anymore since the original
Eina_Stringshare might have been destroyed. So there was
no point in saving the const char * pointer. It was not valid
after the call to set(). This is a bit confusing here. Returning
char* would be clear: the caller would own the data.
2015-10-14 20:19:30 +09:00
Jee-Yong Um 60ff0a3c6e elm_hoversel: add elm_hoversel_label_auto_changed_set/get() API
Summary:
Hoversel can be used like dropdown or pulldown menu.
In that case, changing hoversel label into selected item lable can be
considered as common usage of hoversel.
This API automatizes changing label.

Reviewers: SanghyeonLee, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 15:10:29 +02:00
Jee-Yong Um 9a9cc71a8a elm_hoversel: refine hoversel scrollability function
Summary:
Some modifications for hoversel scrollability are applied.
For example,
The logic for generating scroller is changed. (newly added during activation)
If hoversel's contents are larger than hover,they will be resized to fit hover.
If hoversel is moved (by window rotation etc.), scroller will be resized.
Reduandant code are removed from popup for scrollability.

Test Plan:
You can see the sample for scrollable hoversel in second one
of "elementary_test hoversel".

Reviewers: Hermet, SanghyeonLee, cedric

Reviewed By: cedric

Subscribers: godlytalias, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 14:56:54 +02:00
Amitesh Singh d4729368bb test_genlist: remove check for array comparision against NULL
CID: 1324955
2015-10-02 00:26:16 +05:30
ChunEon Park 972d418377 entry: remove evas_object_propagate_events_set() calls on buttons in test.
Seems unnecessary in test code.
It just looks  copied & pasted from wrong code.
2015-10-01 19:23:58 +09:00
Thiep Ha 0eb936a728 test/entry: add editable set
Summary:
There is no good entry test for changing editable mode.
This patch adds a test for changing editable in entry.

Reviewers: Hermet, tasn, herdsman

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3112
2015-10-01 19:12:34 +09:00
Mike Blumenkrantz 783aeefeeb colorclass: remove remote editor, make base api public
the remote editor needs to be rewritten to use x11 client messages
and wayland shell extensions at some point. need to make this stable
now to use in e20 release
2015-09-30 16:04:43 -04:00
Amitesh Singh d22b8a1724 test_gengrid: Add test case for elm_gengrid_at_xy_item_get 2015-09-29 14:09:20 +05:30
Amitesh Singh 234cc584b4 test_genlist: fix compilation warnings 2015-09-23 22:21:39 +05:30
Shashank Pandey c4a558dd13 Elm_genlist: Add Item filtering support
Summary:
Add Filtering support in genlist based on filter function set by application.

@feature

Test Plan: Genlist filter sample added in elementary_test

Reviewers: raster, shilpasingh, cedric, SanghyeonLee

Subscribers: SanghyeonLee, divyesh, rajeshps, govi, prince.dubey, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2514
2015-09-23 20:50:05 +09:00
Thiep Ha b2772fa5c1 test_dnd: transfer text without markup when drag label
Summary:
In Types Dnd test, if we drag from label to entry, the text is inserted
with "<br/>". The reason is that we drag with type ELM_SEL_FORMAT_TEXT
but the transferred data is markup.
This patch fixes it by changing the transferred data to text.

@fix

Reviewers: JackDanielZ

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3072
2015-09-18 11:38:39 +03:00
Thiep Ha ea7caad9f4 dnd/x11: correct coordinates in pos callback
Summary:
The x, y coordinates in pos callback should be relative to
the top-left of the object.
This patch corrects the x,y coordinates and adds poscb to elementary test
to clearly show the bug case.

Test:
      Run Genlist Dnd Dflt Anim with the change in this patch.
      Drag an item to other genlist and see the printed out item, x, y.

@fix

Reviewers: JackDanielZ

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D3063
2015-09-18 11:30:23 +03:00
Carsten Haitzler 7a58d15e41 elm config - fix labels in config ui for smooth time window 2015-09-12 12:45:25 +09:00
Carsten Haitzler 33e55d512d elm - thumbscroll finger scrolling - make it far smoother
smooth out scrolling and simplifyconfig as well as expose config apis
to configure it all and elm config ui sliders and checkboxes for
related config values etc. etc. - with this it is much smoother if you
use the default values, though latency is a bit worse. it looks nicer
though.

@feature
2015-09-11 23:24:51 +09:00
ChunEon Park 204fb1ae00 index: rename elm_index_priority_set to elm_index_standard_priority_set
this change is also for consistency with elm_toolbar_standard_priority_set
conceptually the priority meaning here is same.
2015-09-08 14:50:53 +09:00
ChunEon Park 72d214a21f hoversel: rename api scroll_enabled_set to scrollable_set
modify api for consistency.
scrollable_set is more closed to other similar apis.
2015-09-07 20:41:34 +09:00
Hosang Kim a501148a2f elm_test: Add test case for page scroller
Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-09-04 14:00:11 +09:00
Davide Andreoli 5b1ffeac94 Label test: split Slide and Ellipsis in two separate tests
this reveal the ellipsis + markup bug as explained in T2709
2015-09-02 21:51:46 +02:00
Davide Andreoli 5c60ca8555 Label: add support for all the fancy tags already provided for entry
Comes with a simple test

@feature

NOTE FOR THEMERS: you must update your theme to support this!
2015-09-02 20:36:52 +02:00
Davide Andreoli b20526c32e Genlist: add homogeneos mode to the tree test
show tree+homogeneous brackage, as explained in T2708
2015-09-01 20:08:42 +02:00
Davide Andreoli a7bcbeb1b4 Genlist test: cosmetics
* add separator comments between different tests
* keep function definitions on 2 lines
2015-09-01 19:34:43 +02:00
Hosang Kim 74bd15f5bf scroller: fix page calculation logic when looping is enabled.
Test Plan:
1. elementary_test -> scroller
           2. Lopping in x axis
           3. click prev page or next page

Reviewers: SanghyeonLee, singh.amitesh, Hermet, seoz, cedric, raster, jaehwan

Differential Revision: https://phab.enlightenment.org/D2982
2015-08-28 21:12:30 +09:00
Amitesh Singh 5483d064c7 test_gengrid: add item_select_on_focus_disabled option in gengrid2 test 2015-08-28 13:59:52 +05:30
Carsten Haitzler b13127532c elm test EXPLODE! feature! explore widgets and their content!
hit ctrl+middle mouse on something...
2015-08-28 12:20:01 +09:00
Amitesh Singh 1e0b1325fb test_genlist: fix a typo 2015-08-21 09:32:45 +05:30
Vaibhav Gupta 040a35aae5 test_scroller: Fix item count variable
Summary:
Since the _count variable is static, the buttons which are added
to scroller, get text value ahead of previously added count, instead
of starting from 1 every time a new window is opened for the example.

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Test Plan:
Following is the test:
1. Open Scroller 3 sample
2. Add some items and note the "Item count value of added buttons
3. Close the sample
4. Re-open Scroller 3 sample, and again add some items
5. Observe the "Item count" text of added buttons.

Reviewers: raster, Hermet, singh.amitesh

Subscribers: sachin.dev

Differential Revision: https://phab.enlightenment.org/D2959
2015-08-19 12:05:49 +05:30
Daniel Juyung Seo 3214aad129 test_table: Add variable padding config in the padding test. 2015-08-18 01:21:36 +09:00
Amitesh Singh fecd577f28 popup: make scroller optional in popup
Summary:
@feature

Resolves: T2651

Test Plan:
1. elementary_test -to "popup"
2. Enable/disable checkbox named "Enable popup scoller"

Reviewers: raster, herb, herdsman, SanghyeonLee, tasn, simotek, cedric, jeffhoogland

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D2945
2015-08-15 21:02:34 +05:30
Jaehwan Kim 085734310a test_gengrid: change the min size of gengrid 2015-08-13 13:33:50 +09:00
Chris Michael a9ede4a9fd elementary: Fix Copy and Paste test to actually paste clipboard text
Summary: The Elm Copy and Paste test was not actually pasting the
copied text into the entry when the Paste button was clicked. This
patch fixes that issue.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-08-12 10:18:41 -04:00
Jaehwan Kim b3a86fc230 focus: add the focus region show mode
When the focus is move to the object in scroller, it is scrolled
to show the focus region as a widget.
If the focus region want to be shown as an item,
set the mode ELM_FOCUS_REGION_SHOW_ITEM.
If then, it will be scrolled as an item.
TODO: Widgets have items are added on_focus_region function.

@feature
2015-08-12 17:30:44 +09:00
Mike Blumenkrantz 31a5766018 cnp test: add callback to print info when paste button is clicked 2015-08-10 16:22:23 -04:00
Davide Andreoli b937433374 Add a new (failing) test for table padding
This test expose a bug in table as explained in T2655
2015-08-09 18:59:14 +02:00
Davide Andreoli fd95ba8362 Add a no-wrap mode to the "Entry Style Default" test
I'm trying to reproduce an issue, not spotted by this,
but can still be usefull.
2015-08-08 17:08:45 +02:00
Amitesh Singh 87e841d7b7 test_popup: set popup content correctly
internal object content_area was not swallowed into popup
since elm_object_part_content_set() was used.

Steps to reproduce:
1. clouseau elementary_test -to popup
2. open subpopup example.
3. observe orphan content_area object in clouseau widget list.
2015-08-05 15:07:08 +05:30
Youngbok Shin 3fb443df95 focus/list/genlist/gengrid: fix focus highlight issues on list widgets when auto focus enable is on.
Summary:
elm_list, elm_genlist widgets are handle focus highlight
relying on only elm_widget_focus_highlight_enabled_get() API.
The API is not considered about auto focus highlight feature.
So, we need to check a flag for auto focus from _elm_config.
It resolves T2555.
@fix

Test Plan: elementary_test -> List Focus or Genlist Focus

Reviewers: raster, cedric, SanghyeonLee, singh.amitesh

Reviewed By: SanghyeonLee, singh.amitesh

Maniphest Tasks: T2555

Differential Revision: https://phab.enlightenment.org/D2914
2015-08-05 12:27:11 +05:30
woochan lee e22bf93a67 index: add index item priority APIs for support multilingual
Summary:
I add the APIs for supporting multi language on index.

"elm_index_item_priority_set()" API can give the priority value for each item.
it will be grouping with each priority items when index start to draw the item.
It can get a 0 or 1 (default : -1) -1 priority item show always even priority changed.

"elm_index_priority_set()" API can changed the current priority in manually.
priority will be up automatically when user send move event into last of priority 1 group item.
otherwise, priority will be down automatically when user send move event into first of priority 0 group item.

"elm_index_priority_get()" API can get a current index priority.
@feature

Test Plan:
I added the test application in test_index with give the name as "test_index3"
(It's for only show how to handle the priority APIs and show the how does it works for multi language
so it doesn't operate with genlist.)
You can check the how it works and how APIs works for it as well.

Reviewers: eunue, seoz, woohyun, Hermet

Subscribers: SanghyeonLee, eagleeye

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:56:53 +02:00
Jee-Yong Um a249d77d1d elm_hoversel: add elm_hoversel_scroll_enabled_set/get() API
Summary:
Currently, hoversel shows all items at the same time, but to limit
the size of contents and make it scrollable is neccesary to some users.
elm_hoversel_scroll_enabled_set/get() API makes the contents of hoversel
scrollable or not.

Test Plan:
The newly added scroll function is enabled for the second hoversel
in "hoversel" sample of elementary_test.

Reviewers: Hermet, raster, herdsman, cedric, tasn

Subscribers: JackDanielZ, cedric, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:51:39 +02:00
SangHyeon Lee ddc73095b2 genlist: add SIG_CHANGED("changed") smart callback in genlist.
Summary:
SIG_CAHANGED notify user to
genlist is now changed their items and properties and all
calculation is finished, so user can get correct values in
that callback.

This SIG_CHANGED smart callback already supported in gengrid.

Test Plan:
N/A
This patch is addition of new smart callback.

Reviewers: raster, seoz, singh.amitesh

Subscribers: Hermet, cedric, eagleeye

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:39 +02:00
Amitesh Singh b9e915dbe8 test_popup: add popup with content area only example 2015-08-03 22:55:51 +05:30
Amitesh Singh ee7ffb9fe6 test_cnp: remove explicit type castings.
In C, the explicit typecasting is not required.
2015-08-03 21:34:09 +05:30
Amitesh Singh ad5d9e23d4 test_disable: rename window name & title according to test name 2015-08-01 23:41:53 +05:30
Amitesh Singh 64901de655 test_hoversel: add example of setting focus to item 2015-07-31 09:18:23 +05:30
Chris Michael fc652be126 elementary: Fix external variable declaration to match const char
@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-23 09:47:51 -04:00
Chris Michael 6549dbad9e elementary: Fix compiler warning disgarding const qualifier
Summary: eina_environment_tmp_get returns a const char string, so we
should declare the variable to match

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-23 09:44:06 -04:00
Amitesh Singh 64ecef597d test: elm_prefs_cc - use eina_environment_tmp_get() instead of getenv("TMPDIR") 2015-07-22 22:52:39 +05:30
Chris Michael f897837e55 elementary: Fix T2573: Extra blank line in Genlist Dnd Test
Summary: This fixes ticket T2573 where an extra new line was being
added after dropping an item in the Genlist DnD tests. There's really
no need to be appending a '\n' on each item here as that ends up
adding an extra blank item to the drop.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-21 09:43:53 -04:00
Amitesh Singh 8dbed27dcd test_popup: include icon text in title-icon example 2015-07-18 18:25:35 +05:30
Amitesh Singh 7706057edd test_win_state: remove commented code and newline 2015-07-11 21:51:02 +05:30
Anand 449b9be714 test_focus: Focus should to move layout's entry
Summary:
While going through the test_focus(focus 2-> give focus to layout "entry") code found
focus should move to layout's entry instead of entry outside the layout.
Just change the entry object in callback ;)

Test Plan: elementry_test-->focus2-->give focus to layout "entry".

Reviewers: cedric, Hermet

Differential Revision: https://phab.enlightenment.org/D2611
2015-07-01 11:31:26 +09:00
jiin.moon 576f77d6e2 elm_config: Add feature to control transition scale for edje
Summary:
If the transition scale flag is enable in edje,
this value affect the transition scale for edje.
@feature

Test Plan: test elementary_config with enventor tool

Reviewers: raster, Hermet

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D2288
2015-06-26 13:54:48 +09:00
Daniel Juyung Seo ea5519d38e test_focus_policy: Enhance object focus policy test.
- Add more descriptions in the test.
- Set the focus to the first button automatically.
2015-06-26 10:30:21 +09:00
Daniel Juyung Seo a7518cd19d test_win_keygrab: Fix buffer not null terminated error.
This fixes coverity CID 1308264.
2015-06-26 10:08:10 +09:00
SangHyeon Lee d700a9b86f gengrid: add item cache in gengrid for efficient realize/unrealize operation.
Summary:
gengrid realize/unrealize items each smart calculation if their posiiton is updated.
This concept will be occurred useless view object creation and deletion.
So instead of delete items in unrealize function, push item cache into cache list,
and pop item cache from cache list in realize function to reuse item view object
more efficiently.
the cache concept is already implemented in genlist widget and this patch is improved
item cache of genlist cache.
@feature

```
NOTICE: This patch is written under the D2561 Patch which add elm_gengrid_item_fields_update.
        So it must submitted after D2561.
```

Test Plan:
I've tested below three cases,
   1. tested ith this patch in elementary_test and checked all gengrid features are working properly.
   2. tested with changing CACHE_MAX to another value which is set 40 in default
       and checked all gengrid features are working properly.
   3. tested with set it->item->nocache true, and checked cache is never generated
       and checked all gengrid features are working properly.

Reviewers: raster, Hermet, seoz, jaehwan, singh.amitesh

Subscribers: eagleeye, singh.amitesh, Jaehyun

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:24:08 +02:00
godly.talias 7ee4a5b8b1 elm_spinner: add feature in spinner to change values while dragging relative to the speed of dragging
Summary:
Currently the values in spinner change while dragging only based on
the amount of pixels dragged, this patch will enable Spinner to change value
based on the speed of dragging so that it will be more user friendly. This
will help users to alter drag values by big amounts if dragged in a good speed.

Test Plan: test_spinner.c in elementary_test

Reviewers: raster, prince.dubey, shilpasingh, cedric

Reviewed By: cedric

Subscribers: poornima.srinivasan, rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:24:08 +02:00
Umesh Tanwar ddbea82857 Genlist: Test case added in Genlist Focus example.
Summary:
Added test case to enable/disable mouse wheel. Mouse Wheel is
used to scroll the genlist up/down.

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Test Plan: elementary_test -> Genlist Focus -> Wheel Disabled

Reviewers: raster, Hermet, cedric

Subscribers: sachin.dev, singh.amitesh, SanghyeonLee, eagleeye

Differential Revision: https://phab.enlightenment.org/D2757
2015-06-25 13:24:21 +09:00
Daniel Zaoui dff887b560 Tests/DnD: fix uri parsing
When no \n is present at the end of the uris list, the function doesn't
return the uri.
2015-06-23 15:55:31 +03:00
Umesh Tanwar 7c71953733 elm_scroller: add wheel_disable_set API
Summary:
This API can be used by widgets like Genlist/Gengrid, which implements
Elm_Interface_Scrollable interface.Mouse wheel is used to scroll up and
down on widget.

@feature

Test Plan: elementary_test -> Scroller -> Wheel Disable

Reviewers: raster, Hermet, cedric, SanghyeonLee, singh.amitesh

Subscribers: JackDanielZ, herdsman, cedric, sachin.dev

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-22 12:36:57 +02:00
Vaibhav Gupta a350f64b6e test_gengrid: remove EINA_UNUSED for a used argument
Summary: Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: sachin.dev, singh.amitesh

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-17 15:59:19 +02:00
Stefan Schmidt c7201386e3 test_win_keygrab: Better use strncpy when copying into fixed size buffer.
We should never copy more than PATH_MAX.

CID: 1298016
2015-06-08 17:21:45 +02:00
shilpa.singh cfaf18f967 Elm: Add context,open signal in elm_entry.
Summary:
When context,open signal is sent from elm_entry before showing context
menu, dynamic addition of context menu items to entry becomes easier.

@feature

Test Plan:
Run elementary_test
Launch Entry Scrolled test
Right Click on Multiline Markup entry

Reviewers: tasn

Reviewed By: tasn

Subscribers: subodh6129, poornima.srinivasan

Differential Revision: https://phab.enlightenment.org/D2580
2015-06-03 10:41:13 +01:00
WooHyun Jung 52b95670e3 missed from prvious commit 2015-06-02 13:48:09 +09:00
WooHyun Jung 98060bd8da elm_focus: added new focus move policy and elm_object_focus_move_policy_set/get
New focus move policy, ELM_FOCUS_MOVE_POLICY_KEY_ONLY, is added.
If you set this policy as base focus move policy, objects cannot steal
focus by using mouse click or mouse in. Only keyboard input (such as Left,
Right, Up, Down, ...) can make focus be moved.
Additaionally, an object can have its own focus move policy by using
elm_object_focus_move_policy_set API.

@feature
2015-06-02 13:42:00 +09:00
Anand f61f2ac8b2 test_glview: remove warning while compiling the elementary package
Summary:
test_glview.c: In function ‘_print_gl_log’:
test_glview.c:347:10: warning: declaration of ‘log’ shadows a global declaration [-Wshadow]

Reviewers: JackDanielZ

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-26 18:43:12 +02:00
Amitesh Singh 748bfb5807 test_genlist: Fix warnings while running "Genlist Textblock".
Summary:
'Genlist Textblock' uses message style which does not have elm.swallow.icon
part.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>

Test Plan: elementary_test -to "Genlist Textblock"

Reviewers: raster, Hermet, JackDanielZ

Subscribers: seoz, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2546
2015-05-22 03:42:25 +09:00
Davide Andreoli b735386a45 Immediatly change the cursor if changed from inside the widget
@fix elm_object_cursor_set() to work also when used with the mouse pointer
yet inside the widget, otherwise you need to mouseout/mousein to actually see
the new setted cursor.

Please give a short review on this one, maybe there is a simpler way to check
if the pointer is inside the widget...

Also added a button in the cursor test for this use case
2015-05-20 21:32:08 +02:00
Tom Hacohen c56d494f2f Fix usage of the now removed eo_error_set().
This API has been removed from Eo.
2015-05-20 16:31:42 +01:00
Daniel Zaoui 5edaf3a9b1 test/scroller: apply coding style. 2015-05-20 09:09:46 +03:00
ChunEon Park bd8aea0eb0 scroller: add example for resizing scroll's content area.
Summary:
When content is resized, scrollbar's position is not updated.
Add bar position update after bar size is changed.

This is sample for resizing issue.

Test Plan: elementary_test -> scroller3

Reviewers: jaehwan, woohyun, seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D2291
2015-05-19 22:00:18 +09:00
Amitesh Singh aa2180941f test_hover.c: remove "transparent" hover style set.
Summary: This hover style does not exist anymore in default theme.

Reviewers: seoz, raster, Hermet

Subscribers: seoz, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2513
2015-05-19 21:06:21 +09:00
Carsten Haitzler ed8e4a0430 elm - tests - fix const warnings with new eina home get func 2015-05-15 12:36:45 +09:00
Cedric BAIL b4da061934 elementary: use portable way to get tmp and home environment. 2015-05-14 21:26:44 +02:00
Ji-Youn Park 8d1a238d1c elm_win: Add elm win key grab. If keyrouter support several keygrab mode, apps can use it. 2015-05-13 20:57:36 +09:00
Tom Hacohen 9639418c59 Win: Make animator,tick signal actually work.
This commit also updated one of the elementary test to show
the new one of doing it.

This lets users of the API just add a callback and automatically
get animation ticks. It's done per window, because update rate
may be different for different windows (think different screens).
2015-05-06 15:46:46 +01:00
Cedric BAIL 51386942a0 naviframe: add a test for checking expected behavior or item_pop. 2015-05-05 18:13:12 +02:00