Commit Graph

1201 Commits

Author SHA1 Message Date
Brett Nash a14718d586 Partially fix sizing for the DND window.
SVN revision: 52186
2010-09-13 09:16:09 +00:00
Brett Nash 135bfe5c2e Position subwindow correctly.
SVN revision: 52185
2010-09-13 09:16:05 +00:00
Brett Nash cadc509be5 Add a semicolon. GCC: This ones for you.
SVN revision: 52184
2010-09-13 09:16:01 +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
Brett Nash a20d659fa5 Remove spurious underscores.
SVN revision: 52130
2010-09-10 09:03:05 +00:00
Brett Nash af8097a963 Elm photo stops scrolling events when dragging now.
SVN revision: 52129
2010-09-10 08:24:29 +00:00
Brett Nash 506e380a6e Use hold flag for detecting drags.
SVN revision: 52128
2010-09-10 08:24:25 +00:00
Brett Nash 8a74d9c272 Elm; drag_start now has a donecb.
SVN revision: 52127
2010-09-10 08:24:21 +00:00
Brett Nash 3e02b10c35 Elm: cnp: Handle non-uri uris when searching
SVN revision: 52126
2010-09-10 07:24:10 +00:00
Brett Nash 26efdd12c2 elm photo: Long press now tracks mouse movements.
SVN revision: 52125
2010-09-10 07:24:07 +00:00
Brett Nash afa4f05976 Use file urls for files (hack hack hack).
SVN revision: 52124
2010-09-10 07:24:03 +00:00
Brett Nash da04e33112 Bit of dnd work.
SVN revision: 52123
2010-09-10 07:23:56 +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 b5aeff5519 Disconnect from signals if the pan_obj goes away.
IF we're replacing the pan_obj, then we should disconnect from the old
in order to avoid receive useless callbacks... actually if it is an
external pan object and we die and it does not, we may end crashing
due it calling function callbacks with garbage data.



SVN revision: 52117
2010-09-10 02:01:32 +00:00
Gustavo Sverzut Barbieri 5e7dfe1c8c Introducing Elm_Widget_Item: common ground for widget sub items.
Lots of widgets have items that are not Evas_Object of type elm_widget
per se, like Elm_List_Item or Elm_Toolbar_Item. They all have, or
should have, some common attributes and functions such as data,
del_cb, a view object and a parent/owner widget. Thus this is being
provided and will be later used in future patches.

Right now I opted to hide elm_widget_item_del_cb_set(),
elm_widget_item_data_get(), elm_widget_item_data_set() inside
elm_priv.h and keep the old functions as wrappers to the new. But
maybe in future we can remove them and have the user to call the
common function.

Future extensions will use this base, such as tooltip support.




SVN revision: 52116
2010-09-10 01:54:05 +00:00
Gustavo Sverzut Barbieri eb0c580753 Just delete children and related from del_pre_hook, not del_hook!
At del_hook() stuff are already gone and invalid access may
happen. Doing it from del_pre_hook you still have things working nice.



SVN revision: 52115
2010-09-10 01:40:50 +00:00
Gustavo Sverzut Barbieri c559b06577 Just delete children and related from del_pre_hook, not del_hook!
At del_hook() stuff are already gone and invalid access may
happen. Doing it from del_pre_hook you still have things working nice.

Also refactor the destructor to do recursion and stop allocate list
nodes to avoid it... simpler.



SVN revision: 52114
2010-09-10 01:35:46 +00:00
Gustavo Sverzut Barbieri 17ac79248f Just delete children and related from del_pre_hook, not del_hook!
At del_hook() stuff are already gone and invalid access may
happen. Doing it from del_pre_hook you still have things working nice.



SVN revision: 52113
2010-09-10 01:29:06 +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
Rafael Fonseca 9c4eb78705 Add signal emit hook to gengrid.
Like was already done to other widgets by bdilly, this patch adds the
possibility to send signals to elm_gengrid's theme.

P.S: lfelipe, ahi esta mi primer commit :P



SVN revision: 52109
2010-09-09 22:01:30 +00:00
Gustavo Sverzut Barbieri 833ba3362e some -Wall -Wextra warning cleanups.
elm_cnp_helper.c warnings were not fixed as they look like
implementation nash will do soon.



SVN revision: 52102
2010-09-09 19:39:30 +00:00
Gustavo Sverzut Barbieri 3c71cada93 Add Elm prefix to struct _Menu_Item.
I've noticed this while grepping the code.



SVN revision: 52098
2010-09-09 19:34:56 +00:00
Bruno Dilly f8de57f405 Add elm object signal emit and callback add / del hooks to entry, list and index
SVN revision: 52087
2010-09-09 18:53:36 +00:00
Brett Nash c1a9458c66 More compilation fixes. FIxing for windows broke linux...
SVN revision: 52038
2010-09-09 09:37:19 +00:00
Brett Nash d2c67592bc Fix typo from cut & paste
SVN revision: 52037
2010-09-09 09:12:08 +00:00
Brett Nash 67c9425063 Hooks for dragging: not working, just so I can push.
SVN revision: 52036
2010-09-09 08:59:42 +00:00
Brett Nash 458ab084ea Stubs + hide stuff for crazy fr^H^Hwindows users.
SVN revision: 52035
2010-09-09 08:59:38 +00:00
Brett Nash fc21092529 Fix some uncommon typos. A full list is included in the patch.
SVN revision: 52034
2010-09-09 08:59:34 +00:00
Brett Nash 784f509910 elm: debug --;
SVN revision: 52026
2010-09-09 06:05:28 +00:00
Brett Nash 1b2ba6b9ed elm: dnd: Leak less.
SVN revision: 52025
2010-09-09 05:37:02 +00:00
Brett Nash f7d02aee00 Handle jpegs like we do pngs ;-)
SVN revision: 52021
2010-09-09 03:09:46 +00:00
Brett Nash 9d23590313 indentationally inspired patch.
SVN revision: 52020
2010-09-09 03:09:42 +00:00
Brett Nash b5c9e13007 Remove some debug, add some FIXMEs
SVN revision: 52019
2010-09-09 03:09:28 +00:00
Davide Andreoli 67785c352c Scrolled Entry: forward the event_info from the entry to the
scrolled_entry callbacks. Without this any scrolled entry was
  not able to use the event_info struct.


