libyui
2.42.5
|
Public Member Functions | |
virtual | ~YCheckBox () |
virtual const char * | widgetClass () const |
virtual YCheckBoxState | value ()=0 |
virtual void | setValue (YCheckBoxState state)=0 |
bool | isChecked () |
void | setChecked (bool checked=true) |
bool | dontCare () |
void | setDontCare () |
std::string | label () const |
virtual void | setLabel (const std::string &label) |
bool | useBoldFont () const |
virtual void | setUseBoldFont (bool bold=true) |
virtual bool | setProperty (const std::string &propertyName, const YPropertyValue &val) |
virtual YPropertyValue | getProperty (const std::string &propertyName) |
virtual const YPropertySet & | propertySet () |
virtual std::string | shortcutString () const |
virtual void | setShortcutString (const std::string &str) |
const char * | userInputProperty () |
![]() | |
virtual | ~YWidget () |
virtual std::string | debugLabel () const |
std::string | helpText () const |
void | setHelpText (const std::string &helpText) |
bool | hasChildren () const |
YWidget * | firstChild () const |
YWidget * | lastChild () const |
YWidgetListConstIterator | childrenBegin () const |
YWidgetListConstIterator | childrenEnd () const |
int | childrenCount () const |
bool | contains (YWidget *child) const |
virtual void | addChild (YWidget *child) |
virtual void | removeChild (YWidget *child) |
void | deleteChildren () |
YWidget * | parent () const |
bool | hasParent () const |
void | setParent (YWidget *newParent) |
YDialog * | findDialog () |
YWidget * | findWidget (YWidgetID *id, bool doThrow=true) const |
virtual int | preferredWidth ()=0 |
virtual int | preferredHeight ()=0 |
virtual int | preferredSize (YUIDimension dim) |
virtual void | setSize (int newWidth, int newHeight)=0 |
bool | isValid () const |
bool | beingDestroyed () const |
void * | widgetRep () const |
void | setWidgetRep (void *toolkitWidgetRep) |
bool | hasId () const |
YWidgetID * | id () const |
void | setId (YWidgetID *newId_disown) |
virtual void | setEnabled (bool enabled=true) |
void | setDisabled () |
virtual bool | isEnabled () const |
virtual bool | stretchable (YUIDimension dim) const |
void | setStretchable (YUIDimension dim, bool newStretch) |
void | setDefaultStretchable (YUIDimension dim, bool newStretch) |
virtual int | weight (YUIDimension dim) |
bool | hasWeight (YUIDimension dim) |
void | setWeight (YUIDimension dim, int weight) |
void | setNotify (bool notify=true) |
bool | notify () const |
void | setNotifyContextMenu (bool notifyContextMenu=true) |
bool | notifyContextMenu () const |
bool | sendKeyEvents () const |
void | setSendKeyEvents (bool doSend) |
bool | autoShortcut () const |
void | setAutoShortcut (bool _newAutoShortcut) |
int | functionKey () const |
bool | hasFunctionKey () const |
virtual void | setFunctionKey (int fkey_no) |
virtual bool | setKeyboardFocus () |
void | dumpWidgetTree (int indentationLevel=0) |
void | dumpDialogWidgetTree () |
void | setChildrenEnabled (bool enabled) |
virtual void | saveUserInput (YMacroRecorder *macroRecorder) |
void * | operator new (size_t size) |
virtual void | startMultipleChanges () |
virtual void | doneMultipleChanges () |
Protected Member Functions | |
YCheckBox (YWidget *parent, const std::string &label) | |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
Definition at line 43 of file YCheckBox.h.
|
protected |
Constructor.
Definition at line 45 of file YCheckBox.cc.
|
virtual |
Destructor.
Definition at line 53 of file YCheckBox.cc.
|
inline |
Simplified access to tri-state ("don't care").
Definition at line 109 of file YCheckBox.h.
|
virtual |
Get a property. Reimplemented from YWidget.
This method may throw exceptions, for example
Reimplemented from YWidget.
Definition at line 121 of file YCheckBox.cc.
|
inline |
Simplified access to value(): Return 'true' if the CheckBox is checked.
Definition at line 98 of file YCheckBox.h.
std::string YCheckBox::label | ( | ) | const |
Get the label (the text on the CheckBox).
Definition at line 65 of file YCheckBox.cc.
|
virtual |
Return this class's property set. This also initializes the property set upon the first call.
Reimplemented from YWidget.
Reimplemented from YWidget.
Definition at line 84 of file YCheckBox.cc.
|
inline |
Simplified access to setValue(): Check of uncheck the CheckBox.
Definition at line 103 of file YCheckBox.h.
|
inline |
Simplified access to setting tri-state ("don't care").
Definition at line 114 of file YCheckBox.h.
|
virtual |
Set the label (the text on the CheckBox).
Derived classes are free to reimplement this, but they should call this base class method at the end of the overloaded function.
Definition at line 59 of file YCheckBox.cc.
|
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.
Definition at line 105 of file YCheckBox.cc.
|
inlinevirtual |
Set the string of this widget that holds the keyboard shortcut.
Reimplemented from YWidget.
Reimplemented from YWidget.
Definition at line 187 of file YCheckBox.h.
|
virtual |
Indicate whether or not a bold font should be used.
Derived classes are free to reimplement this, but they should call this base class method at the end of the overloaded function.
Definition at line 77 of file YCheckBox.cc.
|
pure virtual |
Set the CheckBox value (on/off/don't care).
Derived classes are required to implement this.
|
inlinevirtual |
Get the string of this widget that holds the keyboard shortcut.
Reimplemented from YWidget.
Reimplemented from YWidget.
Definition at line 180 of file YCheckBox.h.
bool YCheckBox::useBoldFont | ( | ) | const |
Returns 'true' if a bold font should be used.
Definition at line 71 of file YCheckBox.cc.
|
inlinevirtual |
The name of the widget property that will return user input. Inherited from YWidget.
Reimplemented from YWidget.
Definition at line 194 of file YCheckBox.h.
|
pure virtual |
Get the current value:
YCheckBox_on CheckBox is checked YCheckBox_off CheckBox is unchecked
YCheckBox_dont_care tri-state: CheckBox is greyed out, neither checked nor unchecked
The user cannot set YCheckBox_dont_care directly. This status is always only set from the outside, usually because a setting cannot be clearly determined. For example, a checkbox
[ ] Read only
would be set to "don't care" (by the application, not directly by the user) when it is to display the read-only state of a group of files where some are read-only and some are writeable.
Derived classes are required to implement this function. (Intentionally not const)
|
inlinevirtual |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
Definition at line 61 of file YCheckBox.h.