Computer Assited Medical Intervention Tool Kit  version 5.0
QtSliderFactory Class Reference

The QtSliderFactory class provides QSlider widgets for properties created by QtIntPropertyManager objects. More...

#include <qteditorfactory.h>

+ Inheritance diagram for QtSliderFactory:
+ Collaboration diagram for QtSliderFactory:

Public Member Functions

 QtSliderFactory (QObject *parent=nullptr)
 
 ~QtSliderFactory () override
 
- Public Member Functions inherited from QtAbstractEditorFactory< QtIntPropertyManager >
void addPropertyManager (QtIntPropertyManager *manager)
 
QWidget * createEditor (QtProperty *property, QWidget *parent) override
 
QtIntPropertyManagerpropertyManager (QtProperty *property) const
 
QSet< QtIntPropertyManager * > propertyManagers () const
 
 QtAbstractEditorFactory (QObject *parent)
 
void removePropertyManager (QtIntPropertyManager *manager)
 

Protected Member Functions

void connectPropertyManager (QtIntPropertyManager *manager) override
 
QWidget * createEditor (QtIntPropertyManager *manager, QtProperty *property, QWidget *parent) override
 
void disconnectPropertyManager (QtIntPropertyManager *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtIntPropertyManager >
void managerDestroyed (QObject *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactoryBase
 QtAbstractEditorFactoryBase (QObject *parent=nullptr)
 

Private Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotPropertyChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void slotRangeChanged (QtProperty *, int, int)) Q_PRIVATE_SLOT(d_func()
 
void void void slotSetValue (int)) Q_PRIVATE_SLOT(d_func()
 
void void slotSingleStepChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtSliderFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtSliderFactory class provides QSlider widgets for properties created by QtIntPropertyManager objects.

See also
QtAbstractEditorFactory, QtIntPropertyManager

Constructor & Destructor Documentation

◆ QtSliderFactory()

QtSliderFactory::QtSliderFactory ( QObject *  parent = nullptr)

Creates a factory with the given parent.

References d_ptr, and QtSliderFactoryPrivate::q_ptr.

◆ ~QtSliderFactory()

QtSliderFactory::~QtSliderFactory ( )
override

Destroys this factory, and all the widgets it has created.

References d_ptr, and EditorFactoryPrivate< Editor >::m_editorToProperty.

Member Function Documentation

◆ connectPropertyManager()

void QtSliderFactory::connectPropertyManager ( QtIntPropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtIntPropertyManager >.

References slotRangeChanged(), and slotSingleStepChanged().

+ Here is the call graph for this function:

◆ createEditor()

QWidget * QtSliderFactory::createEditor ( QtIntPropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtIntPropertyManager >.

References d_ptr, EditorFactoryPrivate< Editor >::initializeEditor(), QtIntPropertyManager::maximum(), QtIntPropertyManager::minimum(), QtIntPropertyManager::singleStep(), slotSetValue(), and QtIntPropertyManager::value().

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void QtSliderFactory::disconnectPropertyManager ( QtIntPropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtIntPropertyManager >.

References slotRangeChanged(), and slotSingleStepChanged().

+ Here is the call graph for this function:

◆ Q_PRIVATE_SLOT()

QtSliderFactory::Q_PRIVATE_SLOT ( d_func()  ,
void   slotPropertyChangedQtProperty *, int 
)
private

◆ slotRangeChanged()

void QtSliderFactory::slotRangeChanged ( QtProperty ,
int  ,
int   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

◆ slotSetValue()

void void void QtSliderFactory::slotSetValue ( int  )
private

Referenced by createEditor().

+ Here is the caller graph for this function:

◆ slotSingleStepChanged()

void void QtSliderFactory::slotSingleStepChanged ( QtProperty ,
int   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

Member Data Documentation

◆ d_ptr

QtSliderFactoryPrivate* QtSliderFactory::d_ptr
private

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