SVN revision: 52015
2010-09-09 01:07:50 +00:00
Lucas De Marchi 3e8419285d Fix common misspellings
Following misspellings were fixed:

accomodate->accommodate
alwyas->always
backgorund->background
beween->between
dependant->dependent
desireable->desirable
doesnt->doesn't
emmitted->emitted
imediately->immediately
ocurred->occurred
sucess->success
ther->the
tranformed->transformed
usefull->useful



SVN revision: 52009
2010-09-09 00:35:43 +00:00
Iván Briano 46becb9f19 Skip pages on the smart functions that act on members. It was making some appear when they weren't supposed to.
SVN revision: 51994
2010-09-08 19:26:58 +00:00
Brett Nash e2f4dec966 elm: dnd cleanup a little better when objects are deleted.
SVN revision: 51982
2010-09-08 08:00:45 +00:00
Brett Nash ee6baa99de Shutdown DND correctly.
SVN revision: 51978
2010-09-08 06:20:09 +00:00
Brett Nash 9640443824 Add 'drop' callback when objects are dropped.
SVN revision: 51977
2010-09-08 06:20:05 +00:00
Brett Nash d342ca5976 Elm: photo doco ++
SVN revision: 51976
2010-09-08 06:20:01 +00:00
Brett Nash bf912e24c0 Elm: doco++ (image editable set)
SVN revision: 51975
2010-09-08 06:19:57 +00:00
Brett Nash 5e612428fb Elm: els_icon: Actually work if the image is already loaded.
SVN revision: 51974
2010-09-08 04:55:24 +00:00
Brett Nash 308e09effd editiable flags to allow drag dests for photso and images.
SVN revision: 51973
2010-09-08 04:55:20 +00:00
Brett Nash b2c68b6c74 Fix image support, support jpgs
SVN revision: 51972
2010-09-08 04:55:16 +00:00
Brett Nash d59987946d Elm: CNP: Handle non-entries and non-elm widgets on drag/drop
SVN revision: 51971
2010-09-08 04:55:12 +00:00
Brett Nash b5428543c0 Update types for new selections.
SVN revision: 51970
2010-09-08 04:55:09 +00:00
Brett Nash 952b0925dc Start cleaning cnp/dnd code for elm.
SVN revision: 51969
2010-09-08 04:55:05 +00:00
Brett Nash 6e3764585e Docimet elm_image_object_size_get
SVN revision: 51968
2010-09-08 04:55:01 +00:00
Brett Nash 0713be0e14 Elm: Simplify elm photo size handling.
Also don't carry around a negative size when it's not used.

SVN revision: 51967
2010-09-08 04:54:46 +00:00
Davide Andreoli 4ab457bce6 whitespaces--
Im going to clear the fileselector widget, I will make the theme use
a layout instead of a fixed box and also I will clear the api that have
silly names atm

If you have suggestions please speak now

DaveMDS


SVN revision: 51966
2010-09-08 03:54:42 +00:00
Brett Nash 687cc32cd0 Handle providers a little better.
SVN revision: 51938
2010-09-07 09:36:51 +00:00
Brett Nash 0d492dcdaf Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Christopher Michael c9f2ef3ef0 Fix ticket #569: Setting the same icon file twice for elm_icon would
make the object disappear.



SVN revision: 51865
2010-09-03 17:15:38 +00:00
Carsten Haitzler 7de3bcd295 aaargh. hack hack.
SVN revision: 51856
2010-09-03 08:27:05 +00:00
Carsten Haitzler 9edf419558 and umm... work... and .. struff.. ugh. don't ask.
SVN revision: 51851
2010-09-03 00:08:11 +00:00
Iván Briano f2c8ba0fe6 Versioned config for Elementary.
This is not doing much now, just the version field in the struct,
some stuff stolen from E and a base to use when new things are added.
There are some comments in the code about what to do in certain cases
that E does not have, like a system update, new config and apps linked
to the old version still running when the config Atoms are updated. These
things we'll probably be addressed as they are needed, as well as come
clean up in quick code I ditched in there, but it would be good to do so
with more feedback from the good guys around that like to break SVN
every now and then.

Since the commit message is already long enough, I'm adding some more crap
just for the sake of doing so. I could go with some tl;dr thing as well,
but I don't feel like resuming what's up there.

Have a nice day.


SVN revision: 51843
2010-09-02 14:33:04 +00:00
Carsten Haitzler 27298797f0 finally! flip works! happy!
SVN revision: 51833
2010-09-02 10:25:05 +00:00
Carsten Haitzler cda4f422b1 ooof flippidy-do-da... working much better.
SVN revision: 51831
2010-09-02 09:58:52 +00:00
Tom Hacohen 5f220d5f76 Elementary: Fixed utf8->markup. Should probably just put it all in one place or at least depend on the textblock working on.
SVN revision: 51810
2010-09-01 14:30:31 +00:00
Carsten Haitzler 42ec2033bb fix some most unfortunate lack of clip honorning :)
SVN revision: 51773
2010-08-31 06:20:33 +00:00
Bruno Dilly e2df452945 Oops, fix leap years detection algorithm on elm_calendar
SVN revision: 51586
2010-08-23 18:50:51 +00:00
Bruno Dilly cf8280b413 Add Elementary Calendar Widget
A calendar is a widget that allows the user to select a date. It has
support to adding marks (holidays and checks by default). The calendar
is displayed month at a time.

Weekdays names and the function used to format month and year to
be displayed can be set, giving more flexibility to this widget.



SVN revision: 51584
2010-08-23 18:45:36 +00:00
Lucas De Marchi c6a4ea9d2f Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Christopher Michael c391c9c86a Spelling.
SVN revision: 51469
2010-08-20 17:10:35 +00:00
titan 5abc08fa87 Make sure after moving the cursor on cursor end in a scrolled entry, the scroller stays where it was.
Should this be done for all cursor moves? Currently a cursor move always takes the scroller to the top.


SVN revision: 51450
2010-08-19 20:57:51 +00:00
Christopher Michael bc583d718c Lots of fixes:
Add UNUSED where needed.
  Remove unused variables.
  Fix lots of compiler warnings.
  Formatting.



