aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
Commit message (Collapse)AuthorAgeFilesLines
* Fixed invalidate function in objects with refereces to other objects.Renato Filho2012-03-081-0/+29
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Revert "Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken ↵Hugo Parente Lima2012-03-083-132/+4
| | | | | | | | functionality through a Python module"." This reverts commit bc8448d7fb91733ff08c2a6a3a878702c14a24e0. The PSEP didn't reach the final version yet, so this commit can't be released.
* Fix bug 995 - "QDeclarativeView.itemAt returns faulty reference. (leading to ↵Hugo Parente Lima2012-03-085-9/+46
| | | | SEGFAULT)"
* Fixed cyclic dependency resolution.Renato Filho2012-03-081-16/+53
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken functionality ↵Hugo Parente Lima2012-03-083-4/+132
| | | | through a Python module".
* Creates type registers for enums in createScopedEnum and createGlobalEnum.Marcelo Lira2012-03-081-19/+17
| | | | Instead of generating the register code.
* Check for NULL pointer on transferOwnership function.Renato Filho2012-03-081-1/+2
| | | | | | | fixes bug #965. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
* Mark deprecated functions as deprecated.Hugo Parente Lima2012-03-083-4/+11
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Check for python debug enviroment to print debug messages onRenato Filho2012-03-081-1/+2
| | | | typeresolve class.
* Improved the generation of argument conversion in modified functions.Marcelo Lira2012-03-081-0/+2
| | | | | | | | Added the SBK_UNUSED macro to libshiboken to prevent compilation warnings. An unit test was added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed type system variable replacement for arguments removed with conversion ↵Marcelo Lira2012-03-081-1/+14
| | | | | | | | | | rule. Also added an array argument modification test, and moved AutoArrayPointer from libpyside to libshiboken. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added functions to provide a cleaner enum and flags initialization.Marcelo Lira2012-03-082-0/+110
| | | | | | | | | | | The functions are: Shiboken::Enum::createGlobalEnum() Shiboken::Enum::createScopedEnum() Shiboken::Enum::createGlobalEnumItem() Shiboken::Enum::createScopedEnumItem() Also updated the generator to make use of them.
* Added a function to initialize a new wrapper type and add it to a module or ↵Marcelo Lira2012-03-082-3/+55
| | | | | | | | | | enclosing class. The class register writer was updated to use the new ObjectType::introduceWrapperType(). Types are now created and registered via the introduceWrapperType() function. I also did a little refactoring on CppGenerator::writeClassRegister.
* Introduces new API to create and import Python modules.Marcelo Lira2012-03-086-0/+157
| | | | | | | | | | | | | The Shiboken::Module namespace also provides management of module types, including the communication of types among dependent modules. Module::create() will call Shiboken::init(), so this can be removed from the generated module's source code. This deprecates the old Shiboken::importModule() function. The generation of module initialization code was updated to use the new Shiboken::Module functions.
* Check for PYTHONVERBOSE enviroment var to print debug message on bindingRenato Filho2012-03-081-9/+11
| | | | | | | manager exit. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 939 - "Shiboken::importModule must verify if PyImport_ImportModule ↵Hugo Parente Lima2012-03-081-2/+5
| | | | | | | succeeds" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Improved documentation on ObjectType's cast related functions.Marcelo Lira2012-03-082-9/+22
|
* Replaced trailing space by a period in documentation comment.Marcelo Lira2012-03-082-4/+4
| | | | | Also removed other trailing space elsewhere and fixed some typos in the comments.
* Now the generated code stores the enum cpp name on the PyThon type.Renato Filho2012-03-082-8/+35
| | | | | | | | | | | | This is necessary for finding out the enum name during the signal match function. Fixed the signal register function for signals with default values. Fixes bug #903. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Cleared cptr data during the cpp object destruction.Renato Filho2012-03-081-7/+15
| | | | | | This avoid problems when the same addres was used late in the program. Fixes bug #904.
* Fix refleak during the parent c++ object destruction.Renato Filho2012-03-081-1/+13
| | | | | | | Fixes bug #893. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix object wrapper deletion.Renato Filho2012-03-081-8/+9
| | | | | | | Fixes bug #356. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Dealloc Python object before calling the C++ destructor.Hugo Parente Lima2012-03-082-12/+33
| | | | | | | | | | | This will avoid the problem of having Python objects with ref count zero on binding manager while Python code using these objects can be triggered by the C++ object destruction. This commit makes DestroyListenner class unused in whole PySide project, probably it will be marked as deprecated in futher commits. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Removed random unreadable comment.Hugo Parente Lima2012-03-081-3/+0
|
* Created Shiboken::warning function.Renato Filho2012-03-082-0/+35
| | | | | | | This is a help function to make able call python warning with formatted strings. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added Shiboken buffer interface.Hugo Parente Lima2012-03-084-0/+123
| | | | | | | | | | | | | This interface is just a wrapper to the differents API's provided by Python to deal with memory buffers in various versions of Python, so is recommended to use this API to deal with Python memory buffers instead of the CPython API. If you want to have a Python buffer as argument of any function just change the argument type to "PyBuffer" and the generator will handle it right regarding to type checking. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* optimized keepreference function.Renato Filho2012-03-082-17/+27
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Created the function 'removeReference', used to remove a specificRenato Filho2012-03-082-0/+24
| | | | | | | reference from other object. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Generate code using the new pyside class DestroyListener.Renato Filho2012-03-081-2/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Removed unused variables/functions.Hugo Parente Lima2012-03-081-12/+0
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Defined Shiboken.ObjectType tp_setattro to PyObject_GenericSetAttr.Marcelo Lira2012-03-081-1/+1
| | | | | | | | This fixes bug 634. http://bugs.pyside.org/show_bug.cgi?id=634 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed keep reference funcion.Renato Filho2012-03-081-6/+8
| | | | | | | | | | The keepReference function does not increase the referece of all objects if the argument is a list. Fixes bug #854. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Improved garbage collector handling of Shiboken types.Marcelo Lira2012-03-081-8/+27
|
* Improved the SbkDbg to avoid throwing exceptions when showing an object.Marcelo Lira2012-03-083-2/+19
| | | | | | | Also added a new Shiboken::Object::isValid signature to help. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Fixed enum repr, print functions.Renato Filho2012-03-081-13/+18
| | | | | | | fixes bug #654. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Remove GCC 4.6 warning on basewrapper.cpp and shibokengenerator.cppHugo Parente Lima2012-03-081-2/+2
| | | | | libshiboken/basewrapper.cpp:212:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] generator/shibokengenerator.cpp:1118:9: warning: variable ‘numArgs’ set but not used [-Wunused-but-set-variable]
* Check for old-style bases before calling tp_newsb-1.0.1Lauro Neto2012-03-081-10/+22
| | | | | | | | | | | | | Instead of creating the type instance and them checking for old-style base classes, check for them in the beginning. The later check was causing the new type object to "leak" and failing an assert in the garbage collector. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Don't return a overload method if the object is dieing.Hugo Parente Lima2012-03-081-1/+3
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Do nothing when trying to make an valid object valid twice.Hugo Parente Lima2012-03-081-1/+1
|
* Updated module reload test.Renato Filho2012-03-081-3/+8
| | | | | | | | | Avoid to load a module twice. Fixes bug #734. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed parentInfo cleanup.Renato Filho2012-03-081-3/+6
| | | | | | | Fixes bug #735. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 693 - "Heap corruption or double free reported on program exit"Hugo Parente Lima2012-03-083-1/+28
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug in TypeResolver::getType function.Hugo Parente Lima2012-03-081-2/+1
| | | | The function was always using a empty string.
* Check for class initialization on function Object.isValid.Renato Filho2012-03-082-16/+45
| | | | | | | Fix bug #696. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Avoid declar shiboken classes derived from old style objects.Renato Filho2012-03-081-0/+11
| | | | | | | Fixes bug #704. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* SbkNumber_Check now makes use of PyNumber_Check.Marcelo Lira2012-03-081-1/+3
| | | | | | | Plus some provisions to handle old-style classes. Reviewed by Bruno Araújo <bruno.araujo@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Replaced use from QList to QSet in children list.Renato Araujo Oliveira Filho2012-03-082-3/+3
| | | | | | | Patch from farsmo <farsmo@sogetthis.com> Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed enum __repr__ function.Renato Araujo Oliveira Filho2012-03-082-9/+33
| | | | | | | fixes bug #617. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Use SBK_PYTHON_INCLUDE_DIR instead of PYTHON_INCLUDE_DIRS or ↵Hugo Parente Lima2012-03-081-1/+1
| | | | | | | PYTHON_INCLUDE_PATH. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Fix bug#605 - "Using metaclasses with the PySide classes doesn't work"Hugo Parente Lima2012-03-081-2/+2
|