Commit Graph

66 Commits

Author SHA1 Message Date
Lucas De Marchi 6638a10e20 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
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Tiago Rezende Campos Falcao fa956101a7 Adding selection API to E_Icon
SVN revision: 49755
2010-06-18 22:39:00 +00:00
Christopher Michael bee9246e44 Fix item label return. Thanks cedric :)
SVN revision: 47694
2010-04-02 15:21:46 +00:00
Christopher Michael d50bb8061f Fix eina_stringshare usage...thanks k-s :)
SVN revision: 47674
2010-04-01 23:14:16 +00:00
Christopher Michael 5010ef93f5 Use item->label in places where we can. I don't know how this was
overlooked all this time. This fixes a bug where getting item->label
was always returning NULL.

Can someone please check the eina_stringshare usage here ? Thanks :)



SVN revision: 47655
2010-04-01 18:48:24 +00:00
Christopher Michael 4eefa59387 Use Eina_Bool for multi-select of ilist.
Fix formatting issues in some other files.



SVN revision: 47573
2010-03-30 01:05:56 +00:00
Gustavo Sverzut Barbieri 707f0fa37e don't ever select headers...
SVN revision: 46958
2010-03-07 20:08:46 +00:00
Gustavo Sverzut Barbieri 073a946433 new, single list module loader dialog.
This dialog was reworked to have one single list instead of two. This
makes the internals way simpler and also fits small screens.

Extra benefit is that we don't need to reload the list, so it's
flicker-free and you don't loose context. Of course it will save some
cpu cycles not having to do these list fills over and over again.

the ilist had to be changed to include an "end" object, in the default
theme it is at the right. It will use a part named
e/widget/ilist/toggle_end to present the selected state. (The
favorites/heart icon was choosen because it is red and thus easily
visible in both black and white background -- selected/unselected).



SVN revision: 46813
2010-03-03 04:10:04 +00:00
Sebastian Dransfeld 78b294c4a8 make clang happy
SVN revision: 45176
2010-01-15 11:29:50 +00:00
Christopher Michael 3e1c0d622a Fix API Inconsistency:
e_ilist_min_size_* to e_ilist_size_min_*



SVN revision: 42163
2009-09-01 16:39:10 +00:00
Christopher Michael bc639c764d More API Inconsistency fixes:
e_box_min_size_* to e_box_size_min_*
e_box_max_size_* to e_box_size_max_*



SVN revision: 42161
2009-09-01 16:29:46 +00:00
Cedric BAIL f8c05999e4 * e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>.


SVN revision: 41916
2009-08-21 15:08:49 +00:00
Cedric BAIL 3c9f7d712c * e_ilist.c: Reduce list walk.
SVN revision: 39446
2009-03-11 15:12:33 +00:00
Christopher Michael 2abed1f91d Formatting & Whitespace removal.
SVN revision: 37731
2008-11-21 20:14:30 +00:00
Nicholas Hughart 6dd2364494 A little shuffling around and ilist is a bit nicer with thumbscroll. If I broke it at all, let me know. I believe I tested everything though.
SVN revision: 37723
2008-11-21 05:36:08 +00:00
Gustavo Sverzut Barbieri e5c4d62fd4 Set member_{add,del} to NULL.
SVN revision: 37091
2008-10-25 03:13:33 +00:00
Cedric BAIL 1087de2397 Remove Evas list and replace them with Eina list.
No change for ->next and ->data access right now, as the patch is already
big enough.



SVN revision: 36962
2008-10-22 11:49:33 +00:00
Chidambar Zinnoury edc86d39cc For the moment, when try to select an header, loop over next elements until we find a non-header, if not, loop over previous ones, and select found element. Useful for me dialogs where we remove elements.
SVN revision: 36814
2008-10-19 13:34:47 +00:00
Chidambar Zinnoury 3a30678b4a Fix segfault happening with ilist when multi-selection is being used: selectraise value should be always retrieved as it is used on both cases.
Closes trac bug #90, reported by Toma.  


