23 #if defined (HAVE_CONFIG_H)
71 QComboBox*
box = qWidget<QComboBox> ();
78 int oldCurrent = box->currentIndex ();
85 && oldCurrent < box->count ())
87 box->setCurrentIndex (oldCurrent);
105 if (value.
numel () > 0)
108 warning (
"popupmenu value should be integer");
113 if (newIndex >= 0 && newIndex < box->count ())
115 if (newIndex != box->currentIndex ())
116 box->setCurrentIndex (newIndex);
119 warning (
"popupmenu value not within valid display range");
static PopupMenuControl * create(const graphics_object &go)
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)
virtual Container * innerContainer(void)=0
std::string get_string_string(void) const
Matrix matrix_value(bool frc_str_conv=false) const
void currentIndexChanged(int index)
PopupMenuControl(const graphics_object &go, QComboBox *box)
void warning(const char *fmt,...)
static octave_value box(JNIEnv *jni_env, void *jobj, void *jcls_arg=0)
Convert the Java object pointed to by jobj_arg with class jcls_arg to an Octave value.
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!
octave_value get_value(void) const
static void post_set(const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true)