Computer Assited Medical Intervention Tool Kit  version 5.0
ObjectControllerPrivate Class Reference
+ Collaboration diagram for ObjectControllerPrivate:

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

QtAbstractPropertyBrowserm_browser
 
QMap< const QMetaObject *, QMap< int, QtVariantProperty * > > m_classToIndexToProperty
 
QMap< const QMetaObject *, QtProperty * > m_classToProperty
 
QtVariantPropertyManagerm_manager
 
QObject * m_object
 
QMap< QtProperty *, const QMetaObject * > m_propertyToClass
 
QMap< QtProperty *, bool > m_propertyToExpanded
 
QMap< QtProperty *, int > m_propertyToIndex
 
QtVariantPropertyManagerm_readOnlyManager
 
QList< QtProperty * > m_topLevelProperties
 

Private Attributes

ObjectControllerq_ptr
 

Member Function Documentation

◆ addClassProperties()

void ObjectControllerPrivate::addClassProperties ( const QMetaObject *  metaObject)

◆ enumToInt()

int ObjectControllerPrivate::enumToInt ( const QMetaEnum &  metaEnum,
int  enumValue 
) const

Referenced by addClassProperties(), and updateClassProperties().

+ Here is the caller graph for this function:

◆ flagToInt()

int ObjectControllerPrivate::flagToInt ( const QMetaEnum &  metaEnum,
int  flagValue 
) const

References isPowerOf2(), and isSubValue().

Referenced by addClassProperties(), and updateClassProperties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intToEnum()

int ObjectControllerPrivate::intToEnum ( const QMetaEnum &  metaEnum,
int  intValue 
) const

Referenced by slotValueChanged().

+ Here is the caller graph for this function:

◆ intToFlag()

int ObjectControllerPrivate::intToFlag ( const QMetaEnum &  metaEnum,
int  intValue 
) const

References isPowerOf2().

Referenced by slotValueChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isPowerOf2()

bool ObjectControllerPrivate::isPowerOf2 ( int  value) const

Referenced by addClassProperties(), flagToInt(), and intToFlag().

+ Here is the caller graph for this function:

◆ isSubValue()

bool ObjectControllerPrivate::isSubValue ( int  value,
int  subValue 
) const

Referenced by flagToInt().

+ Here is the caller graph for this function:

◆ restoreExpandedState()

void ObjectControllerPrivate::restoreExpandedState ( )

Referenced by ObjectController::setObject().

+ Here is the caller graph for this function:

◆ saveExpandedState()

void ObjectControllerPrivate::saveExpandedState ( )

Referenced by ObjectController::setObject().

+ Here is the caller graph for this function:

◆ slotValueChanged()

void ObjectControllerPrivate::slotValueChanged ( QtProperty property,
const QVariant &  value 
)

References intToEnum(), intToFlag(), m_object, m_propertyToIndex, and updateClassProperties().

+ Here is the call graph for this function:

◆ updateClassProperties()

void ObjectControllerPrivate::updateClassProperties ( const QMetaObject *  metaObject,
bool  recursive 
)

References enumToInt(), flagToInt(), m_classToIndexToProperty, m_classToProperty, m_object, and QtVariantProperty::setValue().

Referenced by addClassProperties(), and slotValueChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_browser

◆ m_classToIndexToProperty

QMap<const QMetaObject*, QMap<int, QtVariantProperty*> > ObjectControllerPrivate::m_classToIndexToProperty

◆ m_classToProperty

QMap<const QMetaObject*, QtProperty*> ObjectControllerPrivate::m_classToProperty

◆ m_manager

QtVariantPropertyManager* ObjectControllerPrivate::m_manager

◆ m_object

◆ m_propertyToClass

QMap<QtProperty*, const QMetaObject*> ObjectControllerPrivate::m_propertyToClass

Referenced by addClassProperties().

◆ m_propertyToExpanded

QMap<QtProperty*, bool> ObjectControllerPrivate::m_propertyToExpanded

◆ m_propertyToIndex

QMap<QtProperty*, int> ObjectControllerPrivate::m_propertyToIndex

◆ m_readOnlyManager

QtVariantPropertyManager* ObjectControllerPrivate::m_readOnlyManager

◆ m_topLevelProperties

QList<QtProperty*> ObjectControllerPrivate::m_topLevelProperties

◆ q_ptr

ObjectController* ObjectControllerPrivate::q_ptr
private

The documentation for this class was generated from the following file: