Commit Graph

367 Commits

Author SHA1 Message Date
Kai Huuhko 9658aeeb34 Evas: Object documentation fixes. 2013-04-22 20:12:26 +03:00
Kai Huuhko 234cc629e5 Ecore: Add mainloop_glib_always_integrate_disable(). 2013-04-22 20:12:26 +03:00
Kai Huuhko 4b9cacd74e Evas: Fix Textgrid and add tests. 2013-04-22 20:12:26 +03:00
Davide Andreoli 0fae488f77 Python-EFL: EdjeEdit, manage the various class 'name' prop in a saner way
Instead of keeping a py object now keep a stringshared char*, so that we can
pass it directly to the C API without messing with conversions.
2013-04-14 14:24:44 +02:00
Davide Andreoli 9d85805b13 Python-EFL: Implemented EdjeEdit API, with full unit tests.
Some stuff is not working on the C side, the unit test is full
of FIXME and TODO. The biggest problem is the PartState that
do not work at all, I will give a short look at this, but I'm
not so much intrested atm...If you want/need to help please
let me know.
2013-04-14 13:08:15 +02:00
Davide Andreoli 541b3a8aae Python-EFL: add missed Genlist.item_sorted_insert(), and document all the insertion funcs. 2013-04-10 22:41:11 +02:00
Davide Andreoli 5c10701aa2 Python-EFL: remove old/unused file adn a fix for sutup.py
setup.py: commented out the command_options param,
it break the Sphinx 'fake' class that is used when sphinx
is not found.
2013-04-09 22:11:06 +02:00
Kai Huuhko 9d5ed471a4 Evas: Actually commit Textgrid code and TODO ++--.
Sleep++
2013-04-07 23:15:58 +00:00
Kai Huuhko aef22ccc50 Evas: Add code for Textgrid, compiles but not tested. 2013-04-07 23:11:50 +00:00
Kai Huuhko 2ba1ce59a7 Elm: Clean up object and add a couple of comments. 2013-04-07 23:11:05 +00:00
Kai Huuhko 79022bf27b Convert dbus_mainloop C code to Cython. 2013-04-07 17:41:10 +03:00
Kai Huuhko 09b7c33644 Evas: Implemented Object.map_get() 2013-04-07 15:35:22 +03:00
Kai Huuhko 0c1584097a Evas: Make the representation special methods use C API functions directly. 2013-04-07 15:35:22 +03:00
Davide Andreoli 51b1cadd93 Python-EFL: use eina_log in dbus_mainloop 2013-04-06 20:46:20 +02:00
Kai Huuhko 171e462b50 Elm: Fix segfault in tooltip content cb 2013-04-06 16:29:44 +03:00
Davide Andreoli 0a32be475a Python-EFL: first working dbus mainloop wrapper.
This one don't require edbus2 nor the old e_dbus, it reimplement
the dbus connection stuff that was in e_dbus (the old) in a
py module.
2013-04-06 12:46:52 +02:00
Kai Huuhko 4fb18e5674 EDBus: Insert the rest of the ghastly figures.
Now we need to start making sense of this all.
2013-04-06 11:46:21 +03:00
Kai Huuhko e77f558e39 EDBus: More skeletons. 2013-04-05 20:31:25 +00:00
Kai Huuhko db0cb8f36b EDBus: A new beginning. 2013-04-05 16:35:21 +00:00
Kai Huuhko 885e0beacb Elm: Remove the image directive from widgets that don't have preview picture. 2013-04-05 08:14:20 +00:00
Davide Andreoli fbc08db927 Python-EFL: images and initial rubric for all the widgets. 2013-04-04 17:00:45 +02:00
Kai Huuhko f1972f6a6e Place the remnants of _cfruni and _fruni under six feet of soil.
Fix a braino in the py list to string array conversion function.
2013-04-04 11:31:24 +00:00
Davide Andreoli 7c6afeb25f Python-EFL: add a preview image to the map docs 2013-04-04 13:23:25 +02:00
Davide Andreoli 6d6c0c0b50 Python-EFL: improved documentation for Map 2013-04-04 12:44:02 +02:00
Davide Andreoli 0f3b8eb446 Python-EFL: Add documentation to the Map widget 2013-04-04 12:44:02 +02:00
Kai Huuhko aa72b5f273 Evas: Use cpdef for making internal calls faster, small performance
optimizations.
2013-04-03 22:47:16 +00:00
Kai Huuhko 18ecef1c2e Elm object: Add few performance optimizations
by simplifying code and making better use of types where possible.
2013-04-03 20:38:21 +00:00
Kai Huuhko 3b196172b4 Add an enums file for Evas so it gets the values directly from C lib. 2013-04-03 19:39:11 +00:00
Kai Huuhko f532a40fae Elm: Add documentation for the exceptions added earlier. 2013-04-03 16:31:22 +00:00
Davide Andreoli 1a910cfab3 Python-EFL: ecore file_download: another py3 fix 2013-04-03 17:31:15 +02:00
Kai Huuhko 259cb4d083 Elm: Hopefully the last batch of _(c)fruni removal. 2013-04-03 13:33:28 +00:00
Davide Andreoli 307a27022b Python-EFL: remove the efreet bindings.
We don't need them, just use pyxdg if you need fdo standards.
2013-04-03 14:34:38 +02:00
Davide Andreoli 86df76780a Python-EFL: fix evas events for py3 and remove that hack in emotion test 2013-04-03 12:59:11 +02:00
Davide Andreoli 92a626abbc Python-EFL: fix ecore.file_download_protocol_available for py3, and made a test for it 2013-04-03 11:38:46 +02:00
Kai Huuhko ed1cad63f6 Elm: More _cfruni removal. 2013-04-02 23:24:35 +00:00
Kai Huuhko dd6f479d7d Elm: More _cfruni removal, and fix init() broken by my previous commit. 2013-04-02 17:15:20 +00:00
Davide Andreoli 2f563ce6ec Python-EFL: the return string from edje_file_data_get() must be free() by the caller. 2013-04-02 13:50:01 +02:00
Kai Huuhko bd1dd50bc6 Elm: First batch of _cfruni extermination 2013-04-02 11:37:02 +00:00
Davide Andreoli d4d58b990b Python-EFL: edje, remove all the fruni/cfruni usage 2013-04-02 11:42:26 +02:00
Davide Andreoli 847f360867 Python-EFL: emotion: get rid of _cfruni() 2013-04-02 10:31:47 +02:00
Kai Huuhko 2f6edccf6e Eo: remove _c?fruni from list conv funcs. 2013-04-01 18:24:45 +00:00
Kai Huuhko 4155c99d3e Ecore: more _cfruni riddance. 2013-04-01 18:16:26 +00:00
Kai Huuhko 4244773c94 Evas: the holy grail of strings! 2013-04-01 18:02:16 +00:00
Davide Andreoli a960142166 Python-EFL: remove unused code (was the test to use the new Eo API). And use multiline when importing. 2013-03-31 21:18:03 +02:00
Davide Andreoli 5043aa38f0 Reorder _object_mapping_register for readability. 2013-03-31 15:26:30 +00:00
Kai Huuhko 49d1d1950a Move Eo init to beginning of the file so that the initialization is run
before anything else that's in the module init code path.
2013-03-31 15:09:50 +00:00
Kai Huuhko 28d68cf2a0 Evas: Add some trivial performance optimizations + TODOs for more. 2013-03-30 21:15:32 +00:00
Kai Huuhko 21ec3e18cf Change the class lookup code to C only using an Eina Hash table. 2013-03-30 15:39:51 +00:00
Davide Andreoli 16ecc8ca4b * remove Eo.is_valid property as it do not check what it say
* Using Eina_Hash in object_mapping doesn't worth the pain
 * extended object mapping is not required anymore
