Commit Graph

108 Commits

Author SHA1 Message Date
Tom Hacohen 6d2699317e Elm helper: fix compilation against elementary.
There was an issue when compiling against elementary when EO_BETA_API
wasn't set. This commit fixes that.

Thanks to Kuuko for reporting.
2015-04-02 10:54:06 +01: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
Thiep Ha ada2b6abec entry/test: make scrollable entries visible
Summary:
Two scrollable entries' size is too small to view.
This patch expands window size to have suitable size for entries.

@fix

Reviewers: Hermet, seoz, woohyun, tasn

Reviewed By: tasn

Differential Revision: https://phab.enlightenment.org/D1597
2014-10-29 08:37:38 +00:00
Youngbok Shin be3e33171f entry: Fix a test case for editable, non-editable entry.
Summary:
elm_entry_context_menu_disabled_set API is called to wrong entry.
It should be called to "en2" that added for testing the API.
@fix

Test Plan: 1. elementary -to entry7

Reviewers: woohyun, seoz, tasn

Reviewed By: seoz

CC: herdsman

Differential Revision: https://phab.enlightenment.org/D852
2014-05-13 15:50:05 +09:00
Anand c409347e85 Entry test code: Added example to show the last character of entered password
Summary: Added example to show the last character of entered password

Test Plan: elementary_test <search scrolled entry>

Reviewers: singh.amitesh, seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D610
2014-03-10 16:25:23 +09:00
Daniel Juyung Seo 1a29ad5679 elm: removing trailing white space ceremony for 1.9 release. 2014-03-02 00:52:26 +09:00
Davide Andreoli 60a087b802 test entry: make the minimum bug I see (hopefully) more visible.
Also don't use the generic poppers </>
2014-02-14 19:53:59 +01:00
Daniel Juyung Seo 6761c289ae test_entry: Refactored entry user style sample code.
- removed unnecessary lines.
- used proper variable name.
- used proper parent on widget add.
2014-02-10 01:28:55 +09:00
Davide Andreoli 6c6f35dc56 Add more tests to "Entry user style", to spot out lots of bug.
This test is full of TextBlock bugs, just to name a few:
- The window height is wrong, it seems to take the max height as
the win was less large, try resizing to min width to understand what I mean.
- the backing on the em tag is not working.
- the underline colors are wrong.
- popping the style should remove the double underline.
- push/pop on the stack seems not to work as expected: If you push twice
you should need 2 pop to return to the normal state.
2014-02-09 14:53:14 +01: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
Jihoon Kim ac16bd6fe6 entry: Add elm_entry_select_region_set API
Summary:
in case of GTK, it provides API to select a region of text (gtk_editable_select_region).
However, there are only API to select all or none in EFL.
This API will provide the way to select a region of text.

Test Plan: elementary_test > entry3 > press 'Region' button

Reviewers: woohyun, tasn, id213sin

Reviewed By: tasn

Differential Revision: https://phab.enlightenment.org/D520
2014-02-05 10:16:13 +00:00
Youngbok Shin d91f85c967 When the viewport is resized, the entry size will be recalculate.
Using the elm_scrollable_interface_content_viewport_resize_cb_set in
scrollable entry widget. this only happens in mobile profile when you
drag the content with your finger left/right when the content is
smaller than the gap between icons.

This accepts D187
2014-01-10 16:39:06 +09:00
Jihoon Kim 8de371066e elm_test: use EINA_TRUE or FALSE instead of 1 or 0 2014-01-07 16:48:58 +09:00
Youngbok Shin 205c264449 entry - Add "rejected" smart callback in "elm_entry_filter_accept_set"
Summary:
Add "rejected" smart callback.
Applications using the *filter_accept_set didn't know when the input was rejected.
This smart callback can provide a simple information to applications.

