aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix crash caused by a None type passed as argument in comparison functions.Hugo Parente Lima2010-04-051-2/+11
|
* Do not write Py_RETURN_FALSE twice.Hugo Parente Lima2010-04-051-6/+2
|
* Added enum meta type, this will ease you to known if a PyObject is a ↵Hugo Lima2010-04-051-1/+1
| | | | Shiboken enum.
* Added flag is_user_type to identify types created by the user which inherits ↵Hugo Lima2010-04-051-1/+2
| | | | | | binded types from binded types.
* Improved the code that calls reverse operators added in other modules.Marcelo Lira2010-03-311-13/+29
| | | | | The previous generated code were generated only for shift operators (<< and >>), this version works for all binary operators.
* SbkBaseWrapper_Dealloc_PrivateDtor renamed to deallocWrapperWithPrivateDtor.Hugo Lima2010-03-301-1/+1
|
* SbkBaseWrapper_keepReference renamed to keepReference.Hugo Lima2010-03-301-2/+2
| | | | The huge prefix was removed because we are already under Shiboken namespace.
* Add support for multiple inheritance involving more than one C++ object.Hugo Lima2010-03-301-11/+10
|
* Use a non-template function for Python object deallocation.Hugo Lima2010-03-301-2/+5
|
* Fixes type casting on generated copy constructors.Marcelo Lira2010-03-261-5/+10
| | | | | | | | | | If a C++ class "A" with a public copy constructor has a generated C++ wrapper, the Python wrapper constructor should cast the given argument that comes as "A*" to "AWrapper*" before calling "AWrapper(const AWrapper&)". Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Enum's __invert__ method must use 'self' argument.Marcelo Lira2010-03-231-1/+1
| | | | | Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* The __not__ method is not generated any more since it is not being used.Marcelo Lira2010-03-231-1/+0
|
* Fixes virtual method writer to handle modification to return type.Marcelo Lira2010-03-221-5/+11
| | | | | | No code is generated for return value conversion on virtual method callers if code is provided to handle said conversion via code injection or custom conversion rule.
* Fixed virtual method callers to consider modifications to return type.Marcelo Lira2010-03-221-1/+6
| | | | | Type modifications done to the value expected to be returned by a Python override of a virtual method are now handled properly.
* Merge branch 'operator'Lauro Neto2010-03-221-0/+32
|\