48 const std::string &
text,
60 virtual const char *
widgetClass()
const {
return "YRichText"; }
68 virtual void setValue(
const std::string & newValue );
73 std::string
value()
const;
139 virtual bool setProperty(
const std::string & propertyName,
165 #endif // YRichText_h
std::string text() const
Alias for value().
Transport class for the value of simple properties.
std::string value() const
Return the text content of the RichText widget.
A set of properties to check names and types against.
virtual void setValue(const std::string &newValue)
Change the text content of the RichText widget.
virtual ~YRichText()
Destructor.
virtual const YPropertySet & propertySet()
Return this class's property set.
YRichText(YWidget *parent, const std::string &text, bool plainTextMode=false)
Constructor.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
bool plainTextMode() const
Return 'true' if this RichText widget is in "plain text" mode, i.e.
void setText(const std::string &newText)
Alias for setValue().
bool autoScrollDown() const
Return 'true' if this RichText widget should automatically scroll down when the text content is chang...
virtual void setAutoScrollDown(bool on=true)
Set this RichText widget's "auto scroll down" mode on or off.
bool shrinkable() const
Returns 'true' if this widget is "shrinkable", i.e.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
void setShrinkable(bool shrinkable=true)
Make this widget shrinkable, i.e.
virtual void setPlainTextMode(bool on=true)
Set this RichText widget's "plain text" mode on or off.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.