61 :
BaseControl (go, edit), m_multiLine (false), m_textChanged (false)
81 connect (edit, SIGNAL (textEdited (
const QString&)),
90 :
BaseControl (go, edit), m_multiLine (true), m_textChanged (false)
106 edit->setAcceptRichText (
false);
130 bool handled =
false;
170 QWidget* container = edit->parentWidget ();
188 TextEdit* edit = qWidget<TextEdit> ();
200 QWidget* container = edit->parentWidget ();
224 ? qWidget<TextEdit> ()->toPlainText ()
225 : qWidget<QLineEdit> ()->
text ());
237 if (txt.length () > 0)
247 ? qWidget<TextEdit> ()->toPlainText ()
248 : qWidget<QLineEdit> ()->
text ());
static void post_callback(const graphics_handle &h, const std::string &name, const octave_value &data=Matrix())
std::string get_verticalalignment(void) const
std::string get_horizontalalignment(void) const
bool updateSingleLine(int pId)
QString fromStdString(const std::string &s)
string_vector get_string_vector(void) const
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)
std::string get_string_string(void) const
double get_min(void) const
Qt::Alignment fromHVAlign(const caseless_str &halign, const caseless_str &valign)
void initCommon(QWidget *widget)
Cell toCellString(const QStringList &l)
std::string toStdString(const QString &s)
double get_max(void) const
static void post_set(const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true)
void editingFinished(void)