aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add support for static fields.Hugo Parente Lima2010-07-021-1/+21
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Do not write setters for const fields.Hugo Parente Lima2010-07-011-5/+7
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug#256 - "PySide does not support signals with containers."Hugo Parente Lima2010-06-291-0/+18
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix overload decisor written on constructors.Hugo Parente Lima2010-06-251-4/+4
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Generate cpp file with "using namespace ..." if class inside ofRenato Filho2010-06-251-1/+13
| | | | | | | namespace. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Do not export init_CLASSNAME functions.Hugo Parente Lima2010-06-251-8/+5
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Don't use PyAPI_FUNC in cpp files.Catalin Iacob2010-06-231-1/+1
| | | | | | | Using it leads to MSVC error: C2491 definition of dllimport function not allowed This is because dllimport should only be specified when declaring a function not when defining it.
* Implementad generation of objects without namespace if namespace wasRenato Filho2010-06-231-2/+2
| | | | | | | marked to gneration="no"; Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Adds support for named arguments in function calls.Marcelo Lira2010-06-171-33/+177
| | | | | Only C++ arguments with default values will be turned into Python named arguments.
* Fixes minor error in ternary expression.Marcelo Lira2010-06-171-2/+2
|
* Adds a method to tell if multiple Python arguments must be used in the code.Marcelo Lira2010-06-171-0/+8
| | | | | | The CppGenerator::pythonFunctionWrapperUsesListOfArguments(OverloadData) method returns true if the Python wrapper for the received OverloadData should handle with a single or multiple Python arguments.
* Added method fullPythonFunctionName(func) to ShibokenGenerator.Marcelo Lira2010-06-171-13/+2
| | | | | | It accepts an AbstractMetaFunction and returns the full name in Python, including the module namespace. E.g.: "sample.SimpleFile.exists"
* Fix bug#237 - "core dump when call wrong constructor inside of a class"Hugo Parente Lima2010-06-161-0/+7
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Overload decisor code modified to separate the decision and caller parts.Marcelo Lira2010-06-151-67/+193
| | | | | | | | This makes the generated code more clear and eases future improvements as named argument support. There is room for performance improvements. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Automatically register all primitive types on TypeResover.Hugo Parente Lima2010-06-101-5/+13
| | | | | Reviewer: Renato Araújo <renato.araujo@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added Converter<T>::checkType.Hugo Parente Lima2010-06-091-11/+17
| | | | | | This method is needed because you can not call Converter<T>::isConvertible inside a Converter<Y>::isConvertible implementation, otherwise it'll create a 2-step implicit conversion.
* CppGenerator now considers user defined default constructors for primitive ↵Marcelo Lira2010-06-081-1/+5
| | | | | | | types. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Avoid crashing CppGenerator if the module entry couldn't be retrieved.Marcelo Lira2010-06-031-1/+3
|
* Added support for protected fields when not using the "protected hack".Marcelo Lira2010-06-031-9/+27
| | | | Tests were also added.
* Fixes code generation for classes with private destructors.Marcelo Lira2010-06-021-1/+13
| | | | | | This fix is specific for the cases when the "protected hack" is turned off. Also added some tests.
* Generator improved to handle protected enums without the protected hack.Marcelo Lira2010-06-021-17/+76
|
* Fixes generation of classes with protected virtual destructors.Marcelo Lira2010-05-311-1/+7
| | | | | The problem appears when the binding is generated without the protected hack.
* Fixed use of constructor for code snip.Renato Filho2010-05-261-2/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Fix segfault in function return modification.Renato Filho2010-05-241-2/+6
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Cosmetic changes.Hugo Parente Lima2010-05-211-38/+44
| | | | | | | | | - Don't use stream operator on macros. - Avoid use of INDENT << INDENT. - Rename some variables on generated code to follow our coding style. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Add a call to PySide::initQtMetaType for every type when the pyside ↵Hugo Parente Lima2010-05-201-1/+9
| | | | | | | extensions mode is on. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Moved creation of MetaObject before injection code on constructor.Renato Filho2010-05-191-7/+9
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* API fixes.Renato Filho2010-05-181-1/+2
| | | | | | | | | * Export enums without macro * Declare virtual destructor on all classes with virtual functions * Fix extern "C" declaration scope Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Export signals to the generated cpp files.Luciano Wolf2010-05-171-2/+44
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* generate code necessary to register signal and slot.Renato Filho2010-05-171-1/+11
| | | | | eviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Replaced current generated code to DynamicQMetaObject to new way, toRenato Filho2010-05-131-3/+1
| | | | | | | allow collect PyType info. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Created userdata on Python type object.Renato Filho2010-05-101-7/+19
| | | | | | | User type userdata to store metaobject information. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Register values types as object types too.Renato Filho2010-05-071-4/+6
| | | | | | | Fixes bug #121. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Known what flag to use on PyBuildValue when a container is used.Hugo Parente Lima2010-04-291-0/+1
|
* Use qualified C++ names on multiple inheritance helper functions.Hugo Parente Lima2010-04-291-7/+8
|
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2010-04-231-4/+8
|\
| * Support to "only private constructor available" case.Luciano Wolf2010-04-211-4/+8
| |
* | Fix problem when 2 globals functions with the same name were declared in ↵Hugo Parente Lima2010-04-231-4/+4
| | | | | | | | | | | | | | different headers. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
* | Do not delegate inner class initialization to the enclosed classes.Hugo Parente Lima2010-04-221-31/+10
| | | | | | | | | | | | The same applies for namespaces, so all classes are directly initied in init_MODULE function. This solves some bugs regarding class dependencies and their initialization order.
* | Add namespaces to the array of type indexes.Hugo Parente Lima2010-04-221-3/+1
| |
* | Remove generation of unused code.Hugo Parente Lima2010-04-221-12/+0
| |
* | Use qualified class name when callign a method like self->ClassName::method().Hugo Parente Lima2010-04-221-2/+2
| | | | | | | | This fix some problems compiling bindings for classes under C++ namespaces.
* | Added support for enums inside classes inside namespaces.Hugo Parente Lima2010-04-221-6/+3
| |
* | Add include headers of global enums.Hugo Parente Lima2010-04-221-16/+6
| |
* | Fixed argument policy propagate.Renato Filho2010-04-221-45/+61
|/ | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Fix memory leak when calling methods with some caracteristics.Hugo Parente Lima2010-04-141-1/+1
| | | | | | | | | | | | To leak memory you need to call a method which the C++ version have one or more argument passed as reference, so in python you pass a implicity convertible type. E.g.: the method expects "const QString&" and you pass a Python string which will be implicitly converted to a QString, the memory used by this implicitly generated QString leaks. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Remove warnings about "deprecated conversion from string constant to 'char*'".Hugo Parente Lima2010-04-121-1/+1
| | | | | | | | These warnings are due to the Python C API using a char* as parameter when it should const char*. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Remove extra blank spaces added in generated code.Hugo Parente Lima2010-04-081-1/+1
| | | | | | | "return Foo() ;" becomes "return Foo();" Reviewer: Lauro Moura <lauro.neto@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Better error messages when reimplementing virtual methods.Hugo Parente Lima2010-04-081-15/+27
|
* Small cosmetic changes to the generated code.Hugo Parente Lima2010-04-051-7/+5
|