23 #if defined (HAVE_CONFIG_H)
27 #include <QAbstractButton>
43 str.replace (
"&",
"&&");
45 if (btn->isCheckable () || up.
style_is (
"togglebutton"))
47 btn->setCheckable (
true);
52 btn->setChecked (
true);
66 QAbstractButton* btn = qWidget<QAbstractButton> ();
73 str.replace (
"&",
"&&");
80 if (btn->isCheckable ())
84 if (value.
numel () > 0)
86 double dValue =
value(0);
88 if (dValue != 0.0 && dValue != 1.0)
89 warning (
"button value not within valid display range");
90 else if (dValue == up.
get_min () && btn->isChecked ())
92 btn->setChecked (
false);
102 else if (dValue == up.
get_max () && ! btn->isChecked ())
103 btn->setChecked (
true);
118 QAbstractButton* btn = qWidget<QAbstractButton> ();
129 if (oldValue.numel() != 1
130 || (newValue != oldValue(0)))
139 QAbstractButton* btn = qWidget<QAbstractButton> ();
141 if (! btn->isCheckable ())
static void post_callback(const graphics_handle &h, const std::string &name, const octave_value &data=Matrix())
octave_idx_type numel(void) const
Number of elements in the array.
QString fromStdString(const std::string &s)
static Object * parentObject(const graphics_object &go)
std::string get_string_string(void) const
Matrix matrix_value(bool frc_str_conv=false) const
double get_min(void) const
void warning(const char *fmt,...)
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by nd tex zero divided by nd ifnottex and any operation involving another NaN value(5+NaN).Note that NaN always compares not equal to NaN(NaN!
static graphics_object get_object(double val)
graphics_handle get___myhandle__(void) const
octave_value get_value(void) const
double get_max(void) const
bool style_is(const std::string &v) const
static void post_set(const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true)