25 #ifndef YCheckBoxFrame_h 26 #define YCheckBoxFrame_h 29 #include "YSingleChildContainerWidget.h" 46 const std::string &
label,
58 virtual const char *
widgetClass()
const {
return "YCheckBoxFrame"; }
63 std::string
label()
const;
71 virtual void setLabel(
const std::string & label );
78 virtual void setValue(
bool isChecked ) = 0;
85 virtual bool value() = 0;
162 virtual bool setProperty(
const std::string & propertyName,
188 #endif // YCheckBoxFrame_h
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.
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.
const char * userInputProperty()
The name of the widget property that will return user input.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
A frame with a check-box, may auto-disable frame contents based on the check.
void handleChildrenEnablement(bool isChecked)
Handle enabling/disabling of child widgets based on 'isChecked' (the current status of the check box)...
bool autoEnable() const
Handle children enabling/disabling automatically based on the CheckBoxFrame's check box...
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
virtual std::string shortcutString() const
Get the string of this widget that holds the keyboard shortcut.
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.
std::string label() const
Return the label text on the CheckBoxFrame.
virtual void setShortcutString(const std::string &str)
Set the string of this widget that holds the keyboard shortcut.
virtual ~YCheckBoxFrame()
Destructor.
virtual void setValue(bool isChecked)=0
Check or uncheck the CheckBoxFrame's check box.