aboutsummaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* Implemented support to qt_metacast function on qobjects.Renato Filho2012-03-083-1/+20
| | | | | | | fixs bug #872. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Added two new type system variables: %ISCONVERTIBLE and %CHECKTYPE.Marcelo Lira2012-03-081-2/+10
| | | | | | | | | | | | | | Currently the variables are replaced as follows: * %ISCONVERTIBLE[CPPTYPE] -> Shiboken::Converter<CPPTYPE>::isConvertible * %CHECKTYPE[CPPTYPE] -> Shiboken::Converter<CPPTYPE>::checkType Future improvements may change that, so having these variables is a good thing. The documentation was updated. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araujo <renato.filho@openbossa.org>
* Fixed substitution of method calls from user custom code for Qt's ↵Marcelo Lira2012-03-081-4/+13
| | | | | | | metaObject() method. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed injected code processing to avoid infinite recursion in virtual method ↵Marcelo Lira2012-03-081-0/+38
| | | | | | calls. Unit tests were also added.
* Fix overload decisor on rich-compare function.Renato Filho2012-03-081-9/+4
| | | | | | | Fixes bug #292. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 501 - "Shiboken generator doesn't use full qualified name (with :: ↵Hugo Parente Lima2012-03-082-52/+50
| | | | | | | prefix) on all places." Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 862 - "Problems when printing objects"Hugo Parente Lima2012-03-081-1/+20
|
* Make use of Shiboken::warning on virtual function.Renato Filho2012-03-081-3/+3
| | | | | | | | Shiboke uses Python warning to report any problems with virtural functions return conversion. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added Shiboken buffer interface.Hugo Parente Lima2012-03-082-1/+12
| | | | | | | | | | | | | This interface is just a wrapper to the differents API's provided by Python to deal with memory buffers in various versions of Python, so is recommended to use this API to deal with Python memory buffers instead of the CPython API. If you want to have a Python buffer as argument of any function just change the argument type to "PyBuffer" and the generator will handle it right regarding to type checking. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Updated generator to use removeReference function.Renato Filho2012-03-081-3/+8
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix error arg types in error messages.Hugo Parente Lima2012-03-081-1/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Generate code using the new pyside class DestroyListener.Renato Filho2012-03-081-2/+8
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Removed unused variables/functions.Hugo Parente Lima2012-03-081-2/+0
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Whitespace removalHugo Parente Lima2012-03-081-1/+1
|
* Use right argument variable name on keep reference when inside constructors.Hugo Parente Lima2012-03-081-0/+1
|
* Implemented keep-reference action 'add'.Renato Filho2012-03-081-3/+6
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Just use else if's instead of a sequence of if's.Hugo Parente Lima2012-03-081-4/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Improved garbage collector handling of Shiboken types.Marcelo Lira2012-03-082-5/+33
|
* Don't segfault when running with Qt4.5.Hugo Parente Lima2012-03-081-9/+14
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Replaced "isUserType" test for the correct "hasCppWrapper" before method calls.Marcelo Lira2012-03-081-2/+2
| | | | | | | | Also added an unit test for infinite recursion when duck punching a virtual method. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Don't set the tp_init when there are no public constructors available.Hugo Parente Lima2012-03-081-1/+5
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Small fix to number protocol code generation.Marcelo Lira2012-03-081-1/+1
|
* Only use qRegisterMetaType for Value types.Renato Filho2012-03-081-5/+8
| | | | | | | fixes bug #847. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix bug 813 - "Can not override connect method when subclassing QObject"Hugo Parente Lima2012-03-081-4/+22
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Obey type replacements in rich comparison functions.Hugo Parente Lima2012-03-081-1/+13
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Make use of the available and already allocated space for protocol ↵Marcelo Lira2012-03-082-134/+155
| | | | | | | | | | | | | | functiontions. The PyHeapTypeObject structure that is part of SbkObjectType already have allocated members for number, sequence, and mapping protocols, so let's use them. A tiny reduction in size ensues (I predict the modules will have 99.91% of their current size). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Don't create cyclic graphs when there are QString, PySequence and PyObjects ↵sb-1.0.2Hugo Parente Lima2012-03-081-1/+2
| | | | | | | involved into a single overload. Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Write graph info on temp dir when some a cyclic graph is found.Hugo Parente Lima2012-03-081-1/+10
|
* Overload decisor was improved to consider PySequences on modified function ↵Marcelo Lira2012-03-081-4/+22
| | | | | | | | | signatures. Unit tests were added as usual. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Renato Araujo <renato.filho@openbossa.org>
* Return false when a overload wasn't found on __eq__ and true when an ↵Hugo Parente Lima2012-03-081-3/+12
| | | | | | | overload wasn't found on __ne__. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug regarding to two overloads like: foo(char) and foo(const char*)Hugo Parente Lima2012-03-081-9/+14
| | | | | The overload decisor was unable to find the difference between them. This code was wrote by Setanta in an experimental branch, so kudos to him.
* Implemented generation code for mapping protocolRenato Filho2012-03-082-3/+95
| | | | | | | Fixex bug #743. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix bug 723 - "Missing QAbstractFileEngine.read and ↵Hugo Parente Lima2012-03-081-2/+2
| | | | | | | QAbstractFileEngine.readLine" Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 823 - "Shiboken doesn't support function call overloads"Hugo Parente Lima2012-03-082-6/+22
|
* Remove GCC 4.6 warning on basewrapper.cpp and shibokengenerator.cppHugo Parente Lima2012-03-081-2/+0
| | | | | libshiboken/basewrapper.cpp:212:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] generator/shibokengenerator.cpp:1118:9: warning: variable ‘numArgs’ set but not used [-Wunused-but-set-variable]
* 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-082-1/+9
| | | | | | | 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-083-4/+15
| | | | | | | | | | 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.