aboutsummaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid register Abstract types on QMetaTypes to avoid problems in QML.Renato Filho2012-03-081-1/+1
| | | | | | | Fix bug #814. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed 'operator--'.Renato Filho2012-03-081-1/+1
|
* Implement support to operator++;Renato Filho2012-03-081-1/+7
| | | | | | | Fixes bug #688. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added the type system variables %BEGIN_ALLOW_THREADS and %END_ALLOW_THREADS.Marcelo Lira2012-03-081-4/+4
| | | | | | | | | | Also moved the save and restore thread state lines to a macro in ShibokenGenerator header file. The type system variables documentation was updated accordingly. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed the argument conversion of modified virtual methods.Marcelo Lira2012-03-081-2/+13
| | | | | | | Wrong conversion code was being outputted to virtual method wrapper code when all arguments were removed. Unit tests were added as well.
* Added support for extra includes at module level.Marcelo Lira2012-03-081-3/+7
|
* Reverse operators raise NotImplemented error.Lauro Neto2012-03-081-0/+13
| | | | | If it's a reverse operator and the OverloadDecisor fails, raise NotImplementedError instead of TypeError.
* Set object returned by getter function child of the property owner.Hugo Parente Lima2012-03-081-0/+1
| | | | Doing this will invalidate the object then the property owner was deleted.
* Check for object validity on property getters and setters before using them.Hugo Parente Lima2012-03-081-0/+10
|
* Updated module reload test.Renato Filho2012-03-081-0/+1
| | | | | | | | | Avoid to load a module twice. Fixes bug #734. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Register class names without namespaces to fix the mess in Qt signal type names.Hugo Parente Lima2012-03-081-2/+15
| | | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Use buffer instead of uchar on TypeError messages.Hugo Parente Lima2012-03-081-0/+3
|
* Fix bug 706 - "dataChanged signal raise an incorrect TypeError"Hugo Parente Lima2012-03-081-2/+12
| | | | | | | Now we directly call qRegisterType for all types. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Handles the situation properly when a custom code has a result value ↵sb-1.0.0Marcelo Lira2012-03-081-1/+2
| | | | | | | | | | | attribution. If a method has a custom code that attributes a value to the Python result variable, Shiboken should not generate code with attribution to the said variable. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added a check on CppGenerator::writeClassDefinition for when there's no ↵Marcelo Lira2012-03-081-1/+1
| | | | constructor for a class.
* The option "avoid protected hack" is now set via command line.sb-1.0.0-rc1Marcelo Lira2012-03-081-140/+112
| | | | | | | | Instead of the old ugly way of compiling the behaviour forever using "#define". Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Shows "unicode" instead of "PyUnicode" on error messages.Hugo Parente Lima2012-03-081-0/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Add support to the remove attribute of reference-count tag.Hugo Parente Lima2012-03-081-6/+14
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 684 - "New-style signals does not accept signals with enums as ↵Hugo Parente Lima2012-03-081-9/+50
| | | | arguments."
* Fixed style of code on CppGenerator::writeReturnValueHeuristics method.Marcelo Lira2012-03-081-4/+4
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix string used in tp_name on inner types.Hugo Parente Lima2012-03-081-2/+3
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* The heuristics for return value parenting should be overridden by user changes.Marcelo Lira2012-03-081-9/+14
| | | | | | | | Whatever the user puts in the type system XML will take precedence over the generator heuristics. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Use action="set" instead of action="add" on reference-count tag.Hugo Parente Lima2012-03-081-1/+3
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Implemented support to iterator function generation.Renato Araujo Oliveira Filho2012-03-081-2/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed signal initialization for types with namespace and types definedRenato Araujo Oliveira Filho2012-03-081-9/+28
| | | | | | | | | by typedef. Fixes bug #657. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Don't write return heuristic when there's a parent tag with the returned ↵Hugo Parente Lima2012-03-081-6/+9
| | | | | | | object involved. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed a type on a warning about polymorphic-id-expression.Marcelo Lira2012-03-081-1/+1
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 616 - "error compiling when public and private methods differ by the ↵Hugo Parente Lima2012-03-081-3/+9
| | | | | | | const-ness" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix bug 655 - "bad re-implementations of QApplication.notify result in a ↵Hugo Parente Lima2012-03-081-1/+8
| | | | | | | SystemError" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug#640 - "(elasticnode) Crash in example elasticnodes.py"Hugo Parente Lima2012-03-081-3/+4
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj ↵Hugo Parente Lima2012-03-081-3/+38
| | | | | | | types?) returns True for empty instance; probably should be False" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix windows compilation.Renato Araujo Oliveira Filho2012-03-081-2/+1
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Used c++ pointer during the c++ class attribute get function.Renato Araujo Oliveira Filho2012-03-081-6/+28
| | | | | | | | 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>
* Fix SbkType name when setting exception in virtualLauro Neto2012-03-081-1/+1
| | | | | | | | Was generating SbkType<NAME> with '*' in NAME, leading to segfaults. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#530 - "Importing division from future breaks QPoint division"Hugo Parente Lima2012-03-081-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Release the gil for every C++ function call, ignoring allow-thread attribute ↵Hugo Parente Lima2012-03-081-17/+2
| | | | | | | on typesystem. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* A convertible check must be done on named arguments as it is done on regular ↵Marcelo Lira2012-03-081-1/+8
| | | | arguments.
* Add support for operator overload injection.Hugo Parente Lima2012-03-081-17/+23
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Use QByteArray instead of QString to save 1 pico second :-)Hugo Parente Lima2012-03-081-2/+2
|
* Add support to fix the bug#493 - "__eq__ and friends not implemented for ↵Hugo Parente Lima2012-03-081-1/+7
| | | | QKeyEvent == QKeySequence"
* Don't generate type resolvers using the const keyword.Hugo Parente Lima2012-03-081-4/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug#495 - "Broken rich compare operators if they use an object-type as ↵Hugo Parente Lima2012-03-081-7/+17
| | | | parameter"
* Used Qt4.7 code to normalize types for all previous Qt version.Renato Araujo Oliveira Filho2012-03-081-6/+7
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Removed '&' from type registration.Renato Araujo Oliveira Filho2012-03-081-3/+3
| | | | | Reviewer: Lauro Mora <lauro.neto@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Added support for promoting enums from removed namespaces to upper scope.Marcelo Lira2012-03-081-12/+30
| | | | | | | | | | Classes in namespaces marked not to be generated are always moved to upper scopes, the current modification add this same behaviour to enums. Tests were also added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed signal register function.Renato Araujo Oliveira Filho2012-03-081-2/+5
| | | | | | | Use translated type name as type, and exclude const from containers. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Use converter during generation only for primitives types which isRenato Araujo Oliveira Filho2012-03-081-8/+14
| | | | | | | impossible to convert using by Py_BuildValue. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Fixed use of python conversion for type with typedefs.Renato Araujo Oliveira Filho2012-03-081-3/+5
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* 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-081-3/+1
| | | | | The value returned from Python to C++ shouldn't have its reference counting decremented after Python transferring ownership to C++.