SVN revision: 36771
2008-10-18 06:27:33 +00:00
ptomaine 363ef244b8 Typebuf feature for ilist: type in several chars and an item with
a matching label would be selected. Kinda like EFM's typebuf. Does 
not show what you type, since I think it's useless here. If you hit
Esc or wait 3 seconds, the buffer would be cleared. Understands 
wildcards and is case-insensitive. Useful to dig through applications
or bindings list. If you feel like this does not fit here, go ahead 
and revert.


SVN revision: 36168
2008-09-22 13:29:34 +00:00
Gustavo Sverzut Barbieri 18966c828b Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
2008-09-07 01:25:49 +00:00
Carsten Haitzler 4bf7231142 allow ilist items to determin stacking
SVN revision: 35541
2008-08-18 12:57:15 +00:00
Carsten Haitzler 4383257c7d some ilist stackign changes...
SVN revision: 35536
2008-08-18 09:39:20 +00:00
Christopher Michael 5d0868e9ed Reduce some 2 line variable checks to single line.
Fix some formatting & remove whitespace.
In some instances, check if creation of widget_data was succesful before
continuing with the rest of the function.


SVN revision: 34522
2008-05-10 07:44:01 +00:00
Christopher Michael e3e488a9b6 E_Ilist
- Remove tons of nasty whitespace.
       - Initialize some list vars to NULL before use.
       - Reduce some 2 line checks (x = data; if !x return) into single line.
       - When setting an ilist item to selectable via API,
         check that the item is not a header as these are not selectable
         currently.
       - Add some NBs for if/when headers do become selectable.

Modules Dialog:
       - Initialize some list vars to NULL before use.
       - Reduce some 2 line checks (x = data; if !x return) into single line.
       - When loading/unload module(s), attempt to reselect the next item in
         the list(s).

sshh...I wasn't here ;)


SVN revision: 34303
2008-04-18 06:23:21 +00:00
Carsten Haitzler b92a1a6e24 thumbscroll. the ability to scroll any widget (anything scrolled by the
scrollfram smart/widget) using your "finger" anywhere in the view. not useful
for desktops. useful for small screen devices - openmoko/n800 etc. are
perfect targets. just click and drag with your finger, release. drag fast and
releas and you get momentum and it continues for a bit while it slows down.
configurable via a new config module.


SVN revision: 33564
2008-01-23 09:04:56 +00:00
Christopher Michael 68d30a59db Be sure to set the ilist item->selected to 0 when calling e_ilist_unselect.
SVN revision: 31321
2007-08-15 11:31:36 +00:00
Carsten Haitzler a960cd070b move a chunk of stuff to use evas_smart_class_new() - evas_smart_new() will
probably die as it's already got legacy funcion methods for layer etc. stuff.


SVN revision: 31161
2007-08-04 13:12:43 +00:00
Christopher Michael 5b8a3e7555 Better modules config dialog. Can now multi-select several modules to
enable/disable at one time. Added some APIs to e_widget_ilist to help with
this.


SVN revision: 30832
2007-07-15 23:39:28 +00:00
Christopher Michael dc7f614937 Give menu apps dialogs (favs, ibar, etc, etc) ability to move items up/down
in the list. Allows user to "customize" their order in the menus, as per
ManoWarrior feature request.

Added some API to ilist widget to help with this. iList can now do
append_relative, prepend, and prepend_relative.


SVN revision: 30701
2007-07-10 11:15:34 +00:00
Sebastian Dransfeld ac1df687ea Cleanup.
SVN revision: 30270
2007-06-07 16:42:51 +00:00
rephorm aa355036c4 when going back to categories list, scroll to the category we were just in
get rid of some warnings


SVN revision: 30269
2007-06-07 03:49:09 +00:00
Carsten Haitzler cb12aef97c ilist patches from Laurent Ghigonis <ooookiwi@gmail.com>
SVN revision: 29958
2007-05-12 02:43:13 +00:00
kiwi fa957c3166 freeze/thaw the ilist in ilist_clear, it speed things up on ilist delete
SVN revision: 29926
2007-05-09 12:54:57 +00:00
Sebastian Dransfeld f6dc1dc1cc Remove stale code.
Fix comments.


