Commit Graph

86 Commits

Author SHA1 Message Date
Tiago Rezende Campos Falcao 113ad55d2e Focus Linear Chain for some Widgets
Containers implemented (and with test):
* Win
* Box
* Scroller
* Layout
* Panel

SVN revision: 52686
2010-09-24 14:47:59 +00:00
Tiago Rezende Campos Falcao 4743f7f5b5 Modify elm_win to receive events
When no objects have focus, elm_win need get it.

SVN revision: 52685
2010-09-24 14:47:55 +00:00
Iván Briano 7255d69dc1 Highlight in theme wins over generic object
Still needs stuff done in themes and widgets code to make it functional.
It will start coming tomorrow morning. (My morning)



SVN revision: 52608
2010-09-22 22:33:57 +00:00
Iván Briano 6879d7fdad Begins highlight on focused object.
There's still work to do here, particularly in the theme, but it has
something nice and fun to see the code working.
The idea behind this:
Window tracks focused object and sends the highlight object(s) to it. These
are simple edje objects, one on top, one below the focused widget for nice
effects. Widgets can choose to ignore the highlight and this will be sent to
the parent object, if it doesn't ignore it as well.
About the bottom object, it doesn't work now. For the most part, focused
widget will always be a member of some smart object, so stacking won't work
and the desired effect is nowhere to be seen. This will be worked out later.
To be done now:
 - Let the theme for a widget define its own highlight, disabling if needed
 the standard one for those objects.
 - Needed base in code to allow animations when switching focus. All in theme.
 - Properly test all widgets and fix some things that will most likely work
 in weird ways, given the nature of Evas/Edje and how Elementary makes use
 of them.
 - Forgot the rest, stay tuned, test, report, give ideas, plant a tree.

Work started by glima, continued with some refactors by me when he
decided he needed vacations.


SVN revision: 52524
2010-09-20 22:18:58 +00:00
Iván Briano 4b90f34b10 Avoid losing the reference to the parent object
Calling resize_object_del() when a resize_object died calls
elm_widget_sub_object_del(), which sets the parent of the (now dead)
widget to NULL. The problem is that this breaks some of the
stuff done in the smart_del() method in the smart class for widgets,
like reverting focus to whoever held it previously.



SVN revision: 52387
2010-09-17 22:10:04 +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
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
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +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
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
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
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
Carsten Haitzler 31c4f0349c 1. if window is transient for another.. if parent del - nuke reference to it
in transient.
2. addd flush button in genlist test - for exposing memory issues.



SVN revision: 47757
2010-04-05 04:58:43 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +00:00
Carsten Haitzler ca93701c55 remove deprecated calls (been deprecated for a while now)
SVN revision: 47100
2010-03-10 07:21:10 +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 6792e2db2c warning fix 1. :)
SVN revision: 47074
2010-03-09 07:30:48 +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
Christopher Michael debae61a2d Updates to elm_conform and elm_win code for new illume2.
SVN revision: 46288
2010-02-19 02:33:17 +00:00
Carsten Haitzler 95a21ab82c be more robust and fall baack to software x11 engine - but warn.
SVN revision: 46230
2010-02-17 02:15:52 +00:00
이상진 1ed46d09fb From: 이상진 <lsj119@samsung.com>
I am attaching another patches for transparent window.

1. Use RGB Visual.
2. Set destination_alpha in ecore_evas for alpha composite in evas.
3. add Function
   - Ecore_Evas_Engine_Func->fn_transparent_set
   - ecore_evas_transparent_set , ecore_evas_transparent_get
   - elm_win_transparent_set, elm_win_transparent_get




SVN revision: 46106
2010-02-12 05:31:26 +00:00
Vincent Torri e939816544 fix returned values
SVN revision: 46081
2010-02-11 16:13:41 +00:00
이상진 957fc1e3e2 From: 이상진 <lsj119@samsung.com>
Patch for rotate with resize

(some formatting fixed too like ecore patch)



