52 const std::string &
text,
64 virtual const char *
widgetClass()
const {
return "YRichText"; }
72 virtual void setValue(
const std::string & newValue );
77 std::string
value()
const;
143 virtual bool setProperty(
const std::string & propertyName,
A set of properties to check names and types against.
Transport class for the value of simple properties.
Text formatted with simple HTML-like tags, with "links" generating events.
std::string text() const
Alias for value().
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().
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
YRichText(YWidget *parent, const std::string &text, bool plainTextMode=false)
Constructor.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setHScrollValue(const std::string &newValue)
Set the position value of the horizontal scrollbar.
virtual void setVScrollValue(const std::string &newValue)
Set the position value of the vertical scrollbar.
bool autoScrollDown() const
Return 'true' if this RichText widget should automatically scroll down when the text content is chang...
virtual ~YRichText()
Destructor.
virtual std::string vScrollValue() const
Get the position value of the vertical scrollbar.
virtual const YPropertySet & propertySet()
Return this class's property set.
std::string value() const
Return the text content of the RichText widget.
virtual std::string hScrollValue() const
Get the position value of the horizontal scrollbar.
virtual void setPlainTextMode(bool on=true)
Set this RichText widget's "plain text" mode on or off.
virtual void activateLink(const std::string &url)=0
Derived classes should implement this, method is used to trigger event like user has pressed the link...
void setShrinkable(bool shrinkable=true)
Make this widget shrinkable, i.e.
virtual void setValue(const std::string &newValue)
Change the text content of the RichText widget.
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 bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.