GammaRay
2.2.0
|
MetaObject repository macros. More...
#include "gammaray_core_export.h"
#include <QHash>
Go to the source code of this file.
Classes | |
class | GammaRay::MetaObjectRepository |
MetaObject repository. More... | |
Namespaces | |
namespace | GammaRay |
Macros | |
#define | MO_ADD_BASECLASS(Base) |
#define | MO_ADD_METAOBJECT0(Class) |
#define | MO_ADD_METAOBJECT1(Class, Base1) |
#define | MO_ADD_METAOBJECT2(Class, Base1, Base2) |
#define | MO_ADD_PROPERTY(Class, Type, Getter, Setter) |
#define | MO_ADD_PROPERTY_CR(Class, Type, Getter, Setter) |
#define | MO_ADD_PROPERTY_RO(Class, Type, Getter) |
MetaObject repository macros.
#define MO_ADD_BASECLASS | ( | Base | ) |
#define MO_ADD_METAOBJECT0 | ( | Class | ) |
Register Class
with the MetaObjectRepository. Use this if Class
has no base class.
#define MO_ADD_METAOBJECT1 | ( | Class, | |
Base1 | |||
) |
Register Class
with the MetaObjectRepository. Use this if Class
has one base class.
#define MO_ADD_METAOBJECT2 | ( | Class, | |
Base1, | |||
Base2 | |||
) |
Register Class
with the MetaObjectRepository. Use this if Class
has two base classes.
#define MO_ADD_PROPERTY | ( | Class, | |
Type, | |||
Getter, | |||
Setter | |||
) |
Register a read/write property for class Class
.
#define MO_ADD_PROPERTY_CR | ( | Class, | |
Type, | |||
Getter, | |||
Setter | |||
) |
Register a read/write property for class Class
with a type that is passed as const reference.
#define MO_ADD_PROPERTY_RO | ( | Class, | |
Type, | |||
Getter | |||
) |
Register a read-only property for class Class
.