26 #ifndef YQMultiLineEdit_h
27 #define YQMultiLineEdit_h
30 #include <yui/YMultiLineEdit.h>
60 virtual std::string
value();
68 virtual void setValue(
const std::string & text );
75 virtual void setLabel(
const std::string & label );
111 virtual void setSize(
int newWidth,
int newHeight );
141 QTextEdit * _qt_textEdit;
MultiLineEdit - an input area for multi-line text.
virtual void setValue(const std::string &text)
Set the current value (the text entered by the user or set from the outside) of this MultiLineEdit.
virtual int preferredWidth()
Preferred width of the widget.
void changed()
Triggered when the text changes.
virtual void setLabel(const std::string &label)
Set the label (the caption above the MultiLineEdit).
virtual int preferredHeight()
Preferred height of the widget.
virtual bool setKeyboardFocus()
Accept the keyboard focus.
virtual ~YQMultiLineEdit()
Destructor.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual std::string value()
Get the current value (the text entered by the user or set from the outside) of this MultiLineEdit.
virtual void setInputMaxLength(int numberOfChars)
Set the maximum input length, i.e., the maximum number of characters the user can enter.
YQMultiLineEdit(YWidget *parent, const std::string &label)
Constructor.
void enforceMaxInputLength()
Enforce the maximum input length: If the text becomes too long, remove the just-entered character at ...
virtual void setEnabled(bool enabled)
Set enabled/disabled state.