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

YQDialog Class Reference

#include <YQDialog.h>

Inheritance diagram for YQDialog:

YDialog YContainerWidget YWidget List of all members.

Public Member Functions

 YQDialog (const YWidgetOpt &opt, QWidget *qt_parent=0, bool default_size=false)
 ~YQDialog ()
void activate (bool active)
void closeEvent (QCloseEvent *ev)
long nicesize (YUIDimension dim)
long decorationWidth (YUIDimension dim)
YQGenericButtonfindDefaultButton ()
void setEnabling (bool enabled)
void setSize (long newWidth, long newHeight)
bool userResized ()
YQGenericButtonfocusButton () const
YQGenericButtondefaultButton () const
void losingFocus (YQGenericButton *button)
void gettingFocus (YQGenericButton *button)
void setDefaultButton (YQGenericButton *newDefaultButton)
void ensureOnlyOneDefaultButton ()
bool activateDefaultButton (bool warn=true)
YQWizardfindWizard () const
YQGenericButtonwizardDefaultButton (YQWizard *wizard) const

Static Public Member Functions

void center (QWidget *dialog, QWidget *parent=0)

Protected Member Functions

void childAdded (YWidget *child)
void keyPressEvent (QKeyEvent *e)
void focusInEvent (QFocusEvent *event)
void resizeEvent (QResizeEvent *ev)
void show ()

Protected Attributes

QFrame * _qFrame
bool _userResized
QSize _userSize
YQGenericButton_focusButton
YQGenericButton_defaultButton

Constructor & Destructor Documentation

YQDialog::YQDialog const YWidgetOpt opt,
QWidget *  qt_parent = 0,
bool  default_size = false
 

Constructor: Constructor.

YQDialog::~YQDialog  ) 
 

Destructor: Cleans up.


Member Function Documentation

void YQDialog::activate bool  active  ) 
 

Makes this dialog active or inactive

bool YQDialog::activateDefaultButton bool  warn = true  ) 
 

Activate ( i.e. click ) this dialog's default button, if there is any. Issue a warning to the log file if 'warn' is true.

void YQDialog::center QWidget *  dialog,
QWidget *  parent = 0
[static]
 

Center a dialog relative to 'parent'.

If 'parent' is 0, the dialog is centered relative to the application's main widget. If 'dialog' is the main widget and 'parent' is 0, the dialog is centered relative to the desktop.

void YQDialog::childAdded YWidget child  )  [protected, virtual]
 

Callback function that reports to the ui specific widget that a child has been added.

Reimplemented from YContainerWidget.

void YQDialog::closeEvent QCloseEvent *  ev  ) 
 

Interited from QDialog: The window was closed via the window manager close button.

long YQDialog::decorationWidth YUIDimension  dim  ) 
 

Returns the size of ( artificial ) window manager decorations in the requested dimension ( YD_HORIZ or YD_VERT ), depending on the value of YDialog::isDecorated().

YQGenericButton* YQDialog::defaultButton  )  const [inline]
 

Returns the dialog's default button - the button that is activated with [Return] if no button has the keyboard focus.

void YQDialog::ensureOnlyOneDefaultButton  ) 
 

Ensure presence of no more than one single default button.

YQGenericButton * YQDialog::findDefaultButton  ) 
 

Return this dialog's ( first ) default button or 0 if none

YQWizard * YQDialog::findWizard  )  const
 

Find the first wizard in that dialog, if there is any. Returns 0 if there is none.

YQGenericButton* YQDialog::focusButton  )  const [inline]
 

Returns the button that has the keyboard focus or 0 if no button has the keyboard focus.

void YQDialog::focusInEvent QFocusEvent *  event  )  [protected]
 

Event handler for focusIn event.

Inherited from QWidget.

void YQDialog::gettingFocus YQGenericButton button  ) 
 

Notification that a button gets the keyboard focus.

All pushbuttons are required to call this whenever they gain focus so the dialog can keep track of its focusButton.

void YQDialog::keyPressEvent QKeyEvent *  e  )  [protected]
 

Event handler for keyboard input. Only very special keys are processed here.

Inherited from QWidget.

void YQDialog::losingFocus YQGenericButton button  ) 
 

Notification that a button loses the keyboard focus.

All pushbuttons are required to call this whenever they lose focus so the dialog can keep track of its focusButton.

long YQDialog::nicesize YUIDimension  dim  )  [virtual]
 

Returns the nice size of this dialog ( may depend on -geometry )

Reimplemented from YContainerWidget.

void YQDialog::resizeEvent QResizeEvent *  ev  )  [protected]
 

Event handler for window resize.

Inherited from QWidget.

void YQDialog::setDefaultButton YQGenericButton newDefaultButton  ) 
 

Set the dialog's default button - the button that is activated with [Return] if no other button has the keyboard focus. 'newDefaultButton' may be 0 if the former default button is destroyed.

void YQDialog::setEnabling bool  enabled  )  [virtual]
 

Inherited from YWidget: Sets the enabled state of the widget. All new widgets are enabled per definition. Only enabled widgets can take user input.

Reimplemented from YWidget.

void YQDialog::setSize long  newWidth,
long  newHeight
[virtual]
 

Sets the new size of the widget.

Reimplemented from YContainerWidget.

void YQDialog::show  )  [protected]
 

Inherited from QWidget: Called when the dialog is shown.

bool YQDialog::userResized  )  [inline]
 

Returns whether or not the user has resized this dialog.

YQGenericButton * YQDialog::wizardDefaultButton YQWizard wizard  )  const
 

Find a wizard button that would make sense as a default button. Returns 0 if none can be found.


Member Data Documentation

YQGenericButton* YQDialog::_defaultButton [protected]
 

YQGenericButton* YQDialog::_focusButton [protected]
 

QFrame* YQDialog::_qFrame [protected]
 

bool YQDialog::_userResized [protected]
 

QSize YQDialog::_userSize [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Oct 14 19:03:48 2005 for yast2-qt by doxygen 1.3.6