GNU plural form header
\n"
"Here you can fill a header entry for GNU plural form handling; "
"if you leave the entry empty, the entry in the PO file will not be "
@@ -557,18 +557,18 @@ void IdentityPreferences::defaults(const IdentitySettings& settings)
_checkPluralArgumentBox->setChecked(settings.checkPluralArgument);
}
-bool IdentityPreferences::eventFilter(QObject *o, QEvent *e)
+bool IdentityPreferences::eventFilter(TQObject *o, TQEvent *e)
{
- if(e->type() == QEvent::Drop)
+ if(e->type() == TQEvent::Drop)
{
- QDropEvent *de = static_cast(e);
+ TQDropEvent *de = static_cast(e);
KURL::List urlList;
if(de && KURLDrag::decode(de,urlList))
{
KURL url(urlList.first());
if(url.protocol()== "mailto")
{
- QString mail=url.path();
+ TQString mail=url.path();
bool handled=false;
if(o == _mailEdit)
@@ -594,14 +594,14 @@ bool IdentityPreferences::eventFilter(QObject *o, QEvent *e)
void IdentityPreferences::checkTestPluralButton()
{
int val = _pluralFormsBox->value();
- QString lang=_langCodeEdit->text();
+ TQString lang=_langCodeEdit->text();
_testPluralButton->setEnabled(val==0 && !lang.isEmpty());
}
void IdentityPreferences::testPluralForm()
{
- QString lang=_langCodeEdit->text();
+ TQString lang=_langCodeEdit->text();
if(lang.isEmpty())
{
@@ -611,7 +611,7 @@ void IdentityPreferences::testPluralForm()
int number=Catalog::getNumberOfPluralForms(lang);
- QString msg;
+ TQString msg;
if(number < 0)
{
@@ -635,7 +635,7 @@ void IdentityPreferences::testPluralForm()
void IdentityPreferences::lookupGnuPluralFormHeader()
{
- QString lang=_langCodeEdit->text();
+ TQString lang=_langCodeEdit->text();
if(lang.isEmpty())
{
@@ -643,7 +643,7 @@ void IdentityPreferences::lookupGnuPluralFormHeader()
return;
}
- QString header=GNUPluralForms(lang);
+ TQString header=GNUPluralForms(lang);
if( header.isEmpty() )
{
@@ -658,39 +658,39 @@ void IdentityPreferences::lookupGnuPluralFormHeader()
}
-MiscPreferences::MiscPreferences(QWidget *parent)
- : QWidget(parent), _regExpEditDialog(0)
+MiscPreferences::MiscPreferences(TQWidget *parent)
+ : TQWidget(parent), _regExpEditDialog(0)
{
- QWidget* page = this;
+ TQWidget* page = this;
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQVBoxLayout* layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QGroupBox* box=new QGroupBox(1,Qt::Horizontal,page);
+ TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page);
box->setMargin(KDialog::marginHint());
layout->addWidget(box);
- QHBox *hbox = new QHBox(box);
+ TQHBox *hbox = new TQHBox(box);
hbox->setSpacing(KDialog::spacingHint());
- QLabel *label = new QLabel(i18n("&Marker for keyboard accelerator:"),hbox);
+ TQLabel *label = new TQLabel(i18n("&Marker for keyboard accelerator:"),hbox);
accelMarkerEdit = new KLineEdit(hbox, "kcfg_AccelMarker");
accelMarkerEdit->setMaxLength(1);
label->setBuddy(accelMarkerEdit);
hbox->setStretchFactor(accelMarkerEdit,1);
- QString msg=i18n("Marker for keyboard accelerator
"
+ TQString msg=i18n("Marker for keyboard accelerator
"
"Define here, what character marks the following "
"character as keyboard accelerator. For example in Qt it is "
"'&' and in Gtk it is '_'.
");
- QWhatsThis::add(label,msg);
- QWhatsThis::add(accelMarkerEdit,msg);
+ TQWhatsThis::add(label,msg);
+ TQWhatsThis::add(accelMarkerEdit,msg);
- hbox = new QHBox(box);
+ hbox = new TQHBox(box);
hbox->setSpacing(KDialog::spacingHint());
- label = new QLabel(i18n("&Regular expression for context information:")
+ label = new TQLabel(i18n("&Regular expression for context information:")
,hbox);
contextInfoEdit = new KLineEdit(hbox, "kcfg_ContextInfo");
label->setBuddy(contextInfoEdit);
@@ -700,27 +700,27 @@ MiscPreferences::MiscPreferences(QWidget *parent)
"Enter a regular expression here which defines what is "
"context information in the message and must not get "
"translated.
");
- QWhatsThis::add(label,msg);
- QWhatsThis::add(contextInfoEdit,msg);
+ TQWhatsThis::add(label,msg);
+ TQWhatsThis::add(contextInfoEdit,msg);
if( !KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
{
- _regExpButton = new QPushButton( i18n("&Edit..."), hbox );
- connect( _regExpButton, SIGNAL( clicked() ), this, SLOT( regExpButtonClicked()));
+ _regExpButton = new TQPushButton( i18n("&Edit..."), hbox );
+ connect( _regExpButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( regExpButtonClicked()));
}
// preferences for mail attachments
- QVButtonGroup* vbgroup = new QVButtonGroup(page);
+ TQVButtonGroup* vbgroup = new TQVButtonGroup(page);
vbgroup->setTitle(i18n("Compression Method for Mail Attachments"));
vbgroup->setRadioButtonExclusive(true);
vbgroup->setMargin(KDialog::marginHint());
layout->addWidget(vbgroup);
- bzipButton = new QRadioButton(i18n("tar/&bzip2"), vbgroup, "kcfg_BZipCompression");
- gzipButton = new QRadioButton(i18n("tar/&gzip"), vbgroup);
+ bzipButton = new TQRadioButton(i18n("tar/&bzip2"), vbgroup, "kcfg_BZipCompression");
+ gzipButton = new TQRadioButton(i18n("tar/&gzip"), vbgroup);
- compressSingle = new QCheckBox(i18n("&Use compression when sending "
+ compressSingle = new TQCheckBox(i18n("&Use compression when sending "
"a single file"), vbgroup, "kcfg_CompressSingleFile");
layout->addStretch(1);
@@ -739,12 +739,12 @@ void MiscPreferences::defaults(const MiscSettings& settings)
compressSingle->setChecked(settings.compressSingleFile);
}
-QString MiscPreferences::contextInfo() const
+TQString MiscPreferences::contextInfo() const
{
- QString temp=contextInfoEdit->text();
+ TQString temp=contextInfoEdit->text();
bool quoted=false;
- QString newStr;
+ TQString newStr;
for(uint i=0; isetText(reg);
@@ -777,61 +777,61 @@ void MiscPreferences::setContextInfo(QString reg)
void MiscPreferences::regExpButtonClicked()
{
if ( _regExpEditDialog==0 )
- _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery
- ("KRegExpEditor/KRegExpEditor", QString::null, this );
+ _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery
+ ("KRegExpEditor/KRegExpEditor", TQString::null, this );
KRegExpEditorInterface *iface = dynamic_cast( _regExpEditDialog );
if( iface )
{
iface->setRegExp( contextInfoEdit->text() );
- if( _regExpEditDialog->exec() == QDialog::Accepted )
+ if( _regExpEditDialog->exec() == TQDialog::Accepted )
contextInfoEdit->setText( iface->regExp() );
}
}
-SpellPreferences::SpellPreferences(QWidget* parent)
- : QWidget(parent)
+SpellPreferences::SpellPreferences(TQWidget* parent)
+ : TQWidget(parent)
{
- QWidget* page = this;
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQWidget* page = this;
+ TQVBoxLayout* layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- onFlyBtn = new QCheckBox(i18n("On the &fly spellchecking"),page, "kcfg_OnFlySpellCheck");
+ onFlyBtn = new TQCheckBox(i18n("On the &fly spellchecking"),page, "kcfg_OnFlySpellCheck");
layout->addWidget(onFlyBtn);
- QWhatsThis::add(onFlyBtn, i18n("On the fly spellchecking
"
+ TQWhatsThis::add(onFlyBtn, i18n("On the fly spellchecking
"
"Activate this to let KBabel spell check the text "
"as you type. Mispelled words will be colored by the error color.
"));
spellConfig = new KSpellConfig(page,"spellConfigWidget",0,false);
layout->addWidget(spellConfig);
- remIgnoredBtn = new QCheckBox(i18n("&Remember ignored words"),page, "kcfg_RememberIgnored");
+ remIgnoredBtn = new TQCheckBox(i18n("&Remember ignored words"),page, "kcfg_RememberIgnored");
layout->addWidget(remIgnoredBtn);
- connect( spellConfig, SIGNAL( configChanged() )
- , this, SIGNAL ( settingsChanged() ) );
+ connect( spellConfig, TQT_SIGNAL( configChanged() )
+ , this, TQT_SIGNAL ( settingsChanged() ) );
- QLabel *tempLabel = new QLabel(i18n("F&ile to store ignored words:"),page);
+ TQLabel *tempLabel = new TQLabel(i18n("F&ile to store ignored words:"),page);
layout->addWidget(tempLabel);
ignoreURLEdit = new KURLRequester(page, "kcfg_IgnoreURL");
layout->addWidget(ignoreURLEdit);
tempLabel->setBuddy(ignoreURLEdit);
- connect(remIgnoredBtn,SIGNAL(toggled(bool)),ignoreURLEdit
- ,SLOT(setEnabled(bool)));
+ connect(remIgnoredBtn,TQT_SIGNAL(toggled(bool)),ignoreURLEdit
+ ,TQT_SLOT(setEnabled(bool)));
- QString msg = i18n("Remember ignored words
"
+ TQString msg = i18n("Remember ignored words
"
"Activate this, to let KBabel ignore the words, where you have "
"chosen Ignore All in the spell check dialog, "
"in every spell check.
");
- QWhatsThis::add(remIgnoredBtn,msg);
- QWhatsThis::add(tempLabel,msg);
- QWhatsThis::add(ignoreURLEdit,msg);
+ TQWhatsThis::add(remIgnoredBtn,msg);
+ TQWhatsThis::add(tempLabel,msg);
+ TQWhatsThis::add(ignoreURLEdit,msg);
layout->addStretch(1);
@@ -874,21 +874,21 @@ void SpellPreferences::defaults(const SpellcheckSettings& settings)
*spellConfig = spCfg;
}
-CatmanPreferences::CatmanPreferences(QWidget* parent)
- : QWidget(parent)
+CatmanPreferences::CatmanPreferences(TQWidget* parent)
+ : TQWidget(parent)
{
- QWidget* page = this;
+ TQWidget* page = this;
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQVBoxLayout* layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QGroupBox* box=new QGroupBox(1,Qt::Horizontal,page);
+ TQGroupBox* box=new TQGroupBox(1,Qt::Horizontal,page);
box->setMargin(KDialog::marginHint());
layout->addWidget(box);
- QLabel* label=new QLabel(i18n("&Base folder of PO files:"),box);
- QHBox* hbox = new QHBox(box);
+ TQLabel* label=new TQLabel(i18n("&Base folder of PO files:"),box);
+ TQHBox* hbox = new TQHBox(box);
hbox->setSpacing(KDialog::spacingHint());
const KFile::Mode mode = static_cast( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
@@ -900,8 +900,8 @@ CatmanPreferences::CatmanPreferences(QWidget* parent)
label->setBuddy(_poDirEdit);
- label=new QLabel(i18n("Ba&se folder of POT files:"),box);
- hbox = new QHBox(box);
+ label=new TQLabel(i18n("Ba&se folder of POT files:"),box);
+ hbox = new TQHBox(box);
hbox->setSpacing(KDialog::spacingHint());
_potDirEdit = new KURLRequester(hbox, "kcfg_PotBaseDir");
@@ -911,40 +911,40 @@ CatmanPreferences::CatmanPreferences(QWidget* parent)
- QWhatsThis::add(box,i18n("Base folders
\n"
+ TQWhatsThis::add(box,i18n("Base folders
\n"
"Type in the folders which contain all your PO and POT files.\n"
"The files and the folders in these folders will then be merged into one\n"
"tree.
"));
- box=new QGroupBox(1,Qt::Horizontal,page);
+ box=new TQGroupBox(1,Qt::Horizontal,page);
box->setMargin(KDialog::marginHint());
layout->addWidget(box);
- _openWindowButton = new QCheckBox(i18n("O&pen files in new window"),box, "kcfg_OpenWindow");
+ _openWindowButton = new TQCheckBox(i18n("O&pen files in new window"),box, "kcfg_OpenWindow");
- QWhatsThis::add(_openWindowButton,i18n("Open files in new window
\n"
+ TQWhatsThis::add(_openWindowButton,i18n("Open files in new window
\n"
"If this is activated all files that are opened from the Catalog Manager are opened\n"
"in a new window.
"));
- _killButton = new QCheckBox( i18n("&Kill processes on exit") , box, "kcfg_KillCmdOnExit" );
+ _killButton = new TQCheckBox( i18n("&Kill processes on exit") , box, "kcfg_KillCmdOnExit" );
- QWhatsThis::add( _killButton , i18n("Kill processes on exit
\n"
+ TQWhatsThis::add( _killButton , i18n("Kill processes on exit
\n"
"If you check this, KBabel tries to kill the processes, that have not exited already when KBabel exits,\n"
"by sending a kill signal to them.
\n"
"NOTE: It is not guaranteed that the processes will be killed.
") );
- _indexButton = new QCheckBox( i18n("Create inde&x for file contents"), box, "kcfg_IndexWords" );
+ _indexButton = new TQCheckBox( i18n("Create inde&x for file contents"), box, "kcfg_IndexWords" );
- QWhatsThis::add( _indexButton , i18n("Create index for file contents
\n"
+ TQWhatsThis::add( _indexButton , i18n("Create index for file contents
\n"
"If you check this, KBabel will create an index for each PO file to speed up the find/replace functions.
\n"
"NOTE: This will slow down updating the file information considerably.
") );
- m_msgfmtButton = new QCheckBox( i18n("Run &msgfmt before processing a file"), box, "kcfg_msgfmt" );
+ m_msgfmtButton = new TQCheckBox( i18n("Run &msgfmt before processing a file"), box, "kcfg_msgfmt" );
- QWhatsThis::add( m_msgfmtButton, i18n("Run msgfmt before processing a file
"
+ TQWhatsThis::add( m_msgfmtButton, i18n("Run msgfmt before processing a file
"
"If you enable this, KBabel will run Gettext's "
"msgfmt tool before processing a file.
"
"Enabling this setting is recommended, even if it causes processing to be slower. "
@@ -976,26 +976,26 @@ void CatmanPreferences::defaults(const CatManSettings& settings)
m_msgfmtButton->setChecked( settings.msgfmt );
}
-DirCommandsPreferences::DirCommandsPreferences(QWidget* parent)
- : QWidget(parent)
+DirCommandsPreferences::DirCommandsPreferences(TQWidget* parent)
+ : TQWidget(parent)
{
- QWidget* page = this;
+ TQWidget* page = this;
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQVBoxLayout* layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QGroupBox* box = new QGroupBox( 1 , Qt::Horizontal , i18n("Commands for Folders") , page );
+ TQGroupBox* box = new TQGroupBox( 1 , Qt::Horizontal , i18n("Commands for Folders") , page );
box->setMargin( KDialog::marginHint() );
layout->addWidget( box );
_dirCmdEdit = new CmdEdit( box );
- new QLabel( i18n("Replaceables:\n@PACKAGE@, @PODIR@, @POTDIR@\n"
+ new TQLabel( i18n("Replaceables:\n@PACKAGE@, @PODIR@, @POTDIR@\n"
"@POFILES@, @MARKEDPOFILES@"), box);
- connect (_dirCmdEdit, SIGNAL(widgetChanged()), this, SIGNAL(settingsChanged()));
+ connect (_dirCmdEdit, TQT_SIGNAL(widgetChanged()), this, TQT_SIGNAL(settingsChanged()));
- QWhatsThis::add( box , i18n("Commands for folders
"
+ TQWhatsThis::add( box , i18n("Commands for folders
"
"Insert here the commands you want to execute in folders from "
"the Catalog Manager. The commands are then shown in the submenu "
"Commands in the Catalog Manager's context menu.
"
@@ -1039,26 +1039,26 @@ void DirCommandsPreferences::defaults(const CatManSettings& settings)
}
-FileCommandsPreferences::FileCommandsPreferences(QWidget* parent)
- : QWidget(parent)
+FileCommandsPreferences::FileCommandsPreferences(TQWidget* parent)
+ : TQWidget(parent)
{
- QWidget* page = this;
+ TQWidget* page = this;
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQVBoxLayout* layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QGroupBox* box=new QGroupBox( 1 , Qt::Horizontal , i18n("Commands for Files") , page );
+ TQGroupBox* box=new TQGroupBox( 1 , Qt::Horizontal , i18n("Commands for Files") , page );
box->setMargin( KDialog::marginHint() );
layout->addWidget( box );
_fileCmdEdit = new CmdEdit( box );
- new QLabel( i18n("Replaceables:\n"
+ new TQLabel( i18n("Replaceables:\n"
"@PACKAGE@, @POFILE@,@POTFILE@,\n@PODIR@, @POTDIR@"), box);
- connect (_fileCmdEdit, SIGNAL(widgetChanged()), this, SIGNAL(settingsChanged()));
+ connect (_fileCmdEdit, TQT_SIGNAL(widgetChanged()), this, TQT_SIGNAL(settingsChanged()));
- QWhatsThis::add( box , i18n("Commands for files
"
+ TQWhatsThis::add( box , i18n("Commands for files
"
"Insert here the commands you want to execute on files from "
"the Catalog Manager. The commands are then shown in the submenu "
"Commands in the Catalog Manager's context menu.
"
@@ -1102,28 +1102,28 @@ void FileCommandsPreferences::defaults(const CatManSettings& settings)
_fileCmdEdit->setCommands( settings.fileCommands, settings.fileCommandNames );
}
-ViewPreferences::ViewPreferences(QWidget* parent)
- : QWidget(parent)
+ViewPreferences::ViewPreferences(TQWidget* parent)
+ : TQWidget(parent)
{
- QWidget* page = this;
+ TQWidget* page = this;
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQVBoxLayout* layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QGroupBox* box=new QGroupBox(2, Qt::Horizontal,i18n("Shown Columns"),page);
+ TQGroupBox* box=new TQGroupBox(2, Qt::Horizontal,i18n("Shown Columns"),page);
box->setMargin(KDialog::marginHint());
layout->addWidget(box);
- _flagColumnCheckbox = new QCheckBox( i18n("Fla&g"), box, "kcfg_ShowFlagColumn" );
- _fuzzyColumnCheckbox = new QCheckBox( i18n("&Fuzzy"), box, "kcfg_ShowFuzzyColumn" );
- _untranslatedColumnCheckbox = new QCheckBox( i18n("&Untranslated"), box, "kcfg_ShowUntranslatedColumn" );
- _totalColumnCheckbox = new QCheckBox( i18n("&Total"), box, "kcfg_ShowTotalColumn" );
- _cvsColumnCheckbox = new QCheckBox( i18n("SVN/&CVS status"), box, "kcfg_ShowCVSColumn" );
- _revisionColumnCheckbox = new QCheckBox( i18n("Last &revision"), box, "kcfg_ShowRevisionColumn" );
- _translatorColumnCheckbox = new QCheckBox( i18n("Last t&ranslator"), box, "kcfg_ShowTranslatorColumn" );
+ _flagColumnCheckbox = new TQCheckBox( i18n("Fla&g"), box, "kcfg_ShowFlagColumn" );
+ _fuzzyColumnCheckbox = new TQCheckBox( i18n("&Fuzzy"), box, "kcfg_ShowFuzzyColumn" );
+ _untranslatedColumnCheckbox = new TQCheckBox( i18n("&Untranslated"), box, "kcfg_ShowUntranslatedColumn" );
+ _totalColumnCheckbox = new TQCheckBox( i18n("&Total"), box, "kcfg_ShowTotalColumn" );
+ _cvsColumnCheckbox = new TQCheckBox( i18n("SVN/&CVS status"), box, "kcfg_ShowCVSColumn" );
+ _revisionColumnCheckbox = new TQCheckBox( i18n("Last &revision"), box, "kcfg_ShowRevisionColumn" );
+ _translatorColumnCheckbox = new TQCheckBox( i18n("Last t&ranslator"), box, "kcfg_ShowTranslatorColumn" );
- QWhatsThis::add(box,i18n("Shown columns
\n"
+ TQWhatsThis::add(box,i18n("Shown columns
\n"
""));
layout->addStretch(1);
@@ -1145,16 +1145,16 @@ void ViewPreferences::defaults(const CatManSettings& _settings)
_translatorColumnCheckbox->setChecked(_settings.translatorColumn);
}
-SourceContextPreferences::SourceContextPreferences(QWidget* parent): QWidget(parent)
+SourceContextPreferences::SourceContextPreferences(TQWidget* parent): TQWidget(parent)
{
- QWidget* page = this;
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQWidget* page = this;
+ TQVBoxLayout* layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QHBox* box = new QHBox(page);
+ TQHBox* box = new TQHBox(page);
box->setSpacing(KDialog::spacingHint());
- QLabel* tempLabel=new QLabel(i18n("&Base folder for source code:"),box);
+ TQLabel* tempLabel=new TQLabel(i18n("&Base folder for source code:"),box);
const KFile::Mode mode = static_cast( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
_coderootEdit = new KURLRequester ( box, "kcfg_CodeRoot" );
@@ -1168,8 +1168,8 @@ SourceContextPreferences::SourceContextPreferences(QWidget* parent): QWidget(par
_pathsEditor->setTitle(i18n("Path Patterns"));
layout->addWidget(_pathsEditor);
- connect ( _pathsEditor, SIGNAL (itemsChanged ())
- , this, SIGNAL (itemsChanged ()));
+ connect ( _pathsEditor, TQT_SIGNAL (itemsChanged ())
+ , this, TQT_SIGNAL (itemsChanged ()));
_pathsEditor->installEventFilter(this);
@@ -1195,11 +1195,11 @@ void SourceContextPreferences::defaults(const KBabel::SourceContextSettings& set
_pathsEditor->setList(settings.sourcePaths);
}
-bool SourceContextPreferences::eventFilter( QObject *, QEvent *e )
+bool SourceContextPreferences::eventFilter( TQObject *, TQEvent *e )
{
- if( e->type() == QEvent::KeyPress )
+ if( e->type() == TQEvent::KeyPress )
{
- QKeyEvent *ke = dynamic_cast(e);
+ TQKeyEvent *ke = dynamic_cast(e);
if( ke->key() == Key_Return || ke->key() == Key_Enter )
return true;
}
diff --git a/kbabel/commonui/projectprefwidgets.h b/kbabel/commonui/projectprefwidgets.h
index 81a1b3e6..8dd7b561 100644
--- a/kbabel/commonui/projectprefwidgets.h
+++ b/kbabel/commonui/projectprefwidgets.h
@@ -36,7 +36,7 @@
#define PROJECTPREFWIDGETS_H
#include
-#include
+#include
#include "projectsettings.h"
@@ -66,42 +66,42 @@ class KDE_EXPORT SavePreferences : public KTabCtl
{
Q_OBJECT
public:
- SavePreferences(QWidget* parent=0);
+ SavePreferences(TQWidget* parent=0);
void defaults(const KBabel::SaveSettings& settings);
void setAutoSaveVisible(const bool on);
private:
- QCheckBox* _lastButton;
- QCheckBox* _revisionButton;
- QCheckBox* _languageButton;
- QCheckBox* _charsetButton;
- QCheckBox* _encodingButton;
- QCheckBox* _projectButton;
-
- QCheckBox* _updateButton;
- QCheckBox* _autoCheckButton;
- QCheckBox* _saveObsoleteButton;
-
- QComboBox* _encodingBox;
- QCheckBox* _oldEncodingButton;
-
- QRadioButton* _defaultDateButton;
- QRadioButton* _localDateButton;
- QRadioButton* _customDateButton;
- QLineEdit* _dateFormatEdit;
+ TQCheckBox* _lastButton;
+ TQCheckBox* _revisionButton;
+ TQCheckBox* _languageButton;
+ TQCheckBox* _charsetButton;
+ TQCheckBox* _encodingButton;
+ TQCheckBox* _projectButton;
+
+ TQCheckBox* _updateButton;
+ TQCheckBox* _autoCheckButton;
+ TQCheckBox* _saveObsoleteButton;
+
+ TQComboBox* _encodingBox;
+ TQCheckBox* _oldEncodingButton;
+
+ TQRadioButton* _defaultDateButton;
+ TQRadioButton* _localDateButton;
+ TQRadioButton* _customDateButton;
+ TQLineEdit* _dateFormatEdit;
- QLineEdit* _projectEdit;
+ TQLineEdit* _projectEdit;
- QRadioButton* _removeFSFButton;
- QRadioButton* _updateFSFButton;
- QRadioButton* _nochangeFSFButton;
- QCheckBox* _translatorCopyrightButton;
+ TQRadioButton* _removeFSFButton;
+ TQRadioButton* _updateFSFButton;
+ TQRadioButton* _nochangeFSFButton;
+ TQCheckBox* _translatorCopyrightButton;
- QCheckBox* _descriptionButton;
- QLineEdit* _descriptionEdit;
+ TQCheckBox* _descriptionButton;
+ TQLineEdit* _descriptionEdit;
KIntNumInput * _autoSaveDelay;
- QGroupBox * _autoSaveBox;
+ TQGroupBox * _autoSaveBox;
private slots:
void customDateActivated(bool on);
@@ -112,8 +112,8 @@ class IdentityPreferences : public QWidget
{
Q_OBJECT
public:
- IdentityPreferences(QWidget *parent = 0, const QString& project = "");
- virtual bool eventFilter(QObject *, QEvent*);
+ IdentityPreferences(TQWidget *parent = 0, const TQString& project = "");
+ virtual bool eventFilter(TQObject *, TQEvent*);
void defaults(const KBabel::IdentitySettings& settings);
private slots:
@@ -122,19 +122,19 @@ private slots:
void lookupGnuPluralFormHeader();
private:
- QLineEdit* _nameEdit;
- QLineEdit* _localNameEdit;
- QLineEdit* _mailEdit;
- QLineEdit* _langEdit;
- QLineEdit* _langCodeEdit;
- QLineEdit* _listEdit;
-
- QLineEdit* _timezoneEdit;
- QSpinBox *_pluralFormsBox;
- QPushButton *_testPluralButton;
- QCheckBox* _checkPluralArgumentBox;
- QLineEdit* _gnuPluralFormHeaderEdit;
- QPushButton *_testGnuPluralFormButton;
+ TQLineEdit* _nameEdit;
+ TQLineEdit* _localNameEdit;
+ TQLineEdit* _mailEdit;
+ TQLineEdit* _langEdit;
+ TQLineEdit* _langCodeEdit;
+ TQLineEdit* _listEdit;
+
+ TQLineEdit* _timezoneEdit;
+ TQSpinBox *_pluralFormsBox;
+ TQPushButton *_testPluralButton;
+ TQCheckBox* _checkPluralArgumentBox;
+ TQLineEdit* _gnuPluralFormHeaderEdit;
+ TQPushButton *_testGnuPluralFormButton;
};
@@ -142,32 +142,32 @@ class MiscPreferences : public QWidget
{
Q_OBJECT
public:
- MiscPreferences(QWidget *parent=0);
+ MiscPreferences(TQWidget *parent=0);
void defaults(const KBabel::MiscSettings& settings);
private slots:
void regExpButtonClicked();
private:
- void setContextInfo(QString reg);
- QString contextInfo() const;
+ void setContextInfo(TQString reg);
+ TQString contextInfo() const;
KLineEdit *contextInfoEdit;
KLineEdit *accelMarkerEdit;
- QDialog *_regExpEditDialog;
- QPushButton *_regExpButton;
+ TQDialog *_regExpEditDialog;
+ TQPushButton *_regExpButton;
- QRadioButton* bzipButton;
- QRadioButton* gzipButton;
- QCheckBox* compressSingle;
+ TQRadioButton* bzipButton;
+ TQRadioButton* gzipButton;
+ TQCheckBox* compressSingle;
};
class SpellPreferences : public QWidget
{
Q_OBJECT
public:
- SpellPreferences(QWidget *parent=0);
+ SpellPreferences(TQWidget *parent=0);
void mergeSettings(KBabel::SpellcheckSettings& set) const;
void updateWidgets(const KBabel::SpellcheckSettings& settings);
@@ -178,8 +178,8 @@ signals:
private:
KSpellConfig* spellConfig;
- QCheckBox* remIgnoredBtn;
- QCheckBox* onFlyBtn;
+ TQCheckBox* remIgnoredBtn;
+ TQCheckBox* onFlyBtn;
KURLRequester* ignoreURLEdit;
};
@@ -188,25 +188,25 @@ class CatmanPreferences : public QWidget
{
Q_OBJECT
public:
- CatmanPreferences(QWidget *parent = 0);
+ CatmanPreferences(TQWidget *parent = 0);
void defaults(const KBabel::CatManSettings& settings);
private:
KURLRequester* _poDirEdit;
KURLRequester* _potDirEdit;
- QCheckBox* _openWindowButton;
+ TQCheckBox* _openWindowButton;
- QCheckBox* _killButton;
- QCheckBox* _indexButton;
- QCheckBox* m_msgfmtButton;
+ TQCheckBox* _killButton;
+ TQCheckBox* _indexButton;
+ TQCheckBox* m_msgfmtButton;
};
class DirCommandsPreferences : public QWidget
{
Q_OBJECT
public:
- DirCommandsPreferences(QWidget *parent = 0);
+ DirCommandsPreferences(TQWidget *parent = 0);
virtual ~DirCommandsPreferences();
void mergeSettings(KBabel::CatManSettings& settings) const;
@@ -224,7 +224,7 @@ class FileCommandsPreferences : public QWidget
{
Q_OBJECT
public:
- FileCommandsPreferences(QWidget *parent = 0);
+ FileCommandsPreferences(TQWidget *parent = 0);
virtual ~FileCommandsPreferences();
void mergeSettings(KBabel::CatManSettings& settings) const;
@@ -242,17 +242,17 @@ class ViewPreferences : public QWidget
{
Q_OBJECT
public:
- ViewPreferences(QWidget *parent = 0);
+ ViewPreferences(TQWidget *parent = 0);
void defaults(const KBabel::CatManSettings& settings);
private:
- QCheckBox* _flagColumnCheckbox;
- QCheckBox* _fuzzyColumnCheckbox;
- QCheckBox* _untranslatedColumnCheckbox;
- QCheckBox* _totalColumnCheckbox;
- QCheckBox* _cvsColumnCheckbox;
- QCheckBox* _revisionColumnCheckbox;
- QCheckBox* _translatorColumnCheckbox;
+ TQCheckBox* _flagColumnCheckbox;
+ TQCheckBox* _fuzzyColumnCheckbox;
+ TQCheckBox* _untranslatedColumnCheckbox;
+ TQCheckBox* _totalColumnCheckbox;
+ TQCheckBox* _cvsColumnCheckbox;
+ TQCheckBox* _revisionColumnCheckbox;
+ TQCheckBox* _translatorColumnCheckbox;
};
/**
@@ -265,14 +265,14 @@ class SourceContextPreferences : public QWidget
{
Q_OBJECT
public:
- SourceContextPreferences(QWidget* parent=0);
+ SourceContextPreferences(TQWidget* parent=0);
virtual ~SourceContextPreferences();
void mergeSettings(KBabel::SourceContextSettings& settings) const;
void updateWidgets(const KBabel::SourceContextSettings& settings);
void defaults(const KBabel::SourceContextSettings& settings);
- virtual bool eventFilter(QObject *, QEvent*);
+ virtual bool eventFilter(TQObject *, TQEvent*);
signals:
void itemsChanged ();
diff --git a/kbabel/commonui/projectwizard.cpp b/kbabel/commonui/projectwizard.cpp
index d1202f4a..e5df7285 100644
--- a/kbabel/commonui/projectwizard.cpp
+++ b/kbabel/commonui/projectwizard.cpp
@@ -37,7 +37,7 @@
#include "kbprojectmanager.h"
-#include
+#include
#include
#include
@@ -47,19 +47,19 @@
using namespace KBabel;
-ProjectWizard::ProjectWizard(QWidget *parent,const char *name)
+ProjectWizard::ProjectWizard(TQWidget *parent,const char *name)
: KWizard(parent,name,true)
{
_wizard = new ProjectStep1(this,"project wizard widget");
// fill the known language codes
KConfig all_languages("all_languages", true, false, "locale");
- QStringList lang_codes = KGlobal::locale()->allLanguagesTwoAlpha();
- for (QStringList::iterator it = lang_codes.begin();
+ TQStringList lang_codes = KGlobal::locale()->allLanguagesTwoAlpha();
+ for (TQStringList::iterator it = lang_codes.begin();
it != lang_codes.end(); ++it)
{
// we need untranslated entries here, because of Translation Robot!
- QString entry = (*it);
+ TQString entry = (*it);
const int i = entry.find('_');
entry.replace(0, i, entry.left(i).lower());
all_languages.setGroup(entry);
@@ -71,9 +71,9 @@ ProjectWizard::ProjectWizard(QWidget *parent,const char *name)
}
}
- connect( _wizard->_projectName, SIGNAL(textChanged(const QString &)), this, SLOT(textChanged(const QString &)));
- connect( _wizard->_projectFile, SIGNAL(textChanged(const QString &)), this, SLOT(textChanged(const QString &)));
- connect( this, SIGNAL( helpClicked( void ) ), this, SLOT( slotHelpClicked( void ) ) );
+ connect( _wizard->_projectName, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &)));
+ connect( _wizard->_projectFile, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &)));
+ connect( this, TQT_SIGNAL( helpClicked( void ) ), this, TQT_SLOT( slotHelpClicked( void ) ) );
addPage(_wizard, i18n("Basic Project Information"));
@@ -86,7 +86,7 @@ ProjectWizard::ProjectWizard(QWidget *parent,const char *name)
setNextEnabled (_wizard, false);
}
-QString ProjectWizard::url()
+TQString ProjectWizard::url()
{
return _wizard->_projectFile->url();
}
@@ -133,7 +133,7 @@ Project::Ptr ProjectWizard::project()
void ProjectWizard::next()
{
// check if the file exists
- QFileInfo file(url());
+ TQFileInfo file(url());
if( file.exists() )
{
@@ -145,7 +145,7 @@ void ProjectWizard::next()
KWizard::next();
}
-void ProjectWizard::textChanged(const QString &)
+void ProjectWizard::textChanged(const TQString &)
{
setNextEnabled( _wizard, !_wizard->_projectName->text().isEmpty() && !_wizard->_projectFile->url().isEmpty() );
}
@@ -153,7 +153,7 @@ void ProjectWizard::textChanged(const QString &)
Project::Ptr ProjectWizard::newProject()
{
ProjectWizard* dialog = new ProjectWizard();
- if( dialog->exec() == QDialog::Accepted )
+ if( dialog->exec() == TQDialog::Accepted )
{
Project::Ptr res = dialog->project();
delete dialog;
diff --git a/kbabel/commonui/projectwizard.h b/kbabel/commonui/projectwizard.h
index 5c994784..7805190f 100644
--- a/kbabel/commonui/projectwizard.h
+++ b/kbabel/commonui/projectwizard.h
@@ -37,8 +37,8 @@
#include "kbproject.h"
-#include "qmap.h"
-#include "qstring.h"
+#include "tqmap.h"
+#include "tqstring.h"
class ProjectStep1;
class ProjectStep2;
@@ -49,16 +49,16 @@ class KDE_EXPORT ProjectWizard : public KWizard
{
Q_OBJECT
public:
- ProjectWizard(QWidget* parent = 0, const char * name = 0);
+ ProjectWizard(TQWidget* parent = 0, const char * name = 0);
Project::Ptr project();
- QString url();
+ TQString url();
static Project::Ptr newProject();
private slots:
- void textChanged(const QString &);
+ void textChanged(const TQString &);
void slotHelpClicked( void );
virtual void next();
@@ -66,7 +66,7 @@ private:
ProjectStep1* _wizard;
ProjectStep2* _wizard2;
- QMap m_language_codes;
+ TQMap m_language_codes;
};
}
diff --git a/kbabel/commonui/roughtransdlg.cpp b/kbabel/commonui/roughtransdlg.cpp
index de321044..75395630 100644
--- a/kbabel/commonui/roughtransdlg.cpp
+++ b/kbabel/commonui/roughtransdlg.cpp
@@ -40,16 +40,16 @@
#include "regexpextractor.h"
#include "roughtransdlg.h"
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
#include
#include
@@ -64,7 +64,7 @@
using namespace KBabel;
RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
- , QWidget *parent,const char *name)
+ , TQWidget *parent,const char *name)
: KDialogBase(parent,name,true
,i18n("Caption of dialog","Rough Translation")
, User1|User2|User3|Close)
@@ -85,45 +85,45 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
enableButton(User2,false);
enableButton(User3,false);
- QWidget *mw = new QWidget(this);
+ TQWidget *mw = new TQWidget(this);
setMainWidget(mw);
- QVBoxLayout *mainLayout = new QVBoxLayout(mw);
+ TQVBoxLayout *mainLayout = new TQVBoxLayout(mw);
- configWidget = new QVBox(mw);
+ configWidget = new TQVBox(mw);
mainLayout->addWidget(configWidget);
- QVGroupBox *box = new QVGroupBox(i18n("What to Translate"),configWidget);
+ TQVGroupBox *box = new TQVGroupBox(i18n("What to Translate"),configWidget);
- QHButtonGroup *bBox = new QHButtonGroup(box);
+ TQHButtonGroup *bBox = new TQHButtonGroup(box);
bBox->setMargin(0);
- bBox->setFrameStyle(QFrame::NoFrame);
+ bBox->setFrameStyle(TQFrame::NoFrame);
whatBox = bBox;
- untransButton = new QCheckBox(i18n("U&ntranslated entries"),bBox);
- fuzzyButton = new QCheckBox(i18n("&Fuzzy entries"),bBox);
- transButton = new QCheckBox(i18n("T&ranslated entries"),bBox);
+ untransButton = new TQCheckBox(i18n("U&ntranslated entries"),bBox);
+ fuzzyButton = new TQCheckBox(i18n("&Fuzzy entries"),bBox);
+ transButton = new TQCheckBox(i18n("T&ranslated entries"),bBox);
- connect(bBox,SIGNAL(clicked(int)),this,SLOT(msgButtonClicked(int)));
+ connect(bBox,TQT_SIGNAL(clicked(int)),this,TQT_SLOT(msgButtonClicked(int)));
- QWhatsThis::add(bBox,i18n("What entries to translate
"
+ TQWhatsThis::add(bBox,i18n("What entries to translate
"
"Choose here, for which entries of the file KBabel "
"tries to find a translation. Changed entries are always "
"marked as fuzzy, no matter which option you choose.
"));
- box = new QVGroupBox(i18n("How to Translate"),configWidget);
- bBox = new QHButtonGroup(box);
- bBox->setFrameStyle(QFrame::NoFrame);
+ box = new TQVGroupBox(i18n("How to Translate"),configWidget);
+ bBox = new TQHButtonGroup(box);
+ bBox->setFrameStyle(TQFrame::NoFrame);
bBox->setMargin(0);
- searchMatchButton = new QCheckBox(i18n("&Use dictionary settings")
+ searchMatchButton = new TQCheckBox(i18n("&Use dictionary settings")
,bBox);
- fuzzyMatchButton = new QCheckBox(i18n("Fu&zzy translation (slow)")
+ fuzzyMatchButton = new TQCheckBox(i18n("Fu&zzy translation (slow)")
,bBox);
- singleWordButton = new QCheckBox(i18n("&Single word translation")
+ singleWordButton = new TQCheckBox(i18n("&Single word translation")
,bBox);
- QWhatsThis::add(bBox,i18n("How messages get translated
"
+ TQWhatsThis::add(bBox,i18n("How messages get translated
"
"Here you can define if a message can only get translated "
"completely, if similar messages are acceptable or if KBabel "
"is supposed to try translating "
@@ -131,11 +131,11 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
"complete message or similar message was found.
"));
- box = new QVGroupBox(i18n("Options"),configWidget);
+ box = new TQVGroupBox(i18n("Options"),configWidget);
- markFuzzyButton = new QCheckBox(i18n("&Mark changed entries as fuzzy"),box);
+ markFuzzyButton = new TQCheckBox(i18n("&Mark changed entries as fuzzy"),box);
markFuzzyButton->setChecked(true);
- QWhatsThis::add(markFuzzyButton,
+ TQWhatsThis::add(markFuzzyButton,
i18n("Mark changed entries as fuzzy
"
"When a translation for a message is found, the entry "
"will be marked fuzzy by default. This is because the "
@@ -144,25 +144,25 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
"you know what you are doing.
"));
- connect(markFuzzyButton, SIGNAL(toggled(bool))
- , this, SLOT(fuzzyButtonToggled(bool)));
+ connect(markFuzzyButton, TQT_SIGNAL(toggled(bool))
+ , this, TQT_SLOT(fuzzyButtonToggled(bool)));
- kdeButton = new QCheckBox(i18n("Initialize &KDE-specific entries"),box);
+ kdeButton = new TQCheckBox(i18n("Initialize &KDE-specific entries"),box);
kdeButton->setChecked(true);
- QWhatsThis::add(kdeButton,
+ TQWhatsThis::add(kdeButton,
i18n("Initialize KDE-specific entries
"
"Initialize \"Comment=\" and \"Name=\" entries "
"if a translation is not found. Also, \"NAME OF TRANSLATORS\" "
"and \"EMAIL OF TRANSLATORS\" is filled with identity settings.
"));
- QVGroupBox *dBox = new QVGroupBox(i18n("Dictionaries"),configWidget);
+ TQVGroupBox *dBox = new TQVGroupBox(i18n("Dictionaries"),configWidget);
configWidget->setStretchFactor(dBox,1);
- QPtrList moduleList = dict->moduleInfos();
+ TQPtrList moduleList = dict->moduleInfos();
KConfig *config = KGlobal::config();
KConfigGroupSaver gs(config,"RoughTranslation");
- QStringList selectedList=config->readListEntry("Selected");
+ TQStringList selectedList=config->readListEntry("Selected");
if(selectedList.isEmpty())
{
int a = dict->activeModule();
@@ -174,7 +174,7 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
}
dictChooser = new DictChooser(dict,selectedList,dBox,"dictChooser");
- QWhatsThis::add(dictChooser,i18n("Dictionaries
"
+ TQWhatsThis::add(dictChooser,i18n("Dictionaries
"
"Choose here, which dictionaries have to be used for "
"finding a translation. If you select more than one "
"dictionary, they are used in the same order as they "
@@ -183,11 +183,11 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
"configure selected dictionary. The original settings "
"will be restored after closing the dialog.
"));
- QLabel* label = new QLabel( i18n("Messages:"), mw );
+ TQLabel* label = new TQLabel( i18n("Messages:"), mw );
progressbar = new KProgress(mw,"progressbar");
progressbar->setTextEnabled(true);
progressbar->setFormat("%v/%m (%p%)");
- QHBoxLayout* pblayout= new QHBoxLayout(mainLayout);
+ TQHBoxLayout* pblayout= new TQHBoxLayout(mainLayout);
pblayout->add(label);
pblayout->add(progressbar);
@@ -249,7 +249,7 @@ void RoughTransDlg::slotUser1()
partTransCounter=0;
totalTried=0;
- QTimer::singleShot(0,this, SLOT(translate()));
+ TQTimer::singleShot(0,this, TQT_SLOT(translate()));
}
void RoughTransDlg::translate()
@@ -263,16 +263,16 @@ void RoughTransDlg::translate()
int total=catalog->numberOfEntries();
progressbar->setTotalSteps(total);
- QStringList dictList = dictChooser->selectedDicts();
+ TQStringList dictList = dictChooser->selectedDicts();
catalog->applyBeginCommand(0,Msgstr,0);
bool singleWords=singleWordButton->isChecked();
bool fuzzyMatch=fuzzyMatchButton->isChecked();
bool searchMatch=searchMatchButton->isChecked();
- QRegExp contextReg=catalog->miscSettings().contextInfo;
- QChar accelMarker=catalog->miscSettings().accelMarker;
- QRegExp endPunctReg("[\\.?!: ]+$");
+ TQRegExp contextReg=catalog->miscSettings().contextInfo;
+ TQChar accelMarker=catalog->miscSettings().accelMarker;
+ TQRegExp endPunctReg("[\\.?!: ]+$");
for(int i = 0; i < total; i++)
@@ -283,18 +283,18 @@ void RoughTransDlg::translate()
if(stop || cancel) break;
// FIXME: should care about plural forms
- QString msg=catalog->msgid(i,true).first();
- QString translation;
+ TQString msg=catalog->msgid(i,true).first();
+ TQString translation;
// this is KDE specific:
if( kdeSpecific )
{
if( catalog->pluralForm(i) == NoPluralForm )
{
- QString origTrans = catalog->msgstr(i).first();
+ TQString origTrans = catalog->msgstr(i).first();
if(msg.find("_: NAME OF TRANSLATORS\\n")==0)
{
- QString authorName;
+ TQString authorName;
if( !catalog->identitySettings().authorLocalizedName.isEmpty() )
authorName = catalog->identitySettings().authorLocalizedName;
else // fallback to non-localized name
@@ -302,7 +302,7 @@ void RoughTransDlg::translate()
authorName = catalog->identitySettings().authorName;
else continue; // there is no name to be inserted
- if( !QStringList::split(',', origTrans).contains(authorName) )
+ if( !TQStringList::split(',', origTrans).contains(authorName) )
{
if(origTrans.isEmpty() ) translation=authorName;
else translation+=origTrans+","+authorName;
@@ -313,7 +313,7 @@ void RoughTransDlg::translate()
// skip, if email is not specified in settings
if( catalog->identitySettings().authorEmail.isEmpty() ) continue;
- if( !QStringList::split(',', origTrans).contains(catalog->identitySettings().authorEmail) )
+ if( !TQStringList::split(',', origTrans).contains(catalog->identitySettings().authorEmail) )
{
if(origTrans.isEmpty() ) translation=catalog->identitySettings().authorEmail;
else translation=origTrans+","+catalog->identitySettings().authorEmail;
@@ -321,7 +321,7 @@ void RoughTransDlg::translate()
}
else if (msg.find("ROLES_OF_TRANSLATORS") == 0)
{
- QString temp = "\n"
+ TQString temp = "\n"
"\n" +
catalog->identitySettings( ).authorEmail+"\n"
"";
@@ -332,12 +332,12 @@ void RoughTransDlg::translate()
}
else if (msg.find("CREDIT_FOR_TRANSLATORS") == 0)
{
- QString authorName;
+ TQString authorName;
if (!catalog->identitySettings( ).authorLocalizedName.isEmpty( ))
authorName = catalog->identitySettings( ).authorLocalizedName;
else if (!catalog->identitySettings( ).authorName.isEmpty( ))
authorName = catalog->identitySettings( ).authorName;
- QString temp = "" + authorName + "\n" + "" +
+ TQString temp = "" + authorName + "\n" + "" +
catalog->identitySettings( ).authorEmail + "";
if (origTrans.isEmpty( ))
translation = temp;
@@ -370,7 +370,7 @@ void RoughTransDlg::translate()
}
// try exact translation
- QStringList::Iterator dit = dictList.begin();
+ TQStringList::Iterator dit = dictList.begin();
while(translation.isEmpty() && dit != dictList.end())
{
dictBox->setActiveModule(*dit);
@@ -386,7 +386,7 @@ void RoughTransDlg::translate()
// try search settings translation
else if (searchMatch) {
- QString tr;
+ TQString tr;
int score, best_score = 0;
dit = dictList.begin();
while(dit != dictList.end())
@@ -412,7 +412,7 @@ void RoughTransDlg::translate()
// try fuzzy translation
else if (fuzzyMatch) {
- QString tr;
+ TQString tr;
int score, best_score = 0;
dit = dictList.begin();
while(dit != dictList.end())
@@ -439,9 +439,9 @@ void RoughTransDlg::translate()
// try single word translation
if(translation.isEmpty() && singleWords)
{
- QStringList wordList;
- QChar accel;
- QString endingPunctuation;
+ TQStringList wordList;
+ TQChar accel;
+ TQString endingPunctuation;
int pos = msg.findRev(endPunctReg);
if(pos >= 0)
{
@@ -456,12 +456,12 @@ void RoughTransDlg::translate()
te.setString(msg);
msg=te.matchesReplaced(" KBABELTAG ");
- QString word;
+ TQString word;
int length = msg.length();
- QRegExp digitReg("^[0-9]*$");
+ TQRegExp digitReg("^[0-9]*$");
for(int index=0; index < length; index++)
{
- QChar c=msg[index];
+ TQChar c=msg[index];
if(c==accelMarker)
{
@@ -478,7 +478,7 @@ void RoughTransDlg::translate()
if(!word.contains(digitReg))
wordList.append(word);
- word=QString::null;
+ word=TQString::null;
}
}
else if(!word.isEmpty())
@@ -486,7 +486,7 @@ void RoughTransDlg::translate()
if(!word.contains(digitReg))
wordList.append(word);
- word=QString::null;
+ word=TQString::null;
}
}
@@ -503,7 +503,7 @@ void RoughTransDlg::translate()
if(!word.isEmpty() && !word.contains(digitReg))
wordList.append(word);
- word=QString::null;
+ word=TQString::null;
wordList.append("\\n\n");
index+=2;
@@ -513,7 +513,7 @@ void RoughTransDlg::translate()
if(!word.contains(digitReg))
wordList.append(word);
- word=QString::null;
+ word=TQString::null;
}
}
else if(!word.isEmpty())
@@ -521,7 +521,7 @@ void RoughTransDlg::translate()
if(!word.contains(digitReg))
wordList.append(word);
- word=QString::null;
+ word=TQString::null;
}
}
else if(!word.isEmpty())
@@ -530,7 +530,7 @@ void RoughTransDlg::translate()
wordList.append(word);
}
- word=QString::null;
+ word=TQString::null;
}
}
@@ -543,7 +543,7 @@ void RoughTransDlg::translate()
{
dictBox->setActiveModule(*dit);
- for(QStringList::Iterator it=wordList.begin();
+ for(TQStringList::Iterator it=wordList.begin();
it!=wordList.end(); ++it)
{
if( (*it)=="\\n\n" )
@@ -556,7 +556,7 @@ void RoughTransDlg::translate()
}
else
{
- QString trans = dictBox->translate(*it);
+ TQString trans = dictBox->translate(*it);
if(!trans.isEmpty())
{
@@ -571,7 +571,7 @@ void RoughTransDlg::translate()
}
if(wordCounter==0)
- translation=QString::null;
+ translation=TQString::null;
++dit;
}
@@ -610,9 +610,9 @@ void RoughTransDlg::translate()
{
if(!catalog->isUntranslated(i))
{
- QStringList msgs = catalog->msgstr(i);
+ TQStringList msgs = catalog->msgstr(i);
uint counter = 0;
- for( QStringList::Iterator it = msgs.begin() ; it != msgs.end() ; ++it)
+ for( TQStringList::Iterator it = msgs.begin() ; it != msgs.end() ; ++it)
{
DelTextCmd* delCmd = new DelTextCmd(0
,(*it),counter++);
@@ -668,7 +668,7 @@ void RoughTransDlg::showStatistics()
{
int nothing=totalTried-partTransCounter-exactTransCounter;
KLocale *locale = KGlobal::locale();
- QString statMsg = i18n("Result of the translation:\n"
+ TQString statMsg = i18n("Result of the translation:\n"
"Edited entries: %1\n"
"Exact translations: %2 (%3%)\n"
"Approximate translations: %4 (%5%)\n"
@@ -717,7 +717,7 @@ void RoughTransDlg::msgButtonClicked(int id)
if(!transButton->isChecked() && !untransButton->isChecked()
&& !fuzzyButton->isChecked())
{
- QButton *button = whatBox->find(id);
+ TQButton *button = whatBox->find(id);
if(button == transButton)
{
transButton->setChecked(true);
@@ -741,14 +741,14 @@ void RoughTransDlg::fuzzyButtonToggled(bool on)
{
if(!on)
{
- QString msg=i18n(""
+ TQString msg=i18n(""
"When a translation for a message is found, the entry "
"will be marked fuzzy by default. This is because the "
"translation is just guessed by KBabel and you should always "
"check the results carefully. Deactivate this option only if "
"you know what you are doing.
");
- KMessageBox::information(this, msg, QString::null,"MarkFuzzyWarningInRoughTransDlg");
+ KMessageBox::information(this, msg, TQString::null,"MarkFuzzyWarningInRoughTransDlg");
}
}
diff --git a/kbabel/commonui/roughtransdlg.h b/kbabel/commonui/roughtransdlg.h
index e51378a5..d9e582f2 100644
--- a/kbabel/commonui/roughtransdlg.h
+++ b/kbabel/commonui/roughtransdlg.h
@@ -55,7 +55,7 @@ class KDE_EXPORT RoughTransDlg : public KDialogBase
Q_OBJECT
public:
- RoughTransDlg(KBabelDictBox* dictBox, KBabel::Catalog* catalog, QWidget *parent
+ RoughTransDlg(KBabelDictBox* dictBox, KBabel::Catalog* catalog, TQWidget *parent
, const char *name=0);
~RoughTransDlg();
@@ -87,20 +87,20 @@ private:
KBabelDictBox *dictBox;
DictChooser *dictChooser;
- QVBox *configWidget;
+ TQVBox *configWidget;
- QHButtonGroup *whatBox;
- QCheckBox *transButton;
- QCheckBox *untransButton;
- QCheckBox *fuzzyButton;
+ TQHButtonGroup *whatBox;
+ TQCheckBox *transButton;
+ TQCheckBox *untransButton;
+ TQCheckBox *fuzzyButton;
- QCheckBox *singleWordButton;
- QCheckBox *fuzzyMatchButton;
- QCheckBox *searchMatchButton;
+ TQCheckBox *singleWordButton;
+ TQCheckBox *fuzzyMatchButton;
+ TQCheckBox *searchMatchButton;
- QCheckBox *markFuzzyButton;
- QCheckBox *kdeButton;
+ TQCheckBox *markFuzzyButton;
+ TQCheckBox *kdeButton;
int exactTransCounter;
int partTransCounter;
diff --git a/kbabel/commonui/toolaction.cpp b/kbabel/commonui/toolaction.cpp
index bec1363a..20dac847 100644
--- a/kbabel/commonui/toolaction.cpp
+++ b/kbabel/commonui/toolaction.cpp
@@ -33,9 +33,9 @@
#include
-ToolAction::ToolAction( const QString & text, const KShortcut& cut, const KDataToolInfo & info, const QString & command,
- QObject * parent, const char * name )
- : KAction( text, info.iconName() == "unknown" ? QString::null : info.iconName(), cut, parent, name ),
+ToolAction::ToolAction( const TQString & text, const KShortcut& cut, const KDataToolInfo & info, const TQString & command,
+ TQObject * parent, const char * name )
+ : KAction( text, info.iconName() == "unknown" ? TQString::null : info.iconName(), cut, parent, name ),
m_command( command ),
m_info( info )
{
@@ -46,37 +46,37 @@ void ToolAction::slotActivated()
emit toolActivated( m_info, m_command );
}
-QPtrList ToolAction::dataToolActionList( const QValueList & tools, const QObject *receiver, const char* slot, const QStringList& command, bool excludeCommand, KActionCollection* parent, const QString& namePrefix )
+TQPtrList ToolAction::dataToolActionList( const TQValueList & tools, const TQObject *receiver, const char* slot, const TQStringList& command, bool excludeCommand, KActionCollection* parent, const TQString& namePrefix )
{
- QPtrList actionList;
+ TQPtrList actionList;
if ( tools.isEmpty() )
return actionList;
- QValueList::ConstIterator entry = tools.begin();
+ TQValueList::ConstIterator entry = tools.begin();
for( ; entry != tools.end(); ++entry )
{
- QStringList userCommands = (*entry).userCommands();
- QStringList commands = (*entry).commands();
- QStringList shortcuts = (*entry).service()->property("Shortcuts").toStringList();
+ TQStringList userCommands = (*entry).userCommands();
+ TQStringList commands = (*entry).commands();
+ TQStringList shortcuts = (*entry).service()->property("Shortcuts").toStringList();
Q_ASSERT(!commands.isEmpty());
if ( commands.count() != userCommands.count() )
kdWarning() << "KDataTool desktop file error (" << (*entry).service()
<< "). " << commands.count() << " commands and "
<< userCommands.count() << " descriptions." << endl;
- QStringList::ConstIterator uit = userCommands.begin();
- QStringList::ConstIterator cit = commands.begin();
- QStringList::ConstIterator sit = shortcuts.begin();
+ TQStringList::ConstIterator uit = userCommands.begin();
+ TQStringList::ConstIterator cit = commands.begin();
+ TQStringList::ConstIterator sit = shortcuts.begin();
for (; uit != userCommands.end() && cit != commands.end(); ++uit, ++cit)
{
if( !excludeCommand == command.contains(*cit) )
{
- QString sc=*sit;
+ TQString sc=*sit;
- ToolAction * action = new ToolAction( *uit, (sc.isEmpty()?QString::null:sc), *entry, *cit
+ ToolAction * action = new ToolAction( *uit, (sc.isEmpty()?TQString::null:sc), *entry, *cit
, parent
- , QString(namePrefix+(*entry).service()->library()+"_"+(*cit)).utf8() );
- connect( action, SIGNAL( toolActivated( const KDataToolInfo &, const QString & ) ),
+ , TQString(namePrefix+(*entry).service()->library()+"_"+(*cit)).utf8() );
+ connect( action, TQT_SIGNAL( toolActivated( const KDataToolInfo &, const TQString & ) ),
receiver, slot );
actionList.append( action );
@@ -88,13 +88,13 @@ QPtrList ToolAction::dataToolActionList( const QValueList ToolAction::validationTools()
+TQValueList ToolAction::validationTools()
{
- QValueList result;
+ TQValueList result;
- QValueList tools = KDataToolInfo::query("CatalogItem", "application/x-kbabel-catalogitem", KGlobal::instance());
+ TQValueList tools = KDataToolInfo::query("CatalogItem", "application/x-kbabel-catalogitem", KGlobal::instance());
- for( QValueList::ConstIterator entry = tools.begin(); entry != tools.end(); ++entry )
+ for( TQValueList::ConstIterator entry = tools.begin(); entry != tools.end(); ++entry )
{
if( (*entry).commands().contains("validate") )
{
diff --git a/kbabel/commonui/toolaction.h b/kbabel/commonui/toolaction.h
index fba7863c..7159aaf2 100644
--- a/kbabel/commonui/toolaction.h
+++ b/kbabel/commonui/toolaction.h
@@ -32,7 +32,7 @@
#ifndef TOOLACTION_H
#define TOOLACTION_H
-#include
+#include
#include
#include
@@ -43,29 +43,29 @@ class KDE_EXPORT ToolAction : public KAction
{
Q_OBJECT
public:
- ToolAction( const QString & text, const KShortcut& cut, const KDataToolInfo & info, const QString & command, QObject * parent = 0, const char * name = 0);
+ ToolAction( const TQString & text, const KShortcut& cut, const KDataToolInfo & info, const TQString & command, TQObject * parent = 0, const char * name = 0);
/**
* return the list of KActions created for a list of tools. @ref command
* allows to specify rescriction of commands, for which the list should
* or shouldn't be created according to the @ref excludeCommand flag.
*/
- static QPtrList dataToolActionList( const QValueList & tools, const QObject *receiver, const char* slot, const QStringList& command, bool excludeCommand, KActionCollection* parent=0, const QString& namePrefix=QString::null );
+ static TQPtrList dataToolActionList( const TQValueList & tools, const TQObject *receiver, const char* slot, const TQStringList& command, bool excludeCommand, KActionCollection* parent=0, const TQString& namePrefix=TQString::null );
/**
* returns information about all available validation tools (KDataTools with support for CatalogItem
* and the "validate" command.
*/
- static QValueList validationTools();
+ static TQValueList validationTools();
signals:
- void toolActivated( const KDataToolInfo & info, const QString & command );
+ void toolActivated( const KDataToolInfo & info, const TQString & command );
protected:
virtual void slotActivated();
private:
- QString m_command;
+ TQString m_command;
KDataToolInfo m_info;
};
diff --git a/kbabel/commonui/toolselectionwidget.cpp b/kbabel/commonui/toolselectionwidget.cpp
index 56759490..1e97f473 100644
--- a/kbabel/commonui/toolselectionwidget.cpp
+++ b/kbabel/commonui/toolselectionwidget.cpp
@@ -34,33 +34,33 @@
#include
#include
-#include
+#include
-ToolSelectionWidget::ToolSelectionWidget( QWidget * parent, const char * name )
+ToolSelectionWidget::ToolSelectionWidget( TQWidget * parent, const char * name )
: KActionSelector( parent, name )
{
}
-void ToolSelectionWidget::loadTools( const QStringList &commands,
- const QValueList& tools)
+void ToolSelectionWidget::loadTools( const TQStringList &commands,
+ const TQValueList& tools)
{
if ( tools.isEmpty() ) return;
_allTools = tools;
- QValueList::ConstIterator entry = tools.begin();
+ TQValueList::ConstIterator entry = tools.begin();
for( ; entry != tools.end(); ++entry )
{
- QStringList userCommands = (*entry).userCommands();
- QStringList toolCommands = (*entry).commands();
+ TQStringList userCommands = (*entry).userCommands();
+ TQStringList toolCommands = (*entry).commands();
Q_ASSERT(!toolCommands.isEmpty());
if ( toolCommands.count() != userCommands.count() )
kdWarning() << "KDataTool desktop file error (" << (*entry).service()
<< "). " << toolCommands.count() << " commands and "
<< userCommands.count() << " descriptions." << endl;
- QStringList::ConstIterator uit = userCommands.begin();
- QStringList::ConstIterator cit = toolCommands.begin();
+ TQStringList::ConstIterator uit = userCommands.begin();
+ TQStringList::ConstIterator cit = toolCommands.begin();
for (; uit != userCommands.end() && cit != toolCommands.end(); ++uit, ++cit )
{
if( commands.contains(*cit) )
@@ -71,14 +71,14 @@ void ToolSelectionWidget::loadTools( const QStringList &commands,
}
}
-void ToolSelectionWidget::setSelectedTools( const QStringList& tools )
+void ToolSelectionWidget::setSelectedTools( const TQStringList& tools )
{
availableListBox()->clear();
selectedListBox()->clear();
- QValueList::ConstIterator entry = _allTools.begin();
+ TQValueList::ConstIterator entry = _allTools.begin();
for( ; entry != _allTools.end(); ++entry )
{
- QString uic=*(*entry).userCommands().at((*entry).commands().findIndex("validate"));
+ TQString uic=*(*entry).userCommands().at((*entry).commands().findIndex("validate"));
if( tools.contains((*entry).service()->library()) )
selectedListBox()->insertItem( uic );
else
@@ -86,14 +86,14 @@ void ToolSelectionWidget::setSelectedTools( const QStringList& tools )
}
}
-QStringList ToolSelectionWidget::selectedTools()
+TQStringList ToolSelectionWidget::selectedTools()
{
- QStringList usedNames;
+ TQStringList usedNames;
for( uint i=0; icount() ; i++ )
usedNames += selectedListBox()->text(i);
- QStringList result;
- QValueList::ConstIterator entry = _allTools.begin();
+ TQStringList result;
+ TQValueList::ConstIterator entry = _allTools.begin();
for( ; entry != _allTools.end(); ++entry )
{
if( usedNames.contains(*((*entry).userCommands().at((*entry).commands().findIndex("validate")))) )
diff --git a/kbabel/commonui/toolselectionwidget.h b/kbabel/commonui/toolselectionwidget.h
index 391f15dd..bbc08ca0 100644
--- a/kbabel/commonui/toolselectionwidget.h
+++ b/kbabel/commonui/toolselectionwidget.h
@@ -41,17 +41,17 @@ class KDE_EXPORT ToolSelectionWidget : public KActionSelector
{
Q_OBJECT
public:
- ToolSelectionWidget(QWidget* parent=0, const char* name=0 );
+ ToolSelectionWidget(TQWidget* parent=0, const char* name=0 );
- QStringList selectedTools();
+ TQStringList selectedTools();
- void loadTools (const QStringList& commands, const QValueList & tools);
+ void loadTools (const TQStringList& commands, const TQValueList & tools);
public slots:
- void setSelectedTools( const QStringList& tools );
+ void setSelectedTools( const TQStringList& tools );
private:
- QValueList _allTools;
+ TQValueList _allTools;
};
#endif
--
cgit v1.2.1