Carsten Haitzler
8292b172f4
move check up.
...
SVN revision: 52281
2010-09-15 03:11:30 +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
9ed8bf92be
Use elm_widget_item common base.
...
This patch changes all Elm_*_Item to use new infrastructure of
Elm_Widget_Item. This patch is basically a find-and-replace, but even
that was a bit tricky since every code had different names for the
same things, particularly for "view" and "widget" the names ranged
from "o"/"obj" to "base"/"o", quite confusing!
It is worth noting that Genlist and variants that adopted its "item
class" style such as Gengrid and Slideshow already provide a "del()"
callback there and I'm keeping them, however we should reconsider if
it is good to remove them and use elm_widget_item_del_cb_set()
instead. The drawback is that onde would have to set it, while the
other is done automatically when you create the object with the
class. Nonetheless this patch already introduces support to use
elm_widget_item_pre_notify_del(), but it will be void in such code as
nobody ever sets it.
Some new setters and getters were introduced to normalize code... and
they would be required once people write python-bindings for them,
like index and carousel.
SVN revision: 52118
2010-09-10 02:05:45 +00:00
Gustavo Sverzut Barbieri
fa16ad1c31
Don't cast Eina_Inlist directly to Elm_Genlist_Item.
...
The correct way is to use EINA_INLIST_CONTAINER_GET() that allows the
Eina_Inlist structure to be moved around in the structure. Right now
it did work fine, but I want to change the Elm_Genlist_Item later and
this change will be required and it is better to come in a separate
patch.
SVN revision: 52112
2010-09-10 01:04:19 +00:00
Gustavo Sverzut Barbieri
9a2d660eb1
don't report callbacks on NULL object.
...
From _del_pre_hook() we first delete pan_smart and then call
elm_genlist_clear() to rip off children, however genlist_clear was
always doing evas_object_smart_callback_call() on it.
SVN revision: 52111
2010-09-10 00:28:47 +00:00
Iván Briano
530a645192
Don't drop selection when dragging from selected item
...
SVN revision: 50841
2010-08-05 18:17:05 +00:00
Lucas De Marchi
3fd31b24a0
Finish unscrewing patch-fu
...
SVN revision: 50820
2010-08-04 19:00:15 +00:00
Lucas De Marchi
54531a69ed
FORMATTING
...
* Remove vim modelines:
find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;
* Remove leading blank lines:
find . -name '*.[cxh]' -exec sed -i '/./,$!d'
If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0
SVN revision: 50816
2010-08-04 16:57:32 +00:00
Carsten Haitzler
20490e70d8
handle clear being called from genlist item callback (eg selected)
...
SVN revision: 50590
2010-07-28 08:35:34 +00:00
Mike Blumenkrantz
7a15d7458e
no return value
...
SVN revision: 50579
2010-07-28 03:29:48 +00:00
Daniele Ricci
d6e7a21e30
From: Daniele Ricci <daniele.athome@gmail.com>
...
Subject: [E-devel] [PATCH] Genlist longpress timeout
Hello,
I've made a patch that makes the genlist capable of configuring the
timeout for the longpress event.
The patch compiles but I haven't tested it yet. However it's very
simple, it should work out of the box.
Patch is the output of "svn diff" from revision 49809.
SVN revision: 50558
2010-07-27 23:36:27 +00:00
Cedric BAIL
bdf6efa129
* elementary: fix Ecore API changes.
...
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Fabiano Fidêncio
7746e8b514
From: Fabiano Fidêncio <fidencio@profusion.mobi>
...
Changing return of Eina_Bool functions that were not EINA_TRUE or
EINA_FALSE in Edje.
In Elementary too ...
SVN revision: 49470
2010-06-05 13:12:45 +00:00
Carsten Haitzler
d888b71dba
theme -> can specify a new theme for an object andit gets inherited. need to
...
add tests.
SVN revision: 48771
2010-05-12 01:03:46 +00:00
Carsten Haitzler
6ef532ddae
and do the other instances too.
...
SVN revision: 48668
2010-05-07 13:24:29 +00:00
Carsten Haitzler
83286a1d84
scroller in scroller.... works! well with scrollers for now (elm_scroller).
...
need to fix up some other instances of use of elm_smart_scroller. it's a 1
liner.
SVN revision: 48667
2010-05-07 13:21:45 +00:00
Tiago Rezende Campos Falcao
58ffdf8254
Fix some bugs in Genlist/Photocam. By Fidencio
...
Author: Fabiano Fidêncio <fidencio at profusion.mobi>
SVN revision: 47823
2010-04-07 21:30:54 +00:00
Tiago Rezende Campos Falcao
ffaa68c266
Added get functions in elm_genlist and added external Genlist support. By Fidencio
...
Author: Fabiano Fidêncio <fidencio at profusion.mobi>
SVN revision: 47784
2010-04-06 14:01:04 +00:00
Carsten Haitzler
2f17c7c339
avoid adding timer to item that is not realized...
...
SVN revision: 47582
2010-03-30 05:42:56 +00:00
Iván Briano
d7517b304a
Also kill timer on genlist_clear
...
SVN revision: 47580
2010-03-30 05:26:14 +00:00
Carsten Haitzler
2fd70ad255
eek 2 longtimer dels.. move to end anyway.
...
SVN revision: 47579
2010-03-30 05:22:34 +00:00
Carsten Haitzler
2ae3d5f457
long timer del - on item del. why didnt this happen before?
...
SVN revision: 47578
2010-03-30 05:19:00 +00:00
Iván Briano
9fc0f17a49
Delete long press timer on item deletion
...
SVN revision: 47576
2010-03-30 05:03:57 +00:00
Carsten Haitzler
a22555c551
avoid norender when doing initial queued block - it's limited to 1 block
...
anyway.
SVN revision: 47550
2010-03-29 02:27:26 +00:00
Carsten Haitzler
a9560949f5
fix unrealizesd dragging item issue.
...
SVN revision: 47502
2010-03-27 04:17:01 +00:00
Iván Briano
b01e9fc400
NULL pointer after deleting timer to avoid bitching later
...
Patch by Brian Wang
SVN revision: 47462
2010-03-26 03:17:05 +00:00
Carsten Haitzler
9ed7a42108
when adding items to genlist - if there is no block yet, or a block that is
...
incomplete - always calc a block worth immediately.
SVN revision: 47416
2010-03-24 10:00:50 +00:00
Carsten Haitzler
29e61e39cb
longpress <- for dan!
...
SVN revision: 47414
2010-03-24 08:54:59 +00:00
Carsten Haitzler
9705f7dbe1
(remove useless edje_object_scale_sets's on objects that are not edje objects)
...
but more importantly - fix list to actually have a specific theme/base for it
SVN revision: 47381
2010-03-23 04:46:53 +00:00
Gustavo Sverzut Barbieri
abe1f4275a
Typedefs to help bindings, type less and make things easier to identify.
...
SVN revision: 47292
2010-03-16 15:31:38 +00:00
Carsten Haitzler
5ceae54321
fix more runtime wornings... added ELM_ERROR_ABORT! :)
...
SVN revision: 47195
2010-03-14 03:48:22 +00:00
Carsten Haitzler
27a1fc9a9c
more warning--
...
SVN revision: 47099
2010-03-10 06:46:28 +00:00
Vincent Torri
b07e49d435
remove unused parameter in the library.
...
I won't do this everyday, and i won't touch the tests.
SVN revision: 47093
2010-03-09 17:51:30 +00:00
Carsten Haitzler
6e5836950a
warning-- more
...
SVN revision: 47078
2010-03-09 14:42:41 +00:00
Carsten Haitzler
91e01aa86e
patch from discomfitor <- check type of widget on api call and return if not
...
the right type
SVN revision: 47073
2010-03-09 06:15:39 +00:00
Carsten Haitzler
25d1ec7d80
fix genlist delete item in callback bug
...
SVN revision: 46781
2010-03-02 08:47:40 +00:00
Christopher Michael
69cb69d24b
Fix doxy typo.
...
SVN revision: 46704
2010-03-01 16:20:39 +00:00
Carsten Haitzler
6a7271084d
slight change in drag events vs scrolling on_hold to fix small "distance
...
race" issue.
SVN revision: 46505
2010-02-26 06:30:17 +00:00
Carsten Haitzler
a9295a655d
code+comments.
...
SVN revision: 45891
2010-02-05 06:14:50 +00:00
Carsten Haitzler
fb06522eb4
allow genlist items to be "display only" - eg used as spacers or state
...
indicators, section markers etc.
SVN revision: 45862
2010-02-04 08:06:41 +00:00
Carsten Haitzler
cb8c22cde4
genlist - get realized items call! add!
...
SVN revision: 45543
2010-01-25 05:54:31 +00:00
Carsten Haitzler
dd7ed79b3c
add test for floating objects (they can slide in etc. andnot be already
...
packed inside the view) and... fix issues with pan based objects clipping to
vieport etc. etc.
SVN revision: 45542
2010-01-25 03:53:36 +00:00
Carsten Haitzler
591957a330
1. brian wang's patch for setting item count in a block, and homogenous
...
genlist mode, button repeat stuff. thanks very muchly
also - i added calc idler self-timer check. if it spends more than 1
frametime (time between frames - this is what it deems as "too much") on
calculation, then it breaks the idle and goes back to mainloop. could make it
half a frametime - but this will do for now.
SVN revision: 45479
2010-01-23 09:07:20 +00:00
Christopher Michael
93edc1c626
Reduce elm noise (add #if 0 around printf).
...
SVN revision: 45470
2010-01-22 23:04:01 +00:00
Carsten Haitzler
419472ac52
oops - back to 4. should make this configurable. but solutions is in comments
...
atm
SVN revision: 45441
2010-01-22 12:38:42 +00:00
Carsten Haitzler
9427ae2682
move scroll back to event handling - test
...
SVN revision: 45439
2010-01-22 12:02:39 +00:00
Carsten Haitzler
b400d33dfd
fix longpress!
...
SVN revision: 45319
2010-01-19 06:54:27 +00:00
Carsten Haitzler
5da6adb481
use specific scroller edje groups for list and genlist - add aliases.
...
SVN revision: 45278
2010-01-18 06:56:06 +00:00
Carsten Haitzler
4dd7f4e799
fix build break!
...
SVN revision: 45214
2010-01-16 12:35:31 +00:00
Carsten Haitzler
fe9ba3dd4c
add more bounce controls
...
SVN revision: 44533
2009-12-18 02:30:01 +00:00
Carsten Haitzler
a86f0b9ac6
flip widget! first go at it and still primitive. will expand! for flipping
...
between 2 bits of content (front and back).
SVN revision: 44352
2009-12-11 08:12:58 +00:00
Carsten Haitzler
074b91c5fe
Treviño's patch for genlist compress mode - from tac bug #308
...
SVN revision: 43766
2009-11-18 03:09:04 +00:00
Gustavo Sverzut Barbieri
24d6072ecc
fix valgrind reported problems.
...
GENERAL WARNING:
do NOT delete sub-objects (elm_widget_sub_object_add) or resize object
(elm_widget_resize_object_set) from del_hook()!! These are deleted
automatically before this function is called, thus you might double
free.
Fixed all occurrences I've spotted with valgrind. Please do not add more :-)
SVN revision: 43682
2009-11-13 22:22:05 +00:00
Davide Andreoli
2ddaccbe38
* Genlist: delete the long_press timer on _item_unrealize(), not on _item_del().
...
SVN revision: 43448
2009-11-04 11:09:02 +00:00
Jonathan Atton
947f7ffd37
Elm genlist: add elm_genlist_item_middle_bring_in/show(item)). Elm slideshow : fix a problem with the timer
...
SVN revision: 43087
2009-10-14 21:57:46 +00:00
Christopher Michael
7f83060158
Use ELM_NEW macro
...
SVN revision: 43052
2009-10-13 17:11:00 +00:00
Carsten Haitzler
0fe15aa512
remove commented out code.
...
SVN revision: 43009
2009-10-11 04:32:09 +00:00
Carsten Haitzler
08d2f2b3f7
fix scrolling in genlist and photocam
...
SVN revision: 43007
2009-10-11 03:10:36 +00:00
Carsten Haitzler
de95cab53e
if item is being dragged dont unrealize it + block. will get unrealised next
...
scroll.
SVN revision: 42942
2009-10-07 14:02:55 +00:00
Christopher Michael
2093e12af3
Formatting.
...
SVN revision: 42724
2009-09-26 18:24:06 +00:00
Jonathan Atton
82a9eb4bc5
elementary, new widget: slideshow. See elementary_test
...
SVN revision: 42660
2009-09-23 22:56:47 +00:00
Carsten Haitzler
c49e5d8800
fix genlist tree insert bug. (actually not treee bug - general one)
...
SVN revision: 42636
2009-09-23 05:48:59 +00:00
Carsten Haitzler
d3ec3dbaaf
genlist - get item at xy. handy for dnd. skips blocks that dont intersect
...
SVN revision: 42635
2009-09-23 03:22:07 +00:00
Carsten Haitzler
aaa40f1ccd
use itb - it not set yet
...
SVN revision: 42620
2009-09-22 14:23:29 +00:00
Iván Briano
e8bf64d566
Improve documentation for Evas, Ecore, Edje and Elementary.
...
Work by:
- Thiago R. Masaki (mostly)
- Fabiano Fidencio
- Gustavo Lima
SVN revision: 42553
2009-09-17 22:39:18 +00:00
Carsten Haitzler
7f46b38388
more efficient update
...
SVN revision: 42479
2009-09-14 02:53:03 +00:00
Carsten Haitzler
00a77eb122
fix realize callback
...
SVN revision: 42478
2009-09-14 01:17:16 +00:00
Carsten Haitzler
b08873a42d
1. box has clear.
...
2. photocam widget++
SVN revision: 42405
2009-09-11 13:43:02 +00:00
Carsten Haitzler
51e1595773
index all happy worky fun fun!
...
SVN revision: 42379
2009-09-10 09:25:11 +00:00
Carsten Haitzler
046d4dfa7f
test callbacks and fix select on drag
...
SVN revision: 42344
2009-09-08 06:35:14 +00:00
Carsten Haitzler
2f9bbcae45
fix drag start and ad drag callback too
...
SVN revision: 42343
2009-09-08 06:22:11 +00:00
Carsten Haitzler
3167305fa7
fix scroll freeze and propagate to built-in scrollers. also genlist now knows
...
about dragging items. callbacks for that.
SVN revision: 42342
2009-09-08 06:20:32 +00:00
Carsten Haitzler
e7c398372a
add realized call to genlist + call to get item object
...
SVN revision: 42335
2009-09-08 02:09:13 +00:00
Christopher Michael
34b0e68a3b
Fix some formatting. Cleanup some snprintf's.
...
SVN revision: 42247
2009-09-04 15:39:30 +00:00
Carsten Haitzler
e173cf51a2
fix genlist item show!
...
SVN revision: 42233
2009-09-04 03:55:08 +00:00
Carsten Haitzler
5781ad4a3e
1. add scroller test
...
2. add pagination concept to scroller (only scroll by pages)
3. add longpress callback for list + genlist
4. scroller docs and some empty api calls.
SVN revision: 42147
2009-09-01 10:42:52 +00:00
Davide Andreoli
9bd9876fbc
* miss doxy for new API
...
SVN revision: 41793
2009-08-15 18:24:58 +00:00
Davide Andreoli
e0992b5ac8
* Genlist: Add a new method to set the data of an item.
...
SVN revision: 41792
2009-08-15 18:20:28 +00:00
Gustavo Sverzut Barbieri
d65e18c875
data_get returns void*, not const void*
...
It is the convention for generic user data to get as const and return
as not const to avoid useless casts all around.
SVN revision: 41741
2009-08-13 15:15:18 +00:00
Vincent Torri
e2be9d2b24
remove trailing spaces
...
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Cedric BAIL
29adfe9fc8
* elementary: Full switch to Eina data type.
...
SVN revision: 41081
2009-06-17 15:35:19 +00:00
Carsten Haitzler
d7a3bd786d
more... DOCS!
...
SVN revision: 40868
2009-05-31 21:59:31 +00:00
Carsten Haitzler
a4bf81cef2
elementary doc
...
SVN revision: 40781
2009-05-22 21:01:46 +00:00
Carsten Haitzler
9d7db82782
documentation... more! build! look vaguely ok
...
SVN revision: 40734
2009-05-19 09:29:20 +00:00
Carsten Haitzler
b68636289b
hmm more select issues - put in hilights
...
SVN revision: 40724
2009-05-18 14:14:33 +00:00
Carsten Haitzler
f2a75b0f05
1. configure.ac finally
...
2. add docsbuilding infra
3. fix list/genlist on code-based select.
SVN revision: 40667
2009-05-15 11:45:14 +00:00
Carsten Haitzler
26b4f340b6
actually give widgets type name strings and set parent by default
...
SVN revision: 40618
2009-05-13 12:21:52 +00:00
Carsten Haitzler
0523f39faa
make lists handle drag+select logic better
...
SVN revision: 40598
2009-05-12 10:16:49 +00:00
Carsten Haitzler
84e589e5ed
genlis - create and del as items come into view.
...
SVN revision: 40588
2009-05-11 13:10:19 +00:00
Carsten Haitzler
5c7e2ec144
1. fix box as it didnt hide clipper when it gets empty
...
2. add bouncing at ends for scroller and config for it
3. fix quicklaunch to be cserver-freidnly thanks to its fork tricks
4. add signals to scroller when scrolling and hitting edges
5. pants.
SVN revision: 40549
2009-05-08 11:27:32 +00:00
Carsten Haitzler
6eeaf7eb1a
1.fix always_select mode
...
2. fix double_label style tohave selected text color for 2nd txt field
3. test always select and multi-select
SVN revision: 40332
2009-04-23 17:29:07 +00:00
Carsten Haitzler
af12fa8bb2
a bunch of adds and improvements around gnelist
...
SVN revision: 40323
2009-04-23 08:51:07 +00:00
Carsten Haitzler
73f3de55f4
patch from victor to make styles generic - not all widgets support them
...
tho... but calls to set style are now. old calls are left in place, but
likely will be phased out.
SVN revision: 40317
2009-04-23 04:03:27 +00:00
Carsten Haitzler
5eb759a0e9
and fix the updates for vala
...
SVN revision: 39487
2009-03-15 04:13:08 +00:00
Carsten Haitzler
e730cb0364
indent tree items... not perfect... but good
...
add rotation api call.
SVN revision: 39480
2009-03-14 18:03:19 +00:00
Carsten Haitzler
6e0c99e69f
fixes for some bugs i found, tree ability in genlist (basic not fully done
...
visually yet), and some win util calls added.
SVN revision: 39456
2009-03-13 05:50:38 +00:00
Jaime Thomas
3e1edbcf4f
Match the other changes.
...
SVN revision: 39221
2009-02-25 23:17:01 +00:00
Gustavo Sverzut Barbieri
d7829ccd3c
use EINA_LIST_FREE()
...
This macro helps releasing a list of elements in efficient and safe way.
SVN revision: 39217
2009-02-25 20:18:38 +00:00
Gustavo Sverzut Barbieri
d1d91b99df
Move eina list iterations to EINA_LIST_FOREACH variants.
...
By using these macros we can avoid errors and if we need to change
things, we do just in the macro definitions.
SVN revision: 39216
2009-02-25 19:50:45 +00:00