SVN revision: 51320
2010-08-18 19:18:42 +00:00
Tom Hacohen e1491acc3f Elementary: Fixed selection and a possible segfault.
1. Selection now works with the buttons in elementary_test.
2. Selection with ctrl+v does not print ERR:elementary elm_widget.c:1373 _elm_widget_type_check() Passing Object: (nil), of type: '(unknown)' when expecting type: 'entry' anymore.

SVN revision: 51216
2010-08-16 14:52:36 +00:00
Tom Hacohen 444745cf52 Elementary: Translate <ps> back to paragraph separator.
SVN revision: 51175
2010-08-16 09:06:19 +00:00
Daniel Juyung Seo e42ab9f072 elm_theme doxygen fix
elm_theme_extension_add() uses eina_list_append() not eina_list_prepend().

Patch by: Daniel Juyung Seo <seojuyung2@gmail.com>



SVN revision: 51116
2010-08-14 15:30:35 +00:00
Carsten Haitzler 67b635e782 wonguk -> happy?
SVN revision: 50980
2010-08-10 23:58:57 +00:00
Christopher Michael 1900ad84b5 Fix up formatting while I am reading this.
SVN revision: 50914
2010-08-08 23:00:09 +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
Christopher Michael 03ddd89f5a Set boolean to 1.
SVN revision: 50824
2010-08-04 19:20:52 +00:00
Christopher Michael cd55226643 Rename variable to 'autosave'.
When deleting the notepad, check if autosave is set before writting.



SVN revision: 50823
2010-08-04 19:20:02 +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
Brett Nash f9a721d4d0 More error returns.
Please people, when you add a function look at what it compiles too.

SVN revision: 50801
2010-08-04 02:03:57 +00:00
Brett Nash 4194c83fc0 elm_notify: Return an invalid enumeration on error.
SVN revision: 50800
2010-08-04 02:03:53 +00:00
Brett Nash de54ffcf23 eina_list: Return false on error.
Maybe Eina_Bool needs a 'file not found' error or something.

SVN revision: 50799
2010-08-04 02:03:45 +00:00
Brett Nash 960624f80d Doesn't anyone check their compiler output?
Don't return random stack cruft on NULL pointer.

SVN revision: 50796
2010-08-04 01:46:41 +00:00
Christopher Michael c4ee716181 Add function to turn off autosave.
Add function to call for 'explicit save'
Use PATH_MAX.
Remove some duplicated code in 'load' function.
Update some doxy.



SVN revision: 50794
2010-08-04 01:09:08 +00:00
Iván Briano c48e0e98fa Invalid write, go away, that 'si' thing is freed already.
SVN revision: 50770
2010-08-03 16:46:59 +00:00
Jonathan Atton 76a2b5f2cb Elementary:
- we can get the content of a external object
- a signal can be send to the content of a external object

SVN revision: 50731
2010-08-01 17:29:20 +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
Davide Andreoli c815aff152 From: Dave Andreoli <dave@gurumeditation.it>
Subject: [E-devel] New elm pager "slide" and "slide_invisible" styles

Hi everyone,
I have done 2 new style for the pager widget:

"slide" and "slide_invisible"

They work different from the other styles: new (pushed) pages
comes from right and the old go out left, while popped pages
goes out from right. It works like the enna browser, or like all the
"browser lists" on iphone.

The patch include the 2 new styles, a new elementary_test
page called "Pager Slide", a little code for elm_pager.c  that was
needed
for the new style to work and simple update for the other existing
styles.

The patch is located at:
http://pastebin.com/jSbg0wb9

I can commit this myself, just give me the go ;)



SVN revision: 50559
2010-07-27 23:43:12 +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
Jonathan Atton 8050ddfe99 elementary: add elm_panes in edje external
SVN revision: 50520
2010-07-26 20:33:33 +00:00
Nicolas Aguirre 16dd75499b Enable transition between previous item and the current when elm_slideshow_show is called.
SVN revision: 50431
2010-07-22 16:13:40 +00:00
Carsten Haitzler 35be1859a0 fix possible null ptr deref
SVN revision: 50422
2010-07-21 23:33:35 +00:00
Bruno Dilly 7808d77502 Add setters and getters to interval for elm spinner and clock
SVN revision: 50392
2010-07-20 21:38:17 +00:00
Jonathan Atton d3ca0b2466 els_icon : hide the object while the image is preloading
SVN revision: 50390
2010-07-20 19:33:40 +00:00
Luis Felipe Strano Moraes ffe42daedb Better variable naming for elm_thumb.
By: Rafael "15 years experience" Fonseca <rfonseca@profusion.mobi>



SVN revision: 50389
2010-07-20 18:42:59 +00:00
Luis Felipe Strano Moraes eb03502762 After Sachiel's changes about making the edje_object a sub_object of
elm_thumb widget, all the stuff about alignement and crop are not
used anymore.

By: Rafael "15 years experience" Fonseca <rfonseca@profusion.mobi>



SVN revision: 50388
2010-07-20 18:42:21 +00:00
Luis Felipe Strano Moraes f0e322d506 Set size min hint to elm_thumb.
By: Rafael "15 years" Fonseca <rfonseca@profusion.mobi>



SVN revision: 50387
2010-07-20 18:41:04 +00:00
Jonathan Atton 17288ba690 elm_slideshow:
* remove printf
* no more realize the current item in item_add(). The last item is always and it is the previous item of the first item, consequently a new item was built each time a item vas added :/

SVN revision: 50386
2010-07-20 18:30:22 +00:00
Jonathan Atton c2ad5fd00c elm_slideshow: pre-calcul the next and the previous items, very usefull if the object is big (like a photo)
SVN revision: 50385
2010-07-20 18:26:22 +00:00
Jonathan Atton cefe73d5dc els_icon: preload the image
SVN revision: 50384
2010-07-20 18:04:37 +00:00
Jonathan Atton a9538e68d0 elm_slideshow: use itc-del to delete the data and not the object.
SVN revision: 50383
2010-07-20 16:36:31 +00:00
Davide Andreoli 935260049c small fix in doc
SVN revision: 50322
2010-07-18 11:56:56 +00:00
Jonathan Atton 56079f7819 elm_hover/hoversel: set a default parent in the constructor. With the edje external type we can not set a parent currently but with this patch we can use theses widgets in specifics conditions (the parent will be the edje group)
SVN revision: 50303
2010-07-17 08:54:51 +00:00
Davide Andreoli 9dc25a32d2 whops, commit also Elementary.h.in I always forbot about it :(
and add the cube also to test2

SVN revision: 50289
2010-07-16 20:47:21 +00:00
Mike Blumenkrantz 3b66bd0ff9 things that are important: not trying to pass off a format string as a buffer size in snprintf :)
SVN revision: 50288
2010-07-16 20:39:17 +00:00
Davide Andreoli 5005200d84 Flip widget: add 2 new flip style:
ELM_FLIP_CUBE_RIGHT, ELM_FLIP_CUBE_LEFT

