ImFusion SDK 4.3
IntAdjusterWidget Class Reference

#include <ImFusion/GUI/CoreWidgets/AdjusterWidget.h>

Widget combining a slider with a spin box for configuring integer values. More...

+ Inheritance diagram for IntAdjusterWidget:

Detailed Description

Widget combining a slider with a spin box for configuring integer values.

Signals

void valueChanged (int value)
 This signal is emitted whenever the adjuster's value is changed.
 

Public Member Functions

 IntAdjusterWidget (int minimum, int maximum, int singleStep=1, QWidget *parent=nullptr)
 Creates a new IntAdjusterWidget.
 
 IntAdjusterWidget (QWidget *parent=nullptr)
 Creates a new IntAdjusterWidget with minimum of 0, maximum of 99 and singleStep of 1.
 
- Public Member Functions inherited from AdjusterWidgetBase< int >
 AdjusterWidgetBase (QWidget *parent=nullptr)
 Creates a new AbstractAdjusterWidget.
 
int value () const
 Return the adjuster's current value.
 
void setValue (int value)
 Change the adjuster's current value.
 
int minimum () const
 Return the adjuster's spin box minimum value.
 
void setMinimum (int minimum)
 Change both the adjuster's spin box and slider minimum value.
 
int maximum () const
 Return the adjuster's spin box maximum value.
 
void setMaximum (int maximum)
 Change both the adjuster's spin box and slider maximum value.
 
int sliderMinimum () const
 Return the adjuster's slider minimum value.
 
void setSliderMinimum (int minimum)
 Change the adjuster's slider minimum value.
 
int sliderMaximum () const
 Return the adjuster's slider maximum value.
 
void setSliderMaximum (int maximum)
 Change the adjuster's slider maximum value.
 
void setRightToLeft (bool righToLeft)
 Change the adjuster's slider to go from right-to-left, instead of left-to-right.
 
int spinboxMinimum () const
 Return the adjuster's spin box minimum value.
 
void setSpinboxMinimum (int minimum)
 Change the adjuster's spin box minimum value.
 
int spinboxMaximum () const
 Return the adjuster's spin box maximum value.
 
void setSpinboxMaximum (int maximum)
 Change the adjuster's spin box maximum value.
 
int singleStep () const
 Return the adjuster's single step value.
 
void setSingleStep (int value)
 Change the adjuster's single step value.
 
virtual bool blockSignals (bool value)
 Sets Qt's blockSignals setting of both the slider and the spin box.
 
AdjusterWidgetTraits< int >::SpinBoxType * spinBox ()
 Returns the pointer to the spin box that is used internally.
 

Protected Slots

void onSpinBoxValueChanged (int value)
 Slot getting called when the spin box's value changes.
 
void onSliderValueChanged (int value)
 Slot getting called when the slider's value changes.
 

Additional Inherited Members

- Protected Member Functions inherited from AdjusterWidgetBase< int >
void onSpinBoxValueChangedImpl (int value)
 Slot getting called when the spin box's value changes.
 
int onSliderValueChangedImpl (int value)
 Slot getting called when the slider's value changes.
 
virtual void setSliderValue (int value)
 Virtual method to update the slider's value. To be overridden in sub classes.
 
virtual void setSliderProperties (int stepValue, int minValue, int maxValue)
 Update the slider's properties based on the provided step, minimum, and maximum value of the adjuster.
 
- Protected Attributes inherited from AdjusterWidgetBase< int >
QSlider * m_slider
 Slider allowing the user to quickly change the value.
 
AdjusterWidgetTraits< int >::SpinBoxType * m_spinBox
 Spin box displaying the current value.
 
int m_sliderMin
 Minimum value used for the slider.
 
int m_sliderMax
 Maximum value used for the slider.
 

Constructor & Destructor Documentation

◆ IntAdjusterWidget()

IntAdjusterWidget ( int minimum,
int maximum,
int singleStep = 1,
QWidget * parent = nullptr )

Creates a new IntAdjusterWidget.

Parameters
parentParent Qt widget

Member Function Documentation

◆ valueChanged

void valueChanged ( int value)
signal

This signal is emitted whenever the adjuster's value is changed.

Parameters
valueNew value of the adjuster

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close