Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Made SbkChar_Check macro safer with parenthesis. | Marcelo Lira | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -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.x | Renato Filho | 2012-03-08 | 1 | -3/+29 |
| | |||||
* | Updated char conversion for works with python3 unicodes. | Renato Filho | 2012-03-08 | 1 | -4/+9 |
| | |||||
* | Update string usage to new Shiboken::String API. | Renato Filho | 2012-03-08 | 1 | -6/+11 |
| | |||||
* | Fix converter of std::map. | Hugo Parente Lima | 2012-03-08 | 1 | -1/+1 |
| | |||||
* | Using Py_TYPE macro instead of direct access to ob_type to work with Python ↵ | Hugo Parente Lima | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -1/+1 |
| | | | | Python2 and 3. | ||||
* | Replaced all PyString_* by PyBytes_* as preparation for a Python 3.x port. | Hugo Parente Lima | 2012-03-08 | 1 | -11/+11 |
| | |||||
* | SbkNumber_Check now makes use of PyNumber_Check. | Marcelo Lira | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -36/+1 |
| | | | | fix on qt_metacall. | ||||
* | Remove const version of Converters to avoid hidding generator bugs. | Hugo Parente Lima | 2012-03-08 | 1 | -12/+0 |
| | |||||
* | Namespace Shiboken::Wrapper renamed to Shiboken::Object. | Hugo Parente Lima | 2012-03-08 | 1 | -8/+8 |
| | |||||
* | namespace Shiboken::BaseType renamed to Shiboken::ObjectType. | Hugo Parente Lima | 2012-03-08 | 1 | -6/+6 |
| | |||||
* | Rename SbkBaseType back to SbkObjectType. | Hugo Parente Lima | 2012-03-08 | 1 | -5/+5 |
| | |||||
* | Created private pointer for Shiboken Meta Type. | Renato Araujo Oliveira Filho | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -1/+3 |
| | | | | libshiboken. | ||||
* | Changed signature of cppPointer to receive SbkObject* instead of PyObject*. | Hugo Parente Lima | 2012-03-08 | 1 | -5/+5 |
| | |||||
* | Remove macro Shiboken_TypeCheck | Hugo Parente Lima | 2012-03-08 | 1 | -3/+1 |
| | |||||
* | SbkBaseWrapperType renamed to SbkObjectType. | Hugo Parente Lima | 2012-03-08 | 1 | -6/+6 |
| | |||||
* | SbkBaseWrapperType and some other functions used by Python C-API moved ↵ | Hugo Parente Lima | 2012-03-08 | 1 | -1/+1 |
| | | | | outside C++ namespaces. | ||||
* | setCppPointer and getCppPointer moved to namespace Shiboken::Wrapper | Hugo Parente Lima | 2012-03-08 | 1 | -5/+5 |
| | |||||
* | Removed macros SbkBaseWrapper_instanceDict and SbkBaseWrapper_setInstanceDict | Hugo Parente Lima | 2012-03-08 | 1 | -2/+2 |
| | |||||
* | Moved Shiboken::SbkBaseWrapper outside Shiboken namespace and added a ↵ | Hugo Parente Lima | 2012-03-08 | 1 | -2/+2 |
| | | | | d-pointer to it. | ||||
* | Create enum python types on the fly, avoiding generation of structs and ↵ | Hugo Parente Lima | 2012-03-08 | 1 | -3/+3 |
| | | | | duplication of many C functions. | ||||
* | pyenum.{h|cpp} moved to sbkenum.{h|cpp} | Hugo Parente Lima | 2012-03-08 | 1 | -1/+1 |
| | |||||
* | Simplifies the generated code removing the use of std::auto_ptr. | Hugo Parente Lima | 2012-03-08 | 1 | -3/+3 |
| | |||||
* | Removed unnecessary cast on copy function. | renatofilho | 2012-03-08 | 1 | -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 Lima | 2012-03-08 | 1 | -9/+0 |
| | |||||
* | Implement generation support to target conversion. | renatofilho | 2012-03-08 | 1 | -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 Lima | 2010-09-09 | 1 | -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 Lima | 2010-09-01 | 1 | -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 Lima | 2010-08-30 | 1 | -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 Lira | 2010-08-03 | 1 | -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 Filho | 2010-07-27 | 1 | -1/+12 |
| | | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> | ||||
* | Fix char* converter | Renato Filho | 2010-07-27 | 1 | -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 Wolf | 2010-07-14 | 1 | -1/+1 |
| | | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Fixed ref leak on list cpp conversion. | Renato Filho | 2010-07-09 | 1 | -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 Lima | 2010-07-06 | 1 | -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 Lima | 2010-06-29 | 1 | -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 Lima | 2010-06-10 | 1 | -2/+2 |
| | | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Added Converter<T>::checkType. | Hugo Parente Lima | 2010-06-09 | 1 | -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 Lima | 2010-04-06 | 1 | -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 Lima | 2010-03-30 | 1 | -6/+7 |
| | |||||
* | SbkBaseWrapper_New gets a non-const void pointer instead of a const one. | Hugo Lima | 2010-03-30 | 1 | -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 Lira | 2010-03-23 | 1 | -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 Lira | 2010-03-22 | 1 | -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 class | Hugo Lima | 2010-03-18 | 1 | -0/+3 |
| | | | | is binded by Shiboken (like QStringList). | ||||
* | Added ObjectTypeReferenceConverter, so object-types can be used as references. | Hugo Lima | 2010-03-18 | 1 | -0/+13 |
| |