2013-03-30 12:21:13 +01:00
Kai Huuhko 4a157cb0a2 Add more skeletal work for Efreet.
Uri, base and trash should be fully usable now.
2013-03-29 16:36:16 +00:00
Kai Huuhko 0cb72de9f1 Revert changes to pointer comparison style. 2013-03-28 21:34:31 +00:00
Kai Huuhko 4d9c1c929a Handle exceptions in eo cdef functions, don't expose _METHOD_DEPRECATED
to Python API needlesly, add some code optimizations and TODOs.
2013-03-28 16:54:51 +00:00
Kai Huuhko 7cf20ceeb5 Revert _(c)fruni to earlier behaviour, correct some issues in list convs.
DaveMDS and I decided to return them to the earlier hackish behaviour
since it works with most cases where it's used. And we are lazy.
2013-03-26 22:50:04 +00:00
Kai Huuhko 0f3c3999e3 Make the conv functions more robust.
Now we may leak the strings from _(c)fruni which should be looked up
case by case. The positive side is that we no longer point to (possibly)
invalid memory.

Strings used with touni funcs are suspected to leak as well.
2013-03-26 18:53:13 +00:00
Kai Huuhko 37b8ff89ae Free allocated memory after passing an array of strings to elm_win_available_profiles_set. 2013-03-25 21:30:38 +00:00
Kai Huuhko 095f7fd867 Add comments to point out the trouble areas in the string conv
functions.
2013-03-24 18:34:19 +00:00
Kai Huuhko df023f53ff Add a few 1.8 API functions to elm.Window.
Window initialization now takes in the "parent" keyword which defaults
to None.
2013-03-23 10:17:24 +00:00
Kai Huuhko f6909ac42c Internal function renames:
* _strings_to_python -> eina_list_strings_to_python_list
 * _strings_from_python -> python_list_strings_to_eina_list
