25 #ifndef YMultiLineEdit_h
26 #define YMultiLineEdit_h
51 virtual const char *
widgetClass()
const {
return "YMultiLineEdit"; }
59 virtual std::string
value() = 0;
67 virtual void setValue(
const std::string & text ) = 0;
72 std::string
label()
const;
80 virtual void setLabel(
const std::string & label );
135 virtual bool setProperty(
const std::string & propertyName,
182 #endif // YMultiLineEdit_h
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
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.
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.
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...
const char * userInputProperty()
The name of the widget property that will return user input.
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.
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...
virtual ~YMultiLineEdit()
Destructor.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.