Commit Graph

40 Commits

Author SHA1 Message Date
Carsten Haitzler 84aa9dbceb move config setting fucns over to elm_config in preparation for naming
elm_config_*



SVN revision: 68797
2012-03-06 09:23:43 +00:00
Carsten Haitzler 7542e629d3 deprecate elm_win_transparent stuff
SVN revision: 68698
2012-03-05 12:03:40 +00:00
Jihoon Kim e083aa2095 elm: fix typo parant -> parent
SVN revision: 68669
2012-03-05 02:35:25 +00:00
Sanjeev BA 84fe1571f2 Elm tooltip API moved to config.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68470
2012-02-27 08:33:48 +00:00
Mike Blumenkrantz 890a378db7 API BREAK
elm_XXX_tooltip_size_restrict_disable() -> elm_XXX_tooltip_window_mode_set()
elm_XXX_tooltip_size_restrict_disabled_get() -> elm_XXX_tooltip_window_mode_get()


SVN revision: 65909
2011-12-05 15:25:09 +00:00
Mike Blumenkrantz 0a7bec205b even better tooltip placement, more debug messages, some developer comments, don't show tooltip if it's going to be a failure offscreen tooltip (FOT) (tm)
SVN revision: 65561
2011-11-24 04:52:16 +00:00
Mike Blumenkrantz 5121192fac further improve tooltip placement, add debug messages so I don't have to keep writing them in when I want to tinker with this
SVN revision: 65559
2011-11-24 04:16:03 +00:00
Mike Blumenkrantz 54efa8cf9a unbreak tooltip placement
SVN revision: 65553
2011-11-24 02:42:46 +00:00
Mike Blumenkrantz 2f5e212c5e use new elm_win function to find screen geometry instead of ecore_x
SVN revision: 65495
2011-11-21 19:55:13 +00:00
Mike Blumenkrantz 1d851d7ea9 maybe throttling this was not a great idea...
SVN revision: 65491
2011-11-21 19:12:35 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
Mike Blumenkrantz cf1f395966 fix bug where window-type tooltip deletion caused infinite recursion
SVN revision: 63761
2011-10-03 04:12:40 +00:00
Tom Hacohen bc6ea747d1 Elm tooltip: Remove the checks if object passed is an elm widget.
This kinda reverts 62919, still kept the useful new macro/func.

SVN revision: 62943
2011-08-29 11:55:25 +00:00
Daniel Juyung Seo 136a0f7dfd elm els_tooltip.c: Fixed warings.
SVN revision: 62930
2011-08-29 04:00:37 +00:00
Tom Hacohen e36e207812 Elm tooltip: Added checks if the object passed is an elm object.
SVN revision: 62919
2011-08-28 14:12:38 +00:00
Gustavo Lima Chaves 31a3e6180a [elementary] All docs to elm's header, as Raster wishes.
Discomfitor, now it's time to split the header and/or write another novel.



SVN revision: 62315
2011-08-10 21:03:21 +00:00
Jonas M. Gastal 0352f299d0 Elementary: A ton of random doc fixes.
SVN revision: 62066
2011-08-03 19:07:43 +00:00
Mike Blumenkrantz 977eae16c7 more tooltip calc fixes: if edje minw/minh is 0x0 from calc, use evas minw/minh so it's visible
SVN revision: 61926
2011-07-31 14:29:04 +00:00
Mike Blumenkrantz fb13968e89 remove hardcoded transparency from tooltip, add data item to edc to enable it
SVN revision: 61845
2011-07-28 10:08:07 +00:00
Mike Blumenkrantz d25c988bfc now apply style correctly to free size tooltips, and remember that time I said that I was done with tt position calculations? I lied. this commit is the pinnacle of tooltip position calculating technology. also inverts position of tooltip so it doesn't get stupidly hidden by the pointer
SVN revision: 61833
2011-07-28 01:32:40 +00:00
Mike Blumenkrantz 51491fbbae whoops, forgot to give transparent tooltip an alpha channel
SVN revision: 61812
2011-07-27 19:09:50 +00:00
Mike Blumenkrantz 3957a809f4 throttle tooltip job creation
SVN revision: 61811
2011-07-27 18:35:49 +00:00
Mike Blumenkrantz 2a09e2e7a8 significantly improve tooltip orientation calculations
SVN revision: 61795
2011-07-27 07:12:28 +00:00
Mike Blumenkrantz 81c6fb457d allow tooltips to better choose their orientation
SVN revision: 61793
2011-07-27 06:50:56 +00:00
Mike Blumenkrantz c061290560 err...not sure how that got in there
SVN revision: 61792
2011-07-27 06:44:39 +00:00
Mike Blumenkrantz 018a6320f5 fix a lot of issues with giant tooltips, also disable mouse input.
THANK YOU JEFFDAMETH FOR BEING SO AWESOME


SVN revision: 61791
2011-07-27 06:43:51 +00:00
Daniel Juyung Seo febcbbf303 elm tooltip: Fixed warnings.
SVN revision: 61758
2011-07-26 12:35:54 +00:00
Mike Blumenkrantz 54f1e32c17 THE MOST ANTICIPATED COMMIT OF 2011: HUGENORMOUS TOOLTIPS!!!!!!
these bad boys are so big and pixelthirsty they can't be constrained by a regular canvas or window, they use OVERRIDE REDIRECT WINDOWS. not only that, they totally exceed the boundaries of what a reasonable function name length could be. 50 character function name limit? puh-leeze. these guys don't care what side of the screen they're even on so long as they get to wade into the thick of the action and block out each and every crappy non-efl application behind them. and that's when they're in good moods. you don't even want to know what happens when you piss these guys off.


