summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/commonui')
-rw-r--r--kbabel/commonui/cmdedit.cpp80
-rw-r--r--kbabel/commonui/cmdedit.h28
-rw-r--r--kbabel/commonui/context.cpp88
-rw-r--r--kbabel/commonui/context.h20
-rw-r--r--kbabel/commonui/finddialog.cpp104
-rw-r--r--kbabel/commonui/finddialog.h48
-rw-r--r--kbabel/commonui/kactionselector.cpp146
-rw-r--r--kbabel/commonui/kactionselector.h64
-rw-r--r--kbabel/commonui/klisteditor.ui.h14
-rw-r--r--kbabel/commonui/projectpref.cpp22
-rw-r--r--kbabel/commonui/projectpref.h2
-rw-r--r--kbabel/commonui/projectprefwidgets.cpp468
-rw-r--r--kbabel/commonui/projectprefwidgets.h142
-rw-r--r--kbabel/commonui/projectwizard.cpp24
-rw-r--r--kbabel/commonui/projectwizard.h12
-rw-r--r--kbabel/commonui/roughtransdlg.cpp160
-rw-r--r--kbabel/commonui/roughtransdlg.h22
-rw-r--r--kbabel/commonui/toolaction.cpp40
-rw-r--r--kbabel/commonui/toolaction.h12
-rw-r--r--kbabel/commonui/toolselectionwidget.cpp32
-rw-r--r--kbabel/commonui/toolselectionwidget.h10
21 files changed, 769 insertions, 769 deletions
diff --git a/kbabel/commonui/cmdedit.cpp b/kbabel/commonui/cmdedit.cpp
index bfe95293..07a35c2f 100644
--- a/kbabel/commonui/cmdedit.cpp
+++ b/kbabel/commonui/cmdedit.cpp
@@ -32,67 +32,67 @@
**************************************************************************** */
#include "cmdedit.h"
-#include <qlistbox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtoolbutton.h>
+#include <tqlistbox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
#include <klocale.h>
#include <kdialog.h>
-CmdEdit::CmdEdit(QWidget* parent, const char* name)
- : QWidget(parent,name)
+CmdEdit::CmdEdit(TQWidget* parent, const char* name)
+ : TQWidget(parent,name)
{
- QGridLayout* layout = new QGridLayout( this , 1 , 1 );
+ TQGridLayout* layout = new TQGridLayout( this , 1 , 1 );
layout->setSpacing( KDialog::spacingHint() );
- QLabel* nameLabel = new QLabel( i18n("Command &Label:"), this);
- QLabel* cmdLabel = new QLabel( i18n("Co&mmand:"), this);
+ TQLabel* nameLabel = new TQLabel( i18n("Command &Label:"), this);
+ TQLabel* cmdLabel = new TQLabel( i18n("Co&mmand:"), this);
layout->addWidget( nameLabel, 0 , 0 );
layout->addWidget( cmdLabel, 0 , 1 );
- _cmdNameEdit = new QLineEdit( this , "cmdNameEdit" );
+ _cmdNameEdit = new TQLineEdit( this , "cmdNameEdit" );
_cmdNameEdit->setMaxLength(20);
nameLabel->setBuddy(_cmdNameEdit);
layout->addWidget( _cmdNameEdit , 1 , 0 );
- _cmdEdit = new QLineEdit( this , "cmdEdit" );
+ _cmdEdit = new TQLineEdit( this , "cmdEdit" );
cmdLabel->setBuddy(_cmdEdit);
layout->addWidget( _cmdEdit , 1 , 1 );
- _addButton = new QPushButton( i18n("&Add"), this );
+ _addButton = new TQPushButton( i18n("&Add"), this );
_addButton->setEnabled(false);
layout->addWidget( _addButton , 1 , 2 );
- _editButton = new QPushButton( i18n("&Edit"), this );
+ _editButton = new TQPushButton( i18n("&Edit"), this );
_editButton->setEnabled(false);
layout->addWidget( _editButton , 3 , 2 );
- _removeButton = new QPushButton( i18n("&Remove"), this );
+ _removeButton = new TQPushButton( i18n("&Remove"), this );
_removeButton->setEnabled(false);
layout->addWidget( _removeButton , 4 , 2 );
- QHBoxLayout* hbox = new QHBoxLayout();
+ TQHBoxLayout* hbox = new TQHBoxLayout();
layout->addLayout(hbox,5,2);
- _upButton = new QToolButton(UpArrow,this);
+ _upButton = new TQToolButton(UpArrow,this);
_upButton->setFixedSize(20,20);
_upButton->setEnabled(false);
hbox->addWidget( _upButton );
- _downButton = new QToolButton(DownArrow,this);
+ _downButton = new TQToolButton(DownArrow,this);
_downButton->setFixedSize(20,20);
_downButton->setEnabled(false);
hbox->addWidget( _downButton);
- _commandNames = new QListBox( this , "commandNamesBox" );
+ _commandNames = new TQListBox( this , "commandNamesBox" );
_commandNames->setMinimumSize(100, 100);
layout->addMultiCellWidget( _commandNames , 3 , 6 , 0 , 0);
- _commands = new QListBox( this , "commandsBox" );
+ _commands = new TQListBox( this , "commandsBox" );
_commands->setMinimumSize(160, 100);
layout->addMultiCellWidget( _commands , 3 , 6 , 1 ,1 );
@@ -107,22 +107,22 @@ CmdEdit::CmdEdit(QWidget* parent, const char* name)
setMinimumSize(layout->sizeHint());
- connect(_addButton , SIGNAL(clicked()) , this , SLOT(addCmd()) ) ;
- connect(_editButton , SIGNAL(clicked()) , this , SLOT(editCmd()) );
- connect(_removeButton , SIGNAL(clicked()) , this , SLOT(removeCmd()) );
- connect(_upButton , SIGNAL(clicked()) , this , SLOT(upCmd()) ) ;
- connect(_downButton , SIGNAL(clicked()) , this , SLOT(downCmd()) );
+ connect(_addButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(addCmd()) ) ;
+ connect(_editButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(editCmd()) );
+ connect(_removeButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(removeCmd()) );
+ connect(_upButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(upCmd()) ) ;
+ connect(_downButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(downCmd()) );
- connect(_commands , SIGNAL(highlighted(int)) , this, SLOT(cmdHighlighted(int)) );
- connect(_commandNames , SIGNAL(highlighted(int)) , this, SLOT(cmdNameHighlighted(int)) );
- connect(_commands , SIGNAL(selected(int)) , this, SLOT(editCmd()) );
- connect(_commandNames , SIGNAL(selected(int)) , this, SLOT(editCmd()) );
+ connect(_commands , TQT_SIGNAL(highlighted(int)) , this, TQT_SLOT(cmdHighlighted(int)) );
+ connect(_commandNames , TQT_SIGNAL(highlighted(int)) , this, TQT_SLOT(cmdNameHighlighted(int)) );
+ connect(_commands , TQT_SIGNAL(selected(int)) , this, TQT_SLOT(editCmd()) );
+ connect(_commandNames , TQT_SIGNAL(selected(int)) , this, TQT_SLOT(editCmd()) );
- connect(_cmdEdit, SIGNAL(textChanged(const QString&)) , this , SLOT(checkAdd()) );
- connect(_cmdNameEdit, SIGNAL(textChanged(const QString&)) , this , SLOT(checkAdd()) );
+ connect(_cmdEdit, TQT_SIGNAL(textChanged(const TQString&)) , this , TQT_SLOT(checkAdd()) );
+ connect(_cmdNameEdit, TQT_SIGNAL(textChanged(const TQString&)) , this , TQT_SLOT(checkAdd()) );
}
-void CmdEdit::setCommands(const QStringList& commands,const QStringList& commandNames)
+void CmdEdit::setCommands(const TQStringList& commands,const TQStringList& commandNames)
{
_commands->clear();
_commands->insertStringList(commands);
@@ -131,7 +131,7 @@ void CmdEdit::setCommands(const QStringList& commands,const QStringList& command
_commandNames->insertStringList(commandNames);
}
-void CmdEdit::commands(QStringList& commands, QStringList& commandNames)
+void CmdEdit::commands(TQStringList& commands, TQStringList& commandNames)
{
commands.clear();
commandNames.clear();
@@ -148,8 +148,8 @@ void CmdEdit::commands(QStringList& commands, QStringList& commandNames)
void CmdEdit::addCmd()
{
- QString cmd = _cmdEdit->text();
- QString cmdName = _cmdNameEdit->text();
+ TQString cmd = _cmdEdit->text();
+ TQString cmdName = _cmdNameEdit->text();
_cmdEdit->clear();
_cmdNameEdit->clear();
@@ -197,8 +197,8 @@ void CmdEdit::removeCmd()
void CmdEdit::upCmd()
{
- QString cmd = _commands->currentText();
- QString cmdName = _commandNames->currentText();
+ TQString cmd = _commands->currentText();
+ TQString cmdName = _commandNames->currentText();
int index=_commands->currentItem();
_commands->removeItem(index);
@@ -220,8 +220,8 @@ void CmdEdit::upCmd()
void CmdEdit::downCmd()
{
- QString cmd = _commands->currentText();
- QString cmdName = _commandNames->currentText();
+ TQString cmd = _commands->currentText();
+ TQString cmdName = _commandNames->currentText();
int index=_commands->currentItem();
_commands->removeItem(index);
diff --git a/kbabel/commonui/cmdedit.h b/kbabel/commonui/cmdedit.h
index dc61679b..64abd815 100644
--- a/kbabel/commonui/cmdedit.h
+++ b/kbabel/commonui/cmdedit.h
@@ -37,8 +37,8 @@
#include <config.h>
#endif
-#include <qwidget.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqstringlist.h>
class QListBox;
class QLineEdit;
@@ -49,10 +49,10 @@ class CmdEdit : public QWidget
{
Q_OBJECT
public:
- CmdEdit(QWidget* parent=0,const char* name=0);
+ CmdEdit(TQWidget* parent=0,const char* name=0);
- void setCommands(const QStringList& commands,const QStringList& commandNames);
- void commands(QStringList& commands, QStringList& commandNames);
+ void setCommands(const TQStringList& commands,const TQStringList& commandNames);
+ void commands(TQStringList& commands, TQStringList& commandNames);
signals:
void widgetChanged();
@@ -78,17 +78,17 @@ private slots:
void checkAdd();
private:
- QListBox* _commands;
- QListBox* _commandNames;
+ TQListBox* _commands;
+ TQListBox* _commandNames;
- QLineEdit* _cmdEdit;
- QLineEdit* _cmdNameEdit;
+ TQLineEdit* _cmdEdit;
+ TQLineEdit* _cmdNameEdit;
- QPushButton* _addButton;
- QPushButton* _editButton;
- QPushButton* _removeButton;
- QToolButton* _upButton;
- QToolButton* _downButton;
+ TQPushButton* _addButton;
+ TQPushButton* _editButton;
+ TQPushButton* _removeButton;
+ TQToolButton* _upButton;
+ TQToolButton* _downButton;
};
#endif // CMDEDIT_H
diff --git a/kbabel/commonui/context.cpp b/kbabel/commonui/context.cpp
index db468795..55c0f196 100644
--- a/kbabel/commonui/context.cpp
+++ b/kbabel/commonui/context.cpp
@@ -34,17 +34,17 @@
#include "klisteditor.h"
#include "kbprojectsettings.h"
-#include <qcombobox.h>
-#include <qfileinfo.h>
-#include <qframe.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qvgroupbox.h>
+#include <tqcombobox.h>
+#include <tqfileinfo.h>
+#include <tqframe.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqvgroupbox.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -62,7 +62,7 @@
#include <ktexteditor/selectioninterface.h>
#include <ktexteditor/viewcursorinterface.h>
-SourceContext::SourceContext(QWidget *parent, KBabel::Project::Ptr project): QWidget(parent)
+SourceContext::SourceContext(TQWidget *parent, KBabel::Project::Ptr project): TQWidget(parent)
, m_parent( parent )
, _part(0)
, _view(0)
@@ -71,20 +71,20 @@ SourceContext::SourceContext(QWidget *parent, KBabel::Project::Ptr project): QWi
, _project(project)
{
_referenceList.clear();
- _referenceCombo = new QComboBox( this );
- connect( _referenceCombo, SIGNAL(activated(int)), this, SLOT(updateToSelected(int)));
+ _referenceCombo = new TQComboBox( this );
+ connect( _referenceCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateToSelected(int)));
- _layout= new QVBoxLayout(this);
+ _layout= new TQVBoxLayout(this);
_layout->addWidget(_referenceCombo);
}
-void SourceContext::setContext( const QString& packageDir, const QString& packageName, const QString& gettextComment, const KURL& urlPoFile )
+void SourceContext::setContext( const TQString& packageDir, const TQString& packageName, const TQString& gettextComment, const KURL& urlPoFile )
{
if( !_part && !loadPart() ) return;
_referenceCombo->clear();
_referenceList = resolvePath( packageDir, packageName, gettextComment, urlPoFile );
- for( QValueList<ContextInfo>::const_iterator it = _referenceList.constBegin(); it != _referenceList.constEnd(); ++it )
+ for( TQValueList<ContextInfo>::const_iterator it = _referenceList.constBegin(); it != _referenceList.constEnd(); ++it )
_referenceCombo->insertItem((*it).path);
_referenceCombo->setEnabled( !_referenceList.isEmpty() );
@@ -120,24 +120,24 @@ void SourceContext::updateToSelected(int index)
(dynamic_cast<KTextEditor::SelectionInterface *>(_part))->setSelection(ci.line-1,0,ci.line,0);
}
-QValueList<ContextInfo> SourceContext::resolvePath( const QString& packageDir, const QString& packageName, const QString& gettextComment, const KURL& urlPoFile )
+TQValueList<ContextInfo> SourceContext::resolvePath( const TQString& packageDir, const TQString& packageName, const TQString& gettextComment, const KURL& urlPoFile )
{
//kdDebug() << "GETTEXTCOMMENT:" << gettextComment << endl;
// Find the directory name of the PO file, if the PO file is local
// ### TODO: find a way to allow remote files too
- QString poDir;
+ TQString poDir;
#if KDE_IS_VERSION( 3, 5, 0 )
const KURL localUrl( KIO::NetAccess::mostLocalURL( urlPoFile, m_parent ) );
if ( localUrl.isLocalFile() )
{
- const QFileInfo fi( localUrl.path() );
+ const TQFileInfo fi( localUrl.path() );
poDir = fi.dirPath( true );
}
#else
if ( urlPoFile.isLocalFile() )
{
- const QFileInfo fi( urlPoFile.path() );
+ const TQFileInfo fi( urlPoFile.path() );
poDir = fi.dirPath( true );
}
#endif
@@ -151,12 +151,12 @@ QValueList<ContextInfo> SourceContext::resolvePath( const QString& packageDir, c
kdDebug() << "CONTEXT VARIABLE END" << endl;
#endif
- QStringList prefixes;
- const QStringList paths = _project->settings()->paths();
+ TQStringList prefixes;
+ const TQStringList paths = _project->settings()->paths();
- for( QStringList::const_iterator it = paths.constBegin(); it!=paths.constEnd() ; ++it )
+ for( TQStringList::const_iterator it = paths.constBegin(); it!=paths.constEnd() ; ++it )
{
- QString pref = (*it);
+ TQString pref = (*it);
if ( !poDir.isEmpty() )
{
@@ -171,19 +171,19 @@ QValueList<ContextInfo> SourceContext::resolvePath( const QString& packageDir, c
prefixes.append(pref);
}
- QValueList<ContextInfo> rawRefList; // raw references
- QRegExp re("^\\s*(.+):(\\d+)\\s*$"); // Reg. exp. for Gettext references
- QRegExp rex( "^#. i18n: file (.+) line (\\d+)\\s*$" ); //Reg. exp. for KDE extractrc/extractattr references
- QRegExp res( "^# [Ff]ile: (.+), line(?: number)?: (\\d+)\\s*$"); // Reg. exp. for "strict" PO format
- const QStringList lines = QStringList::split( "\n", gettextComment );
- for ( QStringList::const_iterator it = lines.constBegin() ; it != lines.constEnd() ; ++it)
+ TQValueList<ContextInfo> rawRefList; // raw references
+ TQRegExp re("^\\s*(.+):(\\d+)\\s*$"); // Reg. exp. for Gettext references
+ TQRegExp rex( "^#. i18n: file (.+) line (\\d+)\\s*$" ); //Reg. exp. for KDE extractrc/extractattr references
+ TQRegExp res( "^# [Ff]ile: (.+), line(?: number)?: (\\d+)\\s*$"); // Reg. exp. for "strict" PO format
+ const TQStringList lines = TQStringList::split( "\n", gettextComment );
+ for ( TQStringList::const_iterator it = lines.constBegin() ; it != lines.constEnd() ; ++it)
{
- const QString curLine = (*it).stripWhiteSpace();
+ const TQString curLine = (*it).stripWhiteSpace();
if( curLine.startsWith( "#:" ) )
{
// We have a Gettext line with references
- const QStringList references( QStringList::split( " ", curLine.mid( 2 ), false ) );
- for ( QStringList::const_iterator it = references.constBegin(); it != references.constEnd(); ++it )
+ const TQStringList references( TQStringList::split( " ", curLine.mid( 2 ), false ) );
+ for ( TQStringList::const_iterator it = references.constBegin(); it != references.constEnd(); ++it )
{
if ( re.exactMatch( (*it) ) )
{
@@ -191,7 +191,7 @@ QValueList<ContextInfo> SourceContext::resolvePath( const QString& packageDir, c
ref.line = re.cap(2).toInt();
ref.path = re.cap(1);
// ### TODO KDE4: perhaps we should not do the replace if compiled for Windows
- ref.path.replace( QChar( '\\' ), QChar( '/' ) );
+ ref.path.replace( TQChar( '\\' ), TQChar( '/' ) );
rawRefList.append( ref );
}
}
@@ -223,7 +223,7 @@ QValueList<ContextInfo> SourceContext::resolvePath( const QString& packageDir, c
ref.line = res.cap(2).toInt();
ref.path = res.cap(1);
// ### TODO KDE4: perhaps we should not do the replace if compiled for Windows
- ref.path.replace( QChar( '\\' ), QChar( '/' ) );
+ ref.path.replace( TQChar( '\\' ), TQChar( '/' ) );
rawRefList.append( ref );
}
}
@@ -232,18 +232,18 @@ QValueList<ContextInfo> SourceContext::resolvePath( const QString& packageDir, c
}
// Now that we have gathered the references, we need to convert them to absolute paths
- QValueList<ContextInfo> results;
- for ( QValueList<ContextInfo>::const_iterator it = rawRefList.constBegin(); it != rawRefList.constEnd(); ++it )
+ TQValueList<ContextInfo> results;
+ for ( TQValueList<ContextInfo>::const_iterator it = rawRefList.constBegin(); it != rawRefList.constEnd(); ++it )
{
const int lineNum = (*it).line;
- const QString fileName = (*it).path;
- for ( QStringList::const_iterator it1 = prefixes.constBegin(); it1 != prefixes.constEnd(); ++it1 )
+ const TQString fileName = (*it).path;
+ for ( TQStringList::const_iterator it1 = prefixes.constBegin(); it1 != prefixes.constEnd(); ++it1 )
{
- QString path = (*it1);
+ TQString path = (*it1);
path.replace( "@COMMENTPATH@", fileName);
//kdDebug() << "CONTEXT PATH: " << path << endl; // DEBUG
- QFileInfo pathInfo( path );
+ TQFileInfo pathInfo( path );
if( pathInfo.exists() )
{
ContextInfo ref;
@@ -289,8 +289,8 @@ bool SourceContext::loadPart()
return false;
}
_view = _part->createView( this, 0 );
- _layout->addWidget(static_cast<QWidget *>(_view), 1);
- static_cast<QWidget *>(_view)->show();
+ _layout->addWidget(static_cast<TQWidget *>(_view), 1);
+ static_cast<TQWidget *>(_view)->show();
return true;
}
diff --git a/kbabel/commonui/context.h b/kbabel/commonui/context.h
index 2ccceecd..d68a2371 100644
--- a/kbabel/commonui/context.h
+++ b/kbabel/commonui/context.h
@@ -33,8 +33,8 @@
#ifndef CONTEXT_H
#define CONTEXT_H
-#include <qvaluelist.h>
-#include <qwidget.h>
+#include <tqvaluelist.h>
+#include <tqwidget.h>
#include <ktexteditor/document.h>
#include <ktexteditor/view.h>
@@ -50,7 +50,7 @@ class KURL;
struct ContextInfo
{
- QString path;
+ TQString path;
uint line;
};
@@ -78,7 +78,7 @@ class KDE_EXPORT SourceContext : public QWidget
{
Q_OBJECT
public:
- SourceContext(QWidget* parent, KBabel::Project::Ptr project);
+ SourceContext(TQWidget* parent, KBabel::Project::Ptr project);
void setProject(KBabel::Project::Ptr project);
@@ -91,7 +91,7 @@ public slots:
* @param urlPoFile URL of the PO file
* @todo even if @p urlPoFile is an URL SourceContext::resolvePath is not remote-aware yet
*/
- void setContext( const QString& packageDir, const QString& packageName, const QString& gettextComment, const KURL& urlPoFile );
+ void setContext( const TQString& packageDir, const TQString& packageName, const TQString& gettextComment, const KURL& urlPoFile );
private:
/**
@@ -103,17 +103,17 @@ private:
* @todo even if @p urlPoFile is an URL SourceContext::resolvePath is not remote-aware yet
* @private
*/
- QValueList<ContextInfo> resolvePath( const QString& packageDir, const QString& packageName, const QString& gettextComment, const KURL& urlPoFile );
+ TQValueList<ContextInfo> resolvePath( const TQString& packageDir, const TQString& packageName, const TQString& gettextComment, const KURL& urlPoFile );
bool loadPart();
/// Parent widget (for KIO::NetAccess member functions)
- QWidget* m_parent;
+ TQWidget* m_parent;
KTextEditor::Document* _part;
KTextEditor::View* _view;
- QComboBox *_referenceCombo;
- QVBoxLayout *_layout;
+ TQComboBox *_referenceCombo;
+ TQVBoxLayout *_layout;
- QValueList<ContextInfo> _referenceList;
+ TQValueList<ContextInfo> _referenceList;
KBabel::Project::Ptr _project;
private slots:
diff --git a/kbabel/commonui/finddialog.cpp b/kbabel/commonui/finddialog.cpp
index 7335f30a..d210811a 100644
--- a/kbabel/commonui/finddialog.cpp
+++ b/kbabel/commonui/finddialog.cpp
@@ -34,14 +34,14 @@
**************************************************************************** */
#include "finddialog.h"
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qpushbutton.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqpushbutton.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqwhatsthis.h>
#include <kcombobox.h>
#include <kconfig.h>
@@ -52,14 +52,14 @@
using namespace KBabel;
-FindDialog::FindDialog(bool forReplace, QWidget* parent)
+FindDialog::FindDialog(bool forReplace, TQWidget* parent)
:KDialogBase(parent, "finddialog",true, "", Ok|Cancel, Ok)
, _regExpEditDialog(0), _replaceDlg(forReplace)
{
- QWidget* page = new QWidget(this);
- QVBoxLayout *layout = new QVBoxLayout(page, 0, spacingHint());
+ TQWidget* page = new TQWidget(this);
+ TQVBoxLayout *layout = new TQVBoxLayout(page, 0, spacingHint());
- QLabel *label = new QLabel(i18n("&Find:"),page);
+ TQLabel *label = new TQLabel(i18n("&Find:"),page);
layout->addWidget(label);
_findCombo = new KComboBox(true, page, "findCombo");
@@ -68,20 +68,20 @@ FindDialog::FindDialog(bool forReplace, QWidget* parent)
layout->addWidget(_findCombo);
label->setBuddy(_findCombo);
- QString msg=i18n("<qt><p><b>Find text</b></p>"
+ TQString msg=i18n("<qt><p><b>Find text</b></p>"
"<p>Here you can enter the text you want to search for. "
"If you want to search for a regular expression, "
"enable <b>Use regular expression</b> below.</p></qt>");
- QWhatsThis::add(label,msg);
- QWhatsThis::add(_findCombo,msg);
+ TQWhatsThis::add(label,msg);
+ TQWhatsThis::add(_findCombo,msg);
if(forReplace) {
setCaption(i18n("Replace"));
setButtonOK(i18n("&Replace"));
- _replaceLabel = new QLabel(i18n("&Replace with:"),page);
+ _replaceLabel = new TQLabel(i18n("&Replace with:"),page);
layout->addWidget(_replaceLabel);
_replaceCombo = new KComboBox(true, page, "replaceCombo");
_replaceCombo->setMaxCount(10);
@@ -94,8 +94,8 @@ FindDialog::FindDialog(bool forReplace, QWidget* parent)
"replaced with. The text is used as is. It is not possible to make a back "
"reference, if you have searched for a regular expression.</p></qt>");
- QWhatsThis::add(_replaceLabel,msg);
- QWhatsThis::add(_replaceCombo,msg);
+ TQWhatsThis::add(_replaceLabel,msg);
+ TQWhatsThis::add(_replaceCombo,msg);
}
else {
setCaption(i18n("Find"));
@@ -105,48 +105,48 @@ FindDialog::FindDialog(bool forReplace, QWidget* parent)
_replaceCombo=0;
}
- _buttonGrp = new QButtonGroup(3, Qt::Horizontal, i18n("Where to Search"), page);
- connect(_buttonGrp,SIGNAL(clicked(int)), this, SLOT(inButtonsClicked(int)));
+ _buttonGrp = new TQButtonGroup(3, Qt::Horizontal, i18n("Where to Search"), page);
+ connect(_buttonGrp,TQT_SIGNAL(clicked(int)), this, TQT_SLOT(inButtonsClicked(int)));
layout->addWidget(_buttonGrp);
- _inMsgid = new QCheckBox(i18n("&Msgid"),_buttonGrp);
- _inMsgstr = new QCheckBox(i18n("M&sgstr"),_buttonGrp);
- _inComment = new QCheckBox(i18n("Comm&ent"),_buttonGrp);
+ _inMsgid = new TQCheckBox(i18n("&Msgid"),_buttonGrp);
+ _inMsgstr = new TQCheckBox(i18n("M&sgstr"),_buttonGrp);
+ _inComment = new TQCheckBox(i18n("Comm&ent"),_buttonGrp);
- QWhatsThis::add(_buttonGrp,i18n("<qt><p><b>Where to search</b></p>"
+ TQWhatsThis::add(_buttonGrp,i18n("<qt><p><b>Where to search</b></p>"
"<p>Select here in which parts of a catalog entry you want "
"to search.</p></qt>"));
- QGroupBox* box = new QGroupBox(2, Qt::Horizontal, i18n("Options"), page);
+ TQGroupBox* box = new TQGroupBox(2, Qt::Horizontal, i18n("Options"), page);
layout->addWidget(box);
- _caseSensitive = new QCheckBox(i18n("C&ase sensitive"),box);
- _wholeWords = new QCheckBox(i18n("O&nly whole words"),box);
- _ignoreAccelMarker = new QCheckBox(i18n("I&gnore marker for keyboard accelerator"),box);
- _ignoreContextInfo = new QCheckBox(i18n("Ignore con&text information"),box);
- _fromCursor = new QCheckBox(i18n("From c&ursor position"),box);
- _backwards = new QCheckBox(i18n("F&ind backwards"),box);
+ _caseSensitive = new TQCheckBox(i18n("C&ase sensitive"),box);
+ _wholeWords = new TQCheckBox(i18n("O&nly whole words"),box);
+ _ignoreAccelMarker = new TQCheckBox(i18n("I&gnore marker for keyboard accelerator"),box);
+ _ignoreContextInfo = new TQCheckBox(i18n("Ignore con&text information"),box);
+ _fromCursor = new TQCheckBox(i18n("From c&ursor position"),box);
+ _backwards = new TQCheckBox(i18n("F&ind backwards"),box);
- QHBox *regexp = new QHBox(box);
+ TQHBox *regexp = new TQHBox(box);
- _isRegExp = new QCheckBox(i18n("Use regu&lar expression"),regexp);
+ _isRegExp = new TQCheckBox(i18n("Use regu&lar expression"),regexp);
_regExpButton = 0;
if( !KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
{
- _regExpButton = new QPushButton( i18n("&Edit..."), regexp );
- connect( _regExpButton, SIGNAL( clicked() ), this, SLOT( regExpButtonClicked()));
- connect( _isRegExp, SIGNAL( toggled(bool) ), _regExpButton, SLOT(setEnabled(bool)));
+ _regExpButton = new TQPushButton( i18n("&Edit..."), regexp );
+ connect( _regExpButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( regExpButtonClicked()));
+ connect( _isRegExp, TQT_SIGNAL( toggled(bool) ), _regExpButton, TQT_SLOT(setEnabled(bool)));
}
if(forReplace)
{
_inMsgid->setEnabled(false);
- _askForReplace = new QCheckBox(i18n("As&k before replacing"),box);
+ _askForReplace = new TQCheckBox(i18n("As&k before replacing"),box);
_ignoreContextInfo->setEnabled(false);
- QWhatsThis::add(box,i18n("<qt><p><b>Options</b></p>"
+ TQWhatsThis::add(box,i18n("<qt><p><b>Options</b></p>"
"<p>Here you can finetune replacing:"
"<ul><li><b>Case sensitive</b>: does case of entered text have to be respected?</li>"
"<li><b>Only whole words</b>: text found must not be part of a longer word</li>"
@@ -163,7 +163,7 @@ FindDialog::FindDialog(bool forReplace, QWidget* parent)
else {
_askForReplace=0;
- QWhatsThis::add(box,i18n("<qt><p><b>Options</b></p>"
+ TQWhatsThis::add(box,i18n("<qt><p><b>Options</b></p>"
"<p>Here you can finetune the search:"
"<ul><li><b>Case sensitive</b>: does case of entered text have to be respected?</li>"
"<li><b>Only whole words</b>: text found must not be part of a longer word</li>"
@@ -186,7 +186,7 @@ FindDialog::~FindDialog()
saveSettings();
}
-int FindDialog::show(QString initialStr)
+int FindDialog::show(TQString initialStr)
{
if( !initialStr.isEmpty() ) {
_findCombo->setEditText( initialStr );
@@ -199,7 +199,7 @@ int FindDialog::show(QString initialStr)
int r = result();
- if( r == QDialog::Accepted ) {
+ if( r == TQDialog::Accepted ) {
if(_replaceDlg) {
_replaceList.remove(_replaceCombo->currentText());
_replaceList.prepend(_replaceCombo->currentText());
@@ -260,7 +260,7 @@ int FindDialog::show(QString initialStr)
return r;
}
-int FindDialog::exec(QString initialStr)
+int FindDialog::exec(TQString initialStr)
{
if( !initialStr.isEmpty() ) {
_findCombo->setEditText( initialStr );
@@ -273,7 +273,7 @@ int FindDialog::exec(QString initialStr)
int r = result();
- if( r == QDialog::Accepted ) {
+ if( r == TQDialog::Accepted ) {
if(_replaceDlg) {
_replaceList.remove(_replaceCombo->currentText());
_replaceList.prepend(_replaceCombo->currentText());
@@ -520,30 +520,30 @@ void FindDialog::inButtonsClicked(int id)
void FindDialog::regExpButtonClicked()
{
if ( _regExpEditDialog == 0 )
- _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor", QString::null, this );
+ _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString::null, this );
KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( _regExpEditDialog );
if( iface )
{
iface->setRegExp( _findCombo->currentText() );
- if( _regExpEditDialog->exec() == QDialog::Accepted )
+ if( _regExpEditDialog->exec() == TQDialog::Accepted )
_findCombo->setCurrentText( iface->regExp() );
}
}
-ReplaceDialog::ReplaceDialog(QWidget* parent)
+ReplaceDialog::ReplaceDialog(TQWidget* parent)
:KDialogBase(Plain, "", Close|User1|User2|User3, User1, parent,"finddialog"
, true,false,i18n("&Replace"),i18n("&Goto Next"),i18n("R&eplace All"))
{
- QWidget* page = plainPage();
- QVBoxLayout *layout = new QVBoxLayout(page, 0, spacingHint());
+ TQWidget* page = plainPage();
+ TQVBoxLayout *layout = new TQVBoxLayout(page, 0, spacingHint());
- QLabel *label = new QLabel(i18n("Replace this string?"),page);
+ TQLabel *label = new TQLabel(i18n("Replace this string?"),page);
layout->addWidget(label);
- connect(this,SIGNAL(user1Clicked()),this,SIGNAL(replace()));
- connect(this,SIGNAL(user2Clicked()),this,SIGNAL(next()));
- connect(this,SIGNAL(user3Clicked()),this,SIGNAL(replaceAll()));
+ connect(this,TQT_SIGNAL(user1Clicked()),this,TQT_SIGNAL(replace()));
+ connect(this,TQT_SIGNAL(user2Clicked()),this,TQT_SIGNAL(next()));
+ connect(this,TQT_SIGNAL(user3Clicked()),this,TQT_SIGNAL(replaceAll()));
}
ReplaceDialog::~ReplaceDialog()
diff --git a/kbabel/commonui/finddialog.h b/kbabel/commonui/finddialog.h
index 7baa0675..c7e6ac14 100644
--- a/kbabel/commonui/finddialog.h
+++ b/kbabel/commonui/finddialog.h
@@ -33,8 +33,8 @@
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <kdialogbase.h>
class QButtonGroup;
@@ -52,7 +52,7 @@ public:
* Constructor
* @param replaceDlg flag, if this is a replace dialog
*/
- FindDialog(bool replaceDlg, QWidget* parent);
+ FindDialog(bool replaceDlg, TQWidget* parent);
~FindDialog();
/**
@@ -62,7 +62,7 @@ public:
*
* @return the result code of the dialog
*/
- int show(QString initialStr);
+ int show(TQString initialStr);
/**
* executes the dialog as modal
@@ -71,7 +71,7 @@ public:
*
* @return the result code of the dialog
*/
- int exec(QString initialStr);
+ int exec(TQString initialStr);
KBabel::FindOptions findOpts();
void setFindOpts(KBabel::FindOptions options);
KBabel::ReplaceOptions replaceOpts();
@@ -90,31 +90,31 @@ private slots:
private:
KComboBox *_findCombo;
KComboBox *_replaceCombo;
- QLabel *_replaceLabel;
+ TQLabel *_replaceLabel;
- QButtonGroup *_buttonGrp;
- QCheckBox *_inMsgid;
- QCheckBox *_inMsgstr;
- QCheckBox *_inComment;
+ TQButtonGroup *_buttonGrp;
+ TQCheckBox *_inMsgid;
+ TQCheckBox *_inMsgstr;
+ TQCheckBox *_inComment;
- QCheckBox *_caseSensitive;
- QCheckBox *_wholeWords;
- QCheckBox *_ignoreAccelMarker;
- QCheckBox *_ignoreContextInfo;
- QCheckBox *_backwards;
- QCheckBox *_fromCursor;
- QCheckBox *_isRegExp;
- QCheckBox *_askForReplace;
+ TQCheckBox *_caseSensitive;
+ TQCheckBox *_wholeWords;
+ TQCheckBox *_ignoreAccelMarker;
+ TQCheckBox *_ignoreContextInfo;
+ TQCheckBox *_backwards;
+ TQCheckBox *_fromCursor;
+ TQCheckBox *_isRegExp;
+ TQCheckBox *_askForReplace;
- QPushButton *_regExpButton;
- QDialog *_regExpEditDialog;
+ TQPushButton *_regExpButton;
+ TQDialog *_regExpEditDialog;
KBabel::FindOptions _findOptions;
KBabel::ReplaceOptions _replaceOptions;
- QStringList _findList;
- QStringList _replaceFindList;
- QStringList _replaceList;
+ TQStringList _findList;
+ TQStringList _replaceFindList;
+ TQStringList _replaceList;
bool _replaceDlg;
};
@@ -123,7 +123,7 @@ class KDE_EXPORT ReplaceDialog : public KDialogBase
{
Q_OBJECT
public:
- ReplaceDialog(QWidget* parent);
+ ReplaceDialog(TQWidget* parent);
~ReplaceDialog();
signals:
diff --git a/kbabel/commonui/kactionselector.cpp b/kbabel/commonui/kactionselector.cpp
index b214a49f..b699480c 100644
--- a/kbabel/commonui/kactionselector.cpp
+++ b/kbabel/commonui/kactionselector.cpp
@@ -35,37 +35,37 @@
#include <kdialog.h> // for spacingHint()
#include <kdebug.h>
-#include <qlistbox.h>
-#include <qtoolbutton.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qevent.h>
-#include <qwhatsthis.h>
-#include <qapplication.h>
+#include <tqlistbox.h>
+#include <tqtoolbutton.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqevent.h>
+#include <tqwhatsthis.h>
+#include <tqapplication.h>
class KActionSelectorPrivate {
public:
- QListBox *availableListBox, *selectedListBox;
- QToolButton *btnAdd, *btnRemove, *btnUp, *btnDown;
- QLabel *lAvailable, *lSelected;
+ TQListBox *availableListBox, *selectedListBox;
+ TQToolButton *btnAdd, *btnRemove, *btnUp, *btnDown;
+ TQLabel *lAvailable, *lSelected;
bool moveOnDoubleClick, keyboardEnabled;
KActionSelector::ButtonIconSize iconSize;
- QString addIcon, removeIcon, upIcon, downIcon;
+ TQString addIcon, removeIcon, upIcon, downIcon;
KActionSelector::InsertionPolicy availableInsertionPolicy, selectedInsertionPolicy;
bool showUpDownButtons;
};
//BEGIN Constructor/destructor
-KActionSelector::KActionSelector( QWidget *parent, const char *name )
- : QWidget( parent, name )
+KActionSelector::KActionSelector( TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
d = new KActionSelectorPrivate();
d->moveOnDoubleClick = true;
d->keyboardEnabled = true;
d->iconSize = SmallIcon;
- d->addIcon = QApplication::reverseLayout() ? "back" : "forward";
- d->removeIcon = QApplication::reverseLayout() ? "forward" : "back";
+ d->addIcon = TQApplication::reverseLayout() ? "back" : "forward";
+ d->removeIcon = TQApplication::reverseLayout() ? "forward" : "back";
d->upIcon = "up";
d->downIcon = "down";
d->availableInsertionPolicy = Sorted;
@@ -74,53 +74,53 @@ KActionSelector::KActionSelector( QWidget *parent, const char *name )
//int isz = IconSize( KIcon::Small );
- QHBoxLayout *lo = new QHBoxLayout( this );
+ TQHBoxLayout *lo = new TQHBoxLayout( this );
lo->setSpacing( KDialog::spacingHint() );
- QVBoxLayout *loAv = new QVBoxLayout( lo );
- d->lAvailable = new QLabel( i18n("&Available:"), this );
+ TQVBoxLayout *loAv = new TQVBoxLayout( lo );
+ d->lAvailable = new TQLabel( i18n("&Available:"), this );
loAv->addWidget( d->lAvailable );
- d->availableListBox = new QListBox( this );
+ d->availableListBox = new TQListBox( this );
loAv->addWidget( d->availableListBox );
d->lAvailable->setBuddy( d->availableListBox );
- QVBoxLayout *loHBtns = new QVBoxLayout( lo );
+ TQVBoxLayout *loHBtns = new TQVBoxLayout( lo );
loHBtns->addStretch( 1 );
- d->btnAdd = new QToolButton( this );
+ d->btnAdd = new TQToolButton( this );
loHBtns->addWidget( d->btnAdd );
- d->btnRemove = new QToolButton( this );
+ d->btnRemove = new TQToolButton( this );
loHBtns->addWidget( d->btnRemove );
loHBtns->addStretch( 1 );
- QVBoxLayout *loS = new QVBoxLayout( lo );
- d->lSelected = new QLabel( i18n("&Selected:"), this );
+ TQVBoxLayout *loS = new TQVBoxLayout( lo );
+ d->lSelected = new TQLabel( i18n("&Selected:"), this );
loS->addWidget( d->lSelected );
- d->selectedListBox = new QListBox( this );
+ d->selectedListBox = new TQListBox( this );
loS->addWidget( d->selectedListBox );
d->lSelected->setBuddy( d->selectedListBox );
- QVBoxLayout *loVBtns = new QVBoxLayout( lo );
+ TQVBoxLayout *loVBtns = new TQVBoxLayout( lo );
loVBtns->addStretch( 1 );
- d->btnUp = new QToolButton( this );
+ d->btnUp = new TQToolButton( this );
loVBtns->addWidget( d->btnUp );
- d->btnDown = new QToolButton( this );
+ d->btnDown = new TQToolButton( this );
loVBtns->addWidget( d->btnDown );
loVBtns->addStretch( 1 );
loadIcons();
- connect( d->btnAdd, SIGNAL(clicked()), this, SLOT(buttonAddClicked()) );
- connect( d->btnRemove, SIGNAL(clicked()), this, SLOT(buttonRemoveClicked()) );
- connect( d->btnUp, SIGNAL(clicked()), this, SLOT(buttonUpClicked()) );
- connect( d->btnDown, SIGNAL(clicked()), this, SLOT(buttonDownClicked()) );
- connect( d->availableListBox, SIGNAL(doubleClicked(QListBoxItem*)),
- this, SLOT(itemDoubleClicked(QListBoxItem*)) );
- connect( d->selectedListBox, SIGNAL(doubleClicked(QListBoxItem*)),
- this, SLOT(itemDoubleClicked(QListBoxItem*)) );
- connect( d->availableListBox, SIGNAL(currentChanged(QListBoxItem*)),
- this, SLOT(slotCurrentChanged(QListBoxItem *)) );
- connect( d->selectedListBox, SIGNAL(currentChanged(QListBoxItem*)),
- this, SLOT(slotCurrentChanged(QListBoxItem *)) );
+ connect( d->btnAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonAddClicked()) );
+ connect( d->btnRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonRemoveClicked()) );
+ connect( d->btnUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonUpClicked()) );
+ connect( d->btnDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonDownClicked()) );
+ connect( d->availableListBox, TQT_SIGNAL(doubleClicked(TQListBoxItem*)),
+ this, TQT_SLOT(itemDoubleClicked(TQListBoxItem*)) );
+ connect( d->selectedListBox, TQT_SIGNAL(doubleClicked(TQListBoxItem*)),
+ this, TQT_SLOT(itemDoubleClicked(TQListBoxItem*)) );
+ connect( d->availableListBox, TQT_SIGNAL(currentChanged(TQListBoxItem*)),
+ this, TQT_SLOT(slotCurrentChanged(TQListBoxItem *)) );
+ connect( d->selectedListBox, TQT_SIGNAL(currentChanged(TQListBoxItem*)),
+ this, TQT_SLOT(slotCurrentChanged(TQListBoxItem *)) );
d->availableListBox->installEventFilter( this );
d->selectedListBox->installEventFilter( this );
@@ -135,17 +135,17 @@ KActionSelector::~KActionSelector()
//BEGIN Public Methods
-QListBox *KActionSelector::availableListBox()
+TQListBox *KActionSelector::availableListBox()
{
return d->availableListBox;
}
-QListBox *KActionSelector::selectedListBox()
+TQListBox *KActionSelector::selectedListBox()
{
return d->selectedListBox;
}
-void KActionSelector::setButtonIcon( const QString &icon, MoveButton button )
+void KActionSelector::setButtonIcon( const TQString &icon, MoveButton button )
{
int isz;
if ( d->iconSize == SmallIcon ) isz = IconSize( KIcon::Small );
@@ -177,7 +177,7 @@ void KActionSelector::setButtonIcon( const QString &icon, MoveButton button )
}
}
-void KActionSelector::setButtonIconSet( const QIconSet &iconset, MoveButton button )
+void KActionSelector::setButtonIconSet( const TQIconSet &iconset, MoveButton button )
{
switch ( button )
{
@@ -198,7 +198,7 @@ void KActionSelector::setButtonIconSet( const QIconSet &iconset, MoveButton butt
}
}
-void KActionSelector::setButtonTooltip( const QString &tip, MoveButton button )
+void KActionSelector::setButtonTooltip( const TQString &tip, MoveButton button )
{
switch ( button )
{
@@ -219,21 +219,21 @@ void KActionSelector::setButtonTooltip( const QString &tip, MoveButton button )
}
}
-void KActionSelector::setButtonWhatsThis( const QString &text, MoveButton button )
+void KActionSelector::setButtonWhatsThis( const TQString &text, MoveButton button )
{
switch ( button )
{
case ButtonAdd:
- QWhatsThis::add( d->btnAdd, text );
+ TQWhatsThis::add( d->btnAdd, text );
break;
case ButtonRemove:
- QWhatsThis::add( d->btnRemove, text );
+ TQWhatsThis::add( d->btnRemove, text );
break;
case ButtonUp:
- QWhatsThis::add( d->btnUp, text );
+ TQWhatsThis::add( d->btnUp, text );
break;
case ButtonDown:
- QWhatsThis::add( d->btnDown, text );
+ TQWhatsThis::add( d->btnDown, text );
break;
default:
kdDebug(KBABEL)<<"KActionSelector::setButtonWhatsThis: DAINBREAD!"<<endl;
@@ -273,22 +273,22 @@ void KActionSelector::setKeyboardEnabled( bool b )
d->keyboardEnabled = b;
}
-QString KActionSelector::availableLabel() const
+TQString KActionSelector::availableLabel() const
{
return d->lAvailable->text();
}
-void KActionSelector::setAvailableLabel( const QString &text )
+void KActionSelector::setAvailableLabel( const TQString &text )
{
d->lAvailable->setText( text );
}
-QString KActionSelector::selectedLabel() const
+TQString KActionSelector::selectedLabel() const
{
return d->lSelected->text();
}
-void KActionSelector::setSelectedLabel( const QString &text )
+void KActionSelector::setSelectedLabel( const TQString &text )
{
d->lSelected->setText( text );
}
@@ -357,7 +357,7 @@ void KActionSelector::polish()
//END Public Slots
//BEGIN Protected
-void KActionSelector::keyPressEvent( QKeyEvent *e )
+void KActionSelector::keyPressEvent( TQKeyEvent *e )
{
if ( ! d->keyboardEnabled ) return;
if ( (e->state() & Qt::ControlButton) )
@@ -383,13 +383,13 @@ void KActionSelector::keyPressEvent( QKeyEvent *e )
}
}
-bool KActionSelector::eventFilter( QObject *o, QEvent *e )
+bool KActionSelector::eventFilter( TQObject *o, TQEvent *e )
{
- if ( d->keyboardEnabled && e->type() == QEvent::KeyPress )
+ if ( d->keyboardEnabled && e->type() == TQEvent::KeyPress )
{
- if ( (((QKeyEvent*)e)->state() & Qt::ControlButton) )
+ if ( (((TQKeyEvent*)e)->state() & Qt::ControlButton) )
{
- switch ( ((QKeyEvent*)e)->key() )
+ switch ( ((TQKeyEvent*)e)->key() )
{
case Key_Right:
buttonAddClicked();
@@ -404,18 +404,18 @@ bool KActionSelector::eventFilter( QObject *o, QEvent *e )
buttonDownClicked();
break;
default:
- return QWidget::eventFilter( o, e );
+ return TQWidget::eventFilter( o, e );
break;
}
return true;
}
- else if ( o->inherits( "QListBox" ) )
+ else if ( o->inherits( "TQListBox" ) )
{
- switch ( ((QKeyEvent*)e)->key() )
+ switch ( ((TQKeyEvent*)e)->key() )
{
case Key_Return:
case Key_Enter:
- QListBox *lb = (QListBox*)o;
+ TQListBox *lb = (TQListBox*)o;
int index = lb->currentItem();
if ( index < 0 ) break;
moveItem( lb->item( index ) );
@@ -423,7 +423,7 @@ bool KActionSelector::eventFilter( QObject *o, QEvent *e )
}
}
}
- return QWidget::eventFilter( o, e );
+ return TQWidget::eventFilter( o, e );
}
//END Protected
@@ -433,7 +433,7 @@ bool KActionSelector::eventFilter( QObject *o, QEvent *e )
void KActionSelector::buttonAddClicked()
{
// move all selected items from available to selected listbox
- QListBoxItem *item = d->availableListBox->firstItem();
+ TQListBoxItem *item = d->availableListBox->firstItem();
while ( item ) {
if ( item->isSelected() ) {
d->availableListBox->takeItem( item );
@@ -451,7 +451,7 @@ void KActionSelector::buttonAddClicked()
void KActionSelector::buttonRemoveClicked()
{
// move all selected items from selected to available listbox
- QListBoxItem *item = d->selectedListBox->firstItem();
+ TQListBoxItem *item = d->selectedListBox->firstItem();
while ( item ) {
if ( item->isSelected() ) {
d->selectedListBox->takeItem( item );
@@ -470,7 +470,7 @@ void KActionSelector::buttonUpClicked()
{
int c = d->selectedListBox->currentItem();
if ( c < 0 ) return;
- QListBoxItem *item = d->selectedListBox->item( c );
+ TQListBoxItem *item = d->selectedListBox->item( c );
d->selectedListBox->takeItem( item );
d->selectedListBox->insertItem( item, c-1 );
d->selectedListBox->setCurrentItem( item );
@@ -481,14 +481,14 @@ void KActionSelector::buttonDownClicked()
{
int c = d->selectedListBox->currentItem();
if ( c < 0 ) return;
- QListBoxItem *item = d->selectedListBox->item( c );
+ TQListBoxItem *item = d->selectedListBox->item( c );
d->selectedListBox->takeItem( item );
d->selectedListBox->insertItem( item, c+1 );
d->selectedListBox->setCurrentItem( item );
emit movedDown( item );
}
-void KActionSelector::itemDoubleClicked( QListBoxItem *item )
+void KActionSelector::itemDoubleClicked( TQListBoxItem *item )
{
if ( d->moveOnDoubleClick )
moveItem( item );
@@ -513,10 +513,10 @@ void KActionSelector::loadIcons()
d->btnDown->setIconSet( SmallIconSet( d->downIcon, isz ) );
}
-void KActionSelector::moveItem( QListBoxItem *item )
+void KActionSelector::moveItem( TQListBoxItem *item )
{
- QListBox *lbFrom = item->listBox();
- QListBox *lbTo;
+ TQListBox *lbFrom = item->listBox();
+ TQListBox *lbTo;
if ( lbFrom == d->availableListBox )
lbTo = d->selectedListBox;
else if ( lbFrom == d->selectedListBox )
@@ -540,7 +540,7 @@ void KActionSelector::moveItem( QListBoxItem *item )
emit removed( item );
}
-int KActionSelector::insertionIndex( QListBox *lb, InsertionPolicy policy )
+int KActionSelector::insertionIndex( TQListBox *lb, InsertionPolicy policy )
{
int index;
switch ( policy )
diff --git a/kbabel/commonui/kactionselector.h b/kbabel/commonui/kactionselector.h
index 324ed54f..04139570 100644
--- a/kbabel/commonui/kactionselector.h
+++ b/kbabel/commonui/kactionselector.h
@@ -30,7 +30,7 @@
#ifndef _KACTION_SELECTOR_H_
#define _KACTION_SELECTOR_H_
-#include <qwidget.h>
+#include <tqwidget.h>
class QListBox;
class QListBoxItem;
@@ -56,13 +56,13 @@ class KActionSelectorPrivate;
see keyboardEnabled.
Note that this may conflist with keyboard selection in the selected list box,
- if you set that to anything else than QListBox::Single (which is the default).
+ if you set that to anything else than TQListBox::Single (which is the default).
To use it, simply construct an instance and then add items to the two listboxes,
available through lbAvailable() and lbSelected(). Whenever you want, you can retrieve
- the selected options using QListBox methods on lbSelected().
+ the selected options using TQListBox methods on lbSelected().
- This way, you can use your own QListBoxItem class, allowing you to easily
+ This way, you can use your own TQListBoxItem class, allowing you to easily
store object data in those.
When an item is moved to a listbox, it is placed below the current item
@@ -84,31 +84,31 @@ class KActionSelectorPrivate;
@author Anders Lund <anders@alweb.dk>
*/
-class KActionSelector : public QWidget {
+class KActionSelector : public TQWidget {
Q_OBJECT
Q_ENUMS( ButtonIconSize InsertionPolicy )
Q_PROPERTY( bool moveOnDoubleClick READ moveOnDoubleClick WRITE setMoveOnDoubleClick )
Q_PROPERTY( bool keyboardEnabled READ keyboardEnabled WRITE setKeyboardEnabled )
- Q_PROPERTY( QString availableLabel READ availableLabel WRITE setAvailableLabel )
- Q_PROPERTY( QString selectedLabel READ selectedLabel WRITE setSelectedLabel )
+ Q_PROPERTY( TQString availableLabel READ availableLabel WRITE setAvailableLabel )
+ Q_PROPERTY( TQString selectedLabel READ selectedLabel WRITE setSelectedLabel )
Q_PROPERTY( ButtonIconSize buttonIconSize READ buttonIconSize WRITE setButtonIconSize )
Q_PROPERTY( InsertionPolicy availableInsertionPolicy READ availableInsertionPolicy WRITE setAvailableInsertionPolicy )
Q_PROPERTY( InsertionPolicy selectedInsertionPolicy READ selectedInsertionPolicy WRITE setSelectedInsertionPolicy )
Q_PROPERTY( bool showUpDownButtons READ showUpDownButtons WRITE setShowUpDownButtons )
public:
- KActionSelector( QWidget *parent=0, const char *name=0 );
+ KActionSelector( TQWidget *parent=0, const char *name=0 );
~KActionSelector();
/**
- @return The QListBox holding the available actions
+ @return The TQListBox holding the available actions
*/
- QListBox *availableListBox();
+ TQListBox *availableListBox();
/**
- @return The QListBox holding the selected actions
+ @return The TQListBox holding the selected actions
*/
- QListBox *selectedListBox();
+ TQListBox *selectedListBox();
/**
This enum indentifies the moving buttons
@@ -201,7 +201,7 @@ public:
/**
@return The text of the label for the available items listbox.
*/
- QString availableLabel() const;
+ TQString availableLabel() const;
/**
Sets the label for the available items listbox to @p text.
@@ -209,12 +209,12 @@ public:
if you have a single ampersand in the text, the following character
will become the accellerator to focus te listbox.
*/
- void setAvailableLabel( const QString & text );
+ void setAvailableLabel( const TQString & text );
/**
@return the label of the selected items listbox.
*/
- QString selectedLabel() const;
+ TQString selectedLabel() const;
/**
Sets the label for the selected items listbox to @p text.
@@ -222,7 +222,7 @@ public:
if you have a single ampersand in the text, the following character
will become the accellerator to focus te listbox.
*/
- void setSelectedLabel( const QString & text );
+ void setSelectedLabel( const TQString & text );
/**
@return the current ButtonIconSize.
@@ -276,25 +276,25 @@ public:
Sets the pixmap of the button @p button to @p icon.
It calls @ref SmallIconSet(pm) to generate the icon set.
*/
- void setButtonIcon( const QString &icon, MoveButton button );
+ void setButtonIcon( const TQString &icon, MoveButton button );
/**
Sets the iconset for button @p button to @p iconset.
You can use this method to et a costum icon set. Either
- created by @ref QIconSet, or use the application instance of
+ created by @ref TQIconSet, or use the application instance of
@ref KIconLoader (recommended).
*/
- void setButtonIconSet( const QIconSet &iconset, MoveButton button );
+ void setButtonIconSet( const TQIconSet &iconset, MoveButton button );
/**
Sets the tooltip for the button @p button to @p tip.
*/
- void setButtonTooltip( const QString &tip, MoveButton button );
+ void setButtonTooltip( const TQString &tip, MoveButton button );
/**
Sets the whatsthis help for button @p button to @p text.
*/
- void setButtonWhatsThis( const QString &text, MoveButton button );
+ void setButtonWhatsThis( const TQString &text, MoveButton button );
/**
Sets the enabled state of all moving buttons to reflect the current
@@ -309,27 +309,27 @@ signals:
/**
Emitted when an item is moved to the "selected" listbox.
*/
- void added( QListBoxItem *item );
+ void added( TQListBoxItem *item );
/**
Emitted when an item is moved out of the "selected" listbox.
*/
- void removed( QListBoxItem *item );
+ void removed( TQListBoxItem *item );
/**
Emitted when an item is moved upwards in the "selected" listbox.
*/
- void movedUp( QListBoxItem *item );
+ void movedUp( TQListBoxItem *item );
/**
Emitted when an item is moved downwards in the "selected" listbox.
*/
- void movedDown( QListBoxItem *item );
+ void movedDown( TQListBoxItem *item );
/**
Emitted when an item is moved to the "selected" listbox.
*/
-// void addedToSelection( QListBoxItem *item );
+// void addedToSelection( TQListBoxItem *item );
public slots:
/**
@@ -342,12 +342,12 @@ protected:
/**
Reimplamented for internal reasons.
*/
- void keyPressEvent( QKeyEvent * );
+ void keyPressEvent( TQKeyEvent * );
/**
Reimplemented for internal reasons.
*/
- bool eventFilter( QObject *, QEvent * );
+ bool eventFilter( TQObject *, TQEvent * );
private slots:
/**
@@ -373,19 +373,19 @@ private slots:
/**
Moves the item @p item to the other listbox if moveOnDoubleClick is enabled.
*/
- void itemDoubleClicked( QListBoxItem *item );
+ void itemDoubleClicked( TQListBoxItem *item );
/**
connected to both list boxes to set the buttons enabled
*/
- void slotCurrentChanged( QListBoxItem * ) { setButtonsEnabled(); };
+ void slotCurrentChanged( TQListBoxItem * ) { setButtonsEnabled(); };
private:
/**
Move item @p item to the other listbox
*/
- void moveItem( QListBoxItem *item );
+ void moveItem( TQListBoxItem *item );
/**
loads the icons for the move buttons.
@@ -399,7 +399,7 @@ private:
Note that if policy is Sorted, this will return -1.
Sort the listbox after inserting the item in that case.
*/
- int insertionIndex( QListBox *lb, InsertionPolicy policy );
+ int insertionIndex( TQListBox *lb, InsertionPolicy policy );
/** @private
Private data storage
diff --git a/kbabel/commonui/klisteditor.ui.h b/kbabel/commonui/klisteditor.ui.h
index bc916e56..3d0e17df 100644
--- a/kbabel/commonui/klisteditor.ui.h
+++ b/kbabel/commonui/klisteditor.ui.h
@@ -50,7 +50,7 @@ void KListEditor::downInList()
{
int i=_list->currentItem();
if( i< (int)_list->count()-1 ) {
- QString ci = _list->currentText();
+ TQString ci = _list->currentText();
_list->removeItem(i);
_list->insertItem(ci,i+1);
_list->setCurrentItem(i+1);
@@ -70,7 +70,7 @@ void KListEditor::upInList()
{
int i=_list->currentItem();
if( i>0 ) {
- QString ci = _list->currentText();
+ TQString ci = _list->currentText();
_list->removeItem(i);
_list->insertItem(ci,i-1);
_list->setCurrentItem(i-1);
@@ -92,7 +92,7 @@ void KListEditor::updateList()
else _list->changeItem(_edit->text(), i );
}
-void KListEditor::setList( QStringList contents )
+void KListEditor::setList( TQStringList contents )
{
_list->clear();
_list->insertStringList(contents);
@@ -101,21 +101,21 @@ void KListEditor::setList( QStringList contents )
}
-void KListEditor::editChanged( const QString &s )
+void KListEditor::editChanged( const TQString &s )
{
_addButton->setEnabled(!s.isEmpty());
}
-void KListEditor::setTitle( const QString &s )
+void KListEditor::setTitle( const TQString &s )
{
_frame->setTitle(s);
}
-QStringList KListEditor::list()
+TQStringList KListEditor::list()
{
- QStringList result;
+ TQStringList result;
for( uint i=0; i<_list->count() ; i++ )
result.append(_list->text(i));
return result;
diff --git a/kbabel/commonui/projectpref.cpp b/kbabel/commonui/projectpref.cpp
index 1bffa2e6..16e6c114 100644
--- a/kbabel/commonui/projectpref.cpp
+++ b/kbabel/commonui/projectpref.cpp
@@ -37,9 +37,9 @@
#include "diffpreferences.h"
#include "kbprojectsettings.h"
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qvbox.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqvbox.h>
#include <kdebug.h>
#include <klocale.h>
@@ -82,15 +82,15 @@ ProjectDialog::ProjectDialog(Project::Ptr project)
addPage(_spellPage, i18n("title of page in preferences dialog","Spelling")
, "spellcheck"
, i18n("Options for Spell Checking"));
- connect( _spellPage, SIGNAL( settingsChanged() )
- , this, SLOT(updateButtons()) );
+ connect( _spellPage, TQT_SIGNAL( settingsChanged() )
+ , this, TQT_SLOT(updateButtons()) );
_sourcePage = new SourceContextPreferences(0);
addPage(_sourcePage, i18n("title of page in preferences dialog","Source")
, "source"
,i18n("Options for Showing Source Context"));
- connect(_sourcePage, SIGNAL (itemsChanged())
- , this, SLOT (updateButtons()) );
+ connect(_sourcePage, TQT_SIGNAL (itemsChanged())
+ , this, TQT_SLOT (updateButtons()) );
_miscPage = new MiscPreferences(0);
addPage(_miscPage, i18n("title of page in preferences dialog","Miscellaneous")
@@ -106,15 +106,15 @@ ProjectDialog::ProjectDialog(Project::Ptr project)
addPage(_dirCommandsPage, i18n("title of page in preferences dialog","Folder Commands")
, "folder"
, i18n("User-Defined Commands for Folder Items"));
- connect( _dirCommandsPage, SIGNAL( settingsChanged() ),
- this, SLOT(updateButtons()) );
+ connect( _dirCommandsPage, TQT_SIGNAL( settingsChanged() ),
+ this, TQT_SLOT(updateButtons()) );
_fileCommandsPage = new FileCommandsPreferences(0);
addPage(_fileCommandsPage, i18n("title of page in preferences dialog","File Commands")
, "files"
, i18n("User-Defined Commands for File Items"));
- connect( _fileCommandsPage, SIGNAL( settingsChanged() ),
- this, SLOT(updateButtons()) );
+ connect( _fileCommandsPage, TQT_SIGNAL( settingsChanged() ),
+ this, TQT_SLOT(updateButtons()) );
_viewPage = new ViewPreferences(0);
addPage(_viewPage, i18n("title of page in preferences dialog","Catalog Manager")
diff --git a/kbabel/commonui/projectpref.h b/kbabel/commonui/projectpref.h
index 90561c5b..ce4e7f86 100644
--- a/kbabel/commonui/projectpref.h
+++ b/kbabel/commonui/projectpref.h
@@ -36,7 +36,7 @@
#define PROJECTPREF_H
#include <kconfigdialog.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
class SavePreferences;
class IdentityPreferences;
diff --git a/kbabel/commonui/projectprefwidgets.cpp b/kbabel/commonui/projectprefwidgets.cpp
index 16bc2da4..0357065e 100644
--- a/kbabel/commonui/projectprefwidgets.cpp
+++ b/kbabel/commonui/projectprefwidgets.cpp
@@ -58,25 +58,25 @@
#include <kurldrag.h>
#include <kurlrequester.h>
-#include <qlayout.h>
-#include <qobjectlist.h>
-#include <qlabel.h>
-#include <qvbox.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qhbuttongroup.h>
-#include <qvbuttongroup.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qtextcodec.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqobjectlist.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqhbuttongroup.h>
+#include <tqvbuttongroup.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqtextcodec.h>
+#include <tqwhatsthis.h>
using namespace KBabel;
-static QSize sizeHintForWidget(const QWidget* widget)
+static TQSize sizeHintForWidget(const TQWidget* widget)
{
//
// The size is computed by adding the sizeHint().height() of all
@@ -84,23 +84,23 @@ static QSize sizeHintForWidget(const QWidget* widget)
// layout()->margin() and layout()->spacing()
//
- QSize size;
+ TQSize size;
int numChild = 0;
- QObjectList *l = (QObjectList*)(widget->children());
+ TQObjectList *l = (TQObjectList*)(widget->children());
for( uint i=0; i < l->count(); i++ )
{
- QObject *o = l->at(i);
+ TQObject *o = l->at(i);
if( o->isWidgetType() )
{
numChild += 1;
- QWidget *w=((QWidget*)o);
+ TQWidget *w=((TQWidget*)o);
- QSize s = w->sizeHint();
+ TQSize s = w->sizeHint();
if( s.isEmpty() == true )
{
- s = QSize( 50, 100 ); // Default size
+ s = TQSize( 50, 100 ); // Default size
}
size.setHeight( size.height() + s.height() );
if( s.width() > size.width() ) { size.setWidth( s.width() ); }
@@ -110,11 +110,11 @@ static QSize sizeHintForWidget(const QWidget* widget)
if( numChild > 0 )
{
size.setHeight( size.height() + widget->layout()->spacing()*(numChild-1) );
- size += QSize( widget->layout()->margin()*2, widget->layout()->margin()*2 + 1 );
+ size += TQSize( widget->layout()->margin()*2, widget->layout()->margin()*2 + 1 );
}
else
{
- size = QSize( 1, 1 );
+ size = TQSize( 1, 1 );
}
return( size );
@@ -123,44 +123,44 @@ static QSize sizeHintForWidget(const QWidget* widget)
-SavePreferences::SavePreferences(QWidget *parent)
+SavePreferences::SavePreferences(TQWidget *parent)
: KTabCtl(parent)
{
- QWidget* page = new QWidget(this);
- QVBoxLayout* layout=new QVBoxLayout(page);
+ TQWidget* page = new TQWidget(this);
+ 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);
layout->addWidget(box);
box->setMargin(KDialog::marginHint());
- _updateButton = new QCheckBox(i18n("&Update header when saving"),box, "kcfg_AutoUpdate");
- _descriptionButton = new QCheckBox(i18n("Update &description comment when saving"),box, "kcfg_UpdateDescription");
- _autoCheckButton = new QCheckBox(i18n("Chec&k syntax of file when saving"),box, "kcfg_AutoSyntaxCheck");
- _saveObsoleteButton = new QCheckBox(i18n("Save &obsolete entries"),box, "kcfg_SaveObsolete");
+ _updateButton = new TQCheckBox(i18n("&Update header when saving"),box, "kcfg_AutoUpdate");
+ _descriptionButton = new TQCheckBox(i18n("Update &description comment when saving"),box, "kcfg_UpdateDescription");
+ _autoCheckButton = new TQCheckBox(i18n("Chec&k syntax of file when saving"),box, "kcfg_AutoSyntaxCheck");
+ _saveObsoleteButton = new TQCheckBox(i18n("Save &obsolete entries"),box, "kcfg_SaveObsolete");
- QGroupBox* descBox=new QGroupBox(1,Qt::Horizontal,i18n("De&scription"),page);
+ TQGroupBox* descBox=new TQGroupBox(1,Qt::Horizontal,i18n("De&scription"),page);
layout->addWidget(descBox);
descBox->setMargin(KDialog::marginHint());
- _descriptionEdit = new QLineEdit(descBox, "kcfg_DescriptionString");
+ _descriptionEdit = new TQLineEdit(descBox, "kcfg_DescriptionString");
- QGroupBox* encodingBox = new QGroupBox(1,Qt::Horizontal,i18n("Encoding")
+ TQGroupBox* encodingBox = new TQGroupBox(1,Qt::Horizontal,i18n("Encoding")
,page);
encodingBox->setMargin(KDialog::marginHint());
layout->addWidget(encodingBox);
- QHBox *b = new QHBox(encodingBox);
+ TQHBox *b = new TQHBox(encodingBox);
- QLabel* tempLabel=new QLabel(i18n("Default:"),b);
- _encodingBox = new QComboBox(b, "kcfg_Encoding");
+ TQLabel* tempLabel=new TQLabel(i18n("Default:"),b);
+ _encodingBox = new TQComboBox(b, "kcfg_Encoding");
b->setStretchFactor(_encodingBox,2);
b->setSpacing(KDialog::spacingHint());
- QString defaultName=charsetString(ProjectSettingsBase::Locale);
+ TQString defaultName=charsetString(ProjectSettingsBase::Locale);
defaultName+=" "+i18n("(default)");
- QString utf8Name=charsetString(ProjectSettingsBase::UTF8);
- QString utf16Name=charsetString(ProjectSettingsBase::UTF16);
+ TQString utf8Name=charsetString(ProjectSettingsBase::UTF8);
+ TQString utf16Name=charsetString(ProjectSettingsBase::UTF16);
_encodingBox->insertItem(defaultName,(int)ProjectSettingsBase::Locale);
_encodingBox->insertItem(utf8Name,(int)ProjectSettingsBase::UTF8);
@@ -172,10 +172,10 @@ SavePreferences::SavePreferences(QWidget *parent)
tempLabel->setBuddy(_encodingBox);
- _oldEncodingButton = new QCheckBox(i18n("Kee&p the encoding of the file")
+ _oldEncodingButton = new TQCheckBox(i18n("Kee&p the encoding of the file")
,encodingBox, "kcfg_UseOldEncoding");
- _autoSaveBox = new QGroupBox( 1, Qt::Horizontal, i18n( "Automatic Saving" ), page );
+ _autoSaveBox = new TQGroupBox( 1, Qt::Horizontal, i18n( "Automatic Saving" ), page );
_autoSaveBox->setMargin( KDialog::marginHint( ) );
layout->addWidget( _autoSaveBox );
_autoSaveDelay = new KIntNumInput( _autoSaveBox, "kcfg_AutoSaveDelay" );
@@ -187,49 +187,49 @@ SavePreferences::SavePreferences(QWidget *parent)
page->setMinimumSize(sizeHintForWidget(page));
addTab(page, i18n("&General"));
- page = new QWidget(this);
- layout=new QVBoxLayout(page);
+ page = new TQWidget(this);
+ layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QGroupBox* gridBox = new QGroupBox(2,Qt::Horizontal,i18n("Fields to Update"),page);
+ TQGroupBox* gridBox = new TQGroupBox(2,Qt::Horizontal,i18n("Fields to Update"),page);
layout->addWidget(gridBox);
gridBox->setMargin(KDialog::marginHint());
- _revisionButton = new QCheckBox(i18n("Re&vision-Date"),gridBox, "kcfg_UpdateRevisionDate");
- _lastButton = new QCheckBox(i18n("Last-&Translator"),gridBox, "kcfg_UpdateLastTranslator");
- _languageButton = new QCheckBox(i18n("&Language"),gridBox, "kcfg_UpdateLanguageTeam");
- _charsetButton = new QCheckBox(i18n("Char&set"),gridBox, "kcfg_UpdateCharset");
- _encodingButton = new QCheckBox(i18n("&Encoding"),gridBox, "kcfg_UpdateEncoding");
- _projectButton = new QCheckBox(i18n("Pro&ject"),gridBox, "kcfg_UpdateProject");
+ _revisionButton = new TQCheckBox(i18n("Re&vision-Date"),gridBox, "kcfg_UpdateRevisionDate");
+ _lastButton = new TQCheckBox(i18n("Last-&Translator"),gridBox, "kcfg_UpdateLastTranslator");
+ _languageButton = new TQCheckBox(i18n("&Language"),gridBox, "kcfg_UpdateLanguageTeam");
+ _charsetButton = new TQCheckBox(i18n("Char&set"),gridBox, "kcfg_UpdateCharset");
+ _encodingButton = new TQCheckBox(i18n("&Encoding"),gridBox, "kcfg_UpdateEncoding");
+ _projectButton = new TQCheckBox(i18n("Pro&ject"),gridBox, "kcfg_UpdateProject");
- QButtonGroup* dateBox = new QButtonGroup(2,Qt::Horizontal,i18n("Format of Revision-Date"),page, "kcfg_DateFormat");
+ TQButtonGroup* dateBox = new TQButtonGroup(2,Qt::Horizontal,i18n("Format of Revision-Date"),page, "kcfg_DateFormat");
layout->addWidget(dateBox);
box->setMargin(KDialog::marginHint());
// we remove/insert default date button to correctly map Qt::DateFormat to our Ids
- _defaultDateButton = new QRadioButton( i18n("De&fault date format"),dateBox );
+ _defaultDateButton = new TQRadioButton( i18n("De&fault date format"),dateBox );
dateBox->remove (_defaultDateButton);
- _localDateButton = new QRadioButton( i18n("Local date fo&rmat"),dateBox );
+ _localDateButton = new TQRadioButton( i18n("Local date fo&rmat"),dateBox );
dateBox->remove (_localDateButton);
- _customDateButton = new QRadioButton( i18n("Custo&m date format:"),dateBox );
+ _customDateButton = new TQRadioButton( i18n("Custo&m date format:"),dateBox );
dateBox->insert (_defaultDateButton);
dateBox->insert (_localDateButton);
- _dateFormatEdit = new QLineEdit(dateBox, "kcfg_CustomDateFormat");
+ _dateFormatEdit = new TQLineEdit(dateBox, "kcfg_CustomDateFormat");
_dateFormatEdit->setEnabled(false);
- connect( _customDateButton, SIGNAL(toggled(bool)), this, SLOT( customDateActivated(bool) ) );
+ connect( _customDateButton, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT( customDateActivated(bool) ) );
- QGroupBox* projectBox = new QGroupBox(1,Qt::Horizontal,i18n("Project String")
+ TQGroupBox* projectBox = new TQGroupBox(1,Qt::Horizontal,i18n("Project String")
,page);
projectBox->setMargin(KDialog::marginHint());
layout->addWidget(projectBox);
- b = new QHBox(projectBox);
+ b = new TQHBox(projectBox);
- tempLabel=new QLabel(i18n("Project-Id:"),b);
- _projectEdit = new QLineEdit(b, "kcfg_ProjectString");
+ tempLabel=new TQLabel(i18n("Project-Id:"),b);
+ _projectEdit = new TQLineEdit(b, "kcfg_ProjectString");
b->setStretchFactor(_projectEdit,2);
b->setSpacing(KDialog::spacingHint());
tempLabel->setBuddy(_projectEdit);
@@ -238,31 +238,31 @@ SavePreferences::SavePreferences(QWidget *parent)
page->setMinimumSize(sizeHintForWidget(page));
addTab(page, i18n("&Header"));
- page = new QWidget(this);
- layout=new QVBoxLayout(page);
+ page = new TQWidget(this);
+ layout=new TQVBoxLayout(page);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
- QGroupBox* translatorCopyrightBox = new QGroupBox(1,Qt::Horizontal, page);
+ TQGroupBox* translatorCopyrightBox = new TQGroupBox(1,Qt::Horizontal, page);
translatorCopyrightBox->setMargin(KDialog::marginHint());
_translatorCopyrightButton =
- new QCheckBox(i18n("Update &translator copyright")
+ new TQCheckBox(i18n("Update &translator copyright")
,translatorCopyrightBox, "kcfg_UpdateTranslatorCopyright");
layout->addWidget(translatorCopyrightBox);
- QGroupBox* fsfBox=new QButtonGroup(1,Qt::Horizontal,i18n("Free Software Foundation Copyright"),page, "kcfg_FSFCopyright");
+ TQGroupBox* fsfBox=new TQButtonGroup(1,Qt::Horizontal,i18n("Free Software Foundation Copyright"),page, "kcfg_FSFCopyright");
layout->addWidget(fsfBox);
fsfBox->setMargin(KDialog::marginHint());
- _removeFSFButton = new QRadioButton(i18n("&Remove copyright if empty"),fsfBox);
- _updateFSFButton = new QRadioButton(i18n("&Update copyright"),fsfBox);
- _nochangeFSFButton = new QRadioButton(i18n("Do &not change"),fsfBox);
+ _removeFSFButton = new TQRadioButton(i18n("&Remove copyright if empty"),fsfBox);
+ _updateFSFButton = new TQRadioButton(i18n("&Update copyright"),fsfBox);
+ _nochangeFSFButton = new TQRadioButton(i18n("Do &not change"),fsfBox);
layout->addStretch(1);
page->setMinimumSize(sizeHintForWidget(page));
addTab(page, i18n("Cop&yright"));
- QWhatsThis::add(_updateButton,
+ TQWhatsThis::add(_updateButton,
i18n("<qt><p><b>Update Header</b></p>\n"
"<p>Check this button to update the header "
"information of the file "
@@ -275,7 +275,7 @@ SavePreferences::SavePreferences(QWidget *parent)
"If you want to add additional fields to the header, you can edit the header manually by choosing\n"
"<b>Edit->Edit Header</b> in the editor window.</p></qt>"));
- QWhatsThis::add(gridBox,i18n("<qt><p><b>Fields to update</b></p>\n"
+ TQWhatsThis::add(gridBox,i18n("<qt><p><b>Fields to update</b></p>\n"
"<p>Choose which fields in the header you want to have updated when saving.\n"
"If a field does not exist, it is appended to the header.</p>\n"
"<p>If you want to add other information to the header, you have to edit the header manually\n"
@@ -283,7 +283,7 @@ SavePreferences::SavePreferences(QWidget *parent)
"<p>Deactivate <b>Update Header</b> above if you do not want to have the header\n"
"updated when saving.</p></qt>"));
- QWhatsThis::add(encodingBox,i18n("<qt><p><b>Encoding</b></p>"
+ TQWhatsThis::add(encodingBox,i18n("<qt><p><b>Encoding</b></p>"
"<p>Choose how to encode characters when saving to a file. If you are unsure "
"what encoding to use, please ask your translation coordinator.</p>"
"<ul><li><b>%1</b>: this is the encoding that fits the character "
@@ -292,18 +292,18 @@ SavePreferences::SavePreferences(QWidget *parent)
"</ul></qt>").arg(defaultName).arg(utf8Name) );
- QWhatsThis::add(_oldEncodingButton
+ TQWhatsThis::add(_oldEncodingButton
,i18n("<qt><p><b>Keep the encoding of the file</b></p>"
"<p>If this option is activated, files are always saved in the "
"same encoding as they were read in. Files without charset "
"information in the header (e.g. POT files) are saved in the "
"encoding set above.</p></qt>"));
- QWhatsThis::add(_autoCheckButton,i18n("<qt><p><b>Check syntax of file when saving</b></p>\n"
+ TQWhatsThis::add(_autoCheckButton,i18n("<qt><p><b>Check syntax of file when saving</b></p>\n"
"<p>Check this to automatically check syntax of file with \"msgfmt --statistics\"\n"
"when saving a file. You will only get a message, if an error occurred.</p></qt>"));
- QWhatsThis::add(_saveObsoleteButton,i18n("<qt><p><b>Save obsolete entries</b></p>\n"
+ TQWhatsThis::add(_saveObsoleteButton,i18n("<qt><p><b>Save obsolete entries</b></p>\n"
"<p>If this option is activated, obsolete entries found when the file was open\n"
"will be saved back to the file. Obsolete entries are marked by #~ and are\n"
"created when the msgmerge does not need the translation anymore.\n"
@@ -311,7 +311,7 @@ SavePreferences::SavePreferences(QWidget *parent)
"The main drawback is the size of the saved file.</p></qt>"));
- QWhatsThis::add(dateBox, i18n("<qt><p><b>Format of Revision-Date</b></p>"
+ TQWhatsThis::add(dateBox, i18n("<qt><p><b>Format of Revision-Date</b></p>"
"<p>Choose in which format the date and time of the header field\n"
"<i>PO-Revision-Date</i> is saved: <ul>\n"
"<li><b>Default</b> is the format normally used in PO files.</li>\n"
@@ -398,92 +398,92 @@ void SavePreferences::setAutoSaveVisible( const bool on )
-IdentityPreferences::IdentityPreferences(QWidget* parent, const QString& project)
- : QWidget(parent)
+IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& project)
+ : 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());
if( !project.isEmpty() )
{
// show the project name in the widget at the top
- layout->addWidget(new QLabel(i18n("<font size=\"+1\">Project: %1</font>").arg(project),page));
+ layout->addWidget(new TQLabel(i18n("<font size=\"+1\">Project: %1</font>").arg(project),page));
}
- QGroupBox* group = new QGroupBox(2,Qt::Horizontal,page);
+ TQGroupBox* group = new TQGroupBox(2,Qt::Horizontal,page);
layout->addWidget(group);
group->setMargin(KDialog::marginHint());
- QLabel* tempLabel=new QLabel(i18n("&Name:"),group);
- _nameEdit = new QLineEdit(group, "kcfg_AuthorName");
+ TQLabel* tempLabel=new TQLabel(i18n("&Name:"),group);
+ _nameEdit = new TQLineEdit(group, "kcfg_AuthorName");
tempLabel->setBuddy(_nameEdit);
- tempLabel=new QLabel(i18n("Localized na&me:"),group);
- _localNameEdit = new QLineEdit(group, "kcfg_LocalAuthorName");
+ tempLabel=new TQLabel(i18n("Localized na&me:"),group);
+ _localNameEdit = new TQLineEdit(group, "kcfg_LocalAuthorName");
tempLabel->setBuddy(_localNameEdit);
- tempLabel=new QLabel(i18n("E&mail:"),group);
- _mailEdit = new QLineEdit(group, "kcfg_AuthorEmail");
+ tempLabel=new TQLabel(i18n("E&mail:"),group);
+ _mailEdit = new TQLineEdit(group, "kcfg_AuthorEmail");
tempLabel->setBuddy(_mailEdit);
- tempLabel=new QLabel(i18n("&Full language name:"),group);
+ tempLabel=new TQLabel(i18n("&Full language name:"),group);
- QHBox *hbox = new QHBox(group);
+ TQHBox *hbox = new TQHBox(group);
hbox->setSpacing(KDialog::spacingHint());
- _langEdit = new QLineEdit(hbox, "kcfg_Language");
+ _langEdit = new TQLineEdit(hbox, "kcfg_Language");
tempLabel->setBuddy(_langEdit);
- tempLabel=new QLabel(i18n("Lan&guage code:"),hbox);
- _langCodeEdit = new QLineEdit(hbox, "kcfg_LanguageCode");
+ tempLabel=new TQLabel(i18n("Lan&guage code:"),hbox);
+ _langCodeEdit = new TQLineEdit(hbox, "kcfg_LanguageCode");
tempLabel->setBuddy(_langCodeEdit);
- connect(_langCodeEdit,SIGNAL(textChanged(const QString&)), this
- , SLOT(checkTestPluralButton()));
+ connect(_langCodeEdit,TQT_SIGNAL(textChanged(const TQString&)), this
+ , TQT_SLOT(checkTestPluralButton()));
- tempLabel=new QLabel(i18n("&Language mailing list:"),group);
- _listEdit = new QLineEdit(group, "kcfg_Mailinglist");
+ tempLabel=new TQLabel(i18n("&Language mailing list:"),group);
+ _listEdit = new TQLineEdit(group, "kcfg_Mailinglist");
_listEdit->setMinimumSize(100,_listEdit->sizeHint().height());
tempLabel->setBuddy(_listEdit);
- tempLabel=new QLabel(i18n("&Timezone:"), group);
- _timezoneEdit = new QLineEdit(group, "kcfg_Timezone");
+ tempLabel=new TQLabel(i18n("&Timezone:"), group);
+ _timezoneEdit = new TQLineEdit(group, "kcfg_Timezone");
_timezoneEdit->setMinimumSize(100,_timezoneEdit->sizeHint().height());
tempLabel->setBuddy(_timezoneEdit);
- QString whatsThisMsg=i18n("<qt><p><b>Identity</b></p>\n"
+ TQString whatsThisMsg=i18n("<qt><p><b>Identity</b></p>\n"
"<p>Fill in information about you and your translation team.\n"
"This information is used when updating the header of a file.</p>\n"
"<p>You can find the options if and what fields in the header should be updated\n"
"on page <b>Save</b> in this dialog.</p></qt>");
- QWhatsThis::add(group,whatsThisMsg);
+ TQWhatsThis::add(group,whatsThisMsg);
- group = new QGroupBox(1,Qt::Horizontal,page);
+ group = new TQGroupBox(1,Qt::Horizontal,page);
layout->addWidget(group);
group->setMargin(KDialog::marginHint());
- hbox = new QHBox(group);
+ hbox = new TQHBox(group);
hbox->setSpacing(KDialog::spacingHint());
- QLabel *label = new QLabel(i18n("&Number of singular/plural forms:"), hbox);
- _pluralFormsBox = new QSpinBox(0,100,1,hbox, "kcfg_PluralForms");
+ TQLabel *label = new TQLabel(i18n("&Number of singular/plural forms:"), hbox);
+ _pluralFormsBox = new TQSpinBox(0,100,1,hbox, "kcfg_PluralForms");
_pluralFormsBox->setSpecialValueText(
i18n("automatic choose number of plural forms","Automatic"));
label->setBuddy(_pluralFormsBox);
- connect(_pluralFormsBox,SIGNAL(valueChanged(int)), this
- , SLOT(checkTestPluralButton()));
+ connect(_pluralFormsBox,TQT_SIGNAL(valueChanged(int)), this
+ , TQT_SLOT(checkTestPluralButton()));
hbox->setStretchFactor(_pluralFormsBox,1);
- _testPluralButton = new QPushButton(i18n("Te&st"),hbox);
+ _testPluralButton = new TQPushButton(i18n("Te&st"),hbox);
_testPluralButton->setEnabled(false);
- connect(_testPluralButton, SIGNAL(clicked()), this
- , SLOT(testPluralForm()));
+ connect(_testPluralButton, TQT_SIGNAL(clicked()), this
+ , TQT_SLOT(testPluralForm()));
- const QString msg=i18n("<qt><p><b>Number of singular/plural forms</b></p>"
+ const TQString msg=i18n("<qt><p><b>Number of singular/plural forms</b></p>"
"<p><b>Note</b>: This option is KDE specific. "
"If you are not translating a KDE application, you can safely "
"ignore this option.</p>"
@@ -495,29 +495,29 @@ IdentityPreferences::IdentityPreferences(QWidget* parent, const QString& project
"<i>Automatic</i> and KBabel will try to get this information "
"automatically from KDE. Use the <i>Test</i> button "
"to test if it can find it out.</p></qt>");
- QWhatsThis::add(_pluralFormsBox,msg);
- QWhatsThis::add(_testPluralButton,msg);
+ TQWhatsThis::add(_pluralFormsBox,msg);
+ TQWhatsThis::add(_testPluralButton,msg);
- QVBox* vbox = new QVBox(group);
+ TQVBox* vbox = new TQVBox(group);
vbox->setSpacing(KDialog::spacingHint());
- label = new QLabel(i18n("&GNU plural form header:"), vbox);
+ label = new TQLabel(i18n("&GNU plural form header:"), vbox);
- hbox = new QHBox(vbox);
+ hbox = new TQHBox(vbox);
hbox->setSpacing(KDialog::spacingHint());
- _gnuPluralFormHeaderEdit = new QLineEdit(hbox, "kcfg_PluralFormsHeader");
+ _gnuPluralFormHeaderEdit = new TQLineEdit(hbox, "kcfg_PluralFormsHeader");
label->setBuddy(_gnuPluralFormHeaderEdit);
hbox->setStretchFactor(_gnuPluralFormHeaderEdit,1);
- _testGnuPluralFormButton = new QPushButton(i18n("&Lookup"),hbox);
- connect(_testGnuPluralFormButton, SIGNAL(clicked()), this
- , SLOT(lookupGnuPluralFormHeader()));
+ _testGnuPluralFormButton = new TQPushButton(i18n("&Lookup"),hbox);
+ connect(_testGnuPluralFormButton, TQT_SIGNAL(clicked()), this
+ , TQT_SLOT(lookupGnuPluralFormHeader()));
- _checkPluralArgumentBox = new QCheckBox( i18n("Re&quire plural form arguments in translation")
+ _checkPluralArgumentBox = new TQCheckBox( i18n("Re&quire plural form arguments in translation")
, group, "kcfg_CheckPluralArgument" );
- QWhatsThis::add(_checkPluralArgumentBox,
+ TQWhatsThis::add(_checkPluralArgumentBox,
i18n("<qt><p><b>Require plural form arguments in translation</b></p>\n"
"<p><b>Note</b>: This option is KDE specific at the moment. "
"If you are not translating a KDE application, you can safely "
@@ -525,7 +525,7 @@ IdentityPreferences::IdentityPreferences(QWidget* parent, const QString& project
"<p>If is this option enabled, the validation check will "
"require the %n argument to be present in the message.</p></qt>"));
- QWhatsThis::add(_gnuPluralFormHeaderEdit,
+ TQWhatsThis::add(_gnuPluralFormHeaderEdit,
i18n("<qt><p><b>GNU plural form header</b></p>\n"
"<p>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<QDropEvent*>(e);
+ TQDropEvent *de = static_cast<TQDropEvent*>(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("<qt><p><b>Marker for keyboard accelerator</b></p>"
+ TQString msg=i18n("<qt><p><b>Marker for keyboard accelerator</b></p>"
"<p>Define here, what character marks the following "
"character as keyboard accelerator. For example in Qt it is "
"'&amp;' and in Gtk it is '_'.</p></qt>");
- 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)
"<p>Enter a regular expression here which defines what is "
"context information in the message and must not get "
"translated.</p></qt>");
- 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; i<temp.length(); i++)
{
@@ -768,7 +768,7 @@ QString MiscPreferences::contextInfo() const
return newStr;
}
-void MiscPreferences::setContextInfo(QString reg)
+void MiscPreferences::setContextInfo(TQString reg)
{
reg.replace("\n","\\n");
contextInfoEdit->setText(reg);
@@ -777,61 +777,61 @@ void MiscPreferences::setContextInfo(QString reg)
void MiscPreferences::regExpButtonClicked()
{
if ( _regExpEditDialog==0 )
- _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>
- ("KRegExpEditor/KRegExpEditor", QString::null, this );
+ _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>
+ ("KRegExpEditor/KRegExpEditor", TQString::null, this );
KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( _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("<qt><p><b>On the fly spellchecking</b></p>"
+ TQWhatsThis::add(onFlyBtn, i18n("<qt><p><b>On the fly spellchecking</b></p>"
"<p>Activate this to let KBabel spell check the text "
"as you type. Mispelled words will be colored by the error color.</p></qt>"));
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("<qt><p><b>Remember ignored words</b></p>"
+ TQString msg = i18n("<qt><p><b>Remember ignored words</b></p>"
"<p>Activate this, to let KBabel ignore the words, where you have "
"chosen <i>Ignore All</i> in the spell check dialog, "
"in every spell check.</p></qt>");
- 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::Mode>( 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("<qt><p><b>Base folders</b></p>\n"
+ TQWhatsThis::add(box,i18n("<qt><p><b>Base folders</b></p>\n"
"<p>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.</p></qt>"));
- 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("<qt><p><b>Open files in new window</b></p>\n"
+ TQWhatsThis::add(_openWindowButton,i18n("<qt><p><b>Open files in new window</b></p>\n"
"<p>If this is activated all files that are opened from the Catalog Manager are opened\n"
"in a new window.</p></qt>"));
- _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("<qt><p><b>Kill processes on exit</b></p>\n"
+ TQWhatsThis::add( _killButton , i18n("<qt><p><b>Kill processes on exit</b></p>\n"
"<p>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.</p>\n"
"<p>NOTE: It is not guaranteed that the processes will be killed.</p></qt>") );
- _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("<qt><p><b>Create index for file contents</b></p>\n"
+ TQWhatsThis::add( _indexButton , i18n("<qt><p><b>Create index for file contents</b></p>\n"
"<p>If you check this, KBabel will create an index for each PO file to speed up the find/replace functions.</p>\n"
"<p>NOTE: This will slow down updating the file information considerably.</p></qt>") );
- 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("<qt><p><b>Run msgfmt before processing a file</b></p>"
+ TQWhatsThis::add( m_msgfmtButton, i18n("<qt><p><b>Run msgfmt before processing a file</b></p>"
"<p>If you enable this, KBabel will run Gettext's "
"msgfmt tool before processing a file.</p>"
"<p>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("<qt><p><b>Commands for folders</b></p>"
+ TQWhatsThis::add( box , i18n("<qt><p><b>Commands for folders</b></p>"
"<p>Insert here the commands you want to execute in folders from "
"the Catalog Manager. The commands are then shown in the submenu "
"<b>Commands</b> in the Catalog Manager's context menu.</p>"
@@ -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("<qt><p><b>Commands for files</b></p>"
+ TQWhatsThis::add( box , i18n("<qt><p><b>Commands for files</b></p>"
"<p>Insert here the commands you want to execute on files from "
"the Catalog Manager. The commands are then shown in the submenu "
"<b>Commands</b> in the Catalog Manager's context menu.</p>"
@@ -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("<qt><p><b>Shown columns</b></p>\n"
+ TQWhatsThis::add(box,i18n("<qt><p><b>Shown columns</b></p>\n"
"<p></p></qt>"));
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::Mode>( 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<QKeyEvent*>(e);
+ TQKeyEvent *ke = dynamic_cast<TQKeyEvent*>(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 <ktabctl.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
#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 <qcombobox.h>
+#include <tqcombobox.h>
#include <kapplication.h>
#include <kmessagebox.h>
@@ -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<QString, QString> m_language_codes;
+ TQMap<TQString, TQString> 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 <qmemarray.h>
-#include <qcheckbox.h>
-#include <qhbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qtimer.h>
-#include <qvgroupbox.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
+#include <tqmemarray.h>
+#include <tqcheckbox.h>
+#include <tqhbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqtimer.h>
+#include <tqvgroupbox.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -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("<qt><p><b>What entries to translate</b></p>"
+ TQWhatsThis::add(bBox,i18n("<qt><p><b>What entries to translate</b></p>"
"<p>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.</p></qt>"));
- 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("<qt><p><b>How messages get translated</b></p>"
+ TQWhatsThis::add(bBox,i18n("<qt><p><b>How messages get translated</b></p>"
"<p>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.</p></qt>"));
- 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("<qt><p><b>Mark changed entries as fuzzy</b></p>"
"<p>When a translation for a message is found, the entry "
"will be marked <b>fuzzy</b> by default. This is because the "
@@ -144,25 +144,25 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
"you know what you are doing.</p></qt>"));
- 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("<qt><p><b>Initialize KDE-specific entries</b></p>"
"<p>Initialize \"Comment=\" and \"Name=\" entries "
"if a translation is not found. Also, \"NAME OF TRANSLATORS\" "
"and \"EMAIL OF TRANSLATORS\" is filled with identity settings.</p></qt>"));
- QVGroupBox *dBox = new QVGroupBox(i18n("Dictionaries"),configWidget);
+ TQVGroupBox *dBox = new TQVGroupBox(i18n("Dictionaries"),configWidget);
configWidget->setStretchFactor(dBox,1);
- QPtrList<ModuleInfo> moduleList = dict->moduleInfos();
+ TQPtrList<ModuleInfo> 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("<qt><p><b>Dictionaries</b></p>"
+ TQWhatsThis::add(dictChooser,i18n("<qt><p><b>Dictionaries</b></p>"
"<p>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.</p></qt>"));
- 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 = "<othercredit role=\\\"translator\\\">\n<firstname></firstname>"
+ TQString temp = "<othercredit role=\\\"translator\\\">\n<firstname></firstname>"
"<surname></surname>\n<affiliation><address><email>" +
catalog->identitySettings( ).authorEmail+"</email></address>\n"
"</affiliation><contrib></contrib></othercredit>";
@@ -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 = "<para>" + authorName + "\n" + "<email>" +
+ TQString temp = "<para>" + authorName + "\n" + "<email>" +
catalog->identitySettings( ).authorEmail + "</email></para>";
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("<qt><p>"
+ TQString msg=i18n("<qt><p>"
"When a translation for a message is found, the entry "
"will be marked <b>fuzzy</b> 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.</p></qt>");
- 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 <kdebug.h>
-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<KAction> ToolAction::dataToolActionList( const QValueList<KDataToolInfo> & tools, const QObject *receiver, const char* slot, const QStringList& command, bool excludeCommand, KActionCollection* parent, const QString& namePrefix )
+TQPtrList<KAction> ToolAction::dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot, const TQStringList& command, bool excludeCommand, KActionCollection* parent, const TQString& namePrefix )
{
- QPtrList<KAction> actionList;
+ TQPtrList<KAction> actionList;
if ( tools.isEmpty() )
return actionList;
- QValueList<KDataToolInfo>::ConstIterator entry = tools.begin();
+ TQValueList<KDataToolInfo>::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<KAction> ToolAction::dataToolActionList( const QValueList<KDataToolInfo
return actionList;
}
-QValueList<KDataToolInfo> ToolAction::validationTools()
+TQValueList<KDataToolInfo> ToolAction::validationTools()
{
- QValueList<KDataToolInfo> result;
+ TQValueList<KDataToolInfo> result;
- QValueList<KDataToolInfo> tools = KDataToolInfo::query("CatalogItem", "application/x-kbabel-catalogitem", KGlobal::instance());
+ TQValueList<KDataToolInfo> tools = KDataToolInfo::query("CatalogItem", "application/x-kbabel-catalogitem", KGlobal::instance());
- for( QValueList<KDataToolInfo>::ConstIterator entry = tools.begin(); entry != tools.end(); ++entry )
+ for( TQValueList<KDataToolInfo>::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 <qobject.h>
+#include <tqobject.h>
#include <kaction.h>
#include <kdatatool.h>
@@ -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<KAction> dataToolActionList( const QValueList<KDataToolInfo> & tools, const QObject *receiver, const char* slot, const QStringList& command, bool excludeCommand, KActionCollection* parent=0, const QString& namePrefix=QString::null );
+ static TQPtrList<KAction> dataToolActionList( const TQValueList<KDataToolInfo> & 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<KDataToolInfo> validationTools();
+ static TQValueList<KDataToolInfo> 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 <kdatatool.h>
#include <kdebug.h>
-#include <qlistbox.h>
+#include <tqlistbox.h>
-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<KDataToolInfo>& tools)
+void ToolSelectionWidget::loadTools( const TQStringList &commands,
+ const TQValueList<KDataToolInfo>& tools)
{
if ( tools.isEmpty() ) return;
_allTools = tools;
- QValueList<KDataToolInfo>::ConstIterator entry = tools.begin();
+ TQValueList<KDataToolInfo>::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<KDataToolInfo>::ConstIterator entry = _allTools.begin();
+ TQValueList<KDataToolInfo>::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; i<selectedListBox()->count() ; i++ )
usedNames += selectedListBox()->text(i);
- QStringList result;
- QValueList<KDataToolInfo>::ConstIterator entry = _allTools.begin();
+ TQStringList result;
+ TQValueList<KDataToolInfo>::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<KDataToolInfo> & tools);
+ void loadTools (const TQStringList& commands, const TQValueList<KDataToolInfo> & tools);
public slots:
- void setSelectedTools( const QStringList& tools );
+ void setSelectedTools( const TQStringList& tools );
private:
- QValueList<KDataToolInfo> _allTools;
+ TQValueList<KDataToolInfo> _allTools;
};
#endif