As you can imagine the new animations make the flip as a rotating cube,
the 2 contents are on 2 different faces.


SVN revision: 50287
2010-07-16 20:30:11 +00:00
Carsten Haitzler 64b374c77f finger waggles! this is to make sure developers actually read docs!
SVN revision: 50277
2010-07-16 06:38:59 +00:00
Carsten Haitzler 99f9670d3f fix formatting, docs and warnings. and bug.
SVN revision: 50276
2010-07-16 06:21:25 +00:00
장효영 b32cbb2a3a From: 장효영 <hyoyoung.chang@samsung.com>
I've added elm_label features. That are fontsize, color, background color and
ellipsis (cutting text to fit widget size) features. Most of the property
setting API is wrapping to label tag set.

The rllipsis feature checks part size and cuts character to fit its size.



SVN revision: 50275
2010-07-16 05:50:45 +00:00
Gustavo Sverzut Barbieri c9e3c7dfbc allow group's min to limit the calculated size.
PS: probably other widgets that use swallow should have this, so
objects that have minimum size of 0x0 (like list/genlist) can be
forced to some size using group.min.



SVN revision: 50274
2010-07-15 23:14:55 +00:00
Christopher Michael d3656fc2b3 Clear gengrid Before deleting the pan object. (also, clear function
already deletes the calc job).



SVN revision: 50273
2010-07-15 22:34:55 +00:00
Jonathan Atton 9793de8b33 Elm_Slideshow: Fix the edje, I hope this time it is correct
Elm_Notify: set orient = -1, else the default orientation (0) will be not set because the orient does not change (see the test in elm_notify_orient_set())

SVN revision: 50270
2010-07-15 17:41:19 +00:00
Jonathan Atton 2ad9cb0ad5 Elm_Slideshow : rollback, remove the possibility to have more than 1 item display at the same time. We need a specific widget to do this with specifics animations.
SVN revision: 50269
2010-07-15 17:09:59 +00:00
Gustavo Sverzut Barbieri 9d7be6a1f4 fix hide/del bug if thumb generation was pending, reuse objects if possible.
As spotted by Brian, we were not cancelling the thumbnail generation
on hide/delete, when the generation finished garbage would be used and
we'd segv. This commit fixes this, also removing the useless
is_generating, as it can be interpreted from wd->id (-1 is not
generating).

As an optimization, we now just delete the view object if it changed
between image and edje (video), otherwise we reuse it.




SVN revision: 50268
2010-07-15 14:29:17 +00:00
Jonathan Atton 974c982095 Elm_Slideshow: Delete correct objects at the correct time. The expose layout bug in specifics condition.
SVN revision: 50263
2010-07-15 09:30:52 +00:00
Gustavo Sverzut Barbieri 6762573b97 Fix elm_thumb smart callback calling
Currently, elm_thumb is passing the wrong pointer to the
smart_callback_call function, so the callbacks are not being
called. The attached patch fix that.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 50258
2010-07-14 21:29:10 +00:00
Gustavo Sverzut Barbieri 7f8627f801 fix widgets that were forcing style to be "default".
SVN revision: 50257
2010-07-14 21:14:52 +00:00
Jonathan Atton 3eaecdafbd Elm_Slideshow:
- Add a new layout : expose
- Add a way to display more than 1 slide at a time, the number of slides displayed is defined in the layout

SVN revision: 50256
2010-07-14 21:12:58 +00:00
Gustavo Lima Chaves 6005cc95e7 Elm notify theme apply.
Patch by k-s.



SVN revision: 50252
2010-07-14 19:04:22 +00:00
Jonathan Atton a05015145d Elm_Photo:
- Add a way to display a photo by keeping the ratio AND the theme can display something around the photo (border ...). The way I use is maybe a bit crappy (embryo, offset ...) but I do not know a better way.
 - Add a new style (with a shadow). The default style has no changes
 If you do not like my way, revert the commit and commit your way :)
 
Elm_Slideshow:
 - Use elm_photo in the test
 - Add a black background

SVN revision: 50248
2010-07-14 14:48:21 +00:00
Jonathan Atton b8e248f29c Add a list of "layout" to elm_slideshow. A layout is like a "sub-style". For example the content can take all the slideshow widget (~fullscreen) or not. I do not have finish to work on it.
SVN revision: 50247
2010-07-14 09:07:43 +00:00
Lucas De Marchi e87ed1007b Remove unneeded code with notnull.cocci script
This continues previous commit with more complex places, where it required
more than just removing some "ifs".



SVN revision: 50242
2010-07-14 02:20:30 +00:00
Lucas De Marchi 6325ab86a3 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Bruno Dilly 4c02246e5d Use widget style instead of default on elm index items
SVN revision: 50236
2010-07-13 21:33:12 +00:00
Lucas De Marchi 821160957f ops, copy & past fail
I meant clock_val_down_exit_on_error.



SVN revision: 50211
2010-07-13 02:10:00 +00:00
Lucas De Marchi 51429ba1ec Fix dereference of null pointer
Bug found by Coccinelle with 'isnull.cocci' script (Dereference of an
expression that has been checked to be NULL) [1].

[1] http://www.emn.fr/x-info/coccinelle/rules/isnull.html



SVN revision: 50210
2010-07-13 02:01:52 +00:00
Rafael Fonseca e2c8e29aa8 From: Rafael Fonseca <rfonseca@profusion.mobi>
Subject: [E-devel] [PATCH] [Elementary] Fix flickering issue on
elm_slideshow

Hey guys,

