aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
Commit message (Collapse)AuthorAgeFilesLines
* Shiboken enums now have a tp_print representation.Marcelo Lira2012-03-081-1/+15
| | | | | | | | | | This fixes the bug #611[1], and an unit test was also added. [1] http://bugs.openbossa.org/show_bug.cgi?id=611 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Add Shiboken::Object::isValid(SbkObject* pyObj, bool throwPyError = true) ↵Hugo Parente Lima2012-03-082-1/+16
| | | | | | | | | | 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>
* Used c++ pointer during the c++ class attribute get function.Renato Araujo Oliveira Filho2012-03-081-2/+0
| | | | | | | | Now all function get for class attribute return the internal memory of the c++ attribute. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@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>
* Append python name to libshiboken output fileLauro Neto2012-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | libshiboken is strongly tied to the python it was compiled against. This commit adds the python name to the output file to make this connection explicit. The generator plugin, binary and includes are untouched as they don't depend on python. Also, Instead of installing the cmake info in a single file, ShibokenConfig.cmake will load the correct file (ShibokenConfig-<python name>.cmake) based on the value of PYTHON_BASENAME when cmake is called. The last shiboken installed will be the default as each install will overwrite ShibokenConfig.cmake. To select an specific python, call cmake with -DPYTHON_BASENAME=python2.6, for python2.6 release. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@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>
* Put __file__ on argv only when a empty list is given.Hugo Parente Lima2012-03-081-14/+22
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@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-082-3/+0
| | | | always set by our buildsystem.
* Print debug messages to stderr isntead of stdout.Hugo Parente Lima2012-03-081-4/+4
|
* Disable copy of ThreadStateSaver objects.Hugo Parente Lima2012-03-081-0/+3
|
* Fixed comments typo.Renato Araujo Oliveira Filho2012-03-082-3/+3
|
* Fix object destruction process to avoid pass a invalid object during theRenato Araujo Oliveira Filho2012-03-083-12/+19
| | | | | | | | | __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>
* Fix bug#513 - "Hardcoded bool return type for operator overloads"Hugo Parente Lima2012-03-081-2/+3
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@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>
* Added another overload for makeTuple, this time with just one argument.Hugo Parente Lima2012-03-081-1/+7
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Add subtype init hook.Hugo Parente Lima2012-03-083-3/+34
| | | | 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-083-20/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Removed useless stuff from TypeResolver.Hugo Parente Lima2012-03-082-34/+17
|
* Remove SbkTypeInfo and CppObjectCopier structs, they aren't needed after the ↵Hugo Parente Lima2012-03-083-49/+9
| | | | fix on qt_metacall.
* Remove objectDeleter function and use the well known ↵Hugo Parente Lima2012-03-081-7/+1
| | | | Shiboken::callCppDestructor.
* Remove const version of Converters to avoid hidding generator bugs.Hugo Parente Lima2012-03-081-12/+0
|
* Updated basewrapper.h docs.Hugo Parente Lima2012-03-081-8/+60
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Add function Shiboken::ObjectType::getUserData(SbjObjectTyoe*)Hugo Parente Lima2012-03-082-0/+10
|
* Added BindingManager::visitAllPyObjects function, used to visit all ↵Hugo Parente Lima2012-03-082-0/+21
| | | | | | | PyObjects with a function. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Speed up hasWrapper function using the find method instead of count.Hugo Parente Lima2012-03-081-1/+1
|
* Merge branch 'fixapi'Hugo Parente Lima2012-03-086-147/+148
|\ | | | | | | | | | | | | | | | | 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-082-7/+7
| |
| * Renamed some more internal objects and functions.Hugo Parente Lima2012-03-084-16/+16
| |
| * Namespace Shiboken::Wrapper renamed to Shiboken::Object.Hugo Parente Lima2012-03-085-26/+26
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2012-03-083-12/+12
| |
| * Rename SbkBaseType back to SbkObjectType.Hugo Parente Lima2012-03-086-90/+90
| |
* | Fixed generation with AVOID_PROTECTED_HACK.Renato Araujo Oliveira Filho2012-03-082-6/+5
|/ | | | | | | 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-087-272/+448
| | | | | | | 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-085-255/+330
| | | | | | | | Updated generator to new API. Fix bug #462 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Add operator= to AutoDecRef.Hugo Parente Lima2012-03-081-13/+34
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added Shiboken::Wrapper::hasParentInfo function.Hugo Parente Lima2012-03-082-0/+7
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Fix the metaObject method written by the generator after the changed in ↵Hugo Parente Lima2012-03-081-1/+3
| | | | libshiboken.
* Changed signature of cppPointer to receive SbkObject* instead of PyObject*.Hugo Parente Lima2012-03-083-9/+8
|
* Added Shiboken::Wrapper::hasOwnership function.Hugo Parente Lima2012-03-082-0/+6
|
* SbkBaseWrapperPrivate renamed to SbkObjectPrivateHugo Parente Lima2012-03-083-4/+4
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Remove macro Shiboken_TypeCheckHugo Parente Lima2012-03-082-8/+1
|
* Removed macros SbkBaseWrapper_Check and SbkBaseWrapper_CheckExact.Hugo Parente Lima2012-03-081-3/+0
|
* Variable SbkBaseWrapperType_Type renamed to SbkObjectType_TypeHugo Parente Lima2012-03-082-7/+7
|
* SbkBaseWrapper_Type variable renamed to SbkObject_TypeHugo Parente Lima2012-03-082-5/+5
|
* Rename some internal functions and structs.Hugo Parente Lima2012-03-081-10/+10
|
* SbkBaseWrapperType renamed to SbkObjectType.Hugo Parente Lima2012-03-087-56/+56
|
* SbkBaseWrapper_TpNew renamed to SbkObjectTpNew, now using C linkage and ↵Hugo Parente Lima2012-03-082-23/+23
| | | | moved outside C++ namespace.