Commit Graph

423 Commits

Author SHA1 Message Date
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
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
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
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
Cedric BAIL 51386942a0 naviframe: add a test for checking expected behavior or item_pop. 2015-05-05 18:13:12 +02:00
Mike Blumenkrantz a0e1e94511 colorclass: move test translate+list callbacks to main
enable remote editing of all colorclasses in elm_test
2015-04-06 15:33:50 -04:00
Mike Blumenkrantz 0e754183ac colorclass: add test case
a simple test case for local usage of the color class editor
2015-04-05 16:02:03 -04:00
Tom Hacohen 82a43998cb Revert "Revert "Elm helper: add the posix regex validator.""
Reapply the patch. Next commit will fix the break.

This reverts commit 6f8be78ca04125f220c339145d700fc2e1a1f9c1.
2015-04-02 10:37:37 +01:00
Carsten Haitzler 71dc4b5392 Revert "Elm helper: add the posix regex validator."
NO! this breaks compiling anything against elementary UNLESS you
enable eo beta api support. NO NO NO NO.

This reverts commit cad6de2a8ef93d994f9dedb8e980efe5fbf6d77e.
2015-04-02 09:48:29 +09:00
Vyacheslav Reutskiy 4c041aee9a Elm helper: add the posix regex validator.
Summary:
Added to Entry new signal "validate", this signal called from entry every
time when the text inputed to entry.
The regex validation add as elm_helper.
The styles of Entries scrollers are changed to allow highlightion that
is needed by regex processing.

For use regex with entry need register the regex helper as callback
to event: ELM_ENTRY_EVENT_VALIDATE

@feature

Test Plan:
See elementary_test "Entry Regex" test.
Note: when the string matches to regex the highlighting (green) is reset on unfocusing.

Reviewers: herdsman, raster, cedric, tasn

Reviewed By: cedric, tasn

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D2043
2015-04-01 16:11:18 +01:00
Daniel Juyung Seo f422f0ca69 test_genlist: Clean up reorder test case. 2015-02-09 10:34:06 +09:00
Shinwoo Kim 02693dbc02 [tooltip] use proper object to set tooltip layer
Summary:
tooltip could be hide by the other object which have lower layer than target object of tooltip.
the layer of content could be changed, when is set to the tooltip as a content.

@fix

Test Plan: check added test lines

Reviewers: cedric, jpeg, seoz, raster

Reviewed By: raster

Subscribers: singh.amitesh, stefan_schmidt, seoz

Differential Revision: https://phab.enlightenment.org/D1889
2015-02-05 20:02:45 +09:00
Daniel Juyung Seo 6ed274e003 test_label: Use meaningful test name for label test. 2015-01-30 09:10:43 +09:00
shilpa.singh 92deae574a elm_widget: elm_object_disabled_set API fix
Summary:
When elm_object_disabled_set API is called on any widget, All the
subobjects of the widget also has to be disabled issue fix.
@fix

Test Plan:
Call the API elm_object_disabled_set on any container widget like box,
layout etc:-, fix can be tested with test_box.c and test_layout.c test
codes.

Reviewers: Hermet, seoz, raster

Subscribers: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D1778
2015-01-08 16:06:35 +09:00
Davide Andreoli 9981b19303 Improve win dialog test to also include a test for standard_win 2015-01-04 15:38:51 +01:00
Davide Andreoli 19d6ed361c Icon theme: added standard freedesktop names.
OK, this  commit try to fix the mess we have done with icon names in elm.
I just added standard names to icons yet existing in the elm theme, the
old name are, of course, preserved. But I marked them as -deprecated-.

Also added a new test: Icon Standard. It show all the icon that have standard
fdo names. This can be really usefull for user that need to choose icons to use.

I put some guidelines comment in the icons.edc files, I hope people will follow
the rules from now on... or will recive my personal spanking :D