Reviewers: woohyun, tasn, seoz

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D413
2013-12-30 18:25:16 +09:00
Daniel Juyung Seo 6ad3ca17ed elm_test: clean up some elm_object_focus_set() usage.
- moved around the code to gather the same objects together.
- removed unnecessary focus set to a wrong object.
2013-12-15 06:57:19 +09:00
Daniel Juyung Seo d955c579ca elm_test: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:08 +09:00
Daniel Juyung Seo d5a74454ee elm_test: call evas_object_show(win) after its content creation.
- refer commit 64fd5a825b24591aedb9cac695d03f5b4d867442 for the detail
explanation.
- also move evas_object_resize(win, xx) alongside evas_object_show(win).
2013-12-15 05:47:39 +09:00
Jean-Philippe Andre 877e122e7a elementary_test: remove ELM_LIB_QUICKLAUNCH
Refer to the previous commits for the reason.
Remove all #ifndef ELM_LIB_QUICKLAUNCH from the test files.
2013-11-05 10:05:01 +09:00
Daniel Juyung Seo 83db5ad972 elm_test: __UNUSED__ -> EINA_UNUSED. 2013-09-01 10:18:03 +09:00
Ryuan Choi 95cd308e26 elm_entry: "elm.guide" part should be aligned to "elm.text" part.
Attached test code for guide part.
In addition, updated supported part for "guide" in documentation.
2013-08-23 10:59:53 +09:00
Carsten Haitzler 56d4729538 Change description:
Issue: Currently There is no possibility in entry to get currently
selected context menu item’s contents i.e., Label, icon etc:- due
to this issue a separate callback has to be added per item or the
item's contents has to be sent in data.

Fix: This patch fixes this problem by sending item pointer as
event_info and providing APIs to access the item pointer. This fix is
very useful for applications which add their own context menu items to
entry's context menu.

Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)
2013-02-27 21:06:05 +09:00
Daniel Juyung Seo 22fe887792 elm test_entry.c: Added 'activated' smart callback usage.
SVN revision: 81797
2012-12-28 12:19:20 +00:00
Daniel Juyung Seo 50ed3557f2 elm test_entry.c: Added entry emoticon sample.
SVN revision: 80062
2012-12-03 12:49:13 +00:00
Daniel Juyung Seo 264bbe0d8f elm test: Correct elm_win_resize_object_set() usage. Call evas_object_size_hint_weight_set() before calling elm_win_resize_object_set().
SVN revision: 79281
2012-11-14 10:49:45 +00:00
Jihoon Kim 0d8c7eb1fd elementary: fix typo in entry test
SVN revision: 78595
2012-10-29 00:30:51 +00:00
Gustavo Lima Chaves a9b1707fcd [elm] Entry now a scrollable layout.
SVN revision: 75890
2012-08-30 16:45:15 +00:00
Christopher Michael 75ab98f209 Elm: Remove mixed_wrap line. Ooopsie, that one should not have gone
in. Was a left over from some testing here.



SVN revision: 75259
2012-08-14 13:08:16 +00:00
Christopher Michael 02a122ac70 Elm: Fix test_entry 8 to not shrink the entry when you start entering
text into it. Not sure who the brain surgeon was that thought using a
box here was a good idea, but their surgery license should be revoked ;)



SVN revision: 75258
2012-08-14 13:01:02 +00:00
Jihoon Kim bdeb7e7b07 test_entry.c: fix formatting
SVN revision: 71568
2012-05-30 23:59:08 +00:00
thiep ha 06f5dda19b From: thiep ha <thiep.ha@samsung.com>
Subject: Re: [E-devel] [Patch] [elm_entry] New APIs for user style

Thank you for your comments.
I would like to send you the modified patch.
Followings are my modification:
- Add my part to ChangeLog, AUTHORS files as Raster's comment.
- Add const to the parameter of elm_entry_text_style_user_peek and
example for pop and peek to test_entry_style_user as Daniel's comment.



