Computer Assited Medical Intervention Tool Kit  version 5.0
qtpropertymanager.cpp File Reference
#include "qtpropertymanager.h"
#include "qtpropertybrowserutils_p.h"
#include <QDateTime>
#include <QLocale>
#include <QMap>
#include <QTimer>
#include <QRegularExpression>
#include <QIcon>
#include <QMetaEnum>
#include <QFontDatabase>
#include <QStyleOption>
#include <QStyle>
#include <QApplication>
#include <QPainter>
#include <QLabel>
#include <QVector3D>
#include <QCheckBox>
#include <QLineEdit>
#include <cfloat>
#include <climits>
#include "moc_qtpropertymanager.cpp"
#include "qtpropertymanager.moc"
+ Include dependency graph for qtpropertymanager.cpp:

Classes

struct  QtFlagPropertyManagerPrivate::Data
 
struct  QtEnumPropertyManagerPrivate::Data
 
struct  QtVector3DPropertyManagerPrivate::Data
 
struct  QtRectFPropertyManagerPrivate::Data
 
struct  QtRectPropertyManagerPrivate::Data
 
struct  QtSizeFPropertyManagerPrivate::Data
 
struct  QtSizePropertyManagerPrivate::Data
 
struct  QtPointFPropertyManagerPrivate::Data
 
struct  QtDatePropertyManagerPrivate::Data
 
struct  QtBoolPropertyManagerPrivate::Data
 
struct  QtStringPropertyManagerPrivate::Data
 
struct  QtDoublePropertyManagerPrivate::Data
 
struct  QtIntPropertyManagerPrivate::Data
 
class  QtBoolPropertyManagerPrivate
 
class  QtCharPropertyManagerPrivate
 
class  QtColorPropertyManagerPrivate
 
class  QtCursorPropertyManagerPrivate
 
class  QtDatePropertyManagerPrivate
 
class  QtDateTimePropertyManagerPrivate
 
class  QtDoublePropertyManagerPrivate
 
class  QtEnumPropertyManagerPrivate
 
class  QtFlagPropertyManagerPrivate
 
class  QtFontPropertyManagerPrivate
 
class  QtIntPropertyManagerPrivate
 
class  QtKeySequencePropertyManagerPrivate
 
class  QtLocalePropertyManagerPrivate
 
class  QtMetaEnumProvider
 
class  QtMetaEnumWrapper
 
class  QtPointFPropertyManagerPrivate
 
class  QtPointPropertyManagerPrivate
 
class  QtRectFPropertyManagerPrivate
 
class  QtRectPropertyManagerPrivate
 
class  QtSizeFPropertyManagerPrivate
 
class  QtSizePolicyPropertyManagerPrivate
 
class  QtSizePropertyManagerPrivate
 
class  QtStringPropertyManagerPrivate
 
class  QtTimePropertyManagerPrivate
 
class  QtVector3DPropertyManagerPrivate
 

Macros

#define Q_TYPENAME   typename
 

Functions

static QList< QLocale::Country > countriesForLanguage (QLocale::Language language)
 
static QIcon drawCheckBox (bool value)
 
template<class Value , class PrivateData >
static Value getData (const QMap< const QtProperty *, PrivateData > &propertyMap, Value PrivateData::*data, const QtProperty *property, const Value &defaultValue=Value())
 
