aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-0810-273/+224
| | | | | | | | 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>
* Module reload test now considers .pyo files (in addition to .pyc ones).Marcelo Lira2012-03-081-1/+4
|
* SbkNumber_Check now makes use of PyNumber_Check.Marcelo Lira2012-03-081-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>
* Added test to certify that old-style classes will not be accepted as numbers ↵Marcelo Lira2012-03-081-0/+76
| | | | (unless they are).
* Added a test to numpy scalar type being accepted as Python scalar.Marcelo Lira2012-03-081-0/+30
|
* 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-083-3/+9
| | | | | 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>
* Added test for overload decision situation involving inheritance.Marcelo Lira2012-03-083-1/+17
|
* Marked ObjectType and ObjectModel, from the sample test lib, as explicit.Marcelo Lira2012-03-082-2/+2
|
* Use action="set" instead of action="add" on reference-count tag.Hugo Parente Lima2012-03-082-2/+4
| | | | | 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>
* Update apiextractor/generatorrunner dependency version.Renato Araujo Oliveira Filho2012-03-081-2/+2
|
* Replaced use from QList to QSet in children list.Renato Araujo Oliveira Filho2012-03-082-3/+3
| | | | | | | Patch from farsmo <farsmo@sogetthis.com> Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed Cmake files used to find the library after the installation.sb-1.0.0-beta5Renato Araujo Oliveira Filho2012-03-082-10/+11
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@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-086-13/+83
| | | | | | | 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>
* Test bindings project files modified to use key/value pair text files.Marcelo Lira2012-03-086-50/+39
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Test bindings now use project files instead of generator command line options.Marcelo Lira2012-03-084-19/+55
|
* Shiboken binary now responds to the "--version" argument.Marcelo Lira2012-03-085-5/+25
| | | | | The version command line argument was previously answered by GeneratorRunner. This commit also generally updates some CMake files.
* Added SHIBOKEN_BINARY variable to CMake config file.Marcelo Lira2012-03-083-2/+8
| | | | | | | | It points to the Shiboken generator executable so the users can use it instead of calling GeneratorRunner plus a parameter pointing to Shiboken generator module. Also fixed generator_location variable on shiboken.pc file.
* Replaced tabs with spaces on cmake file.Marcelo Lira2012-03-081-5/+4
|
* Shiboken executable calls GeneratorRunner with the renamed "--generator-set" ↵Marcelo Lira2012-03-083-3/+6
| | | | 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-084-9/+31
| | | | renames.
* Created unit test for enum.__repr__ function.Renato Araujo Oliveira Filho2012-03-081-0/+10
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed enum __repr__ function.Renato Araujo Oliveira Filho2012-03-082-9/+33
| | | | | | | fixes bug #617. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added the "%CPPTYPE" type system variable.Marcelo Lira2012-03-082-0/+16
| | | | | | | | | | %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-082-2/+3
| | | | %TYPE documentation was updated.
* Use SBK_PYTHON_INCLUDE_DIR instead of PYTHON_INCLUDE_DIRS or ↵Hugo Parente Lima2012-03-085-11/+11
| | | | | | | PYTHON_INCLUDE_PATH. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Fix bug#605 - "Using metaclasses with the PySide classes doesn't work"Hugo Parente Lima2012-03-082-2/+35
|
* 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-087-7/+96
| | | | | | | 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 bug#636 - "Unable to navigate back to the main site from the generated ↵Hugo Parente Lima2012-03-082-5/+3
| | | | documentation"
* Update module version dependency.Renato Araujo Oliveira Filho2012-03-081-2/+2
|
* Updated apiextractor and generatorrunner version dependency.sb-1.0.0-beta4Renato Araujo Oliveira Filho2012-03-081-3/+3
|
* Shiboken enums now have a tp_print representation.Marcelo Lira2012-03-082-1/+29
| | | | | | | | | | This fixes the bug #611[1], and an unit test was also added. [1] http://bugs.openbossa.org/show_bug.cgi?id=611 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added test for module reloading.Marcelo Lira2012-03-082-0/+52
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Add Shiboken::Object::isValid(SbkObject* pyObj, bool throwPyError = true) ↵Hugo Parente Lima2012-03-082-1/+16
| | | | | | | | | | function to libshiboken. This function is needed to fix bug#552 when a libpyside code needs to check if a SbkObject is valid without set a Python error when it isn't. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added more test cases for protected attributes.Marcelo Lira2012-03-082-7/+51
| | | | | | | | The tests are meant to be useful when compiled without the protected hack or on the win32 platform. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@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>