51 const std::string &
text,
63 virtual const char *
widgetClass()
const {
return "YRichText"; }
71 virtual void setValue(
const std::string & newValue );
76 std::string
value()
const;
142 virtual bool setProperty(
const std::string & propertyName,
168 #endif // YRichText_h
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual void setValue(const std::string &newValue)
Change the text content of the RichText widget.
bool autoScrollDown() const
Return 'true' if this RichText widget should automatically scroll down when the text content is chang...
bool plainTextMode() const
Return 'true' if this RichText widget is in "plain text" mode, i.e.
A set of properties to check names and types against.
std::string text() const
Alias for value().
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
void setShrinkable(bool shrinkable=true)
Make this widget shrinkable, i.e.
void setText(const std::string &newText)
Alias for setValue().
virtual void setPlainTextMode(bool on=true)
Set this RichText widget's "plain text" mode on or off.
virtual void setAutoScrollDown(bool on=true)
Set this RichText widget's "auto scroll down" mode on or off.
virtual ~YRichText()
Destructor.
std::string value() const
Return the text content of the RichText widget.
YRichText(YWidget *parent, const std::string &text, bool plainTextMode=false)
Constructor.
Transport class for the value of simple properties.
bool shrinkable() const
Returns 'true' if this widget is "shrinkable", i.e.
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.
Text formatted with simple HTML-like tags, with "links" generating events.