26 #define YUILogComponent "ui"
29 #include "YUISymbols.h"
30 #include "YCheckBox.h"
37 , useBoldFont(
false )
49 YUI_CHECK_NEW( priv );
61 priv->label = newLabel;
73 return priv->useBoldFont;
79 priv->useBoldFont = bold;
95 propSet.
add(
YProperty( YUIProperty_Value, YOtherProperty ) );
96 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
109 if ( propertyName == YUIProperty_Value )
return false;
125 if ( propertyName == YUIProperty_Value )
return YPropertyValue( YOtherProperty );
virtual const YPropertySet & propertySet()
Return this class's property set.
Transport class for the value of simple properties.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
void add(const YProperty &prop)
Add a property to this property set.
A set of properties to check names and types against.
YCheckBox(YWidget *parent, const std::string &label)
Constructor.
std::string stringVal() const
Methods to get the value of this property.
bool useBoldFont() const
Returns 'true' if a bold font should be used.
virtual void setLabel(const std::string &label)
Set the label (the text on the CheckBox).
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
Class for widget properties.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual void setUseBoldFont(bool bold=true)
Indicate whether or not a bold font should be used.
YPropertyType type() const
Returns the type of this property value.
virtual ~YCheckBox()
Destructor.
std::string label() const
Get the label (the text on the CheckBox).
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.