Commit Graph

293 Commits

Author SHA1 Message Date
Christopher Michael 77ed1224ab Fix more formatting, *sigh*
Use ELM_NEW instead of calloc directly



SVN revision: 43155
2009-10-18 17:20:18 +00:00
Jonathan Atton d434116d77 Elm : delete some added callback. The callbacks associated to the parent by the hover was not deleted when the parent is deleted
SVN revision: 43102
2009-10-15 20:48:00 +00:00
Jonathan Atton 2dc274cc02 elm menu+toolbar: Rewrite the menu, add separator and submenus. Fix the separator in the toolbar
SVN revision: 43019
2009-10-11 13:37:01 +00:00
Jonathan Atton 142f0f04d9 Elemetary : add a new widget: menu. See elementary_test. submenu will coming soon. Rewrite the toolbar to use this new widget
SVN revision: 42943
2009-10-07 17:11:41 +00:00
Jonathan Atton a3105e664e elm toolbar: little fix to avoid a infinite loop
SVN revision: 42924
2009-10-06 22:24:24 +00:00
Jonathan Atton 72e5eb0517 elm toolbar: fix the position of the menu
SVN revision: 42922
2009-10-06 21:46:11 +00:00
Jonathan Atton 48a16579fc elm toolbar: add elm_toolbar_align_set(), set the alignment of the items. Defalt is 0.5 (center)
SVN revision: 42920
2009-10-06 20:14:46 +00:00
Jonathan Atton 9029e6ed9e elm toolbar: add item_unselect_all(). Automatically unselect the item when the menu is closed.
SVN revision: 42917
2009-10-06 18:18:21 +00:00
Jonathan Atton 145c90a7e4 elm toolbar: add menu. See the last item in the tollbar test. Thi implementation is simple: each item are a button with a custom style
SVN revision: 42904
2009-10-06 15:08:41 +00:00
Iván Briano a95ba2636d Hacky move to evas_box
Evas_Box layouts don't get along with what elm expects,
so for now, it's using the old els_box calculate functions
as a custom layout.


SVN revision: 42863
2009-10-02 19:22:40 +00:00
Jonathan Atton 58b8005d51 elm toolbar : rewrite/fix _sizing_eval
SVN revision: 42818
2009-09-30 11:26:26 +00:00
Jonathan Atton a00f198b0f elm toolbar : add homogenous_set
SVN revision: 42817
2009-09-30 10:53:08 +00:00
Carsten Haitzler 111735b63d 1. add elm module internal code. will be used later for things like:
* putting policy into modules
* multitouch handling being able to be farmed off to modules
* farming off things that are not compatible with license/code of elm into a
3rd party piece of code via a clean defined interface API

2. fix doc image - dont need it

3. fix toolbar bounce settings. was wrong



SVN revision: 42793
2009-09-29 04:35:35 +00:00
Christopher Michael b5532973b0 Cleanup some commented out lines that were left there on last commit.
SVN revision: 42111
2009-08-30 16:57:14 +00:00
Christopher Michael 04f996d5ff Add ability for toolbar to have a separator item. Still a problem here in
that the toolbar box sets everything homogenous.

Fix some formatting.
Reduce register use in certain places.
Reduce number of calculations to get scale in certain places.



SVN revision: 42109
2009-08-30 16:54:15 +00:00
Christopher Michael 07b8fa32ca Formatting.
Only calculate min_size once in certain places, rather than several
calculations.


SVN revision: 42108
2009-08-30 16:33:03 +00:00
Christopher Michael 65644d237e Add missing check for calloc failure, thanks Vincent :)
SVN revision: 42019
2009-08-26 16:22:52 +00:00
Christopher Michael b686b3207a Oops, small typo.
SVN revision: 42013
2009-08-26 14:42:40 +00:00
Christopher Michael ae0afa4902 Don't calloc a toolbar item if elm_widget_data_get returns NULL.
Slightly better trapping(s).



SVN revision: 42012
2009-08-26 14:34:55 +00:00
Christopher Michael 37a4995d6c Add traps to test that elm_widget_data_get actually returned something.
SVN revision: 42011
2009-08-26 14:29:18 +00:00
Christopher Michael ca6418164c Check that item is valid before we try to set a disabled state on it.
Perhaps a bit overkill here, but at least we don't crash if item == NULL :)



