libyui
|
#include <YCheckBoxFrame.h>
Additional Inherited Members | |
![]() | |
YSingleChildContainerWidget (YWidget *parent) | |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
A frame with a check-box, may auto-disable frame contents based on the check. See setAutoEnable, invertAutoEnable.
Constructor.
|
virtual |
Destructor.
bool YCheckBoxFrame::autoEnable | ( | ) | const |
Handle children enabling/disabling automatically based on the CheckBoxFrame's check box?
|
virtual |
Handle enabling/disabling of child widgets based on 'isChecked' (the current status of the check box) and autoEnable() and invertAutoEnable().
Derived classes should call this when the check box status changes rather than try to handle it on their level.
This method also needs to be called after new child widgets are added to establish the initial enabled or disabled state of the child widgets.
bool YCheckBoxFrame::invertAutoEnable | ( | ) | const |
Invert the meaning of the CheckBoxFrame's check box, i.e., disable child widgets when checked?
string YCheckBoxFrame::label | ( | ) | const |
Return the label text on the CheckBoxFrame.
|
virtual |
Change autoEnabled flag.
Derived classes are free to overload this, but they should call this base class function in the overloaded function.
Change invertAutonEnable flag.
Derived classes are free to overload this, but they should call this base class function in the overloaded function.
Change the label text on the CheckBoxFrame.
Derived classes should overload this, but call this base class function in the overloaded function.
|
virtual |
Set a property. Reimplemented from YWidget.
This method may throw exceptions, for example
This function returns 'true' if the value was successfully set and 'false' if that value requires special handling (not in error cases: those are covered by exceptions).
Reimplemented from YWidget.
Check or uncheck the CheckBoxFrame's check box.
Derived classes are required to implement this.
|
inlinevirtual |
Get the status of the CheckBoxFrame's check box.
Derived classes are required to implement this.
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.