Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

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
YWidgetList widgets () const

Protected Member Functions

void fillWidgetList (YWidgetList &widgetList, const YContainerWidget *parent) const

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.

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.

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

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 Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6