SVN revision: 46047
2010-02-10 14:38:08 +00:00
Gustavo Sverzut Barbieri 195f67f0f9 delete trailing whitespace.
SVN revision: 46003
2010-02-09 03:04:18 +00:00
Christopher Michael 35ab7b4144 Add Doxy for illume stuff.
SVN revision: 45937
2010-02-06 17:31:09 +00:00
Christopher Michael 075108fc10 Don't set window type here. Causes problems w/ layout.
SVN revision: 45934
2010-02-06 16:56:18 +00:00
xcomputerman 8cf715a619 OpenGL/SDL support (still buggy, but probably not elm's fault)
SVN revision: 45880
2010-02-04 18:34:44 +00:00
Christopher Michael 708ca2cb9f If we are setting the window as a quickpanel, set some other properties also
(focus, window type, skip_pager, etc).

Add function for setting quickpanel zone (zone integer being 0-based).



SVN revision: 45529
2010-01-24 20:05:09 +00:00
Christopher Michael 5a719b953d Add elm_win functions for get/set of quickpanel priorities.
SVN revision: 45511
2010-01-24 10:21:54 +00:00
Christopher Michael 23a8daed87 Add elm_win function(s) for get/set of quickpanel.
SVN revision: 45510
2010-01-24 10:12:57 +00:00
Lionel Landwerlin b73c6c1aec From: Lionel Landwerlin <llandwerlin@gmail.com>
Subject: [E-devel] [PATCH] Elementary: Added directfb support



SVN revision: 45331
2010-01-19 15:34:24 +00:00
Christopher Michael 94686d2f80 Move conformant calls to elm_win_conformant_get/set.
SVN revision: 45161
2010-01-15 05:17:54 +00:00
xcomputerman 9e644e73a2 Add in SDL support (needed for WebOS). Admittedly this has not been actually checked out yet,
but it will be shortly and it does no evil


SVN revision: 45080
2010-01-13 08:17:15 +00:00
Carsten Haitzler 958aad8241 fix swallows to happen after u added hint change cb
SVN revision: 44245
2009-12-07 14:19:20 +00:00
Gustavo Sverzut Barbieri 0feec55afb elm_policy_set() and friends. easy way to quit app when last window is closed.
SVN revision: 44090
2009-12-01 13:32:48 +00:00
Carsten Haitzler 07eee5720e use all dem cursor api's... and module it up bro
SVN revision: 44088
2009-12-01 11:03:14 +00:00
Christopher Michael 0df0cad61d Fix variable declarations for naughty compilers.
SVN revision: 43711
2009-11-15 16:03:52 +00:00
Christopher Michael f2bc714d81 Formatting.
Reduce potential register usage.
No need to always set edje frametime when creating a window (NB: This was
getting done for every window)
No need to always set edje scale when creating a window (NB: This was
getting done for every window)
Don't need to get the Widget_Data in changed_size_hints as it's not used.
Use EVAS_HINT_EXPAND/FILL



SVN revision: 43694
2009-11-15 01:51:39 +00:00
Gustavo Sverzut Barbieri 7424d452f8 let's save some function calls.
Actually those should not be multiple calls on GCC that supports
functions attributes, but it does not hurt and code is a bit smaller
and easier to read.



SVN revision: 43680
2009-11-13 22:18:01 +00:00
Carsten Haitzler 66f7668004 1. fix window size hint update. somehow this broke with recent changes.
2. fix frame and pager - for some reason there is a neww to re-swallow.
baffles me why!



SVN revision: 43293
2009-10-26 08:27:08 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Davide Andreoli bbb976c85a * Revert my previous commit, the correct way to set the style of a widget is to use elm_object_style_set.
* Mark all the remaining elm_*_style_set() as deprecated.
 * Some whitespaces
 

SVN revision: 43095
2009-10-15 13:18:11 +00:00
Carsten Haitzler c3ccf673e8 1. add signal emits for scrolling in photocam
2. standardise all callback names to be x,y,z etc. if they have multiple words.
3. add cal to get the region viewed
4. test photocams signals and new call



SVN revision: 43069
2009-10-14 08:41:36 +00:00
Davide Andreoli 286653bb37 * Implement some elm_win_*_get() functions
SVN revision: 43034
2009-10-12 09:09:55 +00:00
Carsten Haitzler e2bb0e987f use exposed api call!
SVN revision: 42961
2009-10-08 14:29:38 +00:00
Carsten Haitzler a4996f90ae 1. remove excess swallows - now edje handles that itself
2. beforfe show.. calc first so initial windowis the right size!



SVN revision: 42953
2009-10-08 05:26:58 +00:00
Gustavo Sverzut Barbieri 421e333b9a oops!
SVN revision: 42411
2009-09-11 14:36:10 +00:00
Gustavo Sverzut Barbieri 0d07a5208a elm using logging, please use new macros.
SVN revision: 42409
2009-09-11 14:21:58 +00:00
Gustavo Sverzut Barbieri 5af0125a30 proper check of elm_win object types.
This allows using elm stuff inside regular evas windows not created
with elm_win and possible mistakes using elm_win api, now it checks
for elm type before continuing.

By: Thiago 'bolaum' Borges Abdnur.


SVN revision: 41651
2009-08-09 22:23:46 +00:00