aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Removed unnecessary code to check the refcount of Python objects returned on ↵sb-1.0.0-beta2Marcelo Lira2012-03-081-13/+1
| | | | | | | virtual methods. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed code generation for virtual method ownership release of returned value.Marcelo Lira2012-03-082-4/+2
| | | | | The value returned from Python to C++ shouldn't have its reference counting decremented after Python transferring ownership to C++.
* Fix register type function to register the type with two names.Renato Araujo Oliveira Filho2012-03-082-21/+72
| | | | | | Fix signal register, to use arguments type name based on generated namespace. Fix bug #498.
* Added tests to check the release of ownership of objects returned from Python.Marcelo Lira2012-03-0810-11/+185
| | | | | | | | | | | The ObjectModel test class was introduced to check if the transference of ownership of objects returned from Python to C++ through a virtual method is working properly. Also updated the other test that uses the ObjectView class. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Generate code to release ownership on Python values returned to C++ on ↵Marcelo Lira2012-03-081-0/+10
| | | | | | | | | | | virtual methods. In other words, the following type system snippet will now be recognized by the generator: <modify-argument index="return"> <define-ownership class="native" owner="c++"/> </modify-argument>
* Fixed typo on generated error message.Marcelo Lira2012-03-081-1/+1
|
* Replaced code generated on funtion getattro to function present onRenato Araujo Oliveira Filho2012-03-081-80/+4
| | | | | | libpyside. Fix bug #525.
* 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-084-13/+20
| | | | | | | | | __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-0810-27/+245
| | | | | 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>
* Code generated for Qt's signals wrapping now deal with arguments with ↵Marcelo Lira2012-03-081-0/+7
| | | | | | | | | | | | | | | | default values. For instance, the "QAbstractButton::clicked(bool checked = false)" signal, can be connected using the two signatures "clicked()" and "clicked(bool)". Using button.clicked.connect(callback_function) could cause the binding to connect to "clicked(bool)", instead of "clicked()", leaving the user unaware of it. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@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>
* Test case for proper generation of constructor altered by conversion-rule tag.Marcelo Lira2012-03-085-0/+98
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Generator now writes the proper variable name on C++ constructor calls.Marcelo Lira2012-03-081-1/+2
| | | | | | When a conversion rule is provided for a constructor argument the C++ constructor, for which the conversion rule doesn't apply, is generated with wrong argument names. This commit solves this.
* Write a simpler code to deal with dynamic QMetaObjects.Hugo Parente Lima2012-03-082-30/+11
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@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-085-37/+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-085-63/+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
|
* Fix shiboken version in doc generation.Hugo Parente Lima2012-03-081-2/+2
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Cast PySideSignal object to PyObject before calling Py_DECREF.sb-1.0.0-beta1Marcelo Lira2012-03-081-1/+1
| | | | | | | | | | This is done because the Py_DECREF macro from Python 2.5 doesn't cast the argument to "PyObject*" as 2.6 does. This is a problem for PySideSignal objects, for this struct is private, having only the forward declaration visible. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix compilation errors on Windows.Hugo Parente Lima2012-03-082-5/+5
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Bump ApiExtractor dependency to 0.9.0Lauro Neto2012-03-081-1/+1
|
* 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
|
* Fix last commit, compre was a fragile and stupid solution.Hugo Parente Lima2012-03-082-1/+3
|
* Fix value of variable AVOID_PROTECTED_HACK.Hugo Parente Lima2012-03-081-2/+3
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix compilation without protect hack.Hugo Parente Lima2012-03-082-5/+23
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed generation with use of protect hack.Renato Araujo Oliveira Filho2012-03-081-2/+1
|
* Merge branch 'fixapi'Hugo Parente Lima2012-03-0810-243/+246
|\ | | | | | | | | | | | | | | | | 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
| * Do not use const and ref when writing converters for object-types, qflags, ↵Hugo Parente Lima2012-03-081-5/+5
| | | | | | | | const ref. value types and enums.
| * SbkBaseType_Type renamed to SbkObjectType_Type.Hugo Parente Lima2012-03-083-8/+8
| |
| * 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-088-55/+55
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2012-03-087-72/+76
| |
| * Rename SbkBaseType back to SbkObjectType.Hugo Parente Lima2012-03-088-104/+104
| |
* | Fixed generation with AVOID_PROTECTED_HACK.Renato Araujo Oliveira Filho2012-03-083-30/+47
| | | | | | | | | | | | | | Fixes bug #476. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* | Created debug function on samle bindings.Renato Araujo Oliveira Filho2012-03-082-5/+29
| | | | | | | | | | | | | | | | This function 'cacheSize()' can be used to check how many objects still registered on BindingManager. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* | Fixes SHIBOKEN_PYTHON_INCLUDE_DIR variable for cmake versions lesser than 2.8.Marcelo Lira2012-03-082-3/+7
| | | | | | | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* | Fix merge mistakes:Renato Araujo Oliveira Filho2012-03-081-1/+1
|/ | | | | | * Replaces PySide::deleteDynamicQMetaObject by Shiboken::callCppDestructor<DynamicQMetaObject> * Shiboken namespace usage.
* Created private pointer for Shiboken Meta Type.Renato Araujo Oliveira Filho2012-03-089-339/+515
| | | | | | | 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-086-265/+349
| | | | | | | | Updated generator to new API. Fix bug #462 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Updated some tests to work with new API.Renato Araujo Oliveira Filho2012-03-082-4/+4
|