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,
bool useBoldFont() const
Return 'true' if a bold font should be used.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
A set of properties to check names and types against.
virtual ~YLabel()
Destructor.
std::string text() const
Return the text the widget displays.
std::string value() const
Aliases for text().
int layoutPass()
Convenience method for the parent dialog's layoutPass(): Return the number of the current layout pass...
void setValue(const std::string &newValue)
Aliases for setText().
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...
YLabel(YWidget *parent, const std::string &text, bool isHeading=false, bool isOutputField=false)
Constructor.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
Implementation of the Label, Heading and OutputField widgets.
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...
Transport class for the value of simple properties.
virtual std::string debugLabel() const
Returns a descriptive label of this widget instance for debugging.
virtual void setAutoWrap(bool autoWrap=true)
Enable or disable automatic word wrapping.
bool autoWrap() const
Return 'true' if automatic word wrapping is enabled.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setUseBoldFont(bool bold=true)
Switch bold font on or off.
virtual const YPropertySet & propertySet()
Return this class's property set.