#include <YDialog.h>
Inheritance diagram for YDialog:

Public Member Functions | |
| YDialog (const YWidgetOpt &opt) | |
| virtual | ~YDialog () |
| virtual char * | widgetClass () |
| bool | isDialog () const |
| void | setInitialSize () |
| bool | hasDefaultSize () |
| bool | hasWarnColor () |
| bool | hasInfoColor () |
| bool | isDecorated () |
| bool | isCentered () |
| bool | hasSmallDecorations () |
| void | checkShortcuts (bool force=false) |
| void | postponeShortcutCheck () |
| bool | shortcutCheckPostponed () const |
| YCPValue | queryWidget (const YCPSymbol &property) |
| YWidgetList | widgets () const |
| virtual std::string | dialogDebugLabel () |
| virtual std::string | debugLabel () |
Protected Member Functions | |
| void | fillWidgetList (YWidgetList &widgetList, const YContainerWidget *parent) const |
| string | formatDebugLabel (YWidget *widget, const string &debLabel) |
Protected Attributes | |
| YBoolOpt | _hasDefaultSize |
| YBoolOpt | _hasWarnColor |
| YBoolOpt | _hasInfoColor |
| YBoolOpt | _isDecorated |
| YBoolOpt | _isCentered |
| YBoolOpt | _hasSmallDecorations |
| bool | _shortcutCheckPostponed |
| YDialog::YDialog | ( | const YWidgetOpt & | opt | ) |
Constructor
| YDialog::~YDialog | ( | ) | [virtual] |
Cleanup
| virtual char* YDialog::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YContainerWidget.
| bool YDialog::isDialog | ( | ) | const [virtual] |
Returns true, since this is a dialog widget.
Reimplemented from YWidget.
| void YDialog::setInitialSize | ( | ) |
Sets the initial dialog size. Honors the `defaultsize option and -geometry
| bool YDialog::hasDefaultSize | ( | ) | [inline] |
Returns true if the dialog has the `defaultsize option set.
| bool YDialog::hasWarnColor | ( | ) | [inline] |
Returns true if the dialog has the `warncolor option set.
| bool YDialog::hasInfoColor | ( | ) | [inline] |
Returns true if the dialog has the `infocolor option set.
| bool YDialog::isDecorated | ( | ) | [inline] |
Returns true if the dialog has the `decorated option set.
| bool YDialog::isCentered | ( | ) | [inline] |
Returns true if the dialog has the `decorated option set.
| bool YDialog::hasSmallDecorations | ( | ) | [inline] |
Returns true if the dialog has the `smallDecorations option set.
| void YDialog::checkShortcuts | ( | bool | force = false |
) |
Checks the keyboard shortcuts of all children of this dialog (not for sub-dialogs!) unless shortcut checks are postponed or 'force' is 'true'.
A forced shortcut check resets postponed checking.
| void YDialog::postponeShortcutCheck | ( | ) | [inline] |
From now on, postpone keyboard shortcut checks - i.e. normal ( not forced ) checkKeyboardShortcuts() will do nothing. Reset this mode by forcing a shortcut check with checkKeyboardShortcuts( true ).
| bool YDialog::shortcutCheckPostponed | ( | ) | const [inline] |
Return whether or not shortcut checking is currently postponed.
Implements the ui command queryWidget
Reimplemented from YWidget.
| YWidgetList YDialog::widgets | ( | ) | const |
Return a list of all widgets that belong to this dialog.
| string YDialog::dialogDebugLabel | ( | ) | [virtual] |
Returns a (possibly translated) text describing this dialog for debugging.
| virtual std::string YDialog::debugLabel | ( | ) | [inline, virtual] |
Alias for dialogDebugLabel();
Reimplemented from YContainerWidget.
| void YDialog::fillWidgetList | ( | YWidgetList & | widgetList, | |
| const YContainerWidget * | parent | |||
| ) | const [protected] |
Recursively fill a widgets list with all children and grandchildren of 'parent' that are in the same dialog.
| string YDialog::formatDebugLabel | ( | YWidget * | widget, | |
| const string & | debLabel | |||
| ) | [protected] |
Format a debug label.
Reimplemented from YContainerWidget.
YBoolOpt YDialog::_hasDefaultSize [protected] |
YBoolOpt YDialog::_hasWarnColor [protected] |
YBoolOpt YDialog::_hasInfoColor [protected] |
YBoolOpt YDialog::_isDecorated [protected] |
YBoolOpt YDialog::_isCentered [protected] |
YBoolOpt YDialog::_hasSmallDecorations [protected] |
bool YDialog::_shortcutCheckPostponed [protected] |
1.5.0