template<class Value , class PrivateData >
static Value getMaximum (const QMap< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
 
template<class Value , class PrivateData >
static Value getMinimum (const QMap< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
 
template<class Value , class PrivateData >
static Value getValue (const QMap< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
 
QSize qBound (QSize minVal, QSize val, QSize maxVal)
 
QSizeF qBound (QSizeF minVal, QSizeF val, QSizeF maxVal)
 
template<class SizeValue >
static SizeValue qBoundSize (const SizeValue &minVal, const SizeValue &val, const SizeValue &maxVal)
 
template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value , class PrivateData >
static void setBorderValue (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, Value(PrivateData::*getRangeVal)() const, void(PrivateData::*setRangeVal)(ValueChangeParameter), const Value &borderVal, void(PropertyManagerPrivate::*setSubPropertyRange)(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter))
 
template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value >
static void setBorderValues (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, const Value &minVal, const Value &maxVal, void(PropertyManagerPrivate::*setSubPropertyRange)(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter))
 
template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value , class PrivateData >
static void setMaximumValue (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, const Value &maxVal)
 
template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value , class PrivateData >
static void setMinimumValue (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, const Value &minVal)
 
template<class PrivateData , class Value >
static void setSimpleMaximumData (PrivateData *data, const Value &maxVal)
 
template<class PrivateData , class Value >
static void setSimpleMinimumData (PrivateData *data, const Value &minVal)
 
template<class ValueChangeParameter , class Value , class PropertyManager >
static void setSimpleValue (QMap< const QtProperty *, Value > &propertyMap, PropertyManager *manager, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), QtProperty *property, const Value &val)
 
template<class PrivateData , class Value >
static void setSizeMaximumData (PrivateData *data, const Value &newMaxVal)
 
template<class PrivateData , class Value >
static void setSizeMinimumData (PrivateData *data, const Value &newMinVal)
 
template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value >
static void setValueInRange (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), QtProperty *property, const Value &val, void(PropertyManagerPrivate::*setSubPropertyValue)(QtProperty *, ValueChangeParameter))
 
static QList< QLocale::Country > sortCountries (const QList< QLocale::Country > &countries)
 

Macro Definition Documentation

◆ Q_TYPENAME

#define Q_TYPENAME   typename

Function Documentation

◆ countriesForLanguage()

static QList<QLocale::Country> countriesForLanguage ( QLocale::Language  language)
static

Referenced by QtMetaEnumProvider::initLocale().

+ Here is the caller graph for this function:

◆ drawCheckBox()

static QIcon drawCheckBox ( bool  value)
static

◆ getData()

template<class Value , class PrivateData >
static Value getData ( const QMap< const QtProperty *, PrivateData > &  propertyMap,
Value PrivateData::*  data,
const QtProperty property,
const Value &  defaultValue = Value() 
)
static

References Q_TYPENAME.

◆ getMaximum()

template<class Value , class PrivateData >
static Value getMaximum ( const QMap< const QtProperty *, PrivateData > &  propertyMap,
const QtProperty property,
const Value &  defaultValue = Value() 
)
static

◆ getMinimum()

template<class Value , class PrivateData >
static Value getMinimum ( const QMap< const QtProperty *, PrivateData > &  propertyMap,
const QtProperty property,
const Value &  defaultValue = Value() 
)
static

◆ getValue()

template<class Value , class PrivateData >
static Value getValue ( const QMap< const QtProperty *, PrivateData > &  propertyMap,
const QtProperty property,
const Value &  defaultValue = Value() 
)
static

◆ qBound() [1/2]

QSize qBound ( QSize  minVal,
QSize  val,
QSize  maxVal 
)

References qBoundSize().

Referenced by setValueInRange().

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

◆ qBound() [2/2]

QSizeF qBound ( QSizeF  minVal,
QSizeF  val,
QSizeF  maxVal 
)

References qBoundSize().

+ Here is the call graph for this function:

◆ qBoundSize()

template<class SizeValue >
static SizeValue qBoundSize ( const SizeValue &  minVal,
const SizeValue &  val,
const SizeValue &  maxVal 
)
static

Referenced by qBound().

+ Here is the caller graph for this function:

◆ setBorderValue()

template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value , class PrivateData >
static void setBorderValue ( PropertyManager *  manager,
PropertyManagerPrivate *  managerPrivate,
void(PropertyManager::*)(QtProperty *)  propertyChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter)  valueChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter, ValueChangeParameter)  rangeChangedSignal,
QtProperty property,
Value(PrivateData::*)() const  getRangeVal,
void(PrivateData::*)(ValueChangeParameter)  setRangeVal,
const Value &  borderVal,
void(PropertyManagerPrivate::*)(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter)  setSubPropertyRange 
)
static

References Q_TYPENAME.

◆ setBorderValues()

