23 #if defined (HAVE_CONFIG_H) 50 if ((up.get_max () - up.get_min ()) > 1)
79 up.get_verticalalignment ()));
81 connect (edit, SIGNAL (textEdited (
const QString&)),
106 edit->setAcceptRichText (
false);
108 up.get_string_vector ()).join (
"\n"));
130 bool handled =
false;
156 case uicontrol::properties::ID_STRING:
160 case uicontrol::properties::ID_HORIZONTALALIGNMENT:
161 case uicontrol::properties::ID_VERTICALALIGNMENT:
163 up.get_verticalalignment ()));
166 case uicontrol::properties::ID_MIN:
167 case uicontrol::properties::ID_MAX:
168 if ((up.get_max () - up.get_min ()) > 1)
170 QWidget *container = edit->parentWidget ();
188 TextEdit *edit = qWidget<TextEdit> ();
192 case uicontrol::properties::ID_STRING:
194 up.get_string_vector ()).join (
"\n"));
197 case uicontrol::properties::ID_MIN:
198 case uicontrol::properties::ID_MAX:
199 if ((up.get_max () - up.get_min ()) <= 1)
201 QWidget *container = edit->parentWidget ();
225 ? qWidget<TextEdit> ()->toPlainText ()
226 : qWidget<QLineEdit> ()->
text ());
240 if (txt.length () > 0)
250 ? qWidget<TextEdit> ()->toPlainText ()
251 : qWidget<QLineEdit> ()->
text ());
static void post_callback(const graphics_handle &h, const std::string &name, const octave_value &data=Matrix())
Qt::Alignment fromHVAlign(const std::string &halign, const std::string &valign)
bool updateSingleLine(int pId)
QString fromStdString(const std::string &s)
EditControl(const graphics_object &go, QLineEdit *edit)
static Object * parentObject(const graphics_object &go)
QStringList fromStringVector(const string_vector &v)
void init(QWidget *w, bool callBase=false)
virtual Container * innerContainer(void)=0
bool updateMultiLine(int pId)
void init(QLineEdit *edit, bool callBase=false)
static EditControl * create(const graphics_object &go)
void initCommon(QWidget *widget)
Cell toCellString(const QStringList &l)
std::string toStdString(const QString &s)
static void post_set(const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true)
void editingFinished(void)