Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
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"

Classes

struct  QtIntPropertyManagerPrivate::Data
struct  QtDoublePropertyManagerPrivate::Data
struct  QtStringPropertyManagerPrivate::Data
struct  QtBoolPropertyManagerPrivate::Data
struct  QtDatePropertyManagerPrivate::Data
struct  QtPointFPropertyManagerPrivate::Data
struct  QtSizePropertyManagerPrivate::Data
struct  QtSizeFPropertyManagerPrivate::Data
struct  QtRectPropertyManagerPrivate::Data
struct  QtRectFPropertyManagerPrivate::Data
struct  QtVector3DPropertyManagerPrivate::Data
struct  QtEnumPropertyManagerPrivate::Data
struct  QtFlagPropertyManagerPrivate::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()

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

◆ drawCheckBox()

QIcon drawCheckBox ( bool value)
static

◆ getData()

◆ getMaximum()

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

◆ getMinimum()

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

◆ getValue()

◆ qBound() [1/2]

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

References qBoundSize().

Referenced by setValueInRange().

◆ qBound() [2/2]

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

References qBoundSize().

◆ qBoundSize()

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

Referenced by qBound(), and qBound().

◆ setBorderValue()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
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) )
static

◆ setBorderValues()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value>
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) )
static

◆ setMaximumValue()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
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 )
static

◆ setMinimumValue()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
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 )
static

◆ setSimpleMaximumData()

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

◆ setSimpleMinimumData()

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

◆ setSimpleValue()

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

◆ setSizeMaximumData()

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

◆ setSizeMinimumData()

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

◆ setValueInRange()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value>
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

◆ sortCountries()

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