I will work on those icons more in the next days: will add the new names to
elm docs, will try to match better fdo icon names, and maybe also add some
new icons...

Suggestions are always welcome.
@feature (maybe)
2014-12-30 23:03:12 +01:00
ChunEon Park cf25180e0c transit: revise tween sample 2014-12-26 11:23:12 +09:00
Jee-Yong Um 30d8089ff5 elm_transit: Append Elm_Transit_Tween_Mode sample to elementary_test
Summary:
A sample for elm_transit_tween mode which can be executed via
"Effects"-"Transit Tween Mode" button in elementary_test

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1817
2014-12-26 10:27:15 +09:00
ChunEon Park 94e60a010e transit: add bezier curve tween mode example 2014-12-18 14:33:47 +09:00
ChunEon Park c8ca7e6ba9 transit: renamed to explicit examples. 2014-12-18 09:39:37 +09:00
Daniel Juyung Seo 0645ba436d test_box: Add box align test sample.
This shows how elm_box_align_set() works.
2014-11-09 18:36:29 +09:00
ChunEon Park 28bd64170e elementary_test: support --help command line. 2014-10-30 17:02:29 +09:00
Thiep Ha 8c0dcde37d label: Fix size calculation for wrapped label
Summary:
Label size is incorrectly calculated (text does not wrap) if
elm_label_line_wrap_set() is called before elm_label_wrap_width_set().

@fix

Test Plan:
The label3 test case is added to show the bug case.
In label3 test case, if we switch the calling sequence of
elm_label_line_wrap_set() and elm_label_wrap_width_set(),
the result is different.

Reviewers: raster, seoz, woohyun, Hermet

Differential Revision: https://phab.enlightenment.org/D1369
2014-09-01 23:05:30 +09:00
Carsten Haitzler 6c7619b0ea el - ELM_MAIN() cleanup. don't need shutdown in elm_main() anymore
this shouldnt be an abi or api break. it simply makes elm_shutdown
iside elm_main() optional. this is cleaner and more symmetric
2014-09-01 15:29:07 +09:00
Carsten Haitzler 2f66f5a581 elm test - add dialog window test 2014-08-25 17:11:02 +09:00
Jyotiprakash Sahoo d9f14f194b gengrid: Add function to search item by string.
Summary: This function allows user to search for item in Gengrid.

Test Plan: elementary_test -to "Gengrid Item Search By Text"

Reviewers: seoz, singh.amitesh, Hermet, raster

Differential Revision: https://phab.enlightenment.org/D1178
2014-07-23 11:35:20 +09:00
Jaeun Choi f5b762d5e8 panel: add scrollable feature
This implements scrollable interface in elm_panel so that users can drag open/close panel.
Tap & hold on the edge and panel handler will appear.

Left scrollable panel is implemented in elementary_test > Panel Scrollable.

@feature
2014-07-07 15:08:45 +09:00
Jaeun Choi f9ef6ece32 Revert "panel: add scrollable feature"
This reverts commit a47eef78c4f8e41708d54ddea96fe7e7f5511df4.

This will be added after second merge window opens.
2014-06-26 14:33:41 +09:00
Jaeun Choi 3003957af8 panel: add scrollable feature
This implements scrollable interface in elm_panel so that users can drag open/close panel.
Tap & hold on the edge and panel handler will appear.

Left scrollable panel is implemented in elementary_test > Panel Scrollable.

@feature
2014-06-25 23:43:18 +09:00
Kateryna Fesyna 28e73198f7 Genlist: Add function to search item by string.
Summary:
This function allows user to search for item in Genlist.
It takes four search parameters:
1. pointer to function to get text of the item. It could be the same with item's
   get_text function. This parameter is added to let user use the specific search key
   and to avoid problems with setting item's text, that is not constant.
2. pointer to the item from which search should start.
3. search pattern.
4. fnmatch() flags.
To check it's usage the new test is added to the elementary_test (Genlist Item Search By Text)

