aboutsummaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* Used SignalManager function to retrieve MetaObjectRenato Filho2012-03-081-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
* Check if need to use placement new for types that inherits QObject due to ↵Hugo Parente Lima2012-03-081-5/+12
| | | | | | | QML (qmlRegisterType) function. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* More convenience functions added. More refactoring. Code more readable.Marcelo Lira2012-03-084-25/+59
| | | | | | | | ShibokenGenerator::isPointer() ShibokenGenerator::isWrapperType() Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added convenience functions to improve code readability.Marcelo Lira2012-03-083-12/+39
| | | | | | | | | | | | | | | | Checking if a type is an Object Type is a very common task, followed by asking if a type is a pointer to a type that has a Python wrapper. These functions solve the problem: ShibokenGenerator::isObjectType(type) ShibokenGenerator::isPointerToWrapperType(type) I refactored the generator code to make use of those functions. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed typo in generated code.Marcelo Lira2012-03-081-4/+4
|
* Improved code readability in CppGenerator::writeVirtualMethodNative.Marcelo Lira2012-03-081-4/+4
|
* Replaced trailing space by a period in documentation comment.Marcelo Lira2012-03-081-1/+1
| | | | | Also removed other trailing space elsewhere and fixed some typos in the comments.
* Propagate default args modification during the overload data descisor.Renato Filho2012-03-083-12/+35
| | | | | | | Fix bug #919. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Write type indexes in an ABI safe way.Hugo Parente Lima2012-03-082-12/+11
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix enum qMetaType register.Renato Filho2012-03-081-5/+6
| | | | | | | fix bug #886. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Make sure register QMetaObject before QObject.Renato Filho2012-03-081-2/+36
| | | | | | | Remove all staticMetaObject form know types. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Move meta object creation afeter type register.Renato Filho2012-03-081-5/+5
|
* Now the generated code stores the enum cpp name on the PyThon type.Renato Filho2012-03-081-6/+5
| | | | | | | | | | | | This is necessary for finding out the enum name during the signal match function. Fixed the signal register function for signals with default values. Fixes bug #903. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Dealloc Python object before calling the C++ destructor.Hugo Parente Lima2012-03-081-6/+2
| | | | | | | | | | | This will avoid the problem of having Python objects with ref count zero on binding manager while Python code using these objects can be triggered by the C++ object destruction. This commit makes DestroyListenner class unused in whole PySide project, probably it will be marked as deprecated in futher commits. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Recognize more types on error messages pretty printing them.Hugo Parente Lima2012-03-081-0/+12
|
* 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]