aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Invalidate remaining instances when shutting downsb-0.4.0Lauro Neto2010-08-031-0/+8
| | | | | | | | | | | | Instead of using assert(), invalidate the remaining instances in ~BindingManager(). This will prevent them of trying to access it again. As the program is already finishing, the dangling C++ instances will be freed anyway. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Filho <renato.filho@openbossa.org>
* Modified tests using Point and assertNotEqual to use assert_(not a == b).Marcelo Lira2010-08-032-2/+2
| | | | | | | | This is due to Point intentionally not having a != operator and assertNotEqual implementation using the __ne__ operator on Python 2.7. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Revert "Created operator != or __ne__ in Point class, to avoid tests errors ↵Marcelo Lira2010-08-032-7/+0
| | | | | | | | | | | | with Python 2.7." This reverts commit ce4b5f535f43bd2ff800b709f88c6f9c5be68003. The unittest.assertNotEqual method has changed in Python 2.7 to use the "!=" operator. The Point class was intentionally left without a "!=" to test if Shiboken would raise a NotImplementedError exception. This commit will be reverted and the tests using Point and assertNotEqual must be changed to avoid the possible usage of "!=".
* Added custom code to VoidHolder.gimmeMeSomeVoidPointer().Marcelo Lira2010-08-031-1/+11
| | | | | | | | The said method retuns a void pointer never before seen on the Python side. The code injection puts the void pointer in a BaseWrapper object. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Modified the void* converter to deal with all pointers as coming from Python.Marcelo Lira2010-08-031-14/+5
| | | | | | This is the common case, for the situation when C++ returns a never before seen void pointer it'll be necessary to write custom code to deal with the result.
* Objects of the BaseWrapper type must call a deallocator.Marcelo Lira2010-08-031-1/+1
| | | | | A BaseWrapper object must clean the used resources (e.g. remove the C++ pointer to Python wrapper mapping) when dying.
* Added a case for VoidHolder test that uses a native Python object.Marcelo Lira2010-08-031-1/+9
| | | | | The test stores a native Python object as a void pointer in C++ and takes it back.
* Created operator != or __ne__ in Point class, to avoid tests errors with ↵Renato Filho2010-08-022-0/+7
| | | | | | | Python 2.7. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Bump version due to ABI changes.Lauro Neto2010-08-021-2/+2
| | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Uses insert to append items to std::list.Renato Filho2010-08-021-1/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed reference leak on shiboken make tuple.Renato Filho2010-07-292-13/+21
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Dealloc dict object on wrapper destructor.Renato Filho2010-07-291-0/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Create a new copy from object when convert from PyObject to const ref.Renato Filho2010-07-275-31/+24
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* BindingManager destructor now asserts if the wrapper map is empty.Marcelo Lira2010-07-272-0/+24
| | | | | | | | | | | | | The assertion is only used in debug mode. The duck punching test was altered to avoid failing when run with debug. Check the duck punching test file for a better explanation. Also added a debug helper method "showWrapperMap" to the binding manager, it shows the contents of the C pointer to Python wrapper mapping. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed build to completely avoid debug symbols when compiling in release mode.Marcelo Lira2010-07-271-0/+1
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix char* converterRenato Filho2010-07-277-36/+81
| | | | | | | | Fix tests. Created warnning about return last ref of python object. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix elasticnodes segfault.Luciano Wolf2010-07-231-1/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed memory leak.Renato Filho2010-07-232-2/+5
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added a custom cmake file to help finding Python debug provisions.Marcelo Lira2010-07-212-1/+25
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix error message, avoiding segfaults when dealing with primitive types.Luciano Wolf2010-07-211-1/+4
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug #252.Luciano Wolf2010-07-201-0/+4
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed inject code to works on windows.Renato Filho2010-07-191-1/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Moved python detection to root CMakelist.Renato Filho2010-07-192-3/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Use correct python library in debug mode.Renato Filho2010-07-194-14/+23
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Removed "lib" prefix from shiboken plugin.Renato Filho2010-07-191-0/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed protected hack generation to work with new libapiextracotr api.Renato Filho2010-07-151-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix segfault when dealing with converter(void *).Luciano Wolf2010-07-141-1/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Enable support for NativePointer type (eg.: void *, QChar *, etc)Luciano Wolf2010-07-132-2/+9
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Use 60 secs to default test timeout.Renato Filho2010-07-131-1/+4
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed wrong overload decisor generated code.Marcelo Lira2010-07-134-11/+102
| | | | | | | | | The decisor must check for the number of arguments before calling Converter::isConvertible method, to avoid passing NULL pointers to it. Unit tests were added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Use list on keep reference map.Renato Filho2010-07-092-9/+52
| | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Create referenceMap on demand.Renato Filho2010-07-094-39/+25
| | | | | | | Implemented 'variable-name' support on 'reference-count' tag. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed ref leak on list cpp conversion.Renato Filho2010-07-091-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Increase required versions of ApiExtractor and GeneratorRunner.Hugo Parente Lima2010-07-091-2/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Bruno Araújo <bruno.araujo@openbossa.org>
* Remove old code inherited from boost python generator.Hugo Parente Lima2010-07-091-12/+1
|
* Adapt to recent changed in ApiExtractor API.Hugo Parente Lima2010-07-092-14/+14
|
* Implemented support to properties.Renato Filho2010-07-084-18/+65
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixes bug#253 - "Segmentation Fault when clicked on ListWidget with TableModel"Hugo Parente Lima2010-07-063-1/+52
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix Converter<bool>::toCpp, to correctly convert number to boolean values.Hugo Parente Lima2010-07-061-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Store class orignal name to future use.Renato Filho2010-07-053-1/+6
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Add support for static fields.Hugo Parente Lima2010-07-024-1/+27
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Do not write setters for const fields.Hugo Parente Lima2010-07-012-6/+8
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Added test for finding type scope in cases involving inheritance.Marcelo Lira2010-06-292-0/+44
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Create specializations for createWrapper function when a class inherits QObject.Hugo Parente Lima2010-06-291-0/+21
| | | | | | | | We need this to call PySide::signalUpdateSource to setup the signals on objects originated from C++. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#256 - "PySide does not support signals with containers."Hugo Parente Lima2010-06-293-1/+21
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix overload decisor written on constructors.Hugo Parente Lima2010-06-252-5/+5
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed scope for class fields.Renato Filho2010-06-251-5/+3
|
* Generate cpp file with "using namespace ..." if class inside ofRenato Filho2010-06-252-17/+42
| | | | | | | 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.