54 const std::string &
text,
74 std::string
text()
const;
80 std::string label()
const {
return text(); }
88 virtual void setText(
const std::string & newText );
94 void setLabel(
const std::string & newLabel ) {
setText( newLabel ); }
159 virtual bool setProperty(
const std::string & propertyName,
Implementation of the Label, Heading and OutputField widgets.
bool isHeading() const
Return 'true' if this is a Heading widget, i.e., it should display its text in a bold and/or larger f...
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual std::string debugLabel() const
Returns a descriptive label of this widget instance for debugging.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual void setUseBoldFont(bool bold=true)
Switch bold font on or off.
std::string value() const
Aliases for text().
void setValue(const std::string &newValue)
Aliases for setText().
virtual void setText(const std::string &newText)
Set the text the widget displays.
bool isOutputField() const
Return 'true' if this is an OutputField widget, i.e., it should display its text similar to an InputF...
bool autoWrap() const
Return 'true' if automatic word wrapping is enabled.
virtual void setAutoWrap(bool autoWrap=true)
Enable or disable automatic word wrapping.
int layoutPass()
Convenience method for the parent dialog's layoutPass(): Return the number of the current layout pass...
std::string text() const
Return the text the widget displays.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
bool useBoldFont() const
Return 'true' if a bold font should be used.
virtual ~YLabel()
Destructor.
YLabel(YWidget *parent, const std::string &text, bool isHeading=false, bool isOutputField=false)
Constructor.
A set of properties to check names and types against.
Transport class for the value of simple properties.