Commit Graph

274 Commits

Author SHA1 Message Date
Carsten Haitzler 7debb66407 fix docs.
SVN revision: 54557
2010-11-15 02:55:36 +00:00
Bruno Dilly a737b92bd3 Adding some missing const on getters on elm
SVN revision: 54333
2010-11-08 16:39:07 +00:00
Bruno Dilly c7005dd59b Small fix on entry load file
In case a file can't be completely read, return what could be read so
far.



SVN revision: 54152
2010-11-04 13:59:42 +00:00
Bruno Dilly 81b68b08a9 Remove elm_notepad
Notepad had a big issue: users couldn't access the entry, so notepad
was something near to an useless widget.

We needed to choose between wrap all entry functions or add these file
save / load and autosave features to entries.

As discussed on the emails list, we decided to go with the second
option, so we won't have an extra widget with lots of wrap functions.

Notepad was internally just an elm_entry with a scroll, so using
a scrolled entry with a file set will do the job.

I've added a test called Entry Notepad that looks like the removed
Notepad test. But we will see the improvements - you can clear the entry
or whatever you want, because the entry is the object you are creating.

If you were using elm_notepad before, just s/notepad/scrolled_entry
and almost everything should work fine. Another change was the function
file_save(obj, file, format), is now just file_save(obj), and the
file and format used are defined by file_set().

At last, some getters were added.



SVN revision: 54145
2010-11-04 11:56:15 +00:00
Iván Briano ea3dda3527 And let's not expose internal objects when setting signal callbacks on widgets.
SVN revision: 54004
2010-10-29 18:21:58 +00:00
Tiago Rezende Campos Falcao 4672a51b0c Remove tests == 0 and != 0
SVN revision: 53787
2010-10-22 21:41:27 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Iván Briano 3ec77727cc Bring focused object into the visible area
There's still a little bugger that can be noticed with the Scroller 2 test
and elm_conform still needs to handle this as scroller does.


SVN revision: 53778
2010-10-22 18:29:51 +00:00
Carsten Haitzler 5d81594429 fix doc.
SVN revision: 53756
2010-10-22 02:50:57 +00:00
Brett Nash 6bb0365d9c Add optional drop callback to elm_selection get.
SVN revision: 53557
2010-10-18 04:48:49 +00:00
Brett Nash 580c2797bb elm_cnp: Elm Drop Data is now Elm Selection data.
SVN revision: 53556
2010-10-18 04:48:44 +00:00
Leandro Pereira c245c6483f [Elementary] Code cleanups, as suggested by clang static analyzer.
SVN revision: 53472
2010-10-15 21:26:11 +00:00
Bruno Dilly 9fa9c659e5 Remove dead assignments from elementary
The only one remaining is on index code, related to the not yet
implemented horizontal mode.



SVN revision: 53396
2010-10-14 14:10:33 +00:00
Christopher Michael baccf96db6 Add UNUSED where needed.
SVN revision: 53285
2010-10-12 03:47:07 +00:00
Iván Briano 4c8980e47e Filter input text in entries.
Users can set filters of their own (text only, no format now) or use the
predefined ones.


SVN revision: 53141
2010-10-07 12:50:00 +00:00
Carsten Haitzler 4f3090af01 and handle disables for everything else that has disable hooks.
SVN revision: 53138
2010-10-07 07:44:50 +00:00
김지훈 d99918389f From: 김지훈 <imfine98@gmail.com>
I changed elementary source code related to focus functions.
Eina_Bool is used instead of integer type in those functions.



SVN revision: 52839
2010-09-28 04:28:14 +00:00
Bruno Dilly 89f23acadc Remove some dead assignments from elementary
SVN revision: 52763
2010-09-25 22:07:55 +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
김지훈 d5b8d09591 From: 김지훈 <imfine98@gmail.com>
Subject: patch for indentation and using enum in elementary

I send the patch for elementary.
In this patch, I fixed the indentation of Elementary.h.in.
In addition, I use EINA_TRUE or EINA_FALSE instead of 1 or 0.
EVAS_HINT_EXPAND and EVA_HINT_FILL is used instead of 1.0 and -1.0.
Thanks.



