summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-10 12:13:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-10 12:13:27 -0500
commitd296f1d337dabfeae5191955fdadb874965dbbe9 (patch)
tree1a4b3b4cca01f2ea77eee2497297219d60e9bbd4 /tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
parenteaa7ee2e0bbca40ba3173c4304f81957e8964291 (diff)
downloadexperimental-d296f1d337dabfeae5191955fdadb874965dbbe9.tar.gz
experimental-d296f1d337dabfeae5191955fdadb874965dbbe9.zip
rename the following methods:
tqparent parent tqmask mask
Diffstat (limited to 'tqtinterface/qt4/src/dialogs/tqmessagebox.cpp')
-rw-r--r--tqtinterface/qt4/src/dialogs/tqmessagebox.cpp134
1 files changed, 67 insertions, 67 deletions
diff --git a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
index 878a618..a31c218 100644
--- a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
@@ -63,7 +63,7 @@ class TQMessageBoxLabel : public TQLabel
{
TQ_OBJECT
public:
- TQMessageBoxLabel( TQWidget* tqparent ) : TQLabel( tqparent, "messageBoxText")
+ TQMessageBoxLabel( TQWidget* parent ) : TQLabel( parent, "messageBoxText")
{
tqsetAlignment( TQt::AlignAuto|TQt::ExpandTabs );
}
@@ -1404,8 +1404,8 @@ static char * qtlogo_xpm[] = {
struct TQMessageBoxData {
- TQMessageBoxData(TQMessageBox* tqparent) :
- iconLabel( tqparent, "icon" )
+ TQMessageBoxData(TQMessageBox* parent) :
+ iconLabel( parent, "icon" )
{
}
@@ -1447,16 +1447,16 @@ const char * mb_texts[] = {
Constructs a message box with no text and a button with the label
"OK".
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
- The \a tqparent and \a name arguments are passed to the TQDialog
+ The \a parent and \a name arguments are passed to the TQDialog
constructor.
*/
-TQMessageBox::TQMessageBox( TQWidget *tqparent, const char *name )
- : TQDialog( tqparent, name, TRUE, (WFlags)(WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
+TQMessageBox::TQMessageBox( TQWidget *parent, const char *name )
+ : TQDialog( parent, name, TRUE, (WFlags)(WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
{
init( Ok, 0, 0 );
}
@@ -1514,14 +1514,14 @@ TQMessageBox::TQMessageBox( TQWidget *tqparent, const char *name )
// try again
\endcode
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
If \a modal is TRUE the message box is modal; otherwise it
is modeless.
- The \a tqparent, \a name, \a modal, and \a f arguments are passed to
+ The \a parent, \a name, \a modal, and \a f arguments are passed to
the TQDialog constructor.
\sa setCaption(), setText(), setIcon()
@@ -1530,9 +1530,9 @@ TQMessageBox::TQMessageBox( TQWidget *tqparent, const char *name )
TQMessageBox::TQMessageBox( const TQString& caption,
const TQString &text, Icon icon,
int button0, int button1, int button2,
- TQWidget *tqparent, const char *name,
+ TQWidget *parent, const char *name,
bool modal, WFlags f )
- : TQDialog( tqparent, name, modal, (WFlags)(f | (WFlags)WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
+ : TQDialog( parent, name, modal, (WFlags)(f | (WFlags)WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
{
init( button0, button1, button2 );
#ifndef TQT_NO_WIDGET_TOPEXTRA
@@ -2076,20 +2076,20 @@ void TQMessageBox::closeEvent( TQCloseEvent *e )
Returns the identity (TQMessageBox::Ok, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa question(), warning(), critical()
*/
-int TQMessageBox::information( TQWidget *tqparent,
+int TQMessageBox::information( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Information,
button0, button1, button2,
- tqparent, "qt_msgbox_information", TRUE,
+ parent, "qt_msgbox_information", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2123,20 +2123,20 @@ int TQMessageBox::information( TQWidget *tqparent,
Returns the identity (TQMessageBox::Yes, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), warning(), critical()
*/
-int TQMessageBox::question( TQWidget *tqparent,
+int TQMessageBox::question( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Question,
button0, button1, button2,
- tqparent, "qt_msgbox_information", TRUE,
+ parent, "qt_msgbox_information", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2171,20 +2171,20 @@ int TQMessageBox::question( TQWidget *tqparent,
Returns the identity (TQMessageBox::Ok, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), question(), critical()
*/
-int TQMessageBox::warning( TQWidget *tqparent,
+int TQMessageBox::warning( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Warning,
button0, button1, button2,
- tqparent, "qt_msgbox_warning", TRUE,
+ parent, "qt_msgbox_warning", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2219,20 +2219,20 @@ int TQMessageBox::warning( TQWidget *tqparent,
Returns the identity (TQMessageBox::Ok, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), question(), warning()
*/
-int TQMessageBox::critical( TQWidget *tqparent,
+int TQMessageBox::critical( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Critical,
button0, button1, button2,
- tqparent, "qt_msgbox_critical", TRUE,
+ parent, "qt_msgbox_critical", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2241,12 +2241,12 @@ int TQMessageBox::critical( TQWidget *tqparent,
/*!
Displays a simple about box with caption \a caption and text \a
- text. The about box's tqparent is \a tqparent.
+ text. The about box's parent is \a parent.
about() looks for a suitable icon in four locations:
\list 1
- \i It prefers \link TQWidget::icon() tqparent->icon() \endlink if that exists.
- \i If not, it tries the top-level widget containing \a tqparent.
+ \i It prefers \link TQWidget::icon() parent->icon() \endlink if that exists.
+ \i If not, it tries the top-level widget containing \a parent.
\i If that fails, it tries the \link
TQApplication::mainWidget() main widget. \endlink
\i As a last resort it uses the Information icon.
@@ -2257,21 +2257,21 @@ int TQMessageBox::critical( TQWidget *tqparent,
\sa TQWidget::icon() TQApplication::mainWidget()
*/
-void TQMessageBox::about( TQWidget *tqparent, const TQString &caption,
+void TQMessageBox::about( TQWidget *parent, const TQString &caption,
const TQString& text )
{
TQMessageBox *mb = new TQMessageBox( caption, text,
Information,
Ok + Default, 0, 0,
- tqparent, "qt_msgbox_simple_about_box", TRUE,
+ parent, "qt_msgbox_simple_about_box", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
#ifndef TQT_NO_WIDGET_TOPEXTRA
- const TQPixmap *pm = tqparent ? tqparent->icon() : 0;
+ const TQPixmap *pm = parent ? parent->icon() : 0;
if ( pm && !pm->isNull() )
mb->setIconPixmap( *pm );
else {
- pm = tqparent ? tqparent->tqtopLevelWidget()->icon() : 0;
+ pm = parent ? parent->tqtopLevelWidget()->icon() : 0;
if ( pm && !pm->isNull() )
mb->setIconPixmap( *pm );
else {
@@ -2297,7 +2297,7 @@ void TQMessageBox::styleChanged( TQStyle& )
}
-static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
+static int textBox( TQWidget *parent, TQMessageBox::Icon severity,
const TQString& caption, const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2320,7 +2320,7 @@ static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
TQMessageBox *mb = new TQMessageBox( caption, text, severity,
b[0], b[1], b[2],
- tqparent, "qt_msgbox_information", TRUE,
+ parent, "qt_msgbox_information", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
if ( button0Text.isEmpty() )
@@ -2358,9 +2358,9 @@ static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
supply 0, 1 or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
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
@@ -2369,7 +2369,7 @@ static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
\sa question(), warning(), critical()
*/
-int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::information( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2377,7 +2377,7 @@ int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Information, caption, text,
+ return textBox( parent, Information, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2401,9 +2401,9 @@ int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
supply 0, 1 or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
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
@@ -2411,7 +2411,7 @@ int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
\sa information(), warning(), critical()
*/
-int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::question( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2419,7 +2419,7 @@ int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Question, caption, text,
+ return textBox( parent, Question, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2444,9 +2444,9 @@ int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
supply 0, 1, or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
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
@@ -2455,7 +2455,7 @@ int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
\sa information(), question(), critical()
*/
-int TQMessageBox::warning( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::warning( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2463,7 +2463,7 @@ int TQMessageBox::warning( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Warning, caption, text,
+ return textBox( parent, Warning, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2488,14 +2488,14 @@ int TQMessageBox::warning( TQWidget *tqparent, const TQString &caption,
supply 0, 1, or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), question(), warning()
*/
-int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::critical( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2503,7 +2503,7 @@ int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Critical, caption, text,
+ return textBox( parent, Critical, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2511,7 +2511,7 @@ int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
/*!
Displays a simple message box about TQt, with caption \a caption
- and centered over \a tqparent (if \a tqparent is not 0). The message
+ and centered over \a parent (if \a parent is not 0). The message
includes the version number of TQt being used by the application.
This is useful for inclusion in the Help menu of an application.
@@ -2522,9 +2522,9 @@ int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
\sa TQApplication::aboutTQt()
*/
-void TQMessageBox::aboutTQt( TQWidget *tqparent, const TQString &caption )
+void TQMessageBox::aboutTQt( TQWidget *parent, const TQString &caption )
{
- TQMessageBox *mb = new TQMessageBox( tqparent, "qt_msgbox_about_qt" );
+ TQMessageBox *mb = new TQMessageBox( parent, "qt_msgbox_about_qt" );
TQ_CHECK_PTR( mb );
mb->setWFlags( TQt::WDestructiveClose );