summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* Shiboken binary now responds to the "--version" argument.Marcelo Lira2011-01-313-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 Lira2011-01-311-1/+1
| | | | argument.
* Fix bug613 - "QSvgRenderer chooses QByteArray overload when given a file path"Hugo Parente Lima2011-01-311-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 Lima2011-01-281-9/+14
| | | | renames.
* Added the "%CPPTYPE" type system variable.Marcelo Lira2011-01-281-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 Lira2011-01-281-0/+1
| | | | %TYPE documentation was updated.
* Fix bug#640 - "(elasticnode) Crash in example elasticnodes.py"Hugo Parente Lima2011-01-251-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 Lima2011-01-244-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 Filho2011-01-192-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 Filho2011-01-171-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 Lira2011-01-111-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 Neto2011-01-101-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 Lima2011-01-071-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 Lima2011-01-041-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 Lira2011-01-031-1/+8
| | | | arguments.
* Add support for operator overload injection.Hugo Parente Lima2010-12-292-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 Lima2010-12-291-2/+2
|
* Add support to fix the bug#493 - "__eq__ and friends not implemented for ↵Hugo Parente Lima2010-12-291-1/+7
| | | | QKeyEvent == QKeySequence"
* Don't generate type resolvers using the const keyword.Hugo Parente Lima2010-12-291-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 Lima2010-12-281-7/+17
| | | | parameter"
* Used Qt4.7 code to normalize types for all previous Qt version.Renato Araujo Oliveira Filho2010-12-234-6/+323
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Removed '&' from type registration.Renato Araujo Oliveira Filho2010-12-231-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 Lira2010-12-234-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 Filho2010-12-221-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 Filho2010-12-221-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 Filho2010-12-221-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 Lima2010-12-201-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 ↵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-162-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 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>
* Generator now writes the proper variable name on C++ constructor calls.Marcelo Lira2010-12-061-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 Lima2010-12-032-30/+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-022-17/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Remove SbkTypeInfo and CppObjectCopier structs, they aren't needed after the ↵Hugo Parente Lima2010-12-012-14/+0
| | | | fix on qt_metacall.
* 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>
* Fix compilation without protect hack.Hugo Parente Lima2010-11-232-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 Filho2010-11-231-2/+1
|
* Merge branch 'fixapi'Hugo Parente Lima2010-11-233-84/+88
|\ | | | | | | | | | | | | | | | | 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 Lima2010-11-231-5/+5
| | | | | | | | const ref. value types and enums.
| * SbkBaseType_Type renamed to SbkObjectType_Type.Hugo Parente Lima2010-11-231-1/+1
| |
| * Namespace Shiboken::Wrapper renamed to Shiboken::Object.Hugo Parente Lima2010-11-232-26/+26
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2010-11-233-54/+58
| |
| * Rename SbkBaseType back to SbkObjectType.Hugo Parente Lima2010-11-192-14/+14
| |
* | 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>