Add two functions for string array conversion.
Add two properties to elm.Window.
2013-03-23 06:50:33 +00:00
Kai Huuhko f33c77da09 python-efl: Small elm.genlist documentation correction.
SVN revision: 84448
2013-03-15 16:15:52 +00:00
Kai Huuhko ffd06e5378 python-efl: Forgot this file from last commit.
SVN revision: 84447
2013-03-15 16:14:19 +00:00
Kai Huuhko 3324319e56 python-efl: elm.calendar: Add new functionality from 1.8 API
SVN revision: 84446
2013-03-15 16:12:37 +00:00
Kai Huuhko 31b757f51b python-efl: Initial work on Efreet bindings.
SVN revision: 84426
2013-03-12 08:24:49 +00:00
Kai Huuhko 329ddc5618 python-efl: Add elm.general.cache_all_flush(), fix tests.
SVN revision: 84410
2013-03-05 22:17:24 +00:00
Kai Huuhko e88c49f008 python-efl: Fix Genlist sorted.
SVN revision: 84406
2013-03-03 11:21:14 +00:00
Davide Andreoli 0873fe1621 Do not import EVERY widget while importing efl.elementary
Now the user is responsable of importing the widget used one by one,
this should be a great speedup in the launch of the app.

You have to import stuff in this way:
 from efl import evas
 from efl import elementary
 from efl.elementary.window import Window
 from efl.elementary.layout import Layout

...sorry for the inconvenience



SVN revision: 84402
2013-03-01 21:01:50 +00:00
Kai Huuhko bb65ae91cb python-efl: Fix documentation issues, use NotImplementedError for
abstract methods in evas smartobject.


SVN revision: 84398
2013-03-01 12:44:05 +00:00
Kai Huuhko 413059f163 python-efl: More work on edbus. Functional but errors on shutdown.
SVN revision: 84396
2013-02-28 22:16:25 +00:00
Kai Huuhko 26902af425 python-efl: Initial work on edbus bindings.
Still needs the setup function that takes an existing connection to work 
properly.


SVN revision: 84395
2013-02-28 16:13:07 +00:00
Davide Andreoli 10580f1aa8 Python-EFL: emotion api and docs 100% done
SVN revision: 84390
2013-02-26 23:55:39 +00:00
Davide Andreoli 1ca526c62d Python efl: emotion fully documented, no functional changes, but used the elm properties-on-top style
SVN revision: 84389
2013-02-26 21:53:39 +00:00
Kai Huuhko 340c3df330 python-efl: Revert r84377
SVN revision: 84388
2013-02-26 21:24:11 +00:00
Kai Huuhko 7127e39d7b python-efl: Trying out the scrollable interface in Genlist.
SVN revision: 84387
2013-02-26 21:12:51 +00:00
Kai Huuhko 37995fa72d python-efl: Here's an idea how we can handle (elm) interfaces.
SVN revision: 84379
2013-02-26 14:35:16 +00:00
Kai Huuhko d08b26e12f python-efl: strdup the string when converting from python to make sure it
doesn't go away if the string object should lose reference. May not be 
necessary but just in case.


