21 #ifndef __qMRMLRangeWidget_h 22 #define __qMRMLRangeWidget_h 25 #include <ctkDoubleRangeSlider.h> 26 #include <ctkRangeSlider.h> 27 #include <ctkRangeWidget.h> 30 #include "qMRMLWidgetsExport.h" 32 class qMRMLRangeSliderPrivate;
42 Q_PROPERTY(QPalette minimumHandlePalette READ minimumHandlePalette WRITE setMinimumHandlePalette)
43 Q_PROPERTY(QPalette maximumHandlePalette READ maximumHandlePalette WRITE setMaximumHandlePalette)
44 Q_PROPERTY(
vtkMRMLScene* mrmlScene READ mrmlScene WRITE setMRMLScene)
45 Q_PROPERTY(QString quantity READ quantity WRITE setQuantity)
53 QPalette minimumHandlePalette()const;
54 QPalette maximumHandlePalette()const;
57 QString quantity()const;
61 void setSymmetricMoves(
bool symmetry) override;
65 void setMinimumHandlePalette(const QPalette& palette);
68 void setMaximumHandlePalette(const QPalette& palette);
72 void setQuantity(const QString& baseName);
79 void updateSpinBoxRange(
double min,
double max);
81 void updateSymmetricMoves(
bool symmetric);
86 QAction* SymmetricAction;
95 QPalette minimumHandlePalette()
const;
96 QPalette maximumHandlePalette()
const;
99 QString quantity()
const;
103 void setMinimumHandlePalette(
const QPalette& palette);
106 void setMaximumHandlePalette(
const QPalette& palette);
116 QPalette minimumHandlePalette()
const;
117 QPalette maximumHandlePalette()
const;
121 void setMinimumHandlePalette(
const QPalette& palette);
124 void setMaximumHandlePalette(
const QPalette& palette);
126 void initMinimumSliderStyleOption(QStyleOptionSlider* option)
const override;
127 void initMaximumSliderStyleOption(QStyleOptionSlider* option)
const override;
130 QScopedPointer<qMRMLRangeSliderPrivate>
d_ptr;
QScopedPointer< qMRMLRangeSliderPrivate > d_ptr
Extend the ctkDoubleSpinBox to integrate units support.
A set of MRML Nodes that supports serialization and undo/redo.
qMRMLDoubleRangeSlider is a wrapper around a ctkDoubleRangeSlider
qMRMLRangeSlider is a wrapper around a ctkRangeSlider