SVN revision: 52447
2010-09-19 02:30:14 +00:00
Gustavo Sverzut Barbieri 99a4bcfef4 elm_entry has ELM_CURSOR_XTERM by default.
SVN revision: 52388
2010-09-17 22:28:29 +00:00
Brett Nash c6684b49ec Elm DND/Sel: Update typenames to be more consistent.
SVN revision: 52286
2010-09-15 06:29:49 +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
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 458ab084ea Stubs + hide stuff for crazy fr^H^Hwindows users.
SVN revision: 52035
2010-09-09 08:59:38 +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 0d492dcdaf Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +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
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
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Carsten Haitzler 643d06dd16 aaah safety delete - nash nash nash. for you.
SVN revision: 49825
2010-06-24 02:54:03 +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 061259fe6c Fix elm->elm copy
SVN revision: 49810
2010-06-23 01:28:57 +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
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
Brett Nash bed3589df5 Updates to entry to use selection code.
SVN revision: 49728
2010-06-17 08:50:43 +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
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
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 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
Carsten Haitzler 52e86cb31c use the new item stuff! :):) it works.... wow!
SVN revision: 48330
2010-04-26 14:59:01 +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 Sverzut Barbieri 68321b408a ops, forgot some signals.
SVN revision: 47489
2010-03-26 11:25:55 +00:00
Gustavo Sverzut Barbieri 9c951bc6fc Describe more widgets callbacks.
These are all that Editje support now :-) Add others later as
required, but patches are welcome!



SVN revision: 47488
2010-03-26 10:59:56 +00:00
Iván Briano c70784c37c Adding focus and unfocused smart callbacks for entry
SVN revision: 47481
2010-03-26 06:46:31 +00:00
Carsten Haitzler d8f22e5020 password mode - really dont allow selecting of passwords form password fields.
SVN revision: 47467
2010-03-26 04:45:11 +00:00
Gustavo Sverzut Barbieri f48ba4fb22 Some missing getters...
I'm working on edje_externals param_get/param_set and they will need
these functions.



SVN revision: 47450
2010-03-25 17:27:00 +00:00
Carsten Haitzler 59961838f1 return "" if conv is null anyway (as thats a "" src string)
SVN revision: 47441
2010-03-25 05:13:59 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +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
Gustavo Sverzut Barbieri e01d72fe26 Use eina_stringshare_replace to avoid crashes.
By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 47187
2010-03-13 21:01:26 +00:00
Carsten Haitzler 6c46e85395 remove newline stuff.
SVN revision: 47130
2010-03-11 08:08:15 +00:00
Carsten Haitzler c86c9ea795 and make entry api's acutally work - and be tested.
SVN revision: 47127
2010-03-11 06:35:07 +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 d32e700fe3 more warning fixes!
SVN revision: 47076
2010-03-09 11:42:53 +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 9ade1a11cc llvm shhhhhh! (not a real fix)
SVN revision: 46757
2010-03-02 01:04:38 +00:00
Gustavo Sverzut Barbieri e77524000b being extra careful and verbose on elm_entry_entry_get().
For some reason, we're getting text without the <br> and it is
crashing. Instead of crashing, be loud about that error and bail.