SVN revision: 84377
2013-02-26 11:04:13 +00:00
Kai Huuhko c5c91f3783 python-efl: Remove last remnants of _object_list_to_python from elm and
add the event return that was missed in the merge from my repo.


SVN revision: 84370
2013-02-25 20:23:59 +00:00
Davide Andreoli dccea0e2f3 Python-EFL: doc infra for emotion
SVN revision: 84365
2013-02-25 18:46:18 +00:00
Kai Huuhko 309666459a python-efl: Fix small elm TODOs and issues.
SVN revision: 84359
2013-02-25 12:58:56 +00:00
Davide Andreoli ef123367d9 Python-EFL: Docs for edje
SVN revision: 84351
2013-02-24 21:37:29 +00:00
Davide Andreoli 1881b84517 Python-EFL: more docs for ecore
SVN revision: 84350
2013-02-24 20:33:19 +00:00
Davide Andreoli e5c843d60e Python-EFL: starting docs for ecore
SVN revision: 84345
2013-02-24 17:29:19 +00:00
Davide Andreoli 144c600753 Python-EFL: docs for evas map
SVN revision: 84344
2013-02-24 15:52:42 +00:00
Davide Andreoli c745e686d3 Python-EFL: All the docs for evas are in.
SVN revision: 84342
2013-02-24 14:41:15 +00:00
Kai Huuhko 73e5f8dcdb python-efl: Add decorate_(all_)item_style to elm.GenlistItemClass.
SVN revision: 84338
2013-02-24 12:01:03 +00:00
Davide Andreoli 83b3d779cb Python-EFL: put in the infra for Evas docs
SVN revision: 84337
2013-02-24 10:56:04 +00:00
Kai Huuhko ca6be7473c python-efl: elm.Object: cimport const_char and const_void from Cython.
SVN revision: 84336
2013-02-24 10:30:58 +00:00
Kai Huuhko 2e583b2377 python-efl: elm.Object and ObjectItem: Add None checks for parameters
where an extension is passed, remove extra None checks from strings.


SVN revision: 84335
2013-02-24 09:59:10 +00:00
Kai Huuhko 3e84bdaf88 python-efl: Add small optimizations and safety checks to elm.Genlist.
SVN revision: 84334
2013-02-24 09:13:56 +00:00
Kai Huuhko 6c3164748a python-efl: Correct elm.Genlist item insert functions' documentation.
SVN revision: 84326
2013-02-23 23:35:43 +00:00
Kai Huuhko 3d914c8197 python-efl: Add elm.Genlist sorted insert.
SVN revision: 84325
2013-02-23 23:21:25 +00:00
Kai Huuhko 80f4db6133 python-efl: Add 1.8 elm_need functions.
SVN revision: 84324
2013-02-23 18:49:05 +00:00
Kai Huuhko 0afa3be616 python-efl: Make use of the efl.eo facilities in Box and Diskselector.
SVN revision: 84323
2013-02-23 18:32:49 +00:00
Kai Huuhko 7244690519 python-efl: Add logging to widget_header.
SVN revision: 84314
2013-02-22 14:52:55 +00:00
Kai Huuhko 114fd2ac46 python-efl: Fix Slideshow from crashing.
SVN revision: 84313
2013-02-22 14:51:36 +00:00
Kai Huuhko 0e26186ef9 python-efl: cimport conversion functions from efl.eo.
SVN revision: 84311
2013-02-22 13:27:52 +00:00
Kai Huuhko e8a1b68b79 python-efl: Consolidate elm cb conversions.
SVN revision: 84309
2013-02-22 12:00:26 +00:00
Kai Huuhko 8573629c83 python-efl: Improve documentation for Actionslider and Background, check
return value in Bg.file.


