PPL API Reference
Overview Core Algorithm Abstractions Utilities Parallel Methods
Modules Class Hierarchy Classes Functions
Todo List Bug List Dead Code
List of all members
SliderTextWidget Class Reference

Signals

Signals
void ValueChanged (double)
 Indicate a valid value change.
 

Public Member Functions

Construction
 SliderTextWidget (QWidget *const _parent, const std::string &_label, const double _min, const double _max)
 
 SliderTextWidget (QWidget *const _parent, const std::string &_label, const Range< double > &_range)
 

Helpers

double GetValue ()
 Get the current value.
 
void SetValue (const double)
 Set the value for both subwidgets.
 
void SyncToText ()
 Synchronize the slider to match the text field.
 
void SyncToSlider ()
 Synchronize the text field to match the slider.
 

Detailed Description

This is a widget for adjusting numerical values using both a slider bar and text field. The text input is validated against a fixed range.

Constructor & Destructor Documentation

◆ SliderTextWidget() [1/2]

SliderTextWidget::SliderTextWidget ( QWidget *const  _parent,
const std::string &  _label,
const double  _min,
const double  _max 
)

Create a slider text widget.

Parameters
_parentThe parent widget.
_labelThe label.
_minThe minimum allowed value.
_maxThe maximum allowed value.

◆ SliderTextWidget() [2/2]

SliderTextWidget::SliderTextWidget ( QWidget *const  _parent,
const std::string &  _label,
const Range< double > &  _range 
)

Create a slider text widget.

Parameters
_parentThe parent widget.
_labelThe label.
_rangeThe allowed range.

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