aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version Bump.sb-1.0.6Renato Filho2012-03-081-3/+3
|
* Not print warning if the typedef used on signal is QFlags.Renato Filho2012-03-081-1/+1
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Centralized the place where the TypeResolver creation is written.Marcelo Lira2012-03-081-11/+25
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Creates type registers for enums in createScopedEnum and createGlobalEnum.Marcelo Lira2012-03-082-23/+17
| | | | Instead of generating the register code.
* Fixed generator to consider conversion rules for the return type of wrapper ↵Marcelo Lira2012-03-086-8/+128
| | | | | | | | | methods. Tests were added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Added a test case for a bit-field structure member.Marcelo Lira2012-03-086-9/+26
| | | | Also moved a couple of tests from samplebindings to otherbindings.
* Added a test for an user defined primitive type from a required module.Marcelo Lira2012-03-085-2/+64
| | | | | Also sorted the tests order alphabetically and fixed inject code for SampleNamespaces' passReferenceToObjectType method.
* Added test for typedef of unsigned short.Marcelo Lira2012-03-083-0/+9
|
* Added test for user defined primitive type used as public class field.Marcelo Lira2012-03-082-3/+17
|
* Added test for implicit conversion with user's primitive type.Marcelo Lira2012-03-082-4/+14
|
* Added a method modification test dealing with code injection and user's ↵Marcelo Lira2012-03-083-0/+14
| | | | | | primitive type. The inject code has a %CONVERTTOPYTHON that receives an user's primitive type.
* CppGenerator's writeCopyFunction method now uses ↵Marcelo Lira2012-03-083-9/+22
| | | | | | | | | cpythonToPythonConversionFunction. The new overload of cpythonToPythonConversionFunction, that is. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* CppGenerator's method writeReprFunction now uses writeCppSelfDefinition.Marcelo Lira2012-03-081-10/+7
|
* Check for NULL pointer on transferOwnership function.Renato Filho2012-03-081-1/+2
| | | | | | | fixes bug #965. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
* Mark deprecated functions as deprecated.Hugo Parente Lima2012-03-083-4/+11
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Check for python debug enviroment to print debug messages onRenato Filho2012-03-081-1/+2
| | | | typeresolve class.
* Implemented unit test for deprecated functions.Renato Filho2012-03-083-0/+53
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Functions marked as deprecated will raises a python warning.Renato Filho2012-03-081-0/+7
| | | | Fixes bug #873.
* Improved the generation of argument conversion in modified functions.Marcelo Lira2012-03-089-62/+149
| | | | | | | | Added the SBK_UNUSED macro to libshiboken to prevent compilation warnings. An unit test was added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Improved type system converter variable usage in the sample test binding.Marcelo Lira2012-03-082-107/+106
| | | | ShibokenGenerator uses qDeleteAll for the cached meta types.
* CppGenerator's writeHashFunction now uses writeCppSelfDefinition.Marcelo Lira2012-03-081-4/+3
|
* Removed last js files.Hugo Parente Lima2012-03-083-731/+0
|
* Update pysidedocs theme to rely more on sphinx's base theme:Didier Raboud2012-03-0814-425/+72
| | | | | | | | | | - Drop files that are redundant with sphinx. - Add _templates/layout.html to add the needed customisation. - Update theme.conf to ensure theme inheritance. - Update pysidedocs.css to fit the theme with sphinx's basic theme. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Drop superflous .directory file.Didier Raboud2012-03-081-3/+0
|
* The type system converter variable replacement was moved to a single method.Marcelo Lira2012-03-082-30/+77
| | | | | | | | | Such a method is safer than the previous that used only a regular expression, because now it tries to build a meta type for the type found in the user's custom code. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Moved functionality from a couple of write function to ones that return strings.Marcelo Lira2012-03-082-35/+46
| | | | | The methods writeToCppConversion and writeToPythonConversion now use the services of cpythonToCppConversionFunction and cpythonToPythonConversionFunction.
* Method buildAbstractMetaTypeFromString now uses a cache for the types it builds.Marcelo Lira2012-03-084-47/+36
|
* Added tests for a class that its only constructor is the copy one.Marcelo Lira2012-03-088-1/+163
| | | | | | | | This simulates a situation found in QtWebKit's QWebDatabase and QWebSecurityOrigin classes. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Improved the generation of type indexes written to the generated module header.Marcelo Lira2012-03-083-13/+68
| | | | | | Now classes that are typedefs to template class instantiations are written twice with the same index: one with the aliased name, and other with the name composed of template and template arguments.
* Added tests for classes that are typedefs that implement a template class.Marcelo Lira2012-03-087-0/+189
| | | | This simulates the situation found in Qt's phonon module.
* The type checking now pays attention to the <no-null-pointer/> tag.Marcelo Lira2012-03-088-6/+54
| | | | An unit test was also added for it.
* Added an unit test to check if derived type destructors are freeing memory ↵Marcelo Lira2012-03-081-0/+49
| | | | twice.
* Test's names now have their module as prefix.Marcelo Lira2012-03-081-6/+7
| | | | So they can be ran by module.
* The result of rich comparisons are stored in a return variable before ↵Marcelo Lira2012-03-081-8/+9
| | | | converting them to Python.
* Added a test dealing with a reference to an Object Type passed to Python.Marcelo Lira2012-03-087-0/+140
| | | | | The test is for an Object Type that didn't existed in Python and is passed to it as C++ reference through a virtual method.
* Improved guessCPythonCheckFunction method to produce an AbstractMetaType for ↵Marcelo Lira2012-03-087-24/+102
| | | | | | | | | | known types. This is in opposition of simply returning a string with a custom type check. The details are in the docstring in ShibokenGenerator header. Also added a new modification test and refactored here and there in the sample binding type system.
* Included tests for added function signatures very similar to already ↵Marcelo Lira2012-03-086-17/+121
| | | | | | | | | | | | | | | existing ones. Specifically this causes the situation when there is in C++ a function with an argument that is a reference to a Value Type, and the user adds a very similar function with the same type, but passed as value. Example: C++ : function(const TYPE& a, int b) Added: function(TYPE) The return type of ShibokenGenerator::getArgumentReplacement() method was modified, because the argument object is more useful than its index.
* Added tests for custom conversion and buffer protocol.Marcelo Lira2012-03-0810-1/+601
| | | | It it inspired by some of PySide's QByteArray tests.
* Don't abort header generator if no classes were found.Hugo Parente Lima2012-03-081-3/+0
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Check if the directory exists before writing C++ module definition file.Hugo Parente Lima2012-03-081-0/+1
|
* Removed huge if block to ease the code readbility.Hugo Parente Lima2012-03-081-187/+190
|
* Fixed type system variable replacement for arguments removed with conversion ↵Marcelo Lira2012-03-088-56/+87
| | | | | | | | | | rule. Also added an array argument modification test, and moved AutoArrayPointer from libpyside to libshiboken. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Small visual improvements on writeArgumentNames().Marcelo Lira2012-03-081-10/+7
|
* Disassembled ShibokenGenerator's writeCodeSnips method.Marcelo Lira2012-03-084-296/+301
| | | | | | | | Also added writeConversionRule methods to CppGenerator. 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 compilation test for value type argument in a lshift operator.Marcelo Lira2012-03-081-0/+1
|
* Added test for removed pointer out argument.Marcelo Lira2012-03-087-5/+72
|
* Removed unnecessary indentation from generated overload selector switch.Marcelo Lira2012-03-081-19/+13
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Improved and fixed the setter and getter writer functions.Marcelo Lira2012-03-083-47/+46
| | | | Also added an unit test to a protected container property.
* Moved many variables names used in generated code to macros.Marcelo Lira2012-03-085-155/+150
| | | | | | | | | | | Also fixed ShibokenGenerator::pythonFunctionWrapperUsesListOfArguments() method to consider call operators. Fixed code snippet variable replacement for when there's only one Python argument in the function. And CppGenerator::writeArgumentsInitializer() was sanitized, with never used code erased. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Revamped the virtual method writer.Marcelo Lira2012-03-084-80/+82
| | | | | It's way less messy now, and uses writeTypeCheck() as it should have been doing from the beginning.