SVN revision: 84308
2013-02-22 10:53:41 +00:00
Kai Huuhko 50d35b8519 python-efl: Clean up elm.general.
SVN revision: 84291
2013-02-21 17:24:13 +00:00
Kai Huuhko cc200904f6 python-efl: Document Entry anchors.
SVN revision: 84290
2013-02-21 16:11:51 +00:00
Kai Huuhko 7049e101ec python-efl: Fix Entry anchors.
SVN revision: 84280
2013-02-21 12:27:32 +00:00
Kai Huuhko 5a37efe711 python-efl: More clean up after the merge.
SVN revision: 84266
2013-02-20 21:30:18 +00:00
Kai Huuhko b320b094e7 python-efl: Fix generating documentation locally (without installing it).
Update documentation version strings.


SVN revision: 84244
2013-02-19 23:08:42 +00:00
Davide Andreoli 1e953366b5 PythonEFL:
* put _METHOD_DEPRECATED in eo
 * new slide_mode prop for Label, and deprecate the old one
 * updated label test to use new slide_mode prop



SVN revision: 84069
2013-02-18 22:20:09 +00:00
Davide Andreoli 711c41883f Python-EFL: edje.text/color_class_list are ok now.Unskip the unittests
SVN revision: 84068
2013-02-18 20:53:55 +00:00
Davide Andreoli a31bcf5bc2 remove old commented code
SVN revision: 84030
2013-02-17 20:55:19 +00:00
Davide Andreoli 50cf3b0a0a Python-EFL: make ecore Exe and FdHandler py3 friendly. svn ignore++
SVN revision: 84029
2013-02-17 20:53:51 +00:00
Kai Huuhko 37aba43fb1 python-efl: Copy over the experimental work on py-elm from my github repo:
- split modules, cuts down development time
 - Sphinx documentation
 - new work flow for list type widgets while keeping compatibility with the old one
 - input events now have functional propagation and support for mouse wheel events
 - assorted fixes



SVN revision: 84027
2013-02-17 19:35:20 +00:00
Davide Andreoli 43f9b5f319 Python-EFL: remove some deprecated stuff and cleanp all the warnings
SVN revision: 84008
2013-02-16 23:18:27 +00:00
Davide Andreoli 57cdd0a468 Python-EFL: Cleaned warnings in edje
SVN revision: 84006
2013-02-16 20:20:41 +00:00
Davide Andreoli 4a2117fc4f Python-EFL: cleanup well Evas_Objects registered callback when the obj is deleted
SVN revision: 84005
2013-02-16 19:49:07 +00:00
Davide Andreoli 3b15540891 Python-EFL: warnings-- in Eo
SVN revision: 84003
2013-02-16 17:05:00 +00:00
Davide Andreoli bfa991ca3f Python-EFL: _fruni() and friends not inlined anymore, this is just to remove compilation warnings. I hope will not make much difference
SVN revision: 84001
2013-02-16 16:41:47 +00:00
Davide Andreoli 2b75edb785 Python-EFL: edje_external now works with py3
SVN revision: 83980
2013-02-16 10:47:27 +00:00
Davide Andreoli 454d967f84 Python-EFL: Cleanup and enable compilation of emotion, cleaned also the test.
SVN revision: 83931
2013-02-14 23:05:55 +00:00
Davide Andreoli 744fab5c92 New line chars from CR/LF to LF
SVN revision: 83924
2013-02-14 20:54:53 +00:00
Davide Andreoli 69832134e7 Python-EFL: Unit test for edje external, and fixed the elm external tests
SVN revision: 83923
2013-02-14 20:48:34 +00:00
Davide Andreoli 744f1ee4be todo--
updated copyright in ALL the files



SVN revision: 83873
2013-02-13 19:16:02 +00:00
Davide Andreoli 8b86398860 Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.

Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.

All the docs has been stripped out because we want to use the new sphinx style 
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)

The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
   import evas
except:
   from efl import evas
...like is done in the gtk bindings

Some stuff has been leaved out on purpose, because was old stuff (like the hacked 
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.

Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)


I will contine the works in the next weeks and hope someone will help too.

NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
 python setup.py install
or
 python3 setup.py install


Enjoy
davemds




SVN revision: 83831
2013-02-11 22:32:50 +00:00