aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/conversions.h
Commit message (Collapse)AuthorAgeFilesLines
* Made SbkChar_Check macro safer with parenthesis.Marcelo Lira2012-03-081-5/+1
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* String::convertible renamed to String::isConvertible.Hugo Parente Lima2012-03-081-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fixed char conversion to work with both python 3.x and 2.xRenato Filho2012-03-081-3/+29
|
* Updated char conversion for works with python3 unicodes.Renato Filho2012-03-081-4/+9
|
* Update string usage to new Shiboken::String API.Renato Filho2012-03-081-6/+11
|
* Fix converter of std::map.Hugo Parente Lima2012-03-081-1/+1
|
* Using Py_TYPE macro instead of direct access to ob_type to work with Python ↵Hugo Parente Lima2012-03-081-4/+0
| | | | | | 2.x and 3.x. Enclosing PyCObject uses inside #ifdefs
* Added sbkpython.h to deal with conflicts and missing symbols between ↵Hugo Parente Lima2012-03-081-1/+1
| | | | Python2 and 3.
* Replaced all PyString_* by PyBytes_* as preparation for a Python 3.x port.Hugo Parente Lima2012-03-081-11/+11
|
* 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>
* 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>
* Remove SbkTypeInfo and CppObjectCopier structs, they aren't needed after the ↵Hugo Parente Lima2012-03-081-36/+1
| | | | fix on qt_metacall.
* Remove const version of Converters to avoid hidding generator bugs.Hugo Parente Lima2012-03-081-12/+0
|
* Namespace Shiboken::Wrapper renamed to Shiboken::Object.Hugo Parente Lima2012-03-081-8/+8
|
* namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2012-03-081-6/+6
|
* Rename SbkBaseType back to SbkObjectType.Hugo Parente Lima2012-03-081-5/+5
|
* Created private pointer for Shiboken Meta Type.Renato Araujo Oliveira Filho2012-03-081-17/+13
| | | | | | | Renamed ObjectType to BaseType. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* 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-081-5/+5
|
* Remove macro Shiboken_TypeCheckHugo Parente Lima2012-03-081-3/+1
|
* SbkBaseWrapperType renamed to SbkObjectType.Hugo Parente Lima2012-03-081-6/+6
|
* SbkBaseWrapperType and some other functions used by Python C-API moved ↵Hugo Parente Lima2012-03-081-1/+1
| | | | outside C++ namespaces.
* setCppPointer and getCppPointer moved to namespace Shiboken::WrapperHugo Parente Lima2012-03-081-5/+5
|
* Removed macros SbkBaseWrapper_instanceDict and SbkBaseWrapper_setInstanceDictHugo Parente Lima2012-03-081-2/+2
|
* Moved Shiboken::SbkBaseWrapper outside Shiboken namespace and added a ↵Hugo Parente Lima2012-03-081-2/+2
| | | | d-pointer to it.
* Create enum python types on the fly, avoiding generation of structs and ↵Hugo Parente Lima2012-03-081-3/+3
| | | | duplication of many C functions.
* pyenum.{h|cpp} moved to sbkenum.{h|cpp}Hugo Parente Lima2012-03-081-1/+1
|
* Simplifies the generated code removing the use of std::auto_ptr.Hugo Parente Lima2012-03-081-3/+3
|
* Removed unnecessary cast on copy function.renatofilho2012-03-081-1/+1
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Removes Converter<char>, because the missuse of it causes memory leak .Hugo Parente Lima2012-03-081-9/+0
|
* Implement generation support to target conversion.renatofilho2012-03-081-0/+4
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@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 bug#316 - "QAbstractItemModel.createIndex is broken"Hugo Parente Lima2010-09-011-3/+5
| | | | | | | | | | | | | | Use SbkNumber_Check instead of PyNumber_Check, because PyNumber_Check returns true for all user types. This commit also disable the generation of _Check macros and replaces all entries with Converter<T>::checkType. Those changes are on the same commit because SbkNumber_Check conflicts with a macro generated by "other" binding which binds a type named "Number". Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix the type resolver algorithm.Hugo Parente Lima2010-08-301-1/+5
| | | | | | | | | | | | | | | | | 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>
* Modified the void* converter to deal with all pointers as coming from Python.Marcelo Lira2010-08-031-14/+5
| | | | | | This is the common case, for the situation when C++ returns a never before seen void pointer it'll be necessary to write custom code to deal with the result.
* Create a new copy from object when convert from PyObject to const ref.Renato Filho2010-07-271-1/+12
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix char* converterRenato Filho2010-07-271-1/+25
| | | | | | | | Fix tests. Created warnning about return last ref of python object. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix segfault when dealing with converter(void *).Luciano Wolf2010-07-141-1/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed ref leak on list cpp conversion.Renato Filho2010-07-091-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix Converter<bool>::toCpp, to correctly convert number to boolean values.Hugo Parente Lima2010-07-061-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug#256 - "PySide does not support signals with containers."Hugo Parente Lima2010-06-291-0/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fixed checkType of int and floating point converters.Hugo Parente Lima2010-06-101-2/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Added Converter<T>::checkType.Hugo Parente Lima2010-06-091-0/+32
| | | | | | This method is needed because you can not call Converter<T>::isConvertible inside a Converter<Y>::isConvertible implementation, otherwise it'll create a 2-step implicit conversion.
* Only convert None to a null pointer when there aren't conversions defined ↵Hugo Parente Lima2010-04-061-3/+4
| | | | | | | for it. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Add support for multiple inheritance involving more than one C++ object.Hugo Lima2010-03-301-6/+7
|
* SbkBaseWrapper_New gets a non-const void pointer instead of a const one.Hugo Lima2010-03-301-2/+2
| | | | The motivation is simple, we will change this pointer a lot, so it must not be const.
* Fixes Converter<void*>::toPython method.Marcelo Lira2010-03-231-0/+2
| | | | | | | | The void* converter transforms a C++ NULL pointer in a Python None. An unit test for this case was added as well. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Bruno Araújo <bruno.araujo@openbossa.org>
* Converter<T*>::toCpp specialization now converts None to NULL pointer first.Marcelo Lira2010-03-221-1/+3
| | | | | | With the recent changes to Converter's behaviour, in particular to isConvertible method, Converter<T*>::toCpp must deal with Py_None values first.
* Speed up conversions of lists from python to c++ if the list classHugo Lima2010-03-181-0/+3
| | | | is binded by Shiboken (like QStringList).
* Added ObjectTypeReferenceConverter, so object-types can be used as references.Hugo Lima2010-03-181-0/+13
|