YDialog Class Reference

Realizes a dialog A dialog itself is a container widget. It is never contained in another widget. More...

#include <YDialog.h>

Inheritance diagram for YDialog:

YContainerWidget YWidget List of all members.

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

Detailed Description

Realizes a dialog A dialog itself is a container widget. It is never contained in another widget.


Constructor & Destructor Documentation

YDialog::YDialog const YWidgetOpt opt  ) 
 

Constructor

YDialog::~YDialog  )  [virtual]
 

Cleanup


Member Function Documentation

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.

virtual std::string YDialog::debugLabel  )  [inline, virtual]
 

Alias for dialogDebugLabel();

Reimplemented from YContainerWidget.

string YDialog::dialogDebugLabel  )  [virtual]
 

Returns a (possibly translated) text describing this dialog for debugging.

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.

bool YDialog::hasDefaultSize  )  [inline]
 

Returns true if the dialog has the `defaultsize option set.

bool YDialog::hasInfoColor  )  [inline]
 

Returns true if the dialog has the `infocolor option set.

bool YDialog::hasSmallDecorations  )  [inline]
 

Returns true if the dialog has the `smallDecorations option set.

bool YDialog::hasWarnColor  )  [inline]
 

Returns true if the dialog has the `warncolor option set.

bool YDialog::isCentered  )  [inline]
 

Returns true if the dialog has the `decorated option set.

bool YDialog::isDecorated  )  [inline]
 

Returns true if the dialog has the `decorated option set.

bool YDialog::isDialog  )  const [virtual]
 

Returns true, since this is a dialog widget.

Reimplemented from YWidget.

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 ).

YCPValue YDialog::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the ui command queryWidget

Reimplemented from YWidget.

void YDialog::setInitialSize  ) 
 

Sets the initial dialog size. Honors the `defaultsize option and -geometry

bool YDialog::shortcutCheckPostponed  )  const [inline]
 

Return whether or not shortcut checking is currently postponed.

virtual char* YDialog::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YContainerWidget.

YWidgetList YDialog::widgets  )  const
 

Return a list of all widgets that belong to this dialog.


Member Data Documentation

YBoolOpt YDialog::_hasDefaultSize [protected]
 

YBoolOpt YDialog::_hasInfoColor [protected]
 

YBoolOpt YDialog::_hasSmallDecorations [protected]
 

YBoolOpt YDialog::_hasWarnColor [protected]
 

YBoolOpt YDialog::_isCentered [protected]
 

YBoolOpt YDialog::_isDecorated [protected]
 

bool YDialog::_shortcutCheckPostponed [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6