aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replaced use from QList to QSet in children list.Renato Araujo Oliveira Filho2012-03-081-2/+2
| | | | | | | Patch from farsmo <farsmo@sogetthis.com> Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#605 - "Using metaclasses with the PySide classes doesn't work"Hugo Parente Lima2012-03-081-2/+2
|
* Add Shiboken::Object::isValid(SbkObject* pyObj, bool throwPyError = true) ↵Hugo Parente Lima2012-03-081-0/+8
| | | | | | | | | | function to libshiboken. This function is needed to fix bug#552 when a libpyside code needs to check if a SbkObject is valid without set a Python error when it isn't. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Optimized setParent function.Renato Araujo Oliveira Filho2012-03-081-2/+2
| | | | | | | | | | Replaced use of find in the children list for check on the current child if his has a parent and if the parent is the same. Fixes bug #556 Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Initialize ShibokenObject private data.Renato Araujo Oliveira Filho2012-03-081-0/+3
| | | | | | | | | This avoid errors during the functions call which uses the private data. Fixes bug #589 Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Fix bug#554 - "Inner classes don't work and give us a segfault"Hugo Parente Lima2012-03-081-4/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Removed WITH_THREAD ifdefs, it causes a lot of warnings on Windows and was ↵Hugo Parente Lima2012-03-081-2/+0
| | | | always set by our buildsystem.
* Fixed comments typo.Renato Araujo Oliveira Filho2012-03-081-2/+2
|
* Fix object destruction process to avoid pass a invalid object during theRenato Araujo Oliveira Filho2012-03-081-11/+16
| | | | | | | | | __del__ function. Fix bug #505 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Finally fix bug#500 - "If an instance of QPrintDialog is created a deadlock ↵Hugo Parente Lima2012-03-081-1/+5
| | | | | | | happens on shutdown." Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Revert "Fix bug#500 - "If an instance of QPrintDialog is created a deadlock ↵Hugo Parente Lima2012-03-081-4/+1
| | | | | | happens on shutdown."" This reverts commit fb90a3df97b53f3ef4878d8beb719d4aa7b0c6cb.
* Fix bug#500 - "If an instance of QPrintDialog is created a deadlock happens ↵Hugo Parente Lima2012-03-081-2/+5
| | | | | | | on shutdown." Reviewer: Lauro Mora <lauro.neto@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Add subtype init hook.Hugo Parente Lima2012-03-081-2/+20
| | | | The hook is invoked every time the user creates a sub-type inherited from a Shiboken based type.
* Remove cpp object copier as it was used by anyone and nobody missed him.Hugo Parente Lima2012-03-081-12/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Add function Shiboken::ObjectType::getUserData(SbjObjectTyoe*)Hugo Parente Lima2012-03-081-0/+5
|
* Merge branch 'fixapi'Hugo Parente Lima2012-03-081-67/+68
|\ | | | | | | | | | | | | | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> Conflicts: generator/cppgenerator.cpp libshiboken/basewrapper.cpp libshiboken/basewrapper_p.h
| * SbkBaseType_Type renamed to SbkObjectType_Type.Hugo Parente Lima2012-03-081-6/+6
| |
| * Renamed some more internal objects and functions.Hugo Parente Lima2012-03-081-11/+11
| |
| * Namespace Shiboken::Wrapper renamed to Shiboken::Object.Hugo Parente Lima2012-03-081-10/+10
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2012-03-081-5/+5
| |
| * Rename SbkBaseType back to SbkObjectType.Hugo Parente Lima2012-03-081-37/+37
| |
* | Fixed generation with AVOID_PROTECTED_HACK.Renato Araujo Oliveira Filho2012-03-081-5/+4
|/ | | | | | | Fixes bug #476. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Created private pointer for Shiboken Meta Type.Renato Araujo Oliveira Filho2012-03-081-133/+263
| | | | | | | Renamed ObjectType to BaseType. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Rewrite parent control functions.Renato Araujo Oliveira Filho2012-03-081-133/+275
| | | | | | | | Updated generator to new API. Fix bug #462 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Added Shiboken::Wrapper::hasParentInfo function.Hugo Parente Lima2012-03-081-0/+5
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Changed signature of cppPointer to receive SbkObject* instead of PyObject*.Hugo Parente Lima2012-03-081-3/+2
|
* Added Shiboken::Wrapper::hasOwnership function.Hugo Parente Lima2012-03-081-0/+5
|
* SbkBaseWrapperPrivate renamed to SbkObjectPrivateHugo Parente Lima2012-03-081-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Variable SbkBaseWrapperType_Type renamed to SbkObjectType_TypeHugo Parente Lima2012-03-081-5/+5
|
* SbkBaseWrapper_Type variable renamed to SbkObject_TypeHugo Parente Lima2012-03-081-2/+2
|
* Rename some internal functions and structs.Hugo Parente Lima2012-03-081-10/+10
|
* SbkBaseWrapperType renamed to SbkObjectType.Hugo Parente Lima2012-03-081-19/+19
|
* SbkBaseWrapper_TpNew renamed to SbkObjectTpNew, now using C linkage and ↵Hugo Parente Lima2012-03-081-20/+21
| | | | moved outside C++ namespace.
* SbkBaseWrapperType and some other functions used by Python C-API moved ↵Hugo Parente Lima2012-03-081-136/+130
| | | | outside C++ namespaces.
* Fix camel case of decRefPyObjectlistHugo Parente Lima2012-03-081-4/+4
|
* Replace Shiboken::cppObjectIsInvalid by Shiboken::Wraper::isValidHugo Parente Lima2012-03-081-11/+10
|
* setCppPointer and getCppPointer moved to namespace Shiboken::WrapperHugo Parente Lima2012-03-081-24/+26
|
* Removed macros SbkBaseWrapper_instanceDict and SbkBaseWrapper_setInstanceDictHugo Parente Lima2012-03-081-3/+3
|
* SbkBaseWrapper renamed to SbkObjectHugo Parente Lima2012-03-081-41/+41
|
* Replaced SbkBaseWrapper_setOwnership by getOwnership and releaseOwnership ↵Hugo Parente Lima2012-03-081-26/+43
| | | | (both inside Shiboken:Wrapper namespace)
* Moved Shiboken::SbkBaseWrapper outside Shiboken namespace and added a ↵Hugo Parente Lima2012-03-081-49/+74
| | | | d-pointer to it.
* pyenum.{h|cpp} moved to sbkenum.{h|cpp}Hugo Parente Lima2012-03-081-1/+1
|
* Fixed Wrapper object parent invalidation process.renatofilho2012-03-081-16/+18
| | | | | | | Fixes bug #432. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed namespace lookup during the class generation.renatofilho2012-03-081-1/+5
| | | | | | | fixes bug #414. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#272 - "__del__ never called by python"Hugo Parente Lima2012-03-081-33/+8
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Implement support to object list on ownserhsip functions.renatofilho2012-03-081-2/+14
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Created a new rule to parent ownership.renatofilho2012-03-081-3/+21
| | | | | | | In the new rule if the child object is a Shiboken wrapper class, the object is not invalidade during the parent destructions, the binding manager will wait for object destructor to invalidade the wrapper. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Use a auxiliar pointer to do the things faster.renatofilho2012-03-081-11/+14
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Change the license boiler plates of all LGPL files removing the special ↵Hugo Parente Lima2010-09-091-20/+8
| | | | | | | exception. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix the type resolver algorithm.Hugo Parente Lima2010-08-301-19/+11
| | | | | | | | | | | | | | | | | The new algorithm do the following: - Try to use type_info on the object the get the object real name. - Try to find a type resolver with the name returned by type_info. - If a type resolver was found, get the python type. - Else, ask binding manager to resolve the type walking on all possible subclasses found in the inheritance tree. The binding manager has a graph representing the class inheritance tree. Note: This commit break the libshiboken ABI, but not the API. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>