summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/tools/linguist/linguist/finddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/tqtinterface/qt4/tools/linguist/linguist/finddialog.cpp')
-rw-r--r--experimental/tqtinterface/qt4/tools/linguist/linguist/finddialog.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/experimental/tqtinterface/qt4/tools/linguist/linguist/finddialog.cpp b/experimental/tqtinterface/qt4/tools/linguist/linguist/finddialog.cpp
index 6dc876cc6..fe8129a16 100644
--- a/experimental/tqtinterface/qt4/tools/linguist/linguist/finddialog.cpp
+++ b/experimental/tqtinterface/qt4/tools/linguist/linguist/finddialog.cpp
@@ -46,60 +46,60 @@
#include <tqpushbutton.h>
#include <tqwhatsthis.h>
-FindDialog::FindDialog( bool tqreplace, TQWidget *tqparent, const char *name,
+FindDialog::FindDialog( bool replace, TQWidget *tqparent, const char *name,
bool modal )
: TQDialog( tqparent, name, modal )
{
sourceText = 0;
- led = new TQLineEdit( this, "tqfind line edit" );
- TQLabel *tqfindWhat = new TQLabel( led, tr("Fi&nd what:"), this, "tqfind what" );
- TQLabel *tqreplaceWith = 0;
- TQPushButton *tqfindNxt = new TQPushButton( tr("&Find Next"), this,
- "tqfind next" );
- tqfindNxt->setDefault( TRUE );
- connect( tqfindNxt, TQT_SIGNAL(clicked()), this, TQT_SLOT(emitFindNext()) );
- TQPushButton *cancel = new TQPushButton( tr("Cancel"), this, "cancel tqfind" );
+ led = new TQLineEdit( this, "find line edit" );
+ TQLabel *findWhat = new TQLabel( led, tr("Fi&nd what:"), this, "find what" );
+ TQLabel *replaceWith = 0;
+ TQPushButton *findNxt = new TQPushButton( tr("&Find Next"), this,
+ "find next" );
+ findNxt->setDefault( TRUE );
+ connect( findNxt, TQT_SIGNAL(clicked()), this, TQT_SLOT(emitFindNext()) );
+ TQPushButton *cancel = new TQPushButton( tr("Cancel"), this, "cancel find" );
connect( cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) );
- TQVBoxLayout *bl = new TQVBoxLayout( 6, "tqfind button tqlayout" );
- bl->addWidget( tqfindNxt );
+ TQVBoxLayout *bl = new TQVBoxLayout( 6, "find button tqlayout" );
+ bl->addWidget( findNxt );
- matchCase = new TQCheckBox( tr("&Match case"), this, "tqfind match case" );
+ matchCase = new TQCheckBox( tr("&Match case"), this, "find match case" );
matchCase->setChecked( FALSE );
- if ( tqreplace ) {
- TQWhatsThis::add( this, tr("This window allows you to search and tqreplace"
+ if ( replace ) {
+ TQWhatsThis::add( this, tr("This window allows you to search and replace"
" some text in the translations.") );
- red = new TQLineEdit( this, "tqreplace line edit" );
- tqreplaceWith = new TQLabel( red, tr("Replace &with:"), this,
- "tqreplace with" );
+ red = new TQLineEdit( this, "replace line edit" );
+ replaceWith = new TQLabel( red, tr("Replace &with:"), this,
+ "replace with" );
setTabOrder( led, red );
- TQPushButton *tqreplace = new TQPushButton( tr("&Replace"), this,
- "tqreplace" );
- connect( tqreplace, TQT_SIGNAL(clicked()), this, TQT_SLOT(emitReplace()) );
- TQPushButton *tqreplaceAll = new TQPushButton( tr("Replace &All"), this,
- "tqreplace all" );
- connect( tqreplaceAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(emitReplaceAll()) );
- setTabOrder( tqfindNxt, tqreplace );
- setTabOrder( tqreplace, tqreplaceAll );
- setTabOrder( tqreplaceAll, cancel );
-
- TQWhatsThis::add( tqreplace, tr("Click here to tqreplace the next occurrence"
+ TQPushButton *replace = new TQPushButton( tr("&Replace"), this,
+ "replace" );
+ connect( replace, TQT_SIGNAL(clicked()), this, TQT_SLOT(emitReplace()) );
+ TQPushButton *replaceAll = new TQPushButton( tr("Replace &All"), this,
+ "replace all" );
+ connect( replaceAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(emitReplaceAll()) );
+ setTabOrder( findNxt, replace );
+ setTabOrder( replace, replaceAll );
+ setTabOrder( replaceAll, cancel );
+
+ TQWhatsThis::add( replace, tr("Click here to replace the next occurrence"
" of the text you typed in.") );
- TQWhatsThis::add( tqreplaceAll, tr("Click here to tqreplace all occurrences"
+ TQWhatsThis::add( replaceAll, tr("Click here to replace all occurrences"
" of the text you typed in.") );
- bl->addWidget( tqreplace );
- bl->addWidget( tqreplaceAll );
+ bl->addWidget( replace );
+ bl->addWidget( replaceAll );
TQGridLayout *gl = new TQGridLayout( this, 4, 3, 11, 11,
- "tqfind outer tqlayout" );
- gl->addWidget( tqfindWhat, 0, 0 );
+ "find outer tqlayout" );
+ gl->addWidget( findWhat, 0, 0 );
gl->addWidget( led, 0, 1 );
- gl->addWidget( tqreplaceWith, 1, 0 );
+ gl->addWidget( replaceWith, 1, 0 );
gl->addWidget( red, 1, 1 );
gl->addMultiCellWidget( matchCase, 2, 2, 0, 1 );
gl->addMultiCell( bl, 0, 3, 3, 3 );
@@ -108,12 +108,12 @@ FindDialog::FindDialog( bool tqreplace, TQWidget *tqparent, const char *name,
" text in the translation source file.") );
sourceText = new TQCheckBox( tr("&Source texts"), this,
- "tqfind in source texts" );
+ "find in source texts" );
sourceText->setChecked( TRUE );
translations = new TQCheckBox( tr("&Translations"), this,
- "tqfind in translations" );
+ "find in translations" );
translations->setChecked( TRUE );
- comments = new TQCheckBox( tr("&Comments"), this, "tqfind in comments" );
+ comments = new TQCheckBox( tr("&Comments"), this, "find in comments" );
comments->setChecked( TRUE );
TQWhatsThis::add( sourceText, tr("Source texts are searched when"
@@ -123,11 +123,11 @@ FindDialog::FindDialog( bool tqreplace, TQWidget *tqparent, const char *name,
TQWhatsThis::add( comments, tr("Comments and contexts are searched when"
" checked.") );
- TQVBoxLayout *cl = new TQVBoxLayout( 6, "tqfind checkbox tqlayout" );
+ TQVBoxLayout *cl = new TQVBoxLayout( 6, "find checkbox tqlayout" );
TQGridLayout *gl = new TQGridLayout( this, 3, 4, 11, 11,
- "tqfind outer tqlayout" );
- gl->addWidget( tqfindWhat, 0, 0 );
+ "find outer tqlayout" );
+ gl->addWidget( findWhat, 0, 0 );
gl->addMultiCellWidget( led, 0, 0, 1, 2 );
gl->addWidget( matchCase, 1, 2 );
gl->addMultiCell( bl, 0, 2, 3, 3 );
@@ -147,7 +147,7 @@ FindDialog::FindDialog( bool tqreplace, TQWidget *tqparent, const char *name,
TQWhatsThis::add( matchCase, tr("Texts such as 'TeX' and 'tex' are"
" considered as different when checked.") );
- TQWhatsThis::add( tqfindNxt, tr("Click here to tqfind the next occurrence of the"
+ TQWhatsThis::add( findNxt, tr("Click here to find the next occurrence of the"
" text you typed in.") );
TQWhatsThis::add( cancel, tr("Click here to close this window.") );
@@ -169,15 +169,15 @@ void FindDialog::emitFindNext()
( comments->isChecked() ? Comments : 0 );
else
where = Translations;
- emit tqfindNext( led->text(), where, matchCase->isChecked() );
+ emit findNext( led->text(), where, matchCase->isChecked() );
}
void FindDialog::emitReplace()
{
- emit tqreplace( led->text(), red->text(), matchCase->isChecked(), FALSE );
+ emit replace( led->text(), red->text(), matchCase->isChecked(), FALSE );
}
void FindDialog::emitReplaceAll()
{
- emit tqreplace( led->text(), red->text(), matchCase->isChecked(), TRUE );
+ emit replace( led->text(), red->text(), matchCase->isChecked(), TRUE );
}