SVN revision: 29159
2007-03-25 22:45:00 +00:00
Sebastian Dransfeld 531877405c Fix compiler warnings.
SVN revision: 27921
2007-01-12 13:00:29 +00:00
Christopher Michael c105660284 Fix case where nothing is selected in the list, so disable some controls.
SVN revision: 27878
2007-01-09 02:29:51 +00:00
Christopher Michael 332f1bc2ce Rework of the ilist widget.
- Added ability to optionally do multi-select and range-select.
   - Update Font Config Dialog to allow multi-select & setting of fonts in batch.

No changes should be necessary for existing apps/dialogs that use ilist. If
you would like to implement multi-select in something, have a look at the
font config dialog for usage.


SVN revision: 27875
2007-01-08 19:23:21 +00:00
Carsten Haitzler ef11f7a10d add freeze/thaw for ilist - makes the mime config dialog much better :)
SVN revision: 27235
2006-11-27 14:23:07 +00:00
Carsten Haitzler 6dccf5b119 double click on open - with items in ilist or fm2 list and e will auto-open
SVN revision: 26818
2006-10-28 03:53:22 +00:00
Carsten Haitzler 34d6645d66 lots of freaky stuff.
1. cleaned up actions for restart and exit
2. made main menu cleaner in just using the actions
3. added ilits unselect calls for ilist smart and widget
4. patch for cpufreq to set all cpu clocks
5. fix battery module to handle broken acpi impl's that don't report drain rate
6. add e_sys subsystem - for executing system sensitive stuff like halt, reboot
   suspend, hibernate etc. this also covers exit, restart and logout. logout
   is currently dormant and just an action - not bound or in a menu. not
   complete anyway (no code for it). halt and reboot should probably use
   logout logic to shut down apps - i will recycle it. i added a suid root
   binary to do the actions - uses a system config (default one supplied that
   is secure - root will need to modify it to allow things).
7. fixed suid install hook for cpufreq
8. added sysconf dir to build for sys config file.
9. pants on


SVN revision: 25395
2006-09-03 08:51:32 +00:00
rephorm 462bda0f22 another chunk
all group names prefaced by e/
its entirely possible i missed a few small places in this, so there may be some growing pains in the next day or two

also, spectrum content -> e.swallow.content


SVN revision: 25057
2006-08-23 03:39:02 +00:00
rephorm a5c71890d4 ****** MAJOR THEME REWORKING -- BREAKAGE *********
Almost every signal and required part name has changed. This means that ALL themes other than the default one are now broken. Sorry, but this had to happen.

I have a list of mappings from old to new at http://rephorm.com/files/dump/e_theme_map.txt

There will probably be a little more cleanup on this in the coming days. Then I'll write it all up in a nice theme spec.


SVN revision: 25033
2006-08-22 07:39:11 +00:00
rephorm 5d302028b7 don't allow ilist headers to be selected
SVN revision: 23319
2006-06-09 02:53:16 +00:00
Christopher Michael 6b49e365a4 Add a function to e_ilist and e_widget_ilist to return if a particular item
is a header or not. Allows traversing ilist items in a loop while
testing if the item is a header, and potentially skipping it.


SVN revision: 23286
2006-06-08 12:48:36 +00:00
Carsten Haitzler 2bc5d52739 illogict patches (minus a few that will break config despite fixing a typo)
SVN revision: 22405
2006-04-30 04:31:42 +00:00
Stafford Mitchell Horne 27fcbce58a Code cleanups for font config dialog
* Move sndev's code into ilist so it can be reused


SVN revision: 22075
2006-04-13 00:01:15 +00:00
Stafford Mitchell Horne 5828935a95 Add font fallbacks configuration to font config dialog
* Add arrow icons to default theme
 * Add api to ilist for manipulating list labels (for moving)
 * TODO: need to split list manipulation code out to its own widget but
   what should the diget be called? e_widget_editable_list?


SVN revision: 21806
2006-04-04 14:00:19 +00:00
Stafford Mitchell Horne afdd5b0686 Add Font Configuration Dialog, and...
* Added some e_widget api for handy things (Toggling checks, Setting Entry Text...)
 * Fixed some compiler warnings
 * TODO : Font hinting and this new font dialog should be merged, Also, need
   To add font fallbacks configuration to this dialog


SVN revision: 21655
2006-04-01 09:24:56 +00:00