7 #ifndef __FWGUIQT_WIDGET_QRANGESLIDER_HPP__ 8 #define __FWGUIQT_WIDGET_QRANGESLIDER_HPP__ 15 #include "fwGuiQt/config.hpp" 40 virtual void draw(QPainter &,
bool enabled =
true) = 0;
41 virtual bool pick(
const QPoint&)
const = 0;
44 QSize drawingArea()
const 46 return m_widget->size();
48 QPointer<QWidget> m_widget;
54 FWGUIQT_API
virtual ~QRangeSlider();
56 QSize sizeHint()
const 61 void setMinimumMinMaxDelta(
double d)
63 m_minimumMinMaxDelta = d;
67 FWGUIQT_API
void setPos(
double _min,
double _max);
70 void sliderRangeChanged (
double min,
double max);
71 void sliderRangeEdited (
double min,
double max);
77 bool movedTo(
double _min,
double _max);
79 virtual void paintEvent ( QPaintEvent * event );
80 virtual void mouseMoveEvent ( QMouseEvent * event );
81 virtual void mousePressEvent ( QMouseEvent * event );
82 virtual void mouseReleaseEvent ( QMouseEvent * event );
83 virtual void wheelEvent ( QWheelEvent * event );
84 virtual void resizeEvent ( QResizeEvent * event );
101 double m_minimumMinMaxDelta;
102 bool m_allowMinGreaterThanMax;
103 bool m_emitRangeChanged;
111 #endif // __FWGUIQT_WIDGET_QRANGESLIDER_HPP__ The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...