SVN revision: 61735
2011-07-26 09:38:23 +00:00
Mike Blumenkrantz 061f507101 explicitly hide tooltip content before deleting in case object is not able to be deleted (prevents giant tooltip image from getting stuck on canvas)
SVN revision: 61661
2011-07-24 22:05:02 +00:00
Mike McCormack 0295f4d56e elementary: elm_label_label_ -> elm_object_text
Clear deprecated warnings.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 60798
2011-06-29 06:41:31 +00:00
Michael BOUCHAUD 35c22c2d63 elementary: fix tooltip segfaults with gengrid (cedric thanks)
SVN revision: 60347
2011-06-15 14:07:28 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Bruno Dilly 333e06b357 Clean up some dead code on elementary
SVN revision: 52764
2010-09-25 22:08:56 +00:00
Gustavo Sverzut Barbieri 5662d99b44 fix warnings with elm_object_tooltip_unset().
don't connect twice to the same object (happened whenever not using
sub-items), then the callback was being called twice.

also set the dead object pointer to NULL, so we avoid operating on it
any further.




SVN revision: 52354
2010-09-16 23:44:02 +00:00
Carsten Haitzler 68f5b4119b oooh big cleanup. internal elm widget api cleaned up a bit.
SVN revision: 52178
2010-09-13 07:56:23 +00:00
Gustavo Sverzut Barbieri 494c1a6dca Tooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Now owner widget (elm_widget) is just used to listen for theme changes
and create/destroy the tooltip data. The actual mouse events operates
on all Evas_Object and is the one where tooltip data is actually
stored.

The public API is basically the same, just the event_info is now NULL
to avoid confusion.

The internal API introduces elm_object_sub_tooltip_content_cb_set()
and as the first parameter the eventarea. While this may be confusing,
as the second parameter is the actual elementary object, it is the one
that all other calls receive, like elm_object_tooltip_hide() or
elm_object_tooltip_unset(), thus it does make sense to have such order.

Also internal API, elm_widget_item_tooltip_* functions were
added. They are a variation of the widget API to handle its items, as
such the func() gets one more parameter: item, and the del_cb() gets
the item as event_info (that's why the public widget version got
event_info always NULL, to not confuse with this one!)

Widgets with items that makes sense to have tooltips got extra API:
  * toolbar
  * list
  * gengrid
  * genlist




SVN revision: 52173
2010-09-12 21:05:13 +00:00
Gustavo Sverzut Barbieri 448f5eee60 Fix tooltip visibility lock.
Whenever object starts hiding Elementary sends "elm,action,hide", so
when it aborts such action it must always emit "elm,action,show" and
the best place to do this is at _elm_tooltip_hide_anim_stop().

Note: _elm_tooltip_hide() calls _elm_tooltip_hide_anim_stop() and thus
would show the object, but this is void as right after that the
tooltip object is deleted and thus the signal is never processed and
as we don't go back to main loop, nothing changes on screen.



SVN revision: 52167
2010-09-12 17:46:44 +00:00
Gustavo Sverzut Barbieri 191ccae951 Tooltips are now uber cool!
I always wished tooltips would be less boring, and so we have them all
fancy and nice :-)

 * tooltip theme can request a timeout before hiding. This means we
   can fade out the tooltips nicely.

 * tooltip theme get enough information to track its origin. The
   current theme will show a small tip where it was created, and
   dynamically follows it. The graphics kinda suck, but I tried to
   achieve a cartoon-like buble using Inkscape.

 * label style is set to "tooltip". I'm providing a default with
   dark-gray text and 8 as size.



SVN revision: 52166
2010-09-12 17:24:45 +00:00
Gustavo Sverzut Barbieri a60be2543b Provide some known Evas_Object layers and set tooltip's to its designed value.
The Elm_Object_Layer is a convenience enumeration to help standardize
values so we don't ride into problems in future.

Tooltip has now its own layer, so set it there and avoid newly created
objects being created on top of them (usually they show on top of
everything as they are the last created, thus the topmost on the
default layer)



SVN revision: 52158
2010-09-11 17:01:40 +00:00
Gustavo Sverzut Barbieri 5c61931bd1 Welcome Tooltips.
Tooltips are set using elm_object_tooltip_content_cb_set(), that
returns the desired Evas_Object to use as contents, or using the
helper function elm_object_tooltip_text_set() that uses that
underneath.

The behavior is controlled part on elm_config, theme and user
application. In elm_config one defines the tooltip timeout. The theme
defines the padding around cursor x/y and window border x/y, as well
as the look and feel. Last but not least, the user application may
want to change the tooltip style with elm_object_tooltip_style_set().

Have fun!

This code was initially written by Tiago Falcao and Fabiano Fidencio,
I did some API review and changed some bits.

TODO: elm widget item support, like with toolbar items.




SVN revision: 52150
2010-09-11 00:52:33 +00:00