25 #ifndef YMultiLineEdit_h
26 #define YMultiLineEdit_h
53 virtual const char *
widgetClass()
const {
return "YMultiLineEdit"; }
61 virtual std::string
value() = 0;
69 virtual void setValue(
const std::string & text ) = 0;
74 std::string
label()
const;
137 virtual bool setProperty(
const std::string & propertyName,
A multi-line plain-text area.
int inputMaxLength() const
The maximum input length, i.e., the maximum number of characters the user can enter.
const char * userInputProperty()
The name of the widget property that will return user input.
virtual void setDefaultVisibleLines(int newVisibleLines)
Set the number of input lines that are visible by default.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual void setShortcutString(const std::string &str)
Set the string of this widget that holds the keyboard shortcut.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
virtual ~YMultiLineEdit()
Destructor.
virtual void setValue(const std::string &text)=0
Set the current value (the text entered by the user or set from the outside) of this MultiLineEdit.
virtual std::string shortcutString() const
Get the string of this widget that holds the keyboard shortcut.
virtual void setLabel(const std::string &label)
Set the label (the caption above the MultiLineEdit).
std::string label() const
Get the label (the caption above the MultiLineEdit).
YMultiLineEdit(YWidget *parent, const std::string &label)
Constructor.
int defaultVisibleLines() const
Return the number of input lines that are visible by default.
virtual std::string value()=0
Get the current value (the text entered by the user or set from the outside) of this MultiLineEdit.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setInputMaxLength(int numberOfChars)
Set the maximum input length, i.e., the maximum number of characters the user can enter.
A set of properties to check names and types against.
Transport class for the value of simple properties.