aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkenum.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fixed code style on sbkenum.cppHugo Parente Lima2012-03-081-9/+4
| | | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed regression that made enums not hashable.Hugo Parente Lima2012-03-081-1/+5
|
* Removes printfs and fixes str test.Marcelo Lira2012-03-081-2/+0
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* fix shiboken enum.Renato Filho2012-03-081-8/+19
|
* Update enum implemantation.Renato Filho2012-03-081-16/+86
|
* Fixed regressions caused on python2.x.Renato Filho2012-03-081-8/+18
|
* Implemented support to py3k on Shiboken::Enum.Renato Filho2012-03-081-14/+133
|
* Use PyVarObject_HEAD_INIT instead of PyObject_HEAD_INIT.Hugo Parente Lima2012-03-081-2/+1
|
* Using Py_TYPE macro instead of direct access to ob_type to work with Python ↵Hugo Parente Lima2012-03-081-1/+1
| | | | | | 2.x and 3.x. Enclosing PyCObject uses inside #ifdefs
* Replaced all PyString_* by PyBytes_* as preparation for a Python 3.x port.Hugo Parente Lima2012-03-081-4/+4
|
* Creates type registers for enums in createScopedEnum and createGlobalEnum.Marcelo Lira2012-03-081-19/+17
| | | | Instead of generating the register code.
* Added functions to provide a cleaner enum and flags initialization.Marcelo Lira2012-03-081-0/+75
| | | | | | | | | | | The functions are: Shiboken::Enum::createGlobalEnum() Shiboken::Enum::createScopedEnum() Shiboken::Enum::createGlobalEnumItem() Shiboken::Enum::createScopedEnumItem() Also updated the generator to make use of them.
* Now the generated code stores the enum cpp name on the PyThon type.Renato Filho2012-03-081-7/+30
| | | | | | | | | | | | 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>
* Fixed enum repr, print functions.Renato Filho2012-03-081-13/+18
| | | | | | | fixes bug #654. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Fixed enum __repr__ function.Renato Araujo Oliveira Filho2012-03-081-9/+32
| | | | | | | fixes bug #617. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Shiboken enums now have a tp_print representation.Marcelo Lira2012-03-081-1/+15
| | | | | | | | | | This fixes the bug #611[1], and an unit test was also added. [1] http://bugs.openbossa.org/show_bug.cgi?id=611 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>
* Create enum python types on the fly, avoiding generation of structs and ↵Hugo Parente Lima2012-03-081-38/+111
| | | | duplication of many C functions.
* pyenum.{h|cpp} moved to sbkenum.{h|cpp}Hugo Parente Lima2012-03-081-0/+141