|
KDStateMachineEditor API Documentation 2.3
|
Enumerations | |
| enum | DisplayOption { NoStrip , StripNameSpace } |
Functions | |
| KDSME_CORE_EXPORT QString | addressToString (const void *p) |
| KDSME_CORE_EXPORT QString | className (const QObject *object, DisplayOption option=NoStrip) |
| template<class FilterType, class ItemType> | |
| QList< FilterType > | copy_if_type (const QList< ItemType > &list) |
| KDSME_CORE_EXPORT int | depth (const QObject *root, const QObject *object) |
| KDSME_CORE_EXPORT bool | descendantOf (const QObject *ascendant, const QObject *object) |
| KDSME_CORE_EXPORT QString | displayString (const QObject *object, DisplayOption option=NoStrip) |
| KDSME_CORE_EXPORT const char * | enumToString (const QMetaObject *metaObject, const char *name, int value) |
| template<class C, class P> | |
| C | filter (const C &source, const P &predicate) |
| template<typename T> | |
| T * | findParentOfType (QObject *object) |
| KDSME_CORE_EXPORT int | stringToEnum (const QMetaObject *metaObject, const char *name, const char *key) |
| KDSME_CORE_EXPORT QString | toString (const QPointF &point) |
| KDSME_CORE_EXPORT QString | toString (const QRectF &rect) |
| KDSME_CORE_EXPORT QString | toString (const QSizeF &size) |
| Enumerator | |
|---|---|
| NoStrip | |
| StripNameSpace | |
Definition at line 37 of file objecthelper.h.
| QString KDSME::ObjectHelper::addressToString | ( | const void * | p | ) |
Definition at line 36 of file objecthelper.cpp.
Referenced by displayString(), GraphvizLayouterBackend::layout(), and GraphvizLayouterBackend::openLayout().
| QString KDSME::ObjectHelper::className | ( | const QObject * | object, |
| ObjectHelper::DisplayOption | option = NoStrip ) |
Definition at line 41 of file objecthelper.cpp.
References className(), and StripNameSpace.
Referenced by className(), displayString(), KDSME::Element::toDisplayString(), KDSME::HistoryState::toDisplayString(), and KDSME::PseudoState::toDisplayString().
| QList< FilterType > KDSME::ObjectHelper::copy_if_type | ( | const QList< ItemType > & | list | ) |
Filters the list list
Returns a list that only contains item of type FilterType
Definition at line 74 of file objecthelper.h.
Referenced by KDSME::Element::childElements(), KDSME::State::childStates(), and KDSME::State::transitions().
| int KDSME::ObjectHelper::depth | ( | const QObject * | root, |
| const QObject * | object ) |
Determines the depth of object obj relative to object root
obj is null Definition at line 99 of file objecthelper.cpp.
References depth().
Referenced by depth().
| bool KDSME::ObjectHelper::descendantOf | ( | const QObject * | ascendant, |
| const QObject * | object ) |
Determines if the QObject obj is a descendant of the QObject ascendant.
| ascendant | is a pointer to a QObject. |
| object | is a pointer to a QObject. |
obj is a descendant of ascendant; false otherwise. Definition at line 87 of file objecthelper.cpp.
References descendantOf().
Referenced by descendantOf().
| QString KDSME::ObjectHelper::displayString | ( | const QObject * | object, |
| DisplayOption | option = NoStrip ) |
Definition at line 47 of file objecthelper.cpp.
References addressToString(), and className().
| const char * KDSME::ObjectHelper::enumToString | ( | const QMetaObject * | metaObject, |
| const char * | name, | ||
| int | value ) |
Definition at line 58 of file objecthelper.cpp.
Referenced by KDSME::Element::typeToString().
| C KDSME::ObjectHelper::filter | ( | const C & | source, |
| const P & | predicate ) |
Filter out each item in source for that predicate is true
Returns a copy of the original container source
Definition at line 90 of file objecthelper.h.
| T * KDSME::ObjectHelper::findParentOfType | ( | QObject * | object | ) |
Finds the parent QObject of the specified type T, if such exists.
| object | is a pointer to a QObject. |
Definition at line 106 of file objecthelper.h.
References findParentOfType().
Referenced by findParentOfType().
| int KDSME::ObjectHelper::stringToEnum | ( | const QMetaObject * | metaObject, |
| const char * | name, | ||
| const char * | key ) |
Definition at line 65 of file objecthelper.cpp.
Referenced by KDSME::Element::stringToType().
| QString KDSME::ObjectHelper::toString | ( | const QPointF & | point | ) |
Definition at line 72 of file objecthelper.cpp.
Referenced by toString().
| QString KDSME::ObjectHelper::toString | ( | const QRectF & | rect | ) |
Definition at line 82 of file objecthelper.cpp.
References toString().
| QString KDSME::ObjectHelper::toString | ( | const QSizeF & | size | ) |
Definition at line 77 of file objecthelper.cpp.