aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkenum.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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