aboutsummaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
...
* The option "avoid protected hack" is now set via command line.sb-1.0.0-rc1Marcelo Lira2012-03-084-254/+215
| | | | | | | | 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-083-9/+55
| | | | 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>
* Overloaded call decision now consider inheritance: inheritor is checked ↵Marcelo Lira2012-03-083-18/+29
| | | | | | | | | | before ancestor. A couple of ShibokenGenerator methods were made "const" to allow them to be called from OverloadDecisor. 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-082-2/+4
| | | | | 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-083-7/+57
| | | | | | | 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>
* Shiboken binary now responds to the "--version" argument.Marcelo Lira2012-03-083-3/+21
| | | | | The version command line argument was previously answered by GeneratorRunner. This commit also generally updates some CMake files.
* Shiboken executable calls GeneratorRunner with the renamed "--generator-set" ↵Marcelo Lira2012-03-081-1/+1
| | | | argument.
* Fix bug613 - "QSvgRenderer chooses QByteArray overload when given a file path"Hugo Parente Lima2012-03-081-1/+5
| | | | | | | QString arguments will always be evaluated before QByteArray arguments. Reviewer: Luciano Wolf <lucianol.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix regression that caused overload sorting to not respect argument type ↵Hugo Parente Lima2012-03-081-9/+14
| | | | renames.
* Added the "%CPPTYPE" type system variable.Marcelo Lira2012-03-081-0/+4
| | | | | | | | | | %CPPTYPE will be converted to the original C++ name of a class, without any "Wrapper" suffix or namespace prefix. Documentation for the new variable was added as well. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Type system %TYPE variable is now available for class wide custom code.Marcelo Lira2012-03-081-0/+1
| | | | %TYPE documentation was updated.
* 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-084-3/+50
| | | | | | | 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-082-7/+20
| | | | | 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>
* The overload decisor must put enums before types implicitly convertible from ↵Marcelo Lira2012-03-081-0/+23
| | | | | | | | integers. Otherwise the enum value will be an acceptable argument for a class that expects an integer (signed or unsigned) to be implicitly built, and the enum argument will never be called.
* 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-082-17/+28
| | | | | 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-084-6/+323
| | | | | 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-084-15/+73
| | | | | | | | | | 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>
* Fix bug#484 - "Error compiling QtContacts 1.1 (problems with const ↵Hugo Parente Lima2012-03-081-4/+6
| | | | | | | QList<QVariant>)" Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@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++.
* 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.
* 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.
* Fix object destruction process to avoid pass a invalid object during theRenato Araujo Oliveira Filho2012-03-081-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 Lima2012-03-081-24/+10
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>