the attached patch solves the issue of the previous image flickering 
after the transition is over on elm_slideshow.



SVN revision: 50190
2010-07-12 01:15:52 +00:00
Carsten Haitzler 0fec718cb1 also conform to the includes in name-vmaj dir policy
SVN revision: 50181
2010-07-11 23:34:49 +00:00
Jonathan Atton 24f5b1831b Add the elm notify external object
SVN revision: 50180
2010-07-11 21:19:27 +00:00
Lucas De Marchi 5fa0945d28 Constify parameters of elm_widget_drag_*_get functions
Change "Evas_Object*" to "const Evas_Object*" in:
 * elm_widget_drag_lock_x_get()
 * elm_widget_drag_lock_y_get()
 * elm_widget_drag_child_locked_x_get()
 * elm_widget_drag_child_locked_y_get()

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 50177
2010-07-10 22:05:37 +00:00
Gustavo Sverzut Barbieri 340b0b6f5e Fix gengrid usage of item class style.
By: Leandro "acidx" Pereira <leandro@profusion.mobi>



SVN revision: 50136
2010-07-08 23:17:12 +00:00
Bruno Dilly 5e928b9366 Add possibility to get all the items in Gengrid
By Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 50087
2010-07-06 21:14:38 +00:00
Christopher Michael 12e6621218 Fix warning related to Ecore Api changes.
Fix some formatting.



SVN revision: 50085
2010-07-06 20:16:25 +00:00
titan 25ef450968 Patch to fix gengrid item positioning. From Rafael Fonseca.
SVN revision: 50053
2010-07-06 01:23:54 +00:00
ChunEon Park c2758ed8c9 From: ChunEon Park <chuneon.park@samsung.com>
Subject: elm_animator

an animator wrapper - can be attached to an object (and be deleted if
object is deleted) and otherwise call a callback with a 0.0->1.0 value
where along the path you should be etc. etc. - ie handle higher level
animation runs.



SVN revision: 50039
2010-07-04 23:41:48 +00:00
Gustavo Sverzut Barbieri a6be0ef49c Oops, add missing .h and minor issues.
* add const to getter
 * enforce bool is 0/1
 * remove trailing whitespace



SVN revision: 49982
2010-07-01 23:53:17 +00:00
Gustavo Sverzut Barbieri 3a91ec26fb Elm_List separator support.
By: Leandro "acidx" Pereira <leandro@profusion.mobi>


SVN revision: 49981
2010-07-01 23:48:10 +00:00
Carsten Haitzler 85b65fedf4 expose drag lock (x and y axis).
SVN revision: 49963
2010-07-01 06:59:30 +00:00
Carsten Haitzler 4ee4e9ed5e somone copy & pasted junk into doc comments. bad! fix.
SVN revision: 49962
2010-07-01 06:51:18 +00:00
Brett Nash dee3f41698 TUrn off debug.
SVN revision: 49956
2010-07-01 01:18:32 +00:00
Jonathan Atton 5e1f84da2f elm_map: Add a hidden object to separate maps objects and marker objects. This way markers are always on top of the map.
SVN revision: 49952
2010-06-30 19:26:53 +00:00
Brett Nash 64c8e4650d Improvements to cut and paste.
SVN revision: 49947
2010-06-30 13:20:58 +00:00
Bruno Dilly d350f3a293 Change elm functions elm_object_signal_listen to elm_object_signal_callback_add
and elm_object_signal_unlisten to elm_object_signal_callback_del


SVN revision: 49926
2010-06-28 15:32:20 +00:00
Bruno Dilly 6f093b37f5 Set hooks for elm object signal listen and unlisten for elm spinner
SVN revision: 49870
2010-06-25 22:40:42 +00:00
Bruno Dilly 5a2f2ccc72 Set hooks for elm object signal emit, listen and unlisten on elm clock
SVN revision: 49869
2010-06-25 22:40:11 +00:00
Bruno Dilly 8d644e43ed Implement elm_object_signal_listen and unlisten
elm_object_signal_listen add callback(s) for edje object(s) of the widget.
elm_object_signal_unlisten delete this callback.
They're general functions, and every widget should set hooks for these.

It will improve elm extension flexibility. We have already
elm_object_signal_emit to send signals for the widgets theme, adding callbacks
is an expected step.

It provides a way to support sound on widgets. For example, in the elm extension
we could emit "file_to_play", "play", and add a callback with
elm_object_signal_listen for "*", "play". The callback function could use
the signal received to request the file to be played by the backend
sound system.

Certainly we should look for a better way to provide support for sound
on edje, but for now, it does the work. And anyway, it's only a use case
for these new functions.



SVN revision: 49868
2010-06-25 22:38:32 +00:00
Vincent Torri c1d92416d8 next try to make it compile on Windows
SVN revision: 49865
2010-06-25 12:14:34 +00:00
Vincent Torri 7f0c910ebf elm_cnp_helper.c is for X11 stuff only
SVN revision: 49864
2010-06-25 11:56:02 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Brett Nash e8f8913a56 Fix return of hover check.
SVN revision: 49827
2010-06-24 03:02:18 +00:00
Brett Nash dd1dde3483 return NULL, not NULL.
SVN revision: 49826
2010-06-24 03:01:47 +00:00
Carsten Haitzler 643d06dd16 aaah safety delete - nash nash nash. for you.
SVN revision: 49825
2010-06-24 02:54:03 +00:00
Jonathan Atton 02abff6519 elm_notify: recalc everything if the size hint change
SVN revision: 49820
2010-06-23 17:58:08 +00:00
Brett Nash cf917f18e4 Add elm_object_top_widget_get(): Useful for hoversels.
Also useful for arguments about widget_top or top_widget.
After all it's not a widget of type top, but rather the widget at the top.
Your views?  Opinions on a postcard plase.


