#include <YQDialog.h>
Inheritance diagram for YQDialog:
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) |
YQGenericButton * | findDefaultButton () |
void | setEnabling (bool enabled) |
void | setSize (long newWidth, long newHeight) |
bool | userResized () |
YQGenericButton * | focusButton () const |
YQGenericButton * | defaultButton () const |
void | losingFocus (YQGenericButton *button) |
void | gettingFocus (YQGenericButton *button) |
void | setDefaultButton (YQGenericButton *newDefaultButton) |
void | ensureOnlyOneDefaultButton () |
bool | activateDefaultButton (bool warn=true) |
YQWizard * | findWizard () const |
YQGenericButton * | wizardDefaultButton (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: Constructor. |
|
Destructor: Cleans up. |
|
Makes this dialog active or inactive |
|
Activate ( i.e. click ) this dialog's default button, if there is any. Issue a warning to the log file if 'warn' is true. |
|
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. |
|
Callback function that reports to the ui specific widget that a child has been added. Reimplemented from YContainerWidget. |
|
Interited from QDialog: The window was closed via the window manager close button. |
|
Returns the size of ( artificial ) window manager decorations in the requested dimension ( YD_HORIZ or YD_VERT ), depending on the value of YDialog::isDecorated(). |
|
Returns the dialog's default button - the button that is activated with [Return] if no button has the keyboard focus. |
|
Ensure presence of no more than one single default button. |
|
Return this dialog's ( first ) default button or 0 if none |
|
Find the first wizard in that dialog, if there is any. Returns 0 if there is none. |
|
Returns the button that has the keyboard focus or 0 if no button has the keyboard focus. |
|
Event handler for focusIn event. Inherited from QWidget. |
|
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. |
|
Event handler for keyboard input. Only very special keys are processed here. Inherited from QWidget. |
|
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. |
|
Returns the nice size of this dialog ( may depend on -geometry ) Reimplemented from YContainerWidget. |
|
Event handler for window resize. Inherited from QWidget. |
|
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. |
|
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. |
|
Sets the new size of the widget. Reimplemented from YContainerWidget. |
|
Inherited from QWidget: Called when the dialog is shown. |
|
Returns whether or not the user has resized this dialog. |
|
Find a wizard button that would make sense as a default button. Returns 0 if none can be found. |
|
|
|
|
|
|
|
|
|
|