diff options
Diffstat (limited to 'doc/man/man3/tqdialog.3qt')
-rw-r--r-- | doc/man/man3/tqdialog.3qt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/man/man3/tqdialog.3qt b/doc/man/man3/tqdialog.3qt index c6fa8d468..77cd1e928 100644 --- a/doc/man/man3/tqdialog.3qt +++ b/doc/man/man3/tqdialog.3qt @@ -18,7 +18,7 @@ Inherited by TQColorDialog, TQErrorMessage, TQFileDialog, TQFontDialog, TQInputD .SS "Public Members" .in +1c .ti -1c -.BI "explicit \fBTQDialog\fR ( TQWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags f = 0 )" +.BI "explicit \fBTQDialog\fR ( TQWidget * parent = 0, const char * name = 0, bool modal = false, WFlags f = 0 )" .br .ti -1c .BI "\fB~TQDialog\fR ()" @@ -104,7 +104,7 @@ A \fBmodal\fR dialog is a dialog that blocks input to other visible windows in t .PP The most common way to display a modal dialog is to call its exec() function. When the user closes the dialog, exec() will provide a useful return value. Typically we connect a default button, e.g. "OK", to the accept() slot and a" Cancel" button to the reject() slot, to get the dialog to close and return the appropriate value. Alternatively you can connect to the done() slot, passing it Accepted or Rejected. .PP -An alternative is to call setModal(TRUE), then show(). Unlike exec(), show() returns control to the caller immediately. Calling setModal(TRUE) is especially useful for progress dialogs, where the user must have the ability to interact with the dialog, e.g. to cancel a long running operation. If you use show() and setModal(TRUE) together you must call TQApplication::processEvents() periodically during processing to enable the user to interact with the dialog. (See TQProgressDialog.) +An alternative is to call setModal(true), then show(). Unlike exec(), show() returns control to the caller immediately. Calling setModal(true) is especially useful for progress dialogs, where the user must have the ability to interact with the dialog, e.g. to cancel a long running operation. If you use show() and setModal(true) together you must call TQApplication::processEvents() periodically during processing to enable the user to interact with the dialog. (See TQProgressDialog.) .SH "Modeless Dialogs" A \fBmodeless\fR dialog is a dialog that operates independently of other windows in the same application. Find and replace dialogs in word-processors are often modeless to allow the user to interact with both the application's main window and with the dialog. .PP @@ -124,7 +124,7 @@ A modal dialog. .br TQFileDialog *dlg = new TQFileDialog( workingDirectory, .br - TQString::null, 0, 0, TRUE ); + TQString::null, 0, 0, true ); .br dlg->setCaption( TQFileDialog::tr( "Open" ) ); .br @@ -189,7 +189,7 @@ The value returned by a modal dialog. \fCTQDialog::Rejected\fR .PP .SH MEMBER FUNCTION DOCUMENTATION -.SH "explicit TQDialog::TQDialog ( TQWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags f = 0 )" +.SH "explicit TQDialog::TQDialog ( TQWidget * parent = 0, const char * name = 0, bool modal = false, WFlags f = 0 )" Constructs a dialog called \fIname\fR, with parent \fIparent\fR. .PP A dialog is always a top-level widget, but if it has a parent, its default location is centered on top of the parent. It will also share the parent's taskbar entry. @@ -228,9 +228,9 @@ Returns the dialog's extension or 0 if no extension has been defined. .PP See also setExtension(). .SH "bool TQDialog::isModal () const" -Returns TRUE if show() should pop up the dialog as modal or modeless; otherwise returns FALSE. See the "modal" property for details. +Returns true if show() should pop up the dialog as modal or modeless; otherwise returns false. See the "modal" property for details. .SH "bool TQDialog::isSizeGripEnabled () const" -Returns TRUE if the size grip is enabled; otherwise returns FALSE. See the "sizeGripEnabled" property for details. +Returns true if the size grip is enabled; otherwise returns false. See the "sizeGripEnabled" property for details. .SH "Orientation TQDialog::orientation () const" Returns the dialog's extension orientation. .PP @@ -271,7 +271,7 @@ Examples: .PP Reimplemented from TQWidget. .SH "void TQDialog::showExtension ( bool showIt )\fC [protected slot]\fR" -If \fIshowIt\fR is TRUE, the dialog's extension is shown; otherwise the extension is hidden. +If \fIshowIt\fR is true, the dialog's extension is shown; otherwise the extension is hidden. .PP This slot is usually connected to the TQButton::toggled() signal of a TQPushButton. .PP |