SVN revision: 71557
2012-05-30 12:18:48 +00:00
Carsten Haitzler d1d9ba3e19 fix non-premul color sets! :(
SVN revision: 70454
2012-04-25 03:48:55 +00:00
Carsten Haitzler ddf6442fb6 support "guide text" for entries. trivial internal + theme changes :)
SVN revision: 69961
2012-04-09 05:25:27 +00:00
Daniel Juyung Seo a333781964 elm test_entry.c: Fixed formatting.
SVN revision: 69951
2012-04-06 08:14:10 +00:00
Daniel Juyung Seo 7f2fc8ef80 elm bin: Use convenient utility function elm_win_util_standard_add()
instead of elm_win_add() + elm_bg_add(). This is for normal style
(ELM_WIN_BASIC) window.

SVN revision: 69848
2012-04-02 06:20:28 +00:00
Daniel Juyung Seo e838d6d2f2 Revert a wrong commit. Un-wanted files are committed together.
Revert "elm bin: Use convenient utility function elm_win_util_standard_add() instead of elm_win_add() + elm_bg_add(). This is for normal style (ELM_WIN_BASIC) window."

This reverts commit 31b24a0edb0028528d7c859070e03236ba42867b.

SVN revision: 69847
2012-04-02 06:20:22 +00:00
Daniel Juyung Seo b4308ab089 elm bin: Use convenient utility function elm_win_util_standard_add() instead of elm_win_add() + elm_bg_add(). This is for normal style (ELM_WIN_BASIC) window.
SVN revision: 69845
2012-04-02 06:07:58 +00:00
Mike Blumenkrantz cf8ab5c674 for the last time: CONFIG.H ALWAYS GETS INCLUDED FIRST. AAAAAAAALLLLLLLLLLLLLLLLLLLLLLLWAAAAAAAAAAAAAAAAAAAAAAAAAAAYYYYYYYYYYYYYYYYYYYYYSSSSSSSSSSSSSSSSSSS
SVN revision: 69764
2012-03-29 19:27:13 +00:00
Daniel Juyung Seo 8c17d99712 elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
2012-03-29 11:09:45 +00:00
Jihoon Kim b8e7f1b0ad elementary_test: fix formatting test_entry.c
SVN revision: 69060
2012-03-08 14:59:38 +00:00
Jihoon Kim d33a351623 elm_entry/test: replace scrolled entry -> entry
SVN revision: 69059
2012-03-08 14:08:04 +00:00
cnook 350dbe0946 From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][elementary_test] test_entry

I have attached a patch for test_entry. Please check this and give any
feedbacks. Thank you.



SVN revision: 68390
2012-02-24 07:41:38 +00:00
Daniel Juyung Seo b9b1500804 elm test_entry.c: Revised code.
1. Formatting.
2. Use scrollerble entry instead of entry + scroller.
3. Use elm_bg instead of evas_object_rect.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68375
2012-02-24 02:54:03 +00:00
cnook 1f7f39f66d From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][elementary_test] test_box

Please review the attached patch and give any feedbacks. Thanks.



SVN revision: 68268
2012-02-22 12:33:25 +00:00
Jihoon Kim e95974c024 elementary_test: change 0 -> EINA_FALSE, 1 -> EINA_TRUE
SVN revision: 67999
2012-02-16 04:55:08 +00:00
WooHyun Jung fcffc57076 [elementary/entry] Add elm_entry_markup_filter_append/prepend/remove
and make elm_entry_text_filter_append/prepend/remove be deprecated. In
a filter function appended by elm_entry_text_filter_append, the type of text can
be format, text, or markup. So correct filtering is impossible. But
with elm_entry_markup_filter_append, the type is always markup.


SVN revision: 67747
2012-02-08 07:23:08 +00:00
Jihoon Kim d2e3c6f9ec test_entry.c: Oops. remove some test code.
SVN revision: 67730
2012-02-07 12:00:28 +00:00
Jihoon Kim 66f88f28da test_entry.c: add test code related to elm_entry_input_panel_enabled_set
SVN revision: 67729
2012-02-07 11:24:39 +00:00
ChunEon Park 0640b3d90b elementary/entry - more deprecated APIs
elm_entry_icon_set/get/unset
elm_entry_end_set/get/unset



SVN revision: 66991
2012-01-09 10:33:59 +00:00