SVN revision: 42001
2009-08-26 00:49:38 +00:00
Christopher Michael cc428cedeb Add function to return the icon size.
Add trap for a max icon size (currently hard-coded to 48 as anything greater
causes issues with the buttons).

Add trap to check if the toolbar's icon size is already set to what is
requested. This trap added, because without it the toolbar goes into a
"disabled" look.



SVN revision: 42000
2009-08-26 00:47:31 +00:00
Christopher Michael d4f3e92860 Add function to allow setting toolbar icon size.
SVN revision: 41998
2009-08-26 00:30:55 +00:00
Christopher Michael 3a2795f0ed Add function (ability) to change a toolbar item's Label.
SVN revision: 41997
2009-08-25 23:47:08 +00:00
Christopher Michael 9ae087ca95 Remove commented out line as it's not needed.
SVN revision: 41993
2009-08-25 22:53:13 +00:00
Christopher Michael d4528aa391 Add a method to disable a toolbar item.
Add a couple of blank lines in elm_toolbar.c to separate variables from code
in certain functions.

Set first button in Toolbar Test to be disabled (just so Elm develops can
see how it looks & acts)

NB: The theme/colors for disabled text may need/warrant work. Not sure how
Elementary people want the disabled text to look, so I used the disabled
text colors from elm_button for now.

(Hopefully the code here is acceptable ;) If not, please let me know what
needs fixing)



SVN revision: 41990
2009-08-25 22:46:19 +00:00
Davide Andreoli d69a56c1e8 * Add the *_icon_get() API calls for all the widgets that have the *_icon_set() corresponding func.
SVN revision: 41721
2009-08-12 22:37:48 +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 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 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 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 e136d2a03a fix scale for toolbar
SVN revision: 39797
2009-03-30 08:32:25 +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
Gustavo Sverzut Barbieri 2e62b41b1b major warning + cast cleanup.
* casts: remove internal "Item" and use "Elm_XXXX_Item" for carousel,
   list, genlist and toolbar.

 * warning: fix const on lots of getter apis, the object should be
   const, and not the return! Of course lists that are returned and
   are not supposed to be modified are still returned as const, but
   maybe we should return iterators!

 * list/genlist: fix selected_set() to be a bit (marginally)
   faster. Do not operate if state has not changed and if it did
   changed we're sure we're not in the object->selected list.




SVN revision: 39208
2009-02-25 15:54:26 +00:00
Carsten Haitzler 1099280784 fix some min size calc issues.
fix some theme size calc issues
make all widgets able to... do finger size! this way a ui can be tweaked with
1 value (finger size) if it is to be finger or mouse/stylus driven. and it
was so simple to add in.
work on genlist - beginning to display items and scroll.



SVN revision: 38995
2009-02-11 11:49:43 +00:00
Carsten Haitzler 54f10e837c fix leak - no cleanup items in toolbar.
SVN revision: 38823
2009-01-28 00:48:43 +00:00
Carsten Haitzler 90f79c27db 1. add carousel start - does nothnig. ignore. copy of toolbar atm to start with
2. make elementary be able to determine theme from
  PREFIX/share/elementary/themes or ~/.elementary/themes (~/ takes preference)
  currently using a delimited list of theme names in order to check like:
    mytheme/fallback/morestuff/default
  (if the last theme entry is on default it is added explicitly).
  this allows multiple theme files bascially to work a bit like a fontset - try
  the first one - if not there, try the next and so on. set $ELM_THEME to your
  theme setting
3. determine prefix and thus data dir - where system themes go. if it can't
  rely on dladdr, or the compiled-in prefix/data dir, you can set $ELM_PREFIX
  and/or $ELM_DATA_DIR accordingly.
  


SVN revision: 38568
2009-01-13 09:20:53 +00:00
Carsten Haitzler 59fbfb0f02 event_info in func passes the item
SVN revision: 38495
2009-01-07 21:08:36 +00:00
Carsten Haitzler 6505d78bc0 clear up some shutdown/deletion bugs
SVN revision: 38291
2008-12-23 14:05:56 +00:00
Carsten Haitzler ba18110513 tests for hoversel (and photo) and toolbar and more complete toolbar.
SVN revision: 38222
2008-12-19 04:26:24 +00:00
Carsten Haitzler 56bb7d664a toolbar in. not 100% done yet.
SVN revision: 38209
2008-12-18 13:38:58 +00:00