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.
bool isEmpty() const
Returns 'true' if this property set does not contain anything.
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 add(const YProperty &prop)
Add a property to this property set.
bool invertAutoEnable() const
Invert the meaning of the CheckBoxFrame's check box, i.e., disable child widgets when checked...
A set of properties to check names and types against.
virtual void setAutoEnable(bool autoEnable)
Change autoEnabled flag.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
std::string stringVal() const
Methods to get the value of this property.
void handleChildrenEnablement(bool isChecked)
Handle enabling/disabling of child widgets based on 'isChecked' (the current status of the check box)...
Class for widget properties.
bool autoEnable() const
Handle children enabling/disabling automatically based on the CheckBoxFrame's check box...
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual void setInvertAutoEnable(bool invertAutoEnable)
Change invertAutonEnable flag.
virtual void setLabel(const std::string &label)
Change the label text on the CheckBoxFrame.
void check(const std::string &propertyName) const
Check if a property 'propertyName' exists in this property set.
std::string label() const
Return the label text on the CheckBoxFrame.
virtual ~YCheckBoxFrame()
Destructor.
virtual void setValue(bool isChecked)=0
Check or uncheck the CheckBoxFrame's check box.
YPropertyType type() const
Returns the type of this property value.