SVN revision: 49814
2010-06-23 08:51:58 +00:00
Brett Nash cf7ddc517a Elm entry now uses new & improved cut and paste.
SVN revision: 49813
2010-06-23 08:08:17 +00:00
Brett Nash 4d4284614b Improve content negotiation on paste
SVN revision: 49812
2010-06-23 08:02:35 +00:00
Brett Nash 061259fe6c Fix elm->elm copy
SVN revision: 49810
2010-06-23 01:28:57 +00:00
Jonathan Atton 4ed9f35e44 elm_panes : add the horizontal mode
SVN revision: 49801
2010-06-22 19:08:52 +00:00
Jonathan Atton f3b076fba2 remove useless calcul
SVN revision: 49795
2010-06-22 17:27:19 +00:00
Brett Nash eade64e9c2 Add me to authors, and make selection work a bit better.
SVN revision: 49792
2010-06-22 05:12:08 +00:00
Brett Nash 799bf08131 Clarify 'secondary' string.
SVN revision: 49791
2010-06-22 01:25:20 +00:00
Jonathan Atton 777be38c1e refactor elm_panes_left_content* -> elm_panes_content_left*
SVN revision: 49788
2010-06-21 20:58:40 +00:00
Jonathan Atton 6ba054f636 elm_panes : - add an animation with 2 arrows while the bar is dragged. - add getter/setter for the size of the left content. - in the test : double click -> open/close the left content
SVN revision: 49786
2010-06-21 20:15:57 +00:00
Iván Briano 1e173716de Fix the usage of API_ENTRY macro in the new funcion _newest_focus_order_get
By: Thiago Ribeiro Masaki <masaki@profusion.mobi>



SVN revision: 49785
2010-06-21 18:16:45 +00:00
Carsten Haitzler e8e922488e fix focus issue if child has focus and is deleted (or in this case not
- hidden) - focuse most recent focused widget.



SVN revision: 49780
2010-06-21 07:39:49 +00:00
Jonathan Atton 8b910bf656 Add a new widget : elm_panes :)
SVN revision: 49773
2010-06-20 16:01:15 +00:00
Iván Briano dc9ae7395b Avoid returning stack trash, thanks nash.
SVN revision: 49730
2010-06-17 16:09:23 +00:00
Brett Nash bed3589df5 Updates to entry to use selection code.
SVN revision: 49728
2010-06-17 08:50:43 +00:00
Brett Nash 593dc6f068 Fix == and =.
SVN revision: 49727
2010-06-17 08:14:32 +00:00
Brett Nash a75e08268d Add to Makefile.
SVN revision: 49726
2010-06-17 08:07:27 +00:00
Brett Nash 53e4e63b3c Add the Cut and Paste helper code.
SVN revision: 49725
2010-06-17 08:06:07 +00:00
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +00:00
Iván Briano dea0075e7e Changing internal name from chk to radio
chk is used to check.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49704
2010-06-16 20:57:51 +00:00
Iván Briano 3b77b92e53 Including icon show/hide in bubble widget
States and program craeted to allow that the user can change/delete
an icon without the icon remain floating on the screen

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49703
2010-06-16 20:57:42 +00:00
Bruno Dilly 84d84ac0dd Fix max value wrapping calculation of elm spinner.
By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 49683
2010-06-15 15:55:22 +00:00
Bruno Dilly 64c0cbc955 Set signal emit hooks for entry, scroller and scrolled entry.
SVN revision: 49682
2010-06-15 15:04:05 +00:00
Bruno Dilly db550353a8 Add elm_object_signal_emit
This function sends a signal to the edje object of the obj.
It's a general function, and every widget should set a hook for this.

I'm setting a hook only for the spinner now, but soon I will work on other widgets.



SVN revision: 49681
2010-06-15 14:11:13 +00:00
Jonathan Atton 0b41132d70 Add style "fade_invisible" to elm_panel. This style create an invisible panel (no image, we only see the content) and the transition is a fading
SVN revision: 49657
2010-06-12 16:05:48 +00:00
Brett Nash 66605560ad /me shuts up GCC for not understanding this new fangled C code.
SVN revision: 49608
2010-06-10 06:41:50 +00:00
Christopher Michael 05574a433f Don't allow toolbar to be dragable w/ the mouse if scrollable is set
to False.



SVN revision: 49602
2010-06-10 01:21:39 +00:00
Christopher Michael cfb93fbfdd Use proper formatting.
SVN revision: 49597
2010-06-09 21:08:12 +00:00
Bruno Dilly e66e89422e oops--
Setting timer handle to NULL when canceling cb function =/


SVN revision: 49554
2010-06-07 14:19:38 +00:00
Bruno Dilly 8214ddb83d oops - forgot to return CALLBACK_CANCEL on elm_clock
SVN revision: 49553
2010-06-07 13:43:07 +00:00
Bruno Dilly 37250a5ab6 This patch make it possible to ask elm_thumb for the generated thumbnail
path.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 49550
2010-06-06 22:15:27 +00:00
Bruno Dilly 8932085312 Del spin timer on elm_spinner del_hook
SVN revision: 49549
2010-06-06 22:09:48 +00:00
Bruno Dilly 0ba2c62314 Make clock set mode consistent with spinners
It will change values while the user keep arrows pressed.



SVN revision: 49548
2010-06-06 22:08:50 +00:00
Vincent Torri 58011e3859 fix prototype of elm_clock_digit_edit_get() too
SVN revision: 49547
2010-06-06 20:22:27 +00:00
Vincent Torri 53d60fdcf3 use Elm_Clock_Digedit instead of unsigned int
SVN revision: 49546
2010-06-06 20:19:26 +00:00
Brett Nash 4856ef5dc0 Scrolled entry doc format update
SVN revision: 49475
2010-06-06 04:44:54 +00:00
Brett Nash 1e41a6cfdb Minor fix to documentation formatting
SVN revision: 49474
2010-06-06 04:32:41 +00:00
Brett Nash 5e39da8d53 Don't deref a pointer before we check it.
SVN revision: 49473
2010-06-06 04:09:56 +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 1bc500518c dont need that anymore.
SVN revision: 49466
2010-06-05 05:30:59 +00:00
Carsten Haitzler ad6ec2e43e oops - typo. fix.
SVN revision: 49465
2010-06-05 04:34:00 +00:00
Carsten Haitzler 4d58c10c09 init imf in elm_main. saves de-init and re-inti when entires are around.
SVN revision: 49442
2010-06-04 05:14:35 +00:00
Rafael Fonseca 24feacfa4c From: Rafael Fonseca <rfonseca@profusion.mobi>
As requested, I've changed the widget name. Let me know about any
issues.



