10 #include <boost/signals2.hpp>
12 #include <QtWidgets/QWidget>
18 class DtEntityAttributeSlider;
19 class DtEntityAttributeSpinBox;
33 virtual void setRange(
double minValue,
double maxValue);
34 virtual void setDisplayDecimals(
int);
35 virtual void setDisplayUnit(
const QString& displayUnit);
36 virtual void clearEditor();
38 virtual void setActualValue(
double actualValue);
39 virtual void setExtraValue(
double extraValue);
40 virtual void setExtraValueEnabled(
bool enabled);
42 virtual void setRequestedValue(
double value,
bool singleClick =
true);
44 virtual void setTitle(
const QString& title);
45 virtual void setDisplayActualData(
bool display);
47 virtual double actualValue();
48 virtual double requestedValue();
49 virtual double extraValue();
51 virtual double minimumValue();
52 virtual double maximumValue();
57 void onEditorFocussed(
bool focus);
58 void onEditorReturnPressed();
62 void slot_actualValueChanged(
double value);
63 void slot_requestedValueChanged(
double value,
bool singleClick);
A customized spin box that supports signals for return key pressed event and focus in/out events...
Definition: entityAttributeSpinBox.h:19
QVBoxLayout * myMainLayout
Definition: entityAttributeSliderWithEditor.h:67
DtEntityAttributeSpinBox * myEditor
Definition: entityAttributeSliderWithEditor.h:66
DtEntityAttributeSlider * mySlider
Definition: entityAttributeSliderWithEditor.h:65
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
A slider that is manipulated with mouse clicks, instead of the handle widget. The widget purpose is s...
Definition: entityAttributeSlider.h:25
bool m_bEditingMode
Definition: entityAttributeSliderWithEditor.h:68
boost::signals2::signal< void(double value, bool singleClick)> signal_requestedValueChanged
Definition: entityAttributeSliderWithEditor.h:54
A widget that enable editing an attribute via a DtEntityAttributeSlider or a QLineEdit A unit label c...
Definition: entityAttributeSliderWithEditor.h:24