The source of the real bug is still unknown :-(



SVN revision: 46747
2010-03-01 23:23:53 +00:00
Gustavo Sverzut Barbieri 296853c141 delete trailing whitespace.
this is more to test http://cia.vc and their project match with our
crazy project structure.



SVN revision: 46004
2010-02-09 03:27:11 +00:00
Carsten Haitzler 5bdddad833 and optimise getting stripped version
SVN revision: 45834
2010-02-03 15:27:57 +00:00
Carsten Haitzler 1b3cb72426 a little more cleanliness and cleaning up of vars not needed when changes
happen



SVN revision: 45833
2010-02-03 15:26:14 +00:00
Carsten Haitzler 956dc8bdbd extra checks for selection
SVN revision: 45625
2010-01-27 09:23:54 +00:00
Carsten Haitzler 568b955c1c move horizontal context menu option to data item - and fix some hoversel
style stuff that has been broken for ages and i just neever noticed!



SVN revision: 45282
2010-01-18 10:28:00 +00:00
Carsten Haitzler 658583e309 patch from <jihoon48.kim@samsung.com> - horizontal context menu option.
SVN revision: 45105
2010-01-14 03:47:28 +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
Carsten Haitzler a053200ed2 oops - fix. longpress cb always shoudl work. just menu go away.
SVN revision: 44178
2009-12-03 22:26:37 +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
Carsten Haitzler 1b7241944d fix some freeze issues with scroller.
SVN revision: 43887
2009-11-22 06:25:10 +00:00
Gustavo Sverzut Barbieri a60ce4e74f elm_entry: play nice with stringshare.
This avoids removing entries from cache to just add them later if it
was the last reference count.



SVN revision: 43674
2009-11-13 18:53:34 +00:00
Jonathan Atton 43ffe878b5 Elementary: add the patch from Dave Andreoli to remove the <br> at the end of the entry. This break a lot of applications but every new applications implement their own fix, it is time to fix it in elm.
SVN revision: 43593
2009-11-09 22:15:26 +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
Carsten Haitzler 86547a1fa2 use external fn - not internal.
SVN revision: 43035
2009-10-12 10:10:12 +00:00
Carsten Haitzler 5f2b460aba thanks to marco - disable cut/paste if not editable, add ability to toally
disable the menu



SVN revision: 43011
2009-10-11 05:48:24 +00:00
Christopher Michael b221c0fc4a More formatting.
SVN revision: 42720
2009-09-26 18:00:51 +00:00
Carsten Haitzler a530abdba3 1. entry now finger sized... needs to be for fingers (set finger size for
desktosp to 0)
2. more photocam work.



SVN revision: 42595
2009-09-21 12:50:34 +00:00
Iván Briano 847ab424c8 consider style when theming entry
SVN revision: 42423
2009-09-11 19:35:57 +00:00
Carsten Haitzler 4686255022 1. scroller uses event timestamps for momentum chrecks
2. fixed paged scrollin to work better
3. entry hoveresel is themable separately
4. entry hofersel is extenstible
5. test improvings



SVN revision: 42181
2009-09-02 12:48:00 +00:00
Daniel Kolesa ed1dcddafb Add disabled state for entry widget.
SVN revision: 42009
2009-08-26 12:51:27 +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 a604a593f6 fix cursor pos change when enter on last line of multi-line text or last char
of sigle line



SVN revision: 40507
2009-05-05 05:10:13 +00:00
Carsten Haitzler bef9cfb99c a whole bunch of entry+scroller fixes.
SVN revision: 40327
2009-04-23 12:58:34 +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 26102c8cfe add cancel action for copy & paste.
SVN revision: 39642
2009-03-23 04:55:37 +00:00
Carsten Haitzler 16a328cba1 and make entry work nicely by freezing/holding scrolling (hold == different
scroll mode).



SVN revision: 39601
2009-03-20 15:08:33 +00:00
Carsten Haitzler e5298074e7 work on bettre touchscreen text selection support. not 100% done yet. been
playing with ideas. this one seems best.



SVN revision: 39579
2009-03-19 13:36:46 +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
Carsten Haitzler 4954c694d7 no - need to add. the strings are not necessarily stringshare strings!
SVN revision: 39233
2009-02-26 06:09:15 +00:00
Carsten Haitzler 4e998eac34 1. setsid to children detech from parent
2. entry segv fix possibly
3. some formatting for list frees



SVN revision: 39225
2009-02-26 02:13:34 +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 986fcca059 allow for all widgets.objects to have different scaling factors.
add tests for these
add tests for inheriting scaling factor from parent
fix test app to use list now instead of box+buttons (cleaner)



SVN revision: 38909
2009-02-03 05:09:03 +00:00
Carsten Haitzler 478023f683 export markup<->plain utf8 conversion calls and use them too.
SVN revision: 38803
2009-01-27 00:44:29 +00:00
Carsten Haitzler c67ff552a6 printf--
SVN revision: 38369
2008-12-31 01:03:36 +00:00
Carsten Haitzler f05d05fc0e better kbd focus handling and inwin is there.
SVN revision: 38357
2008-12-30 16:19:46 +00:00
Carsten Haitzler 2decf1c941 and now it actually buidls and runs without x support.
SVN revision: 38078
2008-12-10 06:43:21 +00:00
Carsten Haitzler 2a41db988e be able to build without x - so it should work on the fb.. and it does... at
leats my mouse and keyboard do - and windows are fullscreen of course... and
really you have a technical limit of 1 window... but hey! that's the fb!



SVN revision: 38077
2008-12-10 06:33:24 +00:00
Carsten Haitzler 9b701fc3f8 patch from olof to fix paste :)
SVN revision: 38033
2008-12-08 23:46:46 +00:00
Carsten Haitzler 0fceb721f6 call clicked on delete of the hover so things can be shut down.
also a fixme - bad me. i used internal calls.