SVN revision: 49411
2010-06-03 12:53:14 +00:00
Carsten Haitzler fa58ea8625 elm... version too!
SVN revision: 49284
2010-05-29 09:48:05 +00:00
Mike Blumenkrantz 2c44eda4e0 kill off some unused variables, return values on some widtype check fails
SVN revision: 49222
2010-05-27 09:01:41 +00:00
Bruno Dilly 46762b882e Add right orientation to elm panel widget
And create a new test for panel, a bit more complex, that should
be extended to show panels with all the 4 orientations, when they're
implemented.



SVN revision: 49202
2010-05-26 03:08:10 +00:00
Bruno Dilly 7d57c9c432 Fix misuse of win_resize_object on test_flip3 and add comments
explaining better the sorted insertion of index widget.
Thanks to Sachiel for spotting that stuff.


SVN revision: 49195
2010-05-25 13:36:20 +00:00
Mike Blumenkrantz feafca280f sighhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
SVN revision: 49176
2010-05-24 08:28:23 +00:00
Mike Blumenkrantz 7a283dbdf0 fix smart_object_add param order (hooray for Sachiel at 4:30am!)
SVN revision: 49175
2010-05-24 08:26:18 +00:00
Bruno Dilly a5fa20a9ab Adding function to set cell selected in elm_scrolled_grid
By: Rafael Fonseca



SVN revision: 49173
2010-05-23 23:54:16 +00:00
Bruno Dilly 0fa431bcc0 Implement elm index sorted insert
- Name index item as Elm_Index_Item
 - Add some other index functions:
   + Item find
   + Data get/set
   + Letter get

I think this stuff will make easier to create index for
dynamically created lists.


SVN revision: 49171
2010-05-23 23:41:32 +00:00
Christopher Michael de41ec04e3 Proper fix for compiler warnings by adding const to the _get functions
(thanks k-s).
Fix formatting & remove some whitespace.

NB: Please take notice, do not format if statements like this:
      if (val && !val2).
    You will get spanked...hard :P
    Proper if formatting should be:
      if ((val) && (!val2))
    This avoids potential evaluation errors (as was recently seen in
    ecore_con).



SVN revision: 49111
2010-05-21 19:26:57 +00:00
Bruno Dilly b93adb9b7c Implements elm_object_focus_get that returns if the object is focused.
SVN revision: 49005
2010-05-19 13:17:02 +00:00
Bruno Dilly 00371747b9 When the grid size was different from the viewport's, the min size
for the grid was being wrongly calculated leading to children
objects leaking through the widget.

By Rafael Fonseca



SVN revision: 48984
2010-05-18 18:23:11 +00:00
Iván Briano 5a19ae8a8b Set main object as resize object for the widget
This way, Elementary handles stacking, resizing and moving of the
object by itself, instead of letting it loose and stacked over
everything else.



SVN revision: 48945
2010-05-17 17:36:43 +00:00
Gustavo Sverzut Barbieri ad18100ff3 Work around elementary's lack of proper inheritance.
Someday someone should take care to make elementary real smart objects
and benefit from everything it brings... yes, types more, but it is
worth -- and we added macros to help the type-a-lot.



SVN revision: 48831
2010-05-13 22:02:26 +00:00
Iván Briano 0e397de63c Signal edje when clock gets focused.
By Rafael Fonseca


SVN revision: 48789
2010-05-12 21:59:08 +00:00
Carsten Haitzler 5d79733553 add docs.
SVN revision: 48779
2010-05-12 16:37:33 +00:00
Carsten Haitzler 1c2f713799 working much better elm config stuff. hs old config sliders still there, now
adding theme tab. not complete tho.



SVN revision: 48778
2010-05-12 16:32:12 +00:00
Luis Felipe Strano Moraes 8e692f5686 Create elm_list_item_sorted_insert
Function that include items to an elm list in a sorted way defined by
an Eina_Compare_Cb function.

Author: Bruno Dilly <bdilly@profusion.mobi>




SVN revision: 48777
2010-05-12 15:43:54 +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
Iván Briano cd097950e4 Let the user choose what digits of the clock are editable.
Patch by Rafael "15 years of experience" Fonseca.


SVN revision: 48757
2010-05-11 15:25:01 +00:00
Carsten Haitzler 2ae7757e30 if sub scroller bigger than oparent - it's still usable now - u can get to
edge of child then it stops and now parent moves etc.



SVN revision: 48717
2010-05-09 16:05:18 +00:00
Carsten Haitzler 63f9c12ad1 fix list scroller to use ppropeer internal scroller calls.
remove commented out code from elm_scroller



SVN revision: 48712
2010-05-09 10:46:49 +00:00
Carsten Haitzler 4de621bd64 oooh lookie here. profiel and config can now be properties on root - and will
be re-fectsh when they change etc. etc. etc. :)



SVN revision: 48701
2010-05-09 02:19:14 +00:00
Carsten Haitzler 6a2932cfbc re-jig elm config stuff to be in its own file and modularise it a little.
will be modified more soon to support x prop.



SVN revision: 48669
2010-05-07 15:49:06 +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
Iván Briano 91b4652e87 Signal de edje on focus changes. Can be used to show/hide the spinner buttons based on it.
SVN revision: 48585
2010-05-03 18:29:02 +00:00
Carsten Haitzler 27012f5b0e sorry.. elm_widget is internal. dont document it. not to be known outside of
elm. :)



SVN revision: 48535
2010-05-02 01:44:38 +00:00
Iván Briano 123c0140de more friendliness with the lispers, and also shuts up valgrind a bit about leaks
SVN revision: 48410
2010-04-28 23:14:04 +00:00
Carsten Haitzler 5b26300221 support items in anchorblock/view too.
SVN revision: 48384
2010-04-28 06:13:06 +00:00
Carsten Haitzler 85a924c9e2 some docs on items.
SVN revision: 48357
2010-04-27 08:12:59 +00:00
Carsten Haitzler 88bee2cadb emoticons!!!! woot woot!
SVN revision: 48356
2010-04-27 08:06:42 +00:00
Michael Blumenkrantz e571b14068 From: Michael Blumenkrantz <mike@zentific.com>
elm.diff is a patch which implements a number of convenience functions
for various widgets, as well as some new features for toolbar and panel.
With the panel widget, I've written a number of calls related to
toolbar items and the selected item in particular, allowing
manipulation of the selection and toolbar items more easily. These
functions are as follows:
+elm_toolbar_item_get_all() returns a Eina_List* of all the toolbar
items
+elm_toolbar_item_get_first() returns the first toolbar item
+elm_toolbar_item_get_last() returns the last toolbar item
+elm_toolbar_item_get_next() returns the item after the
currently selected item
+elm_toolbar_item_select_next() moves the selection to the next valid
item
+elm_toolbar_item_select_first() selects the first valid item
+elm_toolbar_item_select_last() selects the last valid item
+elm_toolbar_item_find_by_label() returns the first Elm_Toolbar_Item
matching "label"

