Public Member Functions | |
void | addClassProperties (const QMetaObject *metaObject) |
int | enumToInt (const QMetaEnum &metaEnum, int enumValue) const |
int | flagToInt (const QMetaEnum &metaEnum, int flagValue) const |
int | intToEnum (const QMetaEnum &metaEnum, int intValue) const |
int | intToFlag (const QMetaEnum &metaEnum, int intValue) const |
bool | isPowerOf2 (int value) const |
bool | isSubValue (int value, int subValue) const |
void | restoreExpandedState () |
void | saveExpandedState () |
void | slotValueChanged (QtProperty *property, const QVariant &value) |
void | updateClassProperties (const QMetaObject *metaObject, bool recursive) |
Public Attributes | |
QtAbstractPropertyBrowser * | m_browser |
QMap< const QMetaObject *, QMap< int, QtVariantProperty * > > | m_classToIndexToProperty |
QMap< const QMetaObject *, QtProperty * > | m_classToProperty |
QtVariantPropertyManager * | m_manager |
QObject * | m_object |
QMap< QtProperty *, const QMetaObject * > | m_propertyToClass |
QMap< QtProperty *, bool > | m_propertyToExpanded |
QMap< QtProperty *, int > | m_propertyToIndex |
QtVariantPropertyManager * | m_readOnlyManager |
QList< QtProperty * > | m_topLevelProperties |
void ObjectControllerPrivate::addClassProperties | ( | const QMetaObject * | metaObject | ) |
References addClassProperties(), QtVariantPropertyManager::addProperty(), QtAbstractPropertyBrowser::addProperty(), QtProperty::addSubProperty(), enumToInt(), QtVariantPropertyManager::enumTypeId(), flagToInt(), QtVariantPropertyManager::flagTypeId(), QtVariantPropertyManager::groupTypeId(), isPowerOf2(), QtVariantPropertyManager::isPropertyTypeSupported(), m_browser, m_classToIndexToProperty, m_classToProperty, m_manager, m_object, m_propertyToClass, m_propertyToIndex, m_readOnlyManager, m_topLevelProperties, QtVariantProperty::setAttribute(), QtProperty::setEnabled(), QtVariantProperty::setValue(), updateClassProperties(), and QtVariantProperty::value().
Referenced by addClassProperties(), and ObjectController::setObject().
int ObjectControllerPrivate::enumToInt | ( | const QMetaEnum & | metaEnum, |
int | enumValue | ||
) | const |
Referenced by addClassProperties(), and updateClassProperties().
int ObjectControllerPrivate::flagToInt | ( | const QMetaEnum & | metaEnum, |
int | flagValue | ||
) | const |
References isPowerOf2(), and isSubValue().
Referenced by addClassProperties(), and updateClassProperties().
int ObjectControllerPrivate::intToEnum | ( | const QMetaEnum & | metaEnum, |
int | intValue | ||
) | const |
Referenced by slotValueChanged().
int ObjectControllerPrivate::intToFlag | ( | const QMetaEnum & | metaEnum, |
int | intValue | ||
) | const |
References isPowerOf2().
Referenced by slotValueChanged().
bool ObjectControllerPrivate::isPowerOf2 | ( | int | value | ) | const |
Referenced by addClassProperties(), flagToInt(), and intToFlag().
bool ObjectControllerPrivate::isSubValue | ( | int | value, |
int | subValue | ||
) | const |
Referenced by flagToInt().
void ObjectControllerPrivate::restoreExpandedState | ( | ) |
Referenced by ObjectController::setObject().
void ObjectControllerPrivate::saveExpandedState | ( | ) |
Referenced by ObjectController::setObject().
void ObjectControllerPrivate::slotValueChanged | ( | QtProperty * | property, |
const QVariant & | value | ||
) |
References intToEnum(), intToFlag(), m_object, m_propertyToIndex, and updateClassProperties().
void ObjectControllerPrivate::updateClassProperties | ( | const QMetaObject * | metaObject, |
bool | recursive | ||
) |
References enumToInt(), flagToInt(), m_classToIndexToProperty, m_classToProperty, m_object, QtVariantProperty::setValue(), and updateClassProperties().
Referenced by addClassProperties(), slotValueChanged(), and updateClassProperties().
QtAbstractPropertyBrowser* ObjectControllerPrivate::m_browser |
Referenced by addClassProperties(), ObjectController::ObjectController(), and ObjectController::setObject().
QMap<const QMetaObject*, QMap<int, QtVariantProperty*> > ObjectControllerPrivate::m_classToIndexToProperty |
Referenced by addClassProperties(), and updateClassProperties().
QMap<const QMetaObject*, QtProperty*> ObjectControllerPrivate::m_classToProperty |
Referenced by addClassProperties(), and updateClassProperties().
QtVariantPropertyManager* ObjectControllerPrivate::m_manager |
Referenced by addClassProperties(), and ObjectController::ObjectController().
QObject* ObjectControllerPrivate::m_object |
QMap<QtProperty*, const QMetaObject*> ObjectControllerPrivate::m_propertyToClass |
Referenced by addClassProperties().
QMap<QtProperty*, bool> ObjectControllerPrivate::m_propertyToExpanded |
QMap<QtProperty*, int> ObjectControllerPrivate::m_propertyToIndex |
Referenced by addClassProperties(), and slotValueChanged().
QtVariantPropertyManager* ObjectControllerPrivate::m_readOnlyManager |
Referenced by addClassProperties(), and ObjectController::ObjectController().
QList<QtProperty*> ObjectControllerPrivate::m_topLevelProperties |
Referenced by addClassProperties(), and ObjectController::setObject().