9 #include "guiQt/config.hpp" 11 #include <fwCom/Slot.hpp> 12 #include <fwCom/Slots.hpp> 14 #include <fwGui/editor/IEditor.hpp> 16 #include <fwTools/Failed.hpp> 22 #include <QPushButton> 61 class GUIQT_CLASS_API
SSlider :
public QObject,
74 GUIQT_API virtual ~
SSlider() noexcept;
80 GUIQT_API static const ::
fwCom::Signals::SignalKeyType s_VALUE_CHANGED_SIG;
90 GUIQT_API static const ::
fwCom::Slots::SlotKeyType s_SET_VALUE_SLIDER_SLOT;
91 GUIQT_API static const ::
fwCom::Slots::SlotKeyType s_SET_MIN_VALUE_SLIDER_SLOT;
92 GUIQT_API static const ::
fwCom::Slots::SlotKeyType s_SET_MAX_VALUE_SLIDER_SLOT;
98 typedef ::
fwRuntime::ConfigurationElement::sptr Configuration;
101 virtual
void starting() override;
104 virtual
void stopping() override;
107 virtual
void updating() override;
110 virtual
void swapping() override;
113 virtual
void configuring() override;
116 ValueChangedSignalType::sptr m_sigValueChanged;
121 void setValue(
int value,
bool _bForced = false );
124 void setMinValue(
int value);
127 void setMaxValue(
int value);
130 void sliderPressed();
143 QPointer<QSlider> m_valueSlider;
144 QPointer<QLabel> m_valueLabel;
145 QPointer<QLabel> m_minValueLabel;
146 QPointer<QLabel> m_maxValueLabel;
147 QPointer<QLabel> m_textLabel;
148 QPointer<QPushButton> m_resetButton;
149 QPointer<QLineEdit> m_valueEdit;
157 bool m_isUpdatedOnRelease;
158 bool m_hasResetButton;
160 bool m_sliderPressed;
Namespace containing fw4spl communication tools.
Defines the service interface managing the editor service for object.
This editor allows to draw a slider with an integer data.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace guiQt contains the basic services to build the application IHM with Qt...