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