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