diff options
Diffstat (limited to 'doc/html/ntqmessagebox.html')
-rw-r--r-- | doc/html/ntqmessagebox.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/ntqmessagebox.html b/doc/html/ntqmessagebox.html index c11fbe6da..43a64c6cd 100644 --- a/doc/html/ntqmessagebox.html +++ b/doc/html/ntqmessagebox.html @@ -313,7 +313,7 @@ message is a warning, but can be dealt with. the message represents a critical problem. </ul><p> <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQMessageBox"></a>TQMessageBox::TQMessageBox ( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0 ) +<h3 class=fn><a name="TQMessageBox"></a>TQMessageBox::TQMessageBox ( <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * name = 0 ) </h3> Constructs a message box with no text and a button with the label "OK". @@ -323,7 +323,7 @@ becomes modal relative to <em>parent</em>. <p> The <em>parent</em> and <em>name</em> arguments are passed to the <a href="ntqdialog.html">TQDialog</a> constructor. -<h3 class=fn><a name="TQMessageBox-2"></a>TQMessageBox::TQMessageBox ( const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, <a href="ntqmessagebox.html#Icon-enum">Icon</a> icon, int button0, int button1, int button2, <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, bool modal = TRUE, WFlags f = WStyle_DialogBorder ) +<h3 class=fn><a name="TQMessageBox-2"></a>TQMessageBox::TQMessageBox ( const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, <a href="ntqmessagebox.html#Icon-enum">Icon</a> icon, int button0, int button1, int button2, <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, bool modal = TRUE, WFlags f = WStyle_DialogBorder ) </h3> Constructs a message box with a <em>caption</em>, a <em>text</em>, an <em>icon</em>, and up to three buttons. @@ -377,27 +377,27 @@ becomes modal relative to <em>parent</em>. is modeless. <p> The <em>parent</em>, <em>name</em>, <em>modal</em>, and <em>f</em> arguments are passed to the <a href="ntqdialog.html">TQDialog</a> constructor. -<p> <p>See also <a href="ntqwidget.html#caption-prop">caption</a>, <a href="#text-prop">text</a>, and <a href="#icon-prop">icon</a>. +<p> <p>See also <a href="tqwidget.html#caption-prop">caption</a>, <a href="#text-prop">text</a>, and <a href="#icon-prop">icon</a>. <h3 class=fn><a name="~TQMessageBox"></a>TQMessageBox::~TQMessageBox () </h3> Destroys the message box. -<h3 class=fn>void <a name="about"></a>TQMessageBox::about ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text )<tt> [static]</tt> +<h3 class=fn>void <a name="about"></a>TQMessageBox::about ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text )<tt> [static]</tt> </h3> Displays a simple about box with caption <em>caption</em> and text <em>text</em>. The about box's parent is <em>parent</em>. <p> <a href="#about">about</a>() looks for a suitable icon in four locations: <ol type=1> -<li> It prefers <a href="ntqwidget.html#icon">parent->icon()</a> if that exists. +<li> It prefers <a href="tqwidget.html#icon">parent->icon()</a> if that exists. <li> If not, it tries the top-level widget containing <em>parent</em>. <li> If that fails, it tries the <a href="ntqapplication.html#mainWidget">main widget.</a> <li> As a last resort it uses the Information icon. </ol> <p> The about box has a single button labelled "OK". -<p> <p>See also <a href="ntqwidget.html#icon-prop">TQWidget::icon</a> and <a href="ntqapplication.html#mainWidget">TQApplication::mainWidget</a>(). +<p> <p>See also <a href="tqwidget.html#icon-prop">TQWidget::icon</a> and <a href="ntqapplication.html#mainWidget">TQApplication::mainWidget</a>(). <p>Examples: <a href="qaction-application-example.html#x1137">action/application.cpp</a>, <a href="simple-application-example.html#x1555">application/application.cpp</a>, <a href="canvas-chart-example.html#x2886">chart/chartform.cpp</a>, <a href="helpviewer-example.html#x994">helpviewer/helpwindow.cpp</a>, <a href="mdi-example.html#x2036">mdi/application.cpp</a>, <a href="menu-example.html#x1874">menu/menu.cpp</a>, and <a href="themes-example.html#x330">themes/themes.cpp</a>. -<h3 class=fn>void <a name="aboutTQt"></a>TQMessageBox::aboutTQt ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption = TQString::null )<tt> [static]</tt> +<h3 class=fn>void <a name="aboutTQt"></a>TQMessageBox::aboutTQt ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption = TQString::null )<tt> [static]</tt> </h3> Displays a simple message box about TQt, with caption <em>caption</em> and centered over <em>parent</em> (if <em>parent</em> is not 0). The message @@ -415,14 +415,14 @@ Adjusts the size of the message box to fit the contents just before <p> This function will not be called if the message box has been explicitly resized before showing it. -<p>Reimplemented from <a href="ntqwidget.html#adjustSize">TQWidget</a>. +<p>Reimplemented from <a href="tqwidget.html#adjustSize">TQWidget</a>. <h3 class=fn><a href="ntqstring.html">TQString</a> <a name="buttonText"></a>TQMessageBox::buttonText ( int button ) const </h3> Returns the text of the message box button <em>button</em>, or <a href="ntqstring.html#TQString-null">TQString::null</a> if the message box does not contain the button. <p> <p>See also <a href="#setButtonText">setButtonText</a>(). -<h3 class=fn>int <a name="critical"></a>TQMessageBox::critical ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1, int button2 = 0 )<tt> [static]</tt> +<h3 class=fn>int <a name="critical"></a>TQMessageBox::critical ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1, int button2 = 0 )<tt> [static]</tt> </h3> Opens a critical message box with the caption <em>caption</em> and the text <em>text</em>. The dialog may have up to three buttons. Each of the @@ -452,7 +452,7 @@ becomes modal relative to <em>parent</em>. <p> <p>See also <a href="#information">information</a>(), <a href="#question">question</a>(), and <a href="#warning">warning</a>(). <p>Examples: <a href="archivesearch-example.html#x478">network/archivesearch/archivedialog.ui.h</a>, <a href="ftpclient-example.html#x767">network/ftpclient/ftpmainwindow.ui.h</a>, <a href="process-example.html#x96">process/process.cpp</a>, and <a href="outliner-example.html#x1917">xml/outliner/outlinetree.cpp</a>. -<h3 class=fn>int <a name="critical-2"></a>TQMessageBox::critical ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> +<h3 class=fn>int <a name="critical-2"></a>TQMessageBox::critical ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Displays a critical error message box with a caption, a text, and @@ -479,7 +479,7 @@ See the <a href="ntqmessagebox.html#icon-prop">"icon"</a> property for details. <h3 class=fn>const <a href="ntqpixmap.html">TQPixmap</a> * <a name="iconPixmap"></a>TQMessageBox::iconPixmap () const </h3><p>Returns the current icon. See the <a href="ntqmessagebox.html#iconPixmap-prop">"iconPixmap"</a> property for details. -<h3 class=fn>int <a name="information"></a>TQMessageBox::information ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1 = 0, int button2 = 0 )<tt> [static]</tt> +<h3 class=fn>int <a name="information"></a>TQMessageBox::information ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1 = 0, int button2 = 0 )<tt> [static]</tt> </h3> Opens an information message box with the caption <em>caption</em> and the text <em>text</em>. The dialog may have up to three buttons. Each of @@ -509,7 +509,7 @@ becomes modal relative to <em>parent</em>. <p> <p>See also <a href="#question">question</a>(), <a href="#warning">warning</a>(), and <a href="#critical">critical</a>(). <p>Examples: <a href="qaction-application-example.html#x1139">action/application.cpp</a>, <a href="simple-application-example.html#x1557">application/application.cpp</a>, <a href="dirview-example.html#x1695">dirview/dirview.cpp</a>, <a href="fileiconview-example.html#x859">fileiconview/qfileiconview.cpp</a>, <a href="picture-example.html#x110">picture/picture.cpp</a>, <a href="qwerty-example.html#x373">qwerty/qwerty.cpp</a>, and <a href="qaxserver-example-simple.html#x2524">simple/main.cpp</a>. -<h3 class=fn>int <a name="information-2"></a>TQMessageBox::information ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> +<h3 class=fn>int <a name="information-2"></a>TQMessageBox::information ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Displays an information message box with caption <em>caption</em>, text @@ -533,21 +533,21 @@ button is pressed then -1 will be returned. It is suggested that you specify an Escape button to prevent this from happening. <p> <p>See also <a href="#question">question</a>(), <a href="#warning">warning</a>(), and <a href="#critical">critical</a>(). -<h3 class=fn>int <a name="message"></a>TQMessageBox::message ( const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & buttonText = TQString::null, <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * = 0 )<tt> [static]</tt> +<h3 class=fn>int <a name="message"></a>TQMessageBox::message ( const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & buttonText = TQString::null, <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * = 0 )<tt> [static]</tt> </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Opens a modal message box directly using the specified parameters. <p> Please use <a href="#information">information</a>(), <a href="#warning">warning</a>(), <a href="#question">question</a>(), or <a href="#critical">critical</a>() instead. <p>Example: <a href="grapher-nsplugin-example.html#x2750">grapher/grapher.cpp</a>. -<h3 class=fn>bool <a name="query"></a>TQMessageBox::query ( const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & yesButtonText = TQString::null, const <a href="ntqstring.html">TQString</a> & noButtonText = TQString::null, <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * = 0 )<tt> [static]</tt> +<h3 class=fn>bool <a name="query"></a>TQMessageBox::query ( const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & yesButtonText = TQString::null, const <a href="ntqstring.html">TQString</a> & noButtonText = TQString::null, <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * = 0 )<tt> [static]</tt> </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Queries the user using a modal message box with two buttons. Note that <em>caption</em> is not always shown, it depends on the window manager. <p> Please use <a href="#information">information</a>(), <a href="#question">question</a>(), <a href="#warning">warning</a>(), or <a href="#critical">critical</a>() instead. -<h3 class=fn>int <a name="question"></a>TQMessageBox::question ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1 = 0, int button2 = 0 )<tt> [static]</tt> +<h3 class=fn>int <a name="question"></a>TQMessageBox::question ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1 = 0, int button2 = 0 )<tt> [static]</tt> </h3> Opens a question message box with the caption <em>caption</em> and the text <em>text</em>. The dialog may have up to three buttons. Each of the @@ -576,7 +576,7 @@ modal dialog box. If <em>parent</em> is a widget, the message box becomes modal relative to <em>parent</em>. <p> <p>See also <a href="#information">information</a>(), <a href="#warning">warning</a>(), and <a href="#critical">critical</a>(). -<h3 class=fn>int <a name="question-2"></a>TQMessageBox::question ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> +<h3 class=fn>int <a name="question-2"></a>TQMessageBox::question ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Displays a question message box with caption <em>caption</em>, text <em>text</em> and one, two or three buttons. Returns the index of the @@ -641,7 +641,7 @@ See the <a href="ntqmessagebox.html#text-prop">"text"</a> property for details. <h3 class=fn><a href="ntqt.html#TextFormat-enum">TextFormat</a> <a name="textFormat"></a>TQMessageBox::textFormat () const </h3><p>Returns the format of the text displayed by the message box. See the <a href="ntqmessagebox.html#textFormat-prop">"textFormat"</a> property for details. -<h3 class=fn>int <a name="warning"></a>TQMessageBox::warning ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1, int button2 = 0 )<tt> [static]</tt> +<h3 class=fn>int <a name="warning"></a>TQMessageBox::warning ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, int button0, int button1, int button2 = 0 )<tt> [static]</tt> </h3> Opens a warning message box with the caption <em>caption</em> and the text <em>text</em>. The dialog may have up to three buttons. Each of the @@ -671,7 +671,7 @@ becomes modal relative to <em>parent</em>. <p> <p>See also <a href="#information">information</a>(), <a href="#question">question</a>(), and <a href="#critical">critical</a>(). <p>Examples: <a href="tutorial2-05.html#x2566">chart/chartform.cpp</a>, <a href="i18n-example.html#x1940">i18n/main.cpp</a>, <a href="mail-example.html#x708">network/mail/smtp.cpp</a>, <a href="qwerty-example.html#x374">qwerty/qwerty.cpp</a>, <a href="showimg-example.html#x1333">showimg/showimg.cpp</a>, and <a href="sound-example.html#x2812">sound/sound.cpp</a>. -<h3 class=fn>int <a name="warning-2"></a>TQMessageBox::warning ( <a href="ntqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> +<h3 class=fn>int <a name="warning-2"></a>TQMessageBox::warning ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="ntqstring.html">TQString</a> & caption, const <a href="ntqstring.html">TQString</a> & text, const <a href="ntqstring.html">TQString</a> & button0Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button1Text = TQString::null, const <a href="ntqstring.html">TQString</a> & button2Text = TQString::null, int defaultButtonNumber = 0, int escapeButtonNumber = -1 )<tt> [static]</tt> </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Displays a warning message box with a caption, a text, and 1, 2 or @@ -708,7 +708,7 @@ icons: <li> TQMessageBox::Critical </ul> <p> The actual pixmap used for displaying the icon depends on the -current <a href="ntqwidget.html#style">GUI style</a>. You can also set +current <a href="tqwidget.html#style">GUI style</a>. You can also set a custom pixmap icon using the <a href="#iconPixmap-prop">TQMessageBox::iconPixmap</a> property. The default icon is TQMessageBox::NoIcon. <p> <p>See also <a href="#iconPixmap-prop">iconPixmap</a>. |