summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmessagebox.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqmessagebox.3qt')
-rw-r--r--doc/man/man3/tqmessagebox.3qt90
1 files changed, 45 insertions, 45 deletions
diff --git a/doc/man/man3/tqmessagebox.3qt b/doc/man/man3/tqmessagebox.3qt
index 064b1eee..2aa50b04 100644
--- a/doc/man/man3/tqmessagebox.3qt
+++ b/doc/man/man3/tqmessagebox.3qt
@@ -19,19 +19,19 @@ Inherits QDialog.
.BI "enum \fBIcon\fR { NoIcon = 0, Information = 1, Warning = 2, Critical = 3, Question = 4 }"
.br
.ti -1c
-.BI "\fBQMessageBox\fR ( QWidget * parent = 0, const char * name = 0 )"
+.BI "\fBQMessageBox\fR ( TQWidget * parent = 0, const char * name = 0 )"
.br
.ti -1c
-.BI "\fBQMessageBox\fR ( const QString & caption, const QString & text, Icon icon, int button0, int button1, int button2, QWidget * parent = 0, const char * name = 0, bool modal = TRUE, WFlags f = WStyle_DialogBorder )"
+.BI "\fBQMessageBox\fR ( const TQString & caption, const TQString & text, Icon icon, int button0, int button1, int button2, TQWidget * parent = 0, const char * name = 0, bool modal = TRUE, WFlags f = WStyle_DialogBorder )"
.br
.ti -1c
.BI "\fB~QMessageBox\fR ()"
.br
.ti -1c
-.BI "QString \fBtext\fR () const"
+.BI "TQString \fBtext\fR () const"
.br
.ti -1c
-.BI "void \fBsetText\fR ( const QString & )"
+.BI "void \fBsetText\fR ( const TQString & )"
.br
.ti -1c
.BI "Icon \fBicon\fR () const"
@@ -46,10 +46,10 @@ Inherits QDialog.
.BI "void \fBsetIconPixmap\fR ( const QPixmap & )"
.br
.ti -1c
-.BI "QString \fBbuttonText\fR ( int button ) const"
+.BI "TQString \fBbuttonText\fR ( int button ) const"
.br
.ti -1c
-.BI "void \fBsetButtonText\fR ( int button, const QString & text )"
+.BI "void \fBsetButtonText\fR ( int button, const TQString & text )"
.br
.ti -1c
.BI "virtual void \fBadjustSize\fR ()"
@@ -64,40 +64,40 @@ Inherits QDialog.
.SS "Static Public Members"
.in +1c
.ti -1c
-.BI "int \fBinformation\fR ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1 = 0, int button2 = 0 )"
+.BI "int \fBinformation\fR ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1 = 0, int button2 = 0 )"
.br
.ti -1c
-.BI "int \fBinformation\fR ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
+.BI "int \fBinformation\fR ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
.br
.ti -1c
-.BI "int \fBquestion\fR ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1 = 0, int button2 = 0 )"
+.BI "int \fBquestion\fR ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1 = 0, int button2 = 0 )"
.br
.ti -1c
-.BI "int \fBquestion\fR ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
+.BI "int \fBquestion\fR ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
.br
.ti -1c
-.BI "int \fBwarning\fR ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2 = 0 )"
+.BI "int \fBwarning\fR ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1, int button2 = 0 )"
.br
.ti -1c
-.BI "int \fBwarning\fR ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
+.BI "int \fBwarning\fR ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
.br
.ti -1c
-.BI "int \fBcritical\fR ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2 = 0 )"
+.BI "int \fBcritical\fR ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1, int button2 = 0 )"
.br
.ti -1c
-.BI "int \fBcritical\fR ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
+.BI "int \fBcritical\fR ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )"
.br
.ti -1c
-.BI "void \fBabout\fR ( QWidget * parent, const QString & caption, const QString & text )"
+.BI "void \fBabout\fR ( TQWidget * parent, const TQString & caption, const TQString & text )"
.br
.ti -1c
-.BI "void \fBaboutTQt\fR ( QWidget * parent, const QString & caption = QString::null )"
+.BI "void \fBaboutTQt\fR ( TQWidget * parent, const TQString & caption = TQString::null )"
.br
.ti -1c
-.BI "int message ( const QString & caption, const QString & text, const QString & buttonText = QString::null, QWidget * parent = 0, const char * = 0 ) \fI(obsolete)\fR"
+.BI "int message ( const TQString & caption, const TQString & text, const TQString & buttonText = TQString::null, TQWidget * parent = 0, const char * = 0 ) \fI(obsolete)\fR"
.br
.ti -1c
-.BI "bool query ( const QString & caption, const QString & text, const QString & yesButtonText = QString::null, const QString & noButtonText = QString::null, QWidget * parent = 0, const char * = 0 ) \fI(obsolete)\fR"
+.BI "bool query ( const TQString & caption, const TQString & text, const TQString & yesButtonText = TQString::null, const TQString & noButtonText = TQString::null, TQWidget * parent = 0, const char * = 0 ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "QPixmap standardIcon ( Icon icon, GUIStyle style ) \fI(obsolete)\fR"
@@ -115,7 +115,7 @@ Inherits QDialog.
.BI "QPixmap \fBiconPixmap\fR - the current icon"
.br
.ti -1c
-.BI "QString \fBtext\fR - the message box text to be displayed"
+.BI "TQString \fBtext\fR - the message box text to be displayed"
.br
.ti -1c
.BI "TextFormat \fBtextFormat\fR - the format of the text displayed by the message box"
@@ -176,7 +176,7 @@ question() is useful for simple yes/no questions:
.br
tr("&Yes"), tr("&No"),
.br
- QString::null, 0, 1 ) )
+ TQString::null, 0, 1 ) )
.br
return false;
.br
@@ -294,13 +294,13 @@ Disk full errors are unusual and they certainly can be hard to correct. This exa
.br
.fi
.PP
-The critical() function should be reserved for critical errors. In this example errorDetails is a QString or const char*, and QString is used to concatenate several strings:
+The critical() function should be reserved for critical errors. In this example errorDetails is a TQString or const char*, and TQString is used to concatenate several strings:
.PP
.nf
.br
QMessageBox::critical( 0, "Application name here",
.br
- QString("An internal error occurred. Please ") +
+ TQString("An internal error occurred. Please ") +
.br
"call technical support at 1234-56789 and report\\n"+
.br
@@ -437,13 +437,13 @@ This enum has the following values:
\fCQMessageBox::Critical\fR - an icon indicating that the message represents a critical problem.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QMessageBox::QMessageBox ( QWidget * parent = 0, const char * name = 0 )"
+.SH "QMessageBox::QMessageBox ( TQWidget * parent = 0, const char * name = 0 )"
Constructs a message box with no text and a button with the label" OK".
.PP
If \fIparent\fR is 0, the message box becomes an application-global modal dialog box. If \fIparent\fR is a widget, the message box becomes modal relative to \fIparent\fR.
.PP
The \fIparent\fR and \fIname\fR arguments are passed to the QDialog constructor.
-.SH "QMessageBox::QMessageBox ( const QString & caption, const QString & text, Icon icon, int button0, int button1, int button2, QWidget * parent = 0, const char * name = 0, bool modal = TRUE, WFlags f = WStyle_DialogBorder )"
+.SH "QMessageBox::QMessageBox ( const TQString & caption, const TQString & text, Icon icon, int button0, int button1, int button2, TQWidget * parent = 0, const char * name = 0, bool modal = TRUE, WFlags f = WStyle_DialogBorder )"
Constructs a message box with a \fIcaption\fR, a \fItext\fR, an \fIicon\fR, and up to three buttons.
.PP
The \fIicon\fR must be one of the following:
@@ -517,7 +517,7 @@ The \fIparent\fR, \fIname\fR, \fImodal\fR, and \fIf\fR arguments are passed to t
See also caption, text, and icon.
.SH "QMessageBox::~QMessageBox ()"
Destroys the message box.
-.SH "void QMessageBox::about ( QWidget * parent, const QString & caption, const QString & text )\fC [static]\fR"
+.SH "void QMessageBox::about ( TQWidget * parent, const TQString & caption, const TQString & text )\fC [static]\fR"
Displays a simple about box with caption \fIcaption\fR and text \fItext\fR. The about box's parent is \fIparent\fR.
.PP
about() looks for a suitable icon in four locations: <ol type=1>
@@ -532,11 +532,11 @@ As a last resort it uses the Information icon.
.PP
The about box has a single button labelled "OK".
.PP
-See also QWidget::icon and QApplication::mainWidget().
+See also TQWidget::icon and QApplication::mainWidget().
.PP
Examples:
.)l action/application.cpp, application/application.cpp, chart/chartform.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, menu/menu.cpp, and themes/themes.cpp.
-.SH "void QMessageBox::aboutTQt ( QWidget * parent, const QString & caption = QString::null )\fC [static]\fR"
+.SH "void QMessageBox::aboutTQt ( TQWidget * parent, const TQString & caption = TQString::null )\fC [static]\fR"
Displays a simple message box about Qt, with caption \fIcaption\fR and centered over \fIparent\fR (if \fIparent\fR is not 0). The message includes the version number of TQt being used by the application.
.PP
This is useful for inclusion in the Help menu of an application. See the examples/menu/menu.cpp example.
@@ -552,12 +552,12 @@ Adjusts the size of the message box to fit the contents just before QDialog::exe
.PP
This function will not be called if the message box has been explicitly resized before showing it.
.PP
-Reimplemented from QWidget.
-.SH "QString QMessageBox::buttonText ( int button ) const"
-Returns the text of the message box button \fIbutton\fR, or QString::null if the message box does not contain the button.
+Reimplemented from TQWidget.
+.SH "TQString QMessageBox::buttonText ( int button ) const"
+Returns the text of the message box button \fIbutton\fR, or TQString::null if the message box does not contain the button.
.PP
See also setButtonText().
-.SH "int QMessageBox::critical ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2 = 0 )\fC [static]\fR"
+.SH "int QMessageBox::critical ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1, int button2 = 0 )\fC [static]\fR"
Opens a critical message box with the caption \fIcaption\fR and the text \fItext\fR. The dialog may have up to three buttons. Each of the button parameters, \fIbutton0\fR, \fIbutton1\fR and \fIbutton2\fR may be set to one of the following values:
.TP
QMessageBox::NoButton
@@ -592,7 +592,7 @@ See also information(), question(), and warning().
.PP
Examples:
.)l network/archivesearch/archivedialog.ui.h, network/ftpclient/ftpmainwindow.ui.h, process/process.cpp, and xml/outliner/outlinetree.cpp.
-.SH "int QMessageBox::critical ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
+.SH "int QMessageBox::critical ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Displays a critical error message box with a caption, a text, and 1, 2 or 3 buttons. Returns the number of the button that was clicked (0, 1 or 2).
@@ -606,7 +606,7 @@ See also information(), question(), and warning().
Returns the message box's icon. See the "icon" property for details.
.SH "const QPixmap * QMessageBox::iconPixmap () const"
Returns the current icon. See the "iconPixmap" property for details.
-.SH "int QMessageBox::information ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1 = 0, int button2 = 0 )\fC [static]\fR"
+.SH "int QMessageBox::information ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1 = 0, int button2 = 0 )\fC [static]\fR"
Opens an information message box with the caption \fIcaption\fR and the text \fItext\fR. The dialog may have up to three buttons. Each of the buttons, \fIbutton0\fR, \fIbutton1\fR and \fIbutton2\fR may be set to one of the following values:
.TP
QMessageBox::NoButton
@@ -641,7 +641,7 @@ See also question(), warning(), and critical().
.PP
Examples:
.)l action/application.cpp, application/application.cpp, dirview/dirview.cpp, fileiconview/qfileiconview.cpp, picture/picture.cpp, qwerty/qwerty.cpp, and simple/main.cpp.
-.SH "int QMessageBox::information ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
+.SH "int QMessageBox::information ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Displays an information message box with caption \fIcaption\fR, text \fItext\fR and one, two or three buttons. Returns the index of the button that was clicked (0, 1 or 2).
@@ -653,7 +653,7 @@ If \fIparent\fR is 0, the message box becomes an application-global modal dialog
Note: If you do not specify an Escape button then if the Escape button is pressed then -1 will be returned. It is suggested that you specify an Escape button to prevent this from happening.
.PP
See also question(), warning(), and critical().
-.SH "int QMessageBox::message ( const QString & caption, const QString & text, const QString & buttonText = QString::null, QWidget * parent = 0, const char * = 0 )\fC [static]\fR"
+.SH "int QMessageBox::message ( const TQString & caption, const TQString & text, const TQString & buttonText = TQString::null, TQWidget * parent = 0, const char * = 0 )\fC [static]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Opens a modal message box directly using the specified parameters.
@@ -661,13 +661,13 @@ Opens a modal message box directly using the specified parameters.
Please use information(), warning(), question(), or critical() instead.
.PP
Example: grapher/grapher.cpp.
-.SH "bool QMessageBox::query ( const QString & caption, const QString & text, const QString & yesButtonText = QString::null, const QString & noButtonText = QString::null, QWidget * parent = 0, const char * = 0 )\fC [static]\fR"
+.SH "bool QMessageBox::query ( const TQString & caption, const TQString & text, const TQString & yesButtonText = TQString::null, const TQString & noButtonText = TQString::null, TQWidget * parent = 0, const char * = 0 )\fC [static]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Queries the user using a modal message box with two buttons. Note that \fIcaption\fR is not always shown, it depends on the window manager.
.PP
Please use information(), question(), warning(), or critical() instead.
-.SH "int QMessageBox::question ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1 = 0, int button2 = 0 )\fC [static]\fR"
+.SH "int QMessageBox::question ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1 = 0, int button2 = 0 )\fC [static]\fR"
Opens a question message box with the caption \fIcaption\fR and the text \fItext\fR. The dialog may have up to three buttons. Each of the buttons, \fIbutton0\fR, \fIbutton1\fR and \fIbutton2\fR may be set to one of the following values:
.TP
QMessageBox::NoButton
@@ -699,7 +699,7 @@ Returns the identity (QMessageBox::Yes, or QMessageBox::No, etc.) of the button
If \fIparent\fR is 0, the message box becomes an application-global modal dialog box. If \fIparent\fR is a widget, the message box becomes modal relative to \fIparent\fR.
.PP
See also information(), warning(), and critical().
-.SH "int QMessageBox::question ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
+.SH "int QMessageBox::question ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Displays a question message box with caption \fIcaption\fR, text \fItext\fR and one, two or three buttons. Returns the index of the button that was clicked (0, 1 or 2).
@@ -711,7 +711,7 @@ If \fIparent\fR is 0, the message box becomes an application-global modal dialog
Note: If you do not specify an Escape button then if the Escape button is pressed then -1 will be returned. It is suggested that you specify an Escape button to prevent this from happening.
.PP
See also information(), warning(), and critical().
-.SH "void QMessageBox::setButtonText ( int button, const QString & text )"
+.SH "void QMessageBox::setButtonText ( int button, const TQString & text )"
Sets the text of the message box button \fIbutton\fR to \fItext\fR. Setting the text of a button that is not in the message box is silently ignored.
.PP
See also buttonText().
@@ -719,7 +719,7 @@ See also buttonText().
Sets the message box's icon. See the "icon" property for details.
.SH "void QMessageBox::setIconPixmap ( const QPixmap & )"
Sets the current icon. See the "iconPixmap" property for details.
-.SH "void QMessageBox::setText ( const QString & )"
+.SH "void QMessageBox::setText ( const TQString & )"
Sets the message box text to be displayed. See the "text" property for details.
.SH "void QMessageBox::setTextFormat ( TextFormat )"
Sets the format of the text displayed by the message box. See the "textFormat" property for details.
@@ -731,11 +731,11 @@ Returns the pixmap used for a standard icon. This allows the pixmaps to be used
Returns the pixmap used for a standard icon. This allows the pixmaps to be used in more complex message boxes. \fIicon\fR specifies the required icon, e.g. QMessageBox::Information, QMessageBox::Warning or QMessageBox::Critical.
.PP
\fIstyle\fR is unused.
-.SH "QString QMessageBox::text () const"
+.SH "TQString QMessageBox::text () const"
Returns the message box text to be displayed. See the "text" property for details.
.SH "TextFormat QMessageBox::textFormat () const"
Returns the format of the text displayed by the message box. See the "textFormat" property for details.
-.SH "int QMessageBox::warning ( QWidget * parent, const QString & caption, const QString & text, int button0, int button1, int button2 = 0 )\fC [static]\fR"
+.SH "int QMessageBox::warning ( TQWidget * parent, const TQString & caption, const TQString & text, int button0, int button1, int button2 = 0 )\fC [static]\fR"
Opens a warning message box with the caption \fIcaption\fR and the text \fItext\fR. The dialog may have up to three buttons. Each of the button parameters, \fIbutton0\fR, \fIbutton1\fR and \fIbutton2\fR may be set to one of the following values:
.TP
QMessageBox::NoButton
@@ -770,7 +770,7 @@ See also information(), question(), and critical().
.PP
Examples:
.)l chart/chartform.cpp, i18n/main.cpp, network/mail/smtp.cpp, qwerty/qwerty.cpp, showimg/showimg.cpp, and sound/sound.cpp.
-.SH "int QMessageBox::warning ( QWidget * parent, const QString & caption, const QString & text, const QString & button0Text = QString::null, const QString & button1Text = QString::null, const QString & button2Text = QString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
+.SH "int QMessageBox::warning ( TQWidget * parent, const TQString & caption, const TQString & text, const TQString & button0Text = TQString::null, const TQString & button1Text = TQString::null, const TQString & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Displays a warning message box with a caption, a text, and 1, 2 or 3 buttons. Returns the number of the button that was clicked (0, 1, or 2).
@@ -811,12 +811,12 @@ The icon currently used by the message box. Note that it's often hard to draw on
See also icon.
.PP
Set this property's value with setIconPixmap() and get this property's value with iconPixmap().
-.SH "QString text"
+.SH "TQString text"
This property holds the message box text to be displayed.
.PP
The text will be interpreted either as a plain text or as rich text, depending on the text format setting (QMessageBox::textFormat). The default setting is AutoText, i.e. the message box will try to auto-detect the format of the text.
.PP
-The default value of this property is QString::null.
+The default value of this property is TQString::null.
.PP
See also textFormat.
.PP