Reviewers: cedric, seoz, raster

CC: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D566
2014-05-27 15:55:05 +09:00
Jean-Philippe Andre 8e45bb869e elm_test: Set PACKAGE_LIB_DIR to fix windows runtime 2014-05-20 16:37:17 +09:00
Sung W. Park 65549dbffe ELM_GLView: added glview_manygears example to elementary_test
Added a more complex glview example to the elementary test.

- the gears lighting matches the original glx gears example.
- Added a background image to show that Glview works well with existing
  ELM winsets.
- Added 5 gears and buttons to increase/decrease gear teeth
2014-03-26 00:39:49 +09:00
Carsten Haitzler 2291c37875 Revert "adding focus direction for gengrid"
This reverts commit 4fe82cc740eda0c6b50ee09aedcf173aac1e775d.
2014-03-24 18:02:03 +09:00
m.zielonka 32751ac33b adding focus direction for gengrid
Summary:
It is implementation of focus_direction method for gengrid widget.

We need it in our project. We must service focus by
directions and we want to use gengrid widget. Additionally we must
support changing focus by keyboard (TV remote).
Unfortunately gengrid hasn't default implementation to present its
sub-objects as candidates for focus direction.

Our solution can search for focusable sub-objects (from realized items)
and change then focused and last selected variables in gengrid. If this
candidate wins then object will receive focus.

Reviewers: cedric, raster

CC: raster, seoz

Differential Revision: https://phab.enlightenment.org/D449
2014-03-24 16:38:27 +09:00
Amitesh Singh ffa7f989d7 toolbar: implemented widget item focus feature.
Summary:
1. Added "item,focused" and "item,unfocused" smart callbacks.
2. Added _elm_toolbar_focus_highlight_geometry_get().
3. Implemented elm_object_item_focus_set() and elm_object_item_focus_get().
4. Implemented elm_object_focused_item_get()
5. Ported _elm_toolbar_nearest_visible_item_get from cc827fef6.
6. Added Test Case "Toolbar Focus".

@feature

Test Plan: elementary_test->Toolbar Item Focus

Reviewers: seoz, woohyun, raster

CC: nirajkr, raster

Differential Revision: https://phab.enlightenment.org/D555
2014-03-24 00:22:32 +09:00
Daniel Juyung Seo 88776125a9 test_genlist/gengrid: Renamed 'item focus' test to just 'focus'. 2014-03-23 00:49:41 +09:00
Daniel Juyung Seo 31e81c1ecd test_genlist: Merged 'Genlist Focus' and 'Genlist Item Focus' test.
There is no reason to have two different focus example for genlist.
2014-03-23 00:13:58 +09:00
nirajkr fcfeba5097 gengrid : Implementation for gengrid item focus support
Summary:
Implemented the following API to support gengrid item_focus
          1. _elm_gengrid_focus_highlight_geometry_get
          2. _elm_gengrid_focused_item_get
          3. _item_focus_up
          4. _item_focus_down
          5. _item_focus_right
          6. _item_focus_down
          7. _item_focus_set_hook
          8. _item_focus_get_hook
          9. _item_focused
          10. _item_unfocused
          11. Changes in the smart_event, pan_calculation, smart_on_focus to support item focus

Reviewers: seoz, woohyun, singh.amitesh, raster

CC: raster

Differential Revision: https://phab.enlightenment.org/D550
2014-03-21 17:00:46 +09:00
Mike Blumenkrantz c8deb71004 +test for gengrid speed
this is a test for demonstrating the severity of T1068. scrolling and resizing the test cause very long ui blockages
2014-03-17 15:51:56 -04:00
Thiep Ha 76dcd3bcc0 Test_dnd: Add more test for dnd
Summary:
There is no dnd test for format types except ELM_SEL_FORMAT_TARGETS.
This patch adds a test for other formats, so that we can test more about dnd.

