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 );
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
virtual const YPropertySet & propertySet()
Return this class's property set.
Transport class for the value of simple properties.
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 label() const
Get the label (the text on the CheckBox).
std::string stringVal() const
Methods to get the value of this property.
virtual void setLabel(const std::string &label)
Set the label (the text on the CheckBox).
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.
bool useBoldFont() const
Returns 'true' if a bold font should be used.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
virtual ~YCheckBox()
Destructor.
YPropertyType type() const
Returns the type of this property value.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.