diff options
Diffstat (limited to 'doc/html/ntqmessagebox.html')
-rw-r--r-- | doc/html/ntqmessagebox.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/html/ntqmessagebox.html b/doc/html/ntqmessagebox.html index 43a64c6cd..063937933 100644 --- a/doc/html/ntqmessagebox.html +++ b/doc/html/ntqmessagebox.html @@ -128,7 +128,7 @@ well without it: "Do you want to overwrite it?") .arg( filename ), <a href="tqobject.html#tr">tr</a>("&Yes"), tr("&No"), - <a href="ntqstring.html#TQString-null">TQString::null</a>, 0, 1 ) ) + <a href="tqstring.html#TQString-null">TQString::null</a>, 0, 1 ) ) return false; </pre> @@ -209,7 +209,7 @@ hard-coded button texts: </pre> <p> The <a href="#critical">critical</a>() function should be reserved for critical errors. In -this example errorDetails is a <a href="ntqstring.html">TQString</a> or const char*, and TQString +this example errorDetails is a <a href="tqstring.html">TQString</a> or const char*, and TQString is used to concatenate several strings: <p> <pre> TQMessageBox::<a href="#critical">critical</a>( 0, "Application name here", @@ -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="tqwidget.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="tqstring.html">TQString</a> & caption, const <a href="tqstring.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. @@ -383,7 +383,7 @@ the <a href="ntqdialog.html">TQDialog</a> constructor. </h3> Destroys the message box. -<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 class=fn>void <a name="about"></a>TQMessageBox::about ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.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: @@ -397,7 +397,7 @@ Displays a simple about box with caption <em>caption</em> and text <em>text</em> <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="tqwidget.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="tqstring.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 @@ -416,13 +416,13 @@ Adjusts the size of the message box to fit the contents just before resized before showing it. <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 class=fn><a href="tqstring.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. +<a href="tqstring.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="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 class=fn>int <a name="critical"></a>TQMessageBox::critical ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.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="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 class=fn>int <a name="critical-2"></a>TQMessageBox::critical ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.html">TQString</a> & button0Text = TQString::null, const <a href="tqstring.html">TQString</a> & button1Text = TQString::null, const <a href="tqstring.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="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 class=fn>int <a name="information"></a>TQMessageBox::information ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.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="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 class=fn>int <a name="information-2"></a>TQMessageBox::information ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.html">TQString</a> & button0Text = TQString::null, const <a href="tqstring.html">TQString</a> & button1Text = TQString::null, const <a href="tqstring.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="tqwidget.html">TQWidget</a> * parent = 0, const char * = 0 )<tt> [static]</tt> +<h3 class=fn>int <a name="message"></a>TQMessageBox::message ( const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.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="tqwidget.html">TQWidget</a> * parent = 0, const char * = 0 )<tt> [static]</tt> +<h3 class=fn>bool <a name="query"></a>TQMessageBox::query ( const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.html">TQString</a> & yesButtonText = TQString::null, const <a href="tqstring.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="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 class=fn>int <a name="question"></a>TQMessageBox::question ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.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="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 class=fn>int <a name="question-2"></a>TQMessageBox::question ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.html">TQString</a> & button0Text = TQString::null, const <a href="tqstring.html">TQString</a> & button1Text = TQString::null, const <a href="tqstring.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 @@ -599,7 +599,7 @@ 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="#information">information</a>(), <a href="#warning">warning</a>(), and <a href="#critical">critical</a>(). -<h3 class=fn>void <a name="setButtonText"></a>TQMessageBox::setButtonText ( int button, const <a href="ntqstring.html">TQString</a> & text ) +<h3 class=fn>void <a name="setButtonText"></a>TQMessageBox::setButtonText ( int button, const <a href="tqstring.html">TQString</a> & text ) </h3> Sets the text of the message box button <em>button</em> to <em>text</em>. Setting the text of a button that is not in the message box is @@ -612,7 +612,7 @@ See the <a href="ntqmessagebox.html#icon-prop">"icon"</a> property for details. <h3 class=fn>void <a name="setIconPixmap"></a>TQMessageBox::setIconPixmap ( const <a href="ntqpixmap.html">TQPixmap</a> & ) </h3><p>Sets the current icon. See the <a href="ntqmessagebox.html#iconPixmap-prop">"iconPixmap"</a> property for details. -<h3 class=fn>void <a name="setText"></a>TQMessageBox::setText ( const <a href="ntqstring.html">TQString</a> & ) +<h3 class=fn>void <a name="setText"></a>TQMessageBox::setText ( const <a href="tqstring.html">TQString</a> & ) </h3><p>Sets the message box text to be displayed. See the <a href="ntqmessagebox.html#text-prop">"text"</a> property for details. <h3 class=fn>void <a name="setTextFormat"></a>TQMessageBox::setTextFormat ( <a href="ntqt.html#TextFormat-enum">TextFormat</a> ) @@ -635,13 +635,13 @@ allows the pixmaps to be used in more complex message boxes. TQMessageBox::Warning or TQMessageBox::Critical. <p> <em>style</em> is unused. -<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="text"></a>TQMessageBox::text () const +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="text"></a>TQMessageBox::text () const </h3><p>Returns the message box text to be displayed. 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="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 class=fn>int <a name="warning"></a>TQMessageBox::warning ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.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="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 class=fn>int <a name="warning-2"></a>TQMessageBox::warning ( <a href="tqwidget.html">TQWidget</a> * parent, const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & text, const <a href="tqstring.html">TQString</a> & button0Text = TQString::null, const <a href="tqstring.html">TQString</a> & button1Text = TQString::null, const <a href="tqstring.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 @@ -722,12 +722,12 @@ Windows GUI styles; you may want to draw two pixmaps. <p> <p>See also <a href="#icon-prop">icon</a>. <p>Set this property's value with <a href="#setIconPixmap">setIconPixmap</a>() and get this property's value with <a href="#iconPixmap">iconPixmap</a>(). -<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="text-prop"></a>text</h3> +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="text-prop"></a>text</h3> <p>This property holds the message box text to be displayed. <p>The text will be interpreted either as a plain text or as rich text, depending on the text format setting (<a href="#textFormat-prop">TQMessageBox::textFormat</a>). The default setting is <a href="ntqt.html#TextFormat-enum">AutoText</a>, i.e. the message box will try to auto-detect the format of the text. -<p> The default value of this property is <a href="ntqstring.html#TQString-null">TQString::null</a>. +<p> The default value of this property is <a href="tqstring.html#TQString-null">TQString::null</a>. <p> <p>See also <a href="#textFormat-prop">textFormat</a>. <p>Set this property's value with <a href="#setText">setText</a>() and get this property's value with <a href="#text">text</a>(). |