Reviewers: JackDanielZ, seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D617
2014-03-13 22:08:08 +09:00
Daniel Juyung Seo 067bf48b56 test_list: Refactor 'List Focus' test to reveal more focus related
bugs.

- Added Up, Down, Left, Right buttons around the list.
- Changed list focus test name.
  test_list8 -> test_list_focus
  test_list9 -> test_list_horiz_focus
- Incresed window size accordingly.
2014-03-09 20:11:29 +09:00
Seunghun Lee 2f2741f981 elm_win: added the window manager rotation feature and a sample.
Summary: since to control the rotation of application windows by WM, already added related feature in Ecore_Evas. Added related API for it.

Reviewers: raster, seoz

CC: gwanglim

Differential Revision: https://phab.enlightenment.org/D542
2014-02-10 22:09:45 +09:00
Davide Andreoli 00e1bb3b23 New textblock tags for elm entry widget.
This commit add the following new tags:
title, subtitle, bigger, big, small, smaller, code, comment,
string, number, brace, type, class, function, param, keyword,
preprocessor, line_added, line_removed, line_changed.

Tags has been unified in 3 new utility macros:
COMMON_TEXTBLOCK_TAGS, ENABLED_TEXTBLOCK_TAGS, and DISABLED_TEXTBLOCK_TAGS
to avoid repeating too much in the theme.

Also a new test is in: "Entry Style Default" that show all the new styles.
Docs will follow soon.
2014-02-08 20:14:49 +01:00
nirajkr 2a8c2f1b53 focus: Added elm_object_focus_highlight_style_get/set() to support custom focus highlight on widget
Summary: This new API will allow widget to have its own focus highlight style

Reviewers: seoz

CC: woohyun, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D501
2014-02-05 19:23:34 +09:00
nirajkr b611e2292f focus: Added test cases for the existing issues/feature enhancement relate to focus
Summary:
Below are the test cases to reproduce the exisiting issues with focus or feature enhancement
         1. Focus cut for the first/last item by scroller.
         2. Focus animation on the last item.
         3. Focus goes out of view point while scrolling.
         4. Focus moves but the area of focus does not change.
         5. No focus highlight on widget items.
         6. No animation on widget item.
         7. No focus movement between widget to widget items.

Reviewers: seoz, woohyun

CC: singh.amitesh

Differential Revision: https://phab.enlightenment.org/D502
2014-02-04 20:29:29 +09:00
Amitesh Singh cbae377ef7 focus: Added "focus_part" support on elm widget.
Summary:
Currently, focus highlight comes on the widget's geometry. Elementary does not have option to provide the focus highlight on widget's part.
This patch provides the option to provide focus highlight on the widget's part.
e.g.  data.item: "focus_part" "part";
The focus highlight would come on part's geometry instead of widget's geometry. This patch only works on widgets which uses
resize_obj.

Reviewers: seoz, woohyun

Differential Revision: https://phab.enlightenment.org/D499
2014-02-03 17:52:02 +09:00
Daniel Juyung Seo 18d9bd968a test_focus: Internal refactoring of focus tests.
- Moved focus2, focus3 from test_focus2.c to test_focus.c
- Renamed "Focus 3" to "Focus Hide/Del".
- Renamed "Focus Custom" to "Focus Style"
- Renamed test_focus3.c to test_focus_custom_chain.c
2014-02-03 01:26:06 +09:00
Daniel Juyung Seo b1743d7d16 test: Cleaned up elementary_test internal code.
- removed unnecessary/unused macro.
- fixed formatting.
- added prefix '_' for internal function.
2014-01-16 02:10:21 +09:00
Daniel Juyung Seo b9653d7d32 test_genlist: Renamed genlist20 test name to more descriptive test name,
genlist_focus.
2014-01-13 01:06:17 +09:00
Carsten Haitzler 43c8a4ea7d remove ifdefs for emotion and eio as they always come with efl. 2013-12-28 17:15:34 +09:00