26 #define YUILogComponent "ui"
29 #include "YUISymbols.h"
30 #include "YCheckBoxFrame.h"
38 , invertAutoEnable(
false )
43 bool invertAutoEnable;
50 const std::string & label,
55 YUI_CHECK_NEW( priv );
77 return priv->autoEnable;
88 return priv->invertAutoEnable;
105 yuiDebug() << ( enabled ?
"Enabling" :
"Disabling" ) <<
" child widgets of " <<
this << std::endl;
123 propSet.
add(
YProperty( YUIProperty_Value, YBoolProperty ) );
124 propSet.
add(
YProperty( YUIProperty_Label, YStringProperty ) );
137 if ( propertyName == YUIProperty_Value )
setValue( val.boolVal() );
virtual bool value()=0
Get the status of the CheckBoxFrame's check box.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
YCheckBoxFrame(YWidget *parent, const std::string &label, bool checked)
Constructor.
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.
virtual void setAutoEnable(bool autoEnable)
Change autoEnabled flag.
bool autoEnable() const
Handle children enabling/disabling automatically based on the CheckBoxFrame's check box...
std::string label() const
Return the label text on the CheckBoxFrame.
std::string stringVal() const
Methods to get the value of this property.
bool invertAutoEnable() const
Invert the meaning of the CheckBoxFrame's check box, i.e., disable child widgets when checked...
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
void handleChildrenEnablement(bool isChecked)
Handle enabling/disabling of child widgets based on 'isChecked' (the current status of the check box)...
Class for widget properties.
virtual const YPropertySet & propertySet()
Return this class's property set.
YPropertyType type() const
Returns the type of this property value.
virtual void setInvertAutoEnable(bool invertAutoEnable)
Change invertAutonEnable flag.
virtual void setLabel(const std::string &label)
Change the label text on the CheckBoxFrame.
virtual ~YCheckBoxFrame()
Destructor.
virtual void setValue(bool isChecked)=0
Check or uncheck the CheckBoxFrame's check box.