26 #define YUILogComponent "ui"
29 #include "YUISymbols.h"
30 #include "YRichText.h"
40 , plainTextMode( plainTextMode )
41 , autoScrollDown ( false )
58 YUI_CHECK_NEW( priv );
73 priv->text = newValue;
85 return priv->plainTextMode;
97 return priv->autoScrollDown;
109 return priv->shrinkable;
130 propSet.
add(
YProperty( YUIProperty_Value, YStringProperty ) );
131 propSet.
add(
YProperty( YUIProperty_Text, YStringProperty ) );
void add(const YProperty &prop)
Add a property to this property set.
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.
YRichTextPrivate(const std::string &text, bool plainTextMode)
Constructor.
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.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
void setShrinkable(bool shrinkable=true)
Make this widget shrinkable, i.e.
std::string stringVal() const
Methods to get the value of this property.
YPropertyType type() const
Returns the type of this property value.
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.
Class for widget properties.
virtual ~YRichText()
Destructor.
std::string value() const
Return the text content of the RichText widget.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
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.