SVN revision: 37837
2008-11-27 23:36:21 +00:00
Carsten Haitzler 793b34f2f9 fix some dynamic object deletion for sub-objects. fix some theme stuff too
for popout hover.



SVN revision: 37818
2008-11-27 05:41:13 +00:00
Carsten Haitzler e461806172 x copy and paste... integrated
SVN revision: 37706
2008-11-19 06:23:08 +00:00
Carsten Haitzler 8e9f6b8fbc more todo items done/added
SVN revision: 37702
2008-11-18 10:11:57 +00:00
Carsten Haitzler 034f736160 used new edje calls and fix bugs.
SVN revision: 37701
2008-11-18 08:45:38 +00:00
Carsten Haitzler 1917ae7240 make use of the signal propagatin to child objects for cursors etc. and so
indicate focus with a cursor.



SVN revision: 37689
2008-11-17 05:58:21 +00:00
Carsten Haitzler 6099cd001a fix some bugs :)
SVN revision: 37671
2008-11-16 12:17:42 +00:00
Carsten Haitzler ee7131de29 and make elm auto-scale much better on the fly - not perfect... but not to
shabby. also in theory should cover theme changes on the fly... haven't tested.



SVN revision: 37662
2008-11-15 13:58:50 +00:00
Carsten Haitzler 6f493e0ee1 so much more - valgrind complaints fixed in many places, leaks
and anchorblock/view are working...



SVN revision: 37081
2008-10-25 02:11:06 +00:00
Cedric BAIL 2d9ac9118b Remove Evas list from elementary.
SVN revision: 36979
2008-10-22 14:11:59 +00:00
Carsten Haitzler fc392751dc use hold flags
SVN revision: 36965
2008-10-22 12:00:16 +00:00
Carsten Haitzler a3ad00322f and support password mode and proper focus on click
SVN revision: 36958
2008-10-22 08:58:56 +00:00
Carsten Haitzler 3a2be900c9 defer recalc for faster init and changes.
SVN revision: 36766
2008-10-18 03:55:44 +00:00
Carsten Haitzler 6efd817f14 and signal right.
SVN revision: 36756
2008-10-17 14:53:07 +00:00
Carsten Haitzler 11bc6d908d and some final touches on signals from entry widget
SVN revision: 36755
2008-10-17 14:51:17 +00:00
Carsten Haitzler ab493a0d00 and now entry is pretty much done (no hooks to x copy/paste selections etc.
but for now that's ok)



SVN revision: 36754
2008-10-17 14:40:54 +00:00
Carsten Haitzler 4c94e5067a and support/test the new edje entry stuff. pretyt solid i think.
SVN revision: 36742
2008-10-17 06:41:07 +00:00
Carsten Haitzler c0fd5ab12f use edje entry stuff more
SVN revision: 36710
2008-10-16 09:17:57 +00:00
Carsten Haitzler 1d74aa8f21 more entry testing and support.
SVN revision: 36666
2008-10-15 09:58:44 +00:00
Carsten Haitzler cd8a1192b0 warnings-- and beginning of entry widget.
SVN revision: 36653
2008-10-14 08:05:30 +00:00