The new panel functions I have written allow for control of the panel's
state from code, and are as follows:
+elm_panel_hidden_set() sets the panel's toggle state to a bool value
and runs the animation
+elm_panel_hidden_get() returns whether the panel is hidden
+elm_panel_toggle() toggles the panel to its other state

The remainder of the functions are just general wd->data returns which
were missing, the functionality of which may be of use to people.



SVN revision: 48355
2010-04-27 05:43:54 +00:00
Iván Briano 9c45d6aac5 Let the grid be shrunk when resizing. By Rafael Fonseca.
SVN revision: 48333
2010-04-26 16:51:03 +00:00
Carsten Haitzler 52e86cb31c use the new item stuff! :):) it works.... wow!
SVN revision: 48330
2010-04-26 14:59:01 +00:00
titan 5aaf50253f Add the ability to set the way the grid contents are aligned in the
scroller... Set x and y values ranging from 0.0 to 1.0. Default is 0.5
0.5.


SVN revision: 48326
2010-04-26 02:34:07 +00:00
Vincent Torri 86d5c41583 * remove shadow declarations
* missing initializer in Evas_Smart_Class (the data field was missing)


SVN revision: 48197
2010-04-21 07:46:03 +00:00
Vincent Torri 291c607e15 remove unused parameters
SVN revision: 48196
2010-04-21 07:38:25 +00:00
Iván Briano 2bec9f57d8 Set evas focus for some objects when focused. More will come later.
SVN revision: 48179
2010-04-20 20:03:05 +00:00
Gustavo Sverzut Barbieri 8a23d2a6b7 Add special values to spinner.
Special value is a string showed instead a numerical one.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 48090
2010-04-18 00:31:07 +00:00
Gustavo Sverzut Barbieri 37d6782967 Add elm_scrolled_grid object.
A genlist like grid widget: just the visible objects are actually built.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 48086
2010-04-17 20:21:59 +00:00
Gustavo Lima Chaves 24b1c5d025 Fixing some compiler warnings on filesector widgets.
SVN revision: 48024
2010-04-15 18:00:31 +00:00
Carsten Haitzler 7aceaa4a41 support flush and dump protocol - also add call to do this by requuest from
the app itself.



SVN revision: 47949
2010-04-12 08:27:10 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00
Gustavo Lima Chaves bf7c032627 Fix race condition on item selection for file selectors.
Also, fixing bug at file selector button (last selection saving).



SVN revision: 47881
2010-04-09 17:52:55 +00:00
Iván Briano 07d91767cd Expose elm_list as external
Patch by Thiago Masaki


SVN revision: 47847
2010-04-08 20:53:01 +00:00
Gustavo Lima Chaves 23b65bc2de Welcome a new Elementary widget: file selector button.
This is an elm button extended to launch a file selector on click and to callback_call registered funcs
when selection is completed.

Many uses may arise from it, but as a fresh 1st example here comes the first (primitive, but cool) video
player in edje:

externals {
  external: "emotion";
  external: "elm";
}

collections {
  group { name: "main";
     parts {
        part { name: "video";
           type: EXTERNAL;
           source: "emotion";
           description { state: "default" 0;
              rel1 {
                 offset: 10 10;
              }
              rel2 {
                 offset: -11 -61;
              }
              params {
                 choice: "engine" "gstreamer";
              }
           }
        }
        part { name: "play";
           type: RECT;
           description { state: "default" 0;
              color: 0 255 0 128;
              rel1 {
                 relative: 0 1;
                 offset: 10 -51;
              }
              rel2 {
                 relative: 0.3 1;
                 offset: -6 -11;
              }
           }
        }
        part { name: "pause";
           type: RECT;
           description { state: "default" 0;
              color: 255 0 0 128;
              rel1 {
                 relative: 0.3 1;
                 offset: 5 -51;
              }
              rel2 {
                 relative: 0.6 1;
                 offset: -6 -11;
              }
           }
        }

        part { name: "file_sel_btn";
           type: EXTERNAL;
           source: "elm/fileselector_button";
           description { state: "default" 0;
              rel1 {
                 relative: 0.6 1;
                 offset: 5 -51;
              }
              rel2 {
                 offset: -11 -11;
              }
              params {
                 string: "label" "open file";
                 string: "icon" "file";
              }
           }
        }

        programs {
           program {
              signal: "mouse,clicked,1";
              source: "play";
              after: "do_play";
           }
           program {
              name: "do_play";
              action: PARAM_SET "video" "play" "1";
           }
           program {
              signal: "mouse,clicked,1";
              source: "pause";
              action: PARAM_SET "video" "play" "0";
           }
           program {
              signal: "file,chosen";
              source: "file_sel_btn";
              action: PARAM_COPY "file_sel_btn" "path" "video" "file";
              after: "do_play";
           }
        }
     }
  }
}

Enjoy. I've seen bugs on the fileselector itself wrt to list selection logic.
I'll dig into then soon.



SVN revision: 47846
2010-04-08 20:36:37 +00:00
Iván Briano 7c413d98dd Assorted fixes to slideshow in lib and externals
Patch by Thiago Masaki


SVN revision: 47845
2010-04-08 20:16:21 +00:00
Iván Briano 415e38c50c Fix issues with button autorepeat
Patch by Brian Wang


SVN revision: 47836
2010-04-08 15:15:22 +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
Boris Faure 97dfb904e9 add doc, thanks to Mike Blumenkrantz (zmike)
SVN revision: 47801
2010-04-07 07:37:49 +00:00