26#ifndef SLIDER_TEXT_WIDGET_H
27#define SLIDER_TEXT_WIDGET_H
63 SliderTextWidget(QWidget* parent =
nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
74 void init(
double min = 0.0,
double max = 100.0,
double value = 50.0);
80 void setValue(
const double,
bool emitValueChanged =
false);
103 void updateLineEdit();
106 double sliderToValue(
const int);
109 int valueToSlider(
const double);
#define CAMITK_API
Definition CamiTKAPI.h:66
SliderTextWidget(QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags())
Default constructor, name is automatically used as the text label.
Definition SliderTextWidget.cpp:36
void returnPressed()
when the user press return in the line edit
Definition SliderTextWidget.cpp:126
void textModified(QString)
When the user change the text.
Definition SliderTextWidget.cpp:119
void valueChanged()
Signal emitted when the value has changed (either directly using the slider or when the user pressed ...
double getValue() const
Get the current value.
Definition SliderTextWidget.h:133
void setValue(const double, bool emitValueChanged=false)
Update slider and lineedit GUI, emit the valueChanged signal only if the boolean is true (default=no)...
Definition SliderTextWidget.cpp:92
void setName(const QString &)
set the text label (name of the manipulated data)
Definition SliderTextWidget.cpp:86
void init(double min=0.0, double max=100.0, double value=50.0)
initialize slider and lineedit with the label, min, max, and current value Default values are min=0,...
Definition SliderTextWidget.cpp:103
static Value getValue(const QMap< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
Definition qtpropertymanager.cpp:222