YCheckBoxFrame Class Reference
Implementation of the Frame widget.
More...
#include <YCheckBoxFrame.h>
Inheritance diagram for YCheckBoxFrame:
List of all members.
Detailed Description
Implementation of the Frame widget.
CheckBoxFrame
- string label the text describing the check box
- boolean checked whether the check box should start checked
- term child the child widgets for frame content - typically `VBox(...) or `HBox(...) noAutoEnable do not enable/disable frame children upon status change invertAutoAnable disable frame children if check box is checked `CheckBoxFrame( `id( `custom), "&Custom", true, `VBox(`TextEntry(...), ... ) CheckBoxFrame1.ycp CheckBoxFrame2.ycp CheckBoxFrame3.ycp
This is a combination of the check box widget and the frame widget: A frame that has a check box where a simple frame would have its frame title.
By default, the frame content (the child widgets) get disabled if the check box is set to "off" (unchecked) and enabled if the check box is set to "on" (cheched).
`opt(`invertAutoEnable) inverts this behaviour: It makes YCheckBoxFrame disable its content (its child widgets) if it is set to "on" (checked) and enable its content if it is set to "off".
`opt(`noAutoEnable) switches off disabling and enabling the frame content (the child widgets) completely. In that case, use QueryWidget() and/or `opt(`immediate).
Please note that unlike YCheckBox this widget does not support tri-state - it is always either on or off.
Constructor & Destructor Documentation
Member Function Documentation
| bool YCheckBoxFrame::autoEnable |
( |
|
) |
const [inline] |
|
|
|
Returns 'true' if autoEnable is on, i.e. if the frame content (the child widgets) should automatically be enabled if this FrameCheckBox is set to "on" (is checked). |
|
|
Implements the ui command changeWidget.
Reimplemented from YWidget. |
| virtual bool YCheckBoxFrame::getValue |
( |
|
) |
[pure virtual] |
|
|
|
Returns whether the checkbox is checked. |
| void YCheckBoxFrame::handleChildrenEnablement |
( |
bool |
isChecked |
) |
|
|
|
|
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 [inline] |
|
|
|
Returns 'true' if the behaviour of autoEnable is inverted, i.e. if the frame content (the child widgets) should automatically be disabled if this FrameCheckBox is set to "on" (is checked) and vice versa. |
|
|
Implements the ui command changeWidget.
Reimplemented from YWidget. |
| void YCheckBoxFrame::saveUserInput |
( |
YMacroRecorder * |
macroRecorder |
) |
[private, virtual] |
|
|
|
Save the widget's user input to a macro recorder. Intentionally declared as "private" so all macro recording internals are handled by the abstract libyui level, not by a specific UI.
Reimplemented from YContainerWidget. |
| void YCheckBoxFrame::setLabel |
( |
const YCPString & |
label |
) |
[virtual] |
|
| virtual void YCheckBoxFrame::setValue |
( |
bool |
checked |
) |
[pure virtual] |
|
|
|
Set the check box on or off (check or uncheck it). |
| const char* YCheckBoxFrame::shortcutProperty |
( |
|
) |
[inline, virtual] |
|
|
|
The name of the widget property that holds the keyboard shortcut. Inherited from YWidget.
Reimplemented from YWidget. |
| const char* YCheckBoxFrame::userInputProperty |
( |
|
) |
[inline, virtual] |
|
|
|
The name of the widget property that will return user input. Inherited from YWidget.
Reimplemented from YWidget. |
| virtual char* YCheckBoxFrame::widgetClass |
( |
|
) |
[inline, virtual] |
|
|
|
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YContainerWidget. |
Member Data Documentation
The documentation for this class was generated from the following files:
Generated on Tue Apr 22 00:09:37 2008 for yast2-core by
1.4.6