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,
184 #endif // YMultiLineEdit_h
virtual ~YMultiLineEdit()
Destructor.
std::string label() const
Get the label (the caption above the MultiLineEdit).
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.
virtual void setDefaultVisibleLines(int newVisibleLines)
Set the number of input lines that are visible by default.
int defaultVisibleLines() const
Return the number of input lines that are visible by default.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
virtual void setLabel(const std::string &label)
Set the label (the caption above the MultiLineEdit).
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual std::string shortcutString() const
Get the string of this widget that holds the keyboard shortcut.
virtual std::string value()=0
Get the current value (the text entered by the user or set from the outside) of this MultiLineEdit.
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.
int inputMaxLength() const
The maximum input length, i.e., the maximum number of characters the user can enter.
virtual void setShortcutString(const std::string &str)
Set the string of this widget that holds the keyboard shortcut.
Transport class for the value of simple properties.
A multi-line plain-text area.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
const char * userInputProperty()
The name of the widget property that will return user input.
YMultiLineEdit(YWidget *parent, const std::string &label)
Constructor.