summaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Removed unnecessary code to check the refcount of Python objects returned on ↵1.0.0-beta2Marcelo Lira2010-12-171-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 Lira2010-12-171-3/+1
| | | | | 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 Filho2010-12-161-21/+68
| | | | | | Fix signal register, to use arguments type name based on generated namespace. Fix bug #498.
* Generate code to release ownership on Python values returned to C++ on ↵Marcelo Lira2010-12-161-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 Lira2010-12-161-1/+1
|
* Replaced code generated on funtion getattro to function present onRenato Araujo Oliveira Filho2010-12-151-80/+4
| | | | | | libpyside. Fix bug #525.
* Fix object destruction process to avoid pass a invalid object during theRenato Araujo Oliveira Filho2010-12-141-1/+1
| | | | | | | | | __del__ function. Fix bug #505 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 Lima2010-12-131-24/+10
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Code generated for Qt's signals wrapping now deal with arguments with ↵Marcelo Lira2010-12-091-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>
* Write a simpler code to deal with dynamic QMetaObjects.Hugo Parente Lima2010-12-031-28/+11
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Remove cpp object copier as it was used by anyone and nobody missed him.Hugo Parente Lima2010-12-021-16/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Cast PySideSignal object to PyObject before calling Py_DECREF.1.0.0-beta1Marcelo Lira2010-11-251-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>
* Fixed generation with use of protect hack.Renato Araujo Oliveira Filho2010-11-231-2/+1
|
* Merge branch 'fixapi'Hugo Parente Lima2010-11-231-57/+55
|\ | | | | | | | | | | | | | | | | 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 Lima2010-11-231-1/+1
| |
| * Namespace Shiboken::Wrapper renamed to Shiboken::Object.Hugo Parente Lima2010-11-231-25/+25
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2010-11-231-30/+28
| |
| * Rename SbkBaseType back to SbkObjectType.Hugo Parente Lima2010-11-191-12/+12
| |
* | Fixed generation with AVOID_PROTECTED_HACK.Renato Araujo Oliveira Filho2010-11-231-24/+42
| | | | | | | | | | | | | | Fixes bug #476. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* | Fix merge mistakes:Renato Araujo Oliveira Filho2010-11-191-1/+1
|/ | | | | | * Replaces PySide::deleteDynamicQMetaObject by Shiboken::callCppDestructor<DynamicQMetaObject> * Shiboken namespace usage.
* Created private pointer for Shiboken Meta Type.Renato Araujo Oliveira Filho2010-11-191-64/+64
| | | | | | | 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 Filho2010-11-191-10/+19
| | | | | | | | Updated generator to new API. Fix bug #462 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Replaces PySide::deleteDynamicQMetaObject by ↵Hugo Parente Lima2010-11-181-1/+1
| | | | | | | Shiboken::callCppDestructor<DynamicQMetaObject> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Do not generate return type check when the return type was modified to PyObject.Hugo Parente Lima2010-11-111-1/+1
|
* Fix the metaObject method written by the generator after the changed in ↵Hugo Parente Lima2010-11-101-4/+4
| | | | libshiboken.
* Removed macros SbkBaseWrapper_Check and SbkBaseWrapper_CheckExact.Hugo Parente Lima2010-11-101-1/+1
|
* Variable SbkBaseWrapperType_Type renamed to SbkObjectType_TypeHugo Parente Lima2010-11-101-1/+1
|
* SbkBaseWrapper_Type variable renamed to SbkObject_TypeHugo Parente Lima2010-11-101-1/+1
|
* SbkBaseWrapperType renamed to SbkObjectType.Hugo Parente Lima2010-11-101-12/+12
|
* SbkBaseWrapper_TpNew renamed to SbkObjectTpNew, now using C linkage and ↵Hugo Parente Lima2010-11-101-1/+1
| | | | moved outside C++ namespace.
* SbkBaseWrapperType and some other functions used by Python C-API moved ↵Hugo Parente Lima2010-11-101-8/+8
| | | | outside C++ namespaces.
* Replace Shiboken::cppObjectIsInvalid by Shiboken::Wraper::isValidHugo Parente Lima2010-11-101-5/+5
|
* setCppPointer and getCppPointer moved to namespace Shiboken::WrapperHugo Parente Lima2010-11-101-1/+1
|
* Removed macros SbkBaseWrapper_instanceDict and SbkBaseWrapper_setInstanceDictHugo Parente Lima2010-11-101-2/+2
|
* SbkBaseWrapper renamed to SbkObjectHugo Parente Lima2010-11-101-7/+7
|
* Replaced SbkBaseWrapper_setOwnership by getOwnership and releaseOwnership ↵Hugo Parente Lima2010-11-101-3/+3
| | | | (both inside Shiboken:Wrapper namespace)
* Moved Shiboken::SbkBaseWrapper outside Shiboken namespace and added a ↵Hugo Parente Lima2010-11-101-6/+6
| | | | d-pointer to it.
* Create enum python types on the fly, avoiding generation of structs and ↵Hugo Parente Lima2010-11-101-112/+21
| | | | duplication of many C functions.
* Implemented support to dynamic slots on generated code.renatofilho2010-11-051-7/+29
| | | | | | | Fixes bug #451. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed code generation for functions virtual with know typerenatofilho2010-11-041-6/+22
| | | | | | | | | implementation. Fixes bug #449. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Updated code generation to new libpyside files.renatofilho2010-11-031-6/+6
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
* Updated to new libpyside Signal/Slot namespace.renatofilho2010-11-031-8/+7
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
* Don't use ref. on primitive types when using Converter<T>::toPython.Hugo Parente Lima2010-10-291-9/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Implemented signal instantiation during the getattr function.renatofilho2010-10-291-2/+12
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Marcelo Lira <marcelo.lira@openbossa.org>
* Uses CPP_SELF_VAR macro and replaces cpp_other by cppOther.Hugo Parente Lima2010-10-281-5/+5
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Uses a constant to define the cpp_arg variable, now called cppArg.Hugo Parente Lima2010-10-281-4/+4
|
* Simplifies the generated code removing the use of std::auto_ptr.Hugo Parente Lima2010-10-281-86/+32
|
* Implemented support to dynamic signals created on QML side.renatofilho2010-10-281-1/+33
| | | | | | | Fixes bug #437. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed GilState and ThreadSave code generation.renatofilho2010-10-281-7/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Release gil before call C++ function on virtual method.renatofilho2010-10-261-2/+2
| | | | | | | Fixes bug #423. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>