template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value >
static void setBorderValues ( PropertyManager *  manager,
PropertyManagerPrivate *  managerPrivate,
void(PropertyManager::*)(QtProperty *)  propertyChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter)  valueChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter, ValueChangeParameter)  rangeChangedSignal,
QtProperty property,
const Value &  minVal,
const Value &  maxVal,
void(PropertyManagerPrivate::*)(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter)  setSubPropertyRange 
)
static

References Q_TYPENAME.

◆ setMaximumValue()

template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value , class PrivateData >
static void setMaximumValue ( PropertyManager *  manager,
PropertyManagerPrivate *  managerPrivate,
void(PropertyManager::*)(QtProperty *)  propertyChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter)  valueChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter, ValueChangeParameter)  rangeChangedSignal,
QtProperty property,
const Value &  maxVal 
)
static

◆ setMinimumValue()

template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value , class PrivateData >
static void setMinimumValue ( PropertyManager *  manager,
PropertyManagerPrivate *  managerPrivate,
void(PropertyManager::*)(QtProperty *)  propertyChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter)  valueChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter, ValueChangeParameter)  rangeChangedSignal,
QtProperty property,
const Value &  minVal 
)
static

◆ setSimpleMaximumData()

template<class PrivateData , class Value >
static void setSimpleMaximumData ( PrivateData *  data,
const Value &  maxVal 
)
static

Referenced by QtIntPropertyManagerPrivate::Data::setMaximumValue(), QtDoublePropertyManagerPrivate::Data::setMaximumValue(), and QtDatePropertyManagerPrivate::Data::setMaximumValue().

+ Here is the caller graph for this function:

◆ setSimpleMinimumData()

template<class PrivateData , class Value >
static void setSimpleMinimumData ( PrivateData *  data,
const Value &  minVal 
)
static

Referenced by QtIntPropertyManagerPrivate::Data::setMinimumValue(), QtDoublePropertyManagerPrivate::Data::setMinimumValue(), and QtDatePropertyManagerPrivate::Data::setMinimumValue().

+ Here is the caller graph for this function:

◆ setSimpleValue()

template<class ValueChangeParameter , class Value , class PropertyManager >
static void setSimpleValue ( QMap< const QtProperty *, Value > &  propertyMap,
PropertyManager *  manager,
void(PropertyManager::*)(QtProperty *)  propertyChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter)  valueChangedSignal,
QtProperty property,
const Value &  val 
)
static

References Q_TYPENAME.

◆ setSizeMaximumData()

template<class PrivateData , class Value >
static void setSizeMaximumData ( PrivateData *  data,
const Value &  newMaxVal 
)
static

Referenced by QtSizePropertyManagerPrivate::Data::setMaximumValue(), and QtSizeFPropertyManagerPrivate::Data::setMaximumValue().

+ Here is the caller graph for this function:

◆ setSizeMinimumData()

template<class PrivateData , class Value >
static void setSizeMinimumData ( PrivateData *  data,
const Value &  newMinVal 
)
static

Referenced by QtSizePropertyManagerPrivate::Data::setMinimumValue(), and QtSizeFPropertyManagerPrivate::Data::setMinimumValue().

+ Here is the caller graph for this function:

◆ setValueInRange()

template<class ValueChangeParameter , class PropertyManagerPrivate , class PropertyManager , class Value >
static void setValueInRange ( PropertyManager *  manager,
PropertyManagerPrivate *  managerPrivate,
void(PropertyManager::*)(QtProperty *)  propertyChangedSignal,
void(PropertyManager::*)(QtProperty *, ValueChangeParameter)  valueChangedSignal,
QtProperty property,
const Value &  val,
void(PropertyManagerPrivate::*)(QtProperty *, ValueChangeParameter)  setSubPropertyValue 
)
static

References Q_TYPENAME, and qBound().

+ Here is the call graph for this function:

◆ sortCountries()

static QList<QLocale::Country> sortCountries ( const QList< QLocale::Country > &  countries)
static

Referenced by QtMetaEnumProvider::initLocale().

+ Here is the caller graph for this function: