23 #if defined (HAVE_CONFIG_H) 33 #define RANGE_INT_MAX 1000000 55 QAbstractSlider *slider)
60 slider->setTracking (
false);
62 bool vertical_slider = ( bb(2) < bb(3) );
63 slider->setOrientation (vertical_slider ? Qt::Vertical : Qt::Horizontal);
65 slider->setInvertedAppearance (
true);
66 Matrix steps = up.get_sliderstep ().matrix_value ();
67 slider->setMinimum (0);
72 if (
value.numel () > 0)
74 double dmin = up.get_min (), dmax = up.get_max ();
90 QScrollBar *slider = qWidget<QScrollBar> ();
94 case uicontrol::properties::ID_SLIDERSTEP:
96 Matrix steps = up.get_sliderstep ().matrix_value ();
103 case uicontrol::properties::ID_VALUE:
106 double dmax = up.get_max (), dmin = up.get_min ();
108 if (
value.numel () > 0)
114 slider->setValue (ival);
139 double dmin = up.get_min (), dmax = up.get_max ();
141 int ival_tmp = (
value.numel () > 0 ?
146 if (ival != ival_tmp ||
value.numel () > 0)
static SliderControl * create(const graphics_object &go)
static void post_callback(const graphics_handle &h, const std::string &name, const octave_value &data=Matrix())
SliderControl(const graphics_object &go, QAbstractSlider *slider)
static Object * parentObject(const graphics_object &go)
virtual Container * innerContainer(void)=0
bool valid_object(void) const
Matrix get_boundingbox(bool internal=false, const Matrix &parent_pix_size=Matrix()) const
graphics_object object(void) const
void valueChanged(int ival)
nd group nd example For each display the value
static void post_set(const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true)