summaryrefslogtreecommitdiffstats
path: root/kmail/accountdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/accountdialog.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/accountdialog.cpp')
-rw-r--r--kmail/accountdialog.cpp784
1 files changed, 392 insertions, 392 deletions
diff --git a/kmail/accountdialog.cpp b/kmail/accountdialog.cpp
index b517925a2..6203d3e87 100644
--- a/kmail/accountdialog.cpp
+++ b/kmail/accountdialog.cpp
@@ -21,20 +21,20 @@
#include "accountdialog.h"
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qtabwidget.h>
-#include <qradiobutton.h>
-#include <qvalidator.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
-#include <qhbox.h>
-#include <qcombobox.h>
-#include <qheader.h>
-#include <qtoolbutton.h>
-#include <qgrid.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqtabwidget.h>
+#include <tqradiobutton.h>
+#include <tqvalidator.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
+#include <tqhbox.h>
+#include <tqcombobox.h>
+#include <tqheader.h>
+#include <tqtoolbutton.h>
+#include <tqgrid.h>
#include <kfiledialog.h>
#include <klocale.h>
@@ -85,45 +85,45 @@ namespace KMail {
class ProcmailRCParser
{
public:
- ProcmailRCParser(QString fileName = QString::null);
+ ProcmailRCParser(TQString fileName = TQString::null);
~ProcmailRCParser();
- QStringList getLockFilesList() const { return mLockFiles; }
- QStringList getSpoolFilesList() const { return mSpoolFiles; }
+ TQStringList getLockFilesList() const { return mLockFiles; }
+ TQStringList getSpoolFilesList() const { return mSpoolFiles; }
protected:
- void processGlobalLock(const QString&);
- void processLocalLock(const QString&);
- void processVariableSetting(const QString&, int);
- QString expandVars(const QString&);
-
- QFile mProcmailrc;
- QTextStream *mStream;
- QStringList mLockFiles;
- QStringList mSpoolFiles;
- QAsciiDict<QString> mVars;
+ void processGlobalLock(const TQString&);
+ void processLocalLock(const TQString&);
+ void processVariableSetting(const TQString&, int);
+ TQString expandVars(const TQString&);
+
+ TQFile mProcmailrc;
+ TQTextStream *mStream;
+ TQStringList mLockFiles;
+ TQStringList mSpoolFiles;
+ TQAsciiDict<TQString> mVars;
};
-ProcmailRCParser::ProcmailRCParser(QString fname)
+ProcmailRCParser::ProcmailRCParser(TQString fname)
: mProcmailrc(fname),
- mStream(new QTextStream(&mProcmailrc))
+ mStream(new TQTextStream(&mProcmailrc))
{
mVars.setAutoDelete(true);
// predefined
- mVars.insert( "HOME", new QString( QDir::homeDirPath() ) );
+ mVars.insert( "HOME", new TQString( TQDir::homeDirPath() ) );
if( !fname || fname.isEmpty() ) {
- fname = QDir::homeDirPath() + "/.procmailrc";
+ fname = TQDir::homeDirPath() + "/.procmailrc";
mProcmailrc.setName(fname);
}
- QRegExp lockFileGlobal("^LOCKFILE=", true);
- QRegExp lockFileLocal("^:0", true);
+ TQRegExp lockFileGlobal("^LOCKFILE=", true);
+ TQRegExp lockFileLocal("^:0", true);
if( mProcmailrc.open(IO_ReadOnly) ) {
- QString s;
+ TQString s;
while( !mStream->eof() ) {
@@ -149,7 +149,7 @@ ProcmailRCParser::ProcmailRCParser(QString fname)
}
}
- QString default_Location = getenv("MAIL");
+ TQString default_Location = getenv("MAIL");
if (default_Location.isNull()) {
default_Location = _PATH_MAILDIR;
@@ -170,17 +170,17 @@ ProcmailRCParser::~ProcmailRCParser()
}
void
-ProcmailRCParser::processGlobalLock(const QString &s)
+ProcmailRCParser::processGlobalLock(const TQString &s)
{
- QString val = expandVars(s.mid(s.find('=') + 1).stripWhiteSpace());
+ TQString val = expandVars(s.mid(s.find('=') + 1).stripWhiteSpace());
if ( !mLockFiles.contains(val) )
mLockFiles << val;
}
void
-ProcmailRCParser::processLocalLock(const QString &s)
+ProcmailRCParser::processLocalLock(const TQString &s)
{
- QString val;
+ TQString val;
int colonPos = s.findRev(':');
if (colonPos > 0) { // we don't care about the leading one
@@ -197,7 +197,7 @@ ProcmailRCParser::processLocalLock(const QString &s)
}
// parse until we find the spoolfile
- QString line, prevLine;
+ TQString line, prevLine;
do {
prevLine = line;
line = mStream->readLine().stripWhiteSpace();
@@ -238,27 +238,27 @@ ProcmailRCParser::processLocalLock(const QString &s)
}
void
-ProcmailRCParser::processVariableSetting(const QString &s, int eqPos)
+ProcmailRCParser::processVariableSetting(const TQString &s, int eqPos)
{
if( eqPos == -1) return;
- QString varName = s.left(eqPos),
+ TQString varName = s.left(eqPos),
varValue = expandVars(s.mid(eqPos + 1).stripWhiteSpace());
- mVars.insert(varName.latin1(), new QString(varValue));
+ mVars.insert(varName.latin1(), new TQString(varValue));
}
QString
-ProcmailRCParser::expandVars(const QString &s)
+ProcmailRCParser::expandVars(const TQString &s)
{
if( s.isEmpty()) return s;
- QString expS = s;
+ TQString expS = s;
- QAsciiDictIterator<QString> it( mVars ); // iterator for dict
+ TQAsciiDictIterator<TQString> it( mVars ); // iterator for dict
while ( it.current() ) {
- expS.replace(QString::fromLatin1("$") + it.currentKey(), *it.current());
+ expS.replace(TQString::fromLatin1("$") + it.currentKey(), *it.current());
++it;
}
@@ -267,8 +267,8 @@ ProcmailRCParser::expandVars(const QString &s)
-AccountDialog::AccountDialog( const QString & caption, KMAccount *account,
- QWidget *parent, const char *name, bool modal )
+AccountDialog::AccountDialog( const TQString & caption, KMAccount *account,
+ TQWidget *parent, const char *name, bool modal )
: KDialogBase( parent, name, modal, caption, Ok|Cancel|Help, Ok, true ),
mAccount( account ),
mServerTest( 0 ),
@@ -278,10 +278,10 @@ AccountDialog::AccountDialog( const QString & caption, KMAccount *account,
mCapaTLS( AllCapa ),
mSieveConfigEditor( 0 )
{
- mValidator = new QRegExpValidator( QRegExp( "[A-Za-z0-9-_:.]*" ), 0 );
+ mValidator = new TQRegExpValidator( TQRegExp( "[A-Za-z0-9-_:.]*" ), 0 );
setHelp("receiving-mail");
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
@@ -305,7 +305,7 @@ AccountDialog::AccountDialog( const QString & caption, KMAccount *account,
}
else
{
- QString msg = i18n( "Account type is not supported." );
+ TQString msg = i18n( "Account type is not supported." );
KMessageBox::information( topLevelWidget(),msg,i18n("Configure Account") );
return;
}
@@ -324,113 +324,113 @@ AccountDialog::~AccountDialog()
void AccountDialog::makeLocalAccountPage()
{
ProcmailRCParser procmailrcParser;
- QFrame *page = makeMainWidget();
- QGridLayout *topLayout = new QGridLayout( page, 12, 3, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQGridLayout *topLayout = new TQGridLayout( page, 12, 3, 0, spacingHint() );
topLayout->addColSpacing( 1, fontMetrics().maxWidth()*15 );
topLayout->setRowStretch( 11, 10 );
topLayout->setColStretch( 1, 10 );
- mLocal.titleLabel = new QLabel( i18n("Account Type: Local Account"), page );
+ mLocal.titleLabel = new TQLabel( i18n("Account Type: Local Account"), page );
topLayout->addMultiCellWidget( mLocal.titleLabel, 0, 0, 0, 2 );
- QFont titleFont( mLocal.titleLabel->font() );
+ TQFont titleFont( mLocal.titleLabel->font() );
titleFont.setBold( true );
mLocal.titleLabel->setFont( titleFont );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addMultiCellWidget( hline, 1, 1, 0, 2 );
- QLabel *label = new QLabel( i18n("Account &name:"), page );
+ TQLabel *label = new TQLabel( i18n("Account &name:"), page );
topLayout->addWidget( label, 2, 0 );
mLocal.nameEdit = new KLineEdit( page );
label->setBuddy( mLocal.nameEdit );
topLayout->addWidget( mLocal.nameEdit, 2, 1 );
- label = new QLabel( i18n("File &location:"), page );
+ label = new TQLabel( i18n("File &location:"), page );
topLayout->addWidget( label, 3, 0 );
- mLocal.locationEdit = new QComboBox( true, page );
+ mLocal.locationEdit = new TQComboBox( true, page );
label->setBuddy( mLocal.locationEdit );
topLayout->addWidget( mLocal.locationEdit, 3, 1 );
mLocal.locationEdit->insertStringList(procmailrcParser.getSpoolFilesList());
- QPushButton *choose = new QPushButton( i18n("Choo&se..."), page );
+ TQPushButton *choose = new TQPushButton( i18n("Choo&se..."), page );
choose->setAutoDefault( false );
- connect( choose, SIGNAL(clicked()), this, SLOT(slotLocationChooser()) );
+ connect( choose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocationChooser()) );
topLayout->addWidget( choose, 3, 2 );
- QButtonGroup *group = new QButtonGroup(i18n("Locking Method"), page );
+ TQButtonGroup *group = new TQButtonGroup(i18n("Locking Method"), page );
group->setColumnLayout(0, Qt::Horizontal);
group->layout()->setSpacing( 0 );
group->layout()->setMargin( 0 );
- QGridLayout *groupLayout = new QGridLayout( group->layout() );
+ TQGridLayout *groupLayout = new TQGridLayout( group->layout() );
groupLayout->setAlignment( Qt::AlignTop );
groupLayout->setSpacing( 6 );
groupLayout->setMargin( 11 );
- mLocal.lockProcmail = new QRadioButton( i18n("Procmail loc&kfile:"), group);
+ mLocal.lockProcmail = new TQRadioButton( i18n("Procmail loc&kfile:"), group);
groupLayout->addWidget(mLocal.lockProcmail, 0, 0);
- mLocal.procmailLockFileName = new QComboBox( true, group );
+ mLocal.procmailLockFileName = new TQComboBox( true, group );
groupLayout->addWidget(mLocal.procmailLockFileName, 0, 1);
mLocal.procmailLockFileName->insertStringList(procmailrcParser.getLockFilesList());
mLocal.procmailLockFileName->setEnabled(false);
- QObject::connect(mLocal.lockProcmail, SIGNAL(toggled(bool)),
- mLocal.procmailLockFileName, SLOT(setEnabled(bool)));
+ TQObject::connect(mLocal.lockProcmail, TQT_SIGNAL(toggled(bool)),
+ mLocal.procmailLockFileName, TQT_SLOT(setEnabled(bool)));
- mLocal.lockMutt = new QRadioButton(
+ mLocal.lockMutt = new TQRadioButton(
i18n("&Mutt dotlock"), group);
groupLayout->addWidget(mLocal.lockMutt, 1, 0);
- mLocal.lockMuttPriv = new QRadioButton(
+ mLocal.lockMuttPriv = new TQRadioButton(
i18n("M&utt dotlock privileged"), group);
groupLayout->addWidget(mLocal.lockMuttPriv, 2, 0);
- mLocal.lockFcntl = new QRadioButton(
+ mLocal.lockFcntl = new TQRadioButton(
i18n("&FCNTL"), group);
groupLayout->addWidget(mLocal.lockFcntl, 3, 0);
- mLocal.lockNone = new QRadioButton(
+ mLocal.lockNone = new TQRadioButton(
i18n("Non&e (use with care)"), group);
groupLayout->addWidget(mLocal.lockNone, 4, 0);
topLayout->addMultiCellWidget( group, 4, 4, 0, 2 );
#if 0
- QHBox* resourceHB = new QHBox( page );
+ TQHBox* resourceHB = new TQHBox( page );
resourceHB->setSpacing( 11 );
mLocal.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mLocal.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
- QWhatsThis::add( mLocal.resourceClearButton,
+ new TQPushButton( i18n( "Clear" ), resourceHB );
+ TQWhatsThis::add( mLocal.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
mLocal.resourceClearButton->setEnabled( false );
- connect( mLocal.resourceCheck, SIGNAL( toggled(bool) ),
- mLocal.resourceClearButton, SLOT( setEnabled(bool) ) );
- connect( mLocal.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mLocal.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mLocal.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ connect( mLocal.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mLocal.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mLocal.resourceClearPastButton->setEnabled( false );
- connect( mLocal.resourceCheck, SIGNAL( toggled(bool) ),
- mLocal.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mLocal.resourceClearPastButton,
+ connect( mLocal.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mLocal.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mLocal.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mLocal.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mLocal.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
topLayout->addMultiCellWidget( resourceHB, 5, 5, 0, 2 );
#endif
mLocal.includeInCheck =
- new QCheckBox( i18n("Include in m&anual mail check"),
+ new TQCheckBox( i18n("Include in m&anual mail check"),
page );
topLayout->addMultiCellWidget( mLocal.includeInCheck, 5, 5, 0, 2 );
mLocal.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page );
topLayout->addMultiCellWidget( mLocal.intervalCheck, 6, 6, 0, 2 );
- connect( mLocal.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnableLocalInterval(bool)) );
- mLocal.intervalLabel = new QLabel( i18n("Check inter&val:"), page );
+ connect( mLocal.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnableLocalInterval(bool)) );
+ mLocal.intervalLabel = new TQLabel( i18n("Check inter&val:"), page );
topLayout->addWidget( mLocal.intervalLabel, 7, 0 );
mLocal.intervalSpin = new KIntNumInput( page );
mLocal.intervalLabel->setBuddy( mLocal.intervalSpin );
@@ -439,98 +439,98 @@ void AccountDialog::makeLocalAccountPage()
mLocal.intervalSpin->setValue( defaultmailcheckintervalmin );
topLayout->addWidget( mLocal.intervalSpin, 7, 1 );
- label = new QLabel( i18n("&Destination folder:"), page );
+ label = new TQLabel( i18n("&Destination folder:"), page );
topLayout->addWidget( label, 8, 0 );
- mLocal.folderCombo = new QComboBox( false, page );
+ mLocal.folderCombo = new TQComboBox( false, page );
label->setBuddy( mLocal.folderCombo );
topLayout->addWidget( mLocal.folderCombo, 8, 1 );
- label = new QLabel( i18n("&Pre-command:"), page );
+ label = new TQLabel( i18n("&Pre-command:"), page );
topLayout->addWidget( label, 9, 0 );
mLocal.precommand = new KLineEdit( page );
label->setBuddy( mLocal.precommand );
topLayout->addWidget( mLocal.precommand, 9, 1 );
- mLocal.identityLabel = new QLabel( i18n("Identity:"), page );
+ mLocal.identityLabel = new TQLabel( i18n("Identity:"), page );
topLayout->addWidget( mLocal.identityLabel, 10, 0 );
mLocal.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page );
mLocal.identityLabel->setBuddy( mLocal.identityCombo );
topLayout->addWidget( mLocal.identityCombo, 10, 1 );
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::makeMaildirAccountPage()
{
ProcmailRCParser procmailrcParser;
- QFrame *page = makeMainWidget();
- QGridLayout *topLayout = new QGridLayout( page, 11, 3, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQGridLayout *topLayout = new TQGridLayout( page, 11, 3, 0, spacingHint() );
topLayout->addColSpacing( 1, fontMetrics().maxWidth()*15 );
topLayout->setRowStretch( 11, 10 );
topLayout->setColStretch( 1, 10 );
- mMaildir.titleLabel = new QLabel( i18n("Account Type: Maildir Account"), page );
+ mMaildir.titleLabel = new TQLabel( i18n("Account Type: Maildir Account"), page );
topLayout->addMultiCellWidget( mMaildir.titleLabel, 0, 0, 0, 2 );
- QFont titleFont( mMaildir.titleLabel->font() );
+ TQFont titleFont( mMaildir.titleLabel->font() );
titleFont.setBold( true );
mMaildir.titleLabel->setFont( titleFont );
- QFrame *hline = new QFrame( page );
- hline->setFrameStyle( QFrame::Sunken | QFrame::HLine );
+ TQFrame *hline = new TQFrame( page );
+ hline->setFrameStyle( TQFrame::Sunken | TQFrame::HLine );
topLayout->addMultiCellWidget( hline, 1, 1, 0, 2 );
mMaildir.nameEdit = new KLineEdit( page );
topLayout->addWidget( mMaildir.nameEdit, 2, 1 );
- QLabel *label = new QLabel( mMaildir.nameEdit, i18n("Account &name:"), page );
+ TQLabel *label = new TQLabel( mMaildir.nameEdit, i18n("Account &name:"), page );
topLayout->addWidget( label, 2, 0 );
- mMaildir.locationEdit = new QComboBox( true, page );
+ mMaildir.locationEdit = new TQComboBox( true, page );
topLayout->addWidget( mMaildir.locationEdit, 3, 1 );
mMaildir.locationEdit->insertStringList(procmailrcParser.getSpoolFilesList());
- label = new QLabel( mMaildir.locationEdit, i18n("Folder &location:"), page );
+ label = new TQLabel( mMaildir.locationEdit, i18n("Folder &location:"), page );
topLayout->addWidget( label, 3, 0 );
- QPushButton *choose = new QPushButton( i18n("Choo&se..."), page );
+ TQPushButton *choose = new TQPushButton( i18n("Choo&se..."), page );
choose->setAutoDefault( false );
- connect( choose, SIGNAL(clicked()), this, SLOT(slotMaildirChooser()) );
+ connect( choose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMaildirChooser()) );
topLayout->addWidget( choose, 3, 2 );
#if 0
- QHBox* resourceHB = new QHBox( page );
+ TQHBox* resourceHB = new TQHBox( page );
resourceHB->setSpacing( 11 );
mMaildir.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mMaildir.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
+ new TQPushButton( i18n( "Clear" ), resourceHB );
mMaildir.resourceClearButton->setEnabled( false );
- connect( mMaildir.resourceCheck, SIGNAL( toggled(bool) ),
- mMaildir.resourceClearButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mMaildir.resourceClearButton,
+ connect( mMaildir.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mMaildir.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mMaildir.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
- connect( mMaildir.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mMaildir.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mMaildir.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mMaildir.resourceClearPastButton->setEnabled( false );
- connect( mMaildir.resourceCheck, SIGNAL( toggled(bool) ),
- mMaildir.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mMaildir.resourceClearPastButton,
+ connect( mMaildir.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mMaildir.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mMaildir.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mMaildir.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mMaildir.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
topLayout->addMultiCellWidget( resourceHB, 4, 4, 0, 2 );
#endif
mMaildir.includeInCheck =
- new QCheckBox( i18n("Include in &manual mail check"), page );
+ new TQCheckBox( i18n("Include in &manual mail check"), page );
topLayout->addMultiCellWidget( mMaildir.includeInCheck, 4, 4, 0, 2 );
mMaildir.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page );
topLayout->addMultiCellWidget( mMaildir.intervalCheck, 5, 5, 0, 2 );
- connect( mMaildir.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnableMaildirInterval(bool)) );
- mMaildir.intervalLabel = new QLabel( i18n("Check inter&val:"), page );
+ connect( mMaildir.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnableMaildirInterval(bool)) );
+ mMaildir.intervalLabel = new TQLabel( i18n("Check inter&val:"), page );
topLayout->addWidget( mMaildir.intervalLabel, 6, 0 );
mMaildir.intervalSpin = new KIntNumInput( page );
mMaildir.intervalSpin->setRange( GlobalSettings::self()->minimumCheckInterval(), 10000, 1, false );
@@ -539,74 +539,74 @@ void AccountDialog::makeMaildirAccountPage()
mMaildir.intervalLabel->setBuddy( mMaildir.intervalSpin );
topLayout->addWidget( mMaildir.intervalSpin, 6, 1 );
- mMaildir.folderCombo = new QComboBox( false, page );
+ mMaildir.folderCombo = new TQComboBox( false, page );
topLayout->addWidget( mMaildir.folderCombo, 7, 1 );
- label = new QLabel( mMaildir.folderCombo,
+ label = new TQLabel( mMaildir.folderCombo,
i18n("&Destination folder:"), page );
topLayout->addWidget( label, 7, 0 );
mMaildir.precommand = new KLineEdit( page );
topLayout->addWidget( mMaildir.precommand, 8, 1 );
- label = new QLabel( mMaildir.precommand, i18n("&Pre-command:"), page );
+ label = new TQLabel( mMaildir.precommand, i18n("&Pre-command:"), page );
topLayout->addWidget( label, 8, 0 );
- mMaildir.identityLabel = new QLabel( i18n("Identity:"), page );
+ mMaildir.identityLabel = new TQLabel( i18n("Identity:"), page );
topLayout->addWidget( mMaildir.identityLabel, 9, 0 );
mMaildir.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page );
mMaildir.identityLabel->setBuddy( mMaildir.identityCombo );
topLayout->addWidget( mMaildir.identityCombo, 9, 1 );
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::makePopAccountPage()
{
- QFrame *page = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- mPop.titleLabel = new QLabel( page );
+ mPop.titleLabel = new TQLabel( page );
mPop.titleLabel->setText( i18n("Account Type: POP Account") );
- QFont titleFont( mPop.titleLabel->font() );
+ TQFont titleFont( mPop.titleLabel->font() );
titleFont.setBold( true );
mPop.titleLabel->setFont( titleFont );
topLayout->addWidget( mPop.titleLabel );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addWidget( hline );
- QTabWidget *tabWidget = new QTabWidget(page);
+ TQTabWidget *tabWidget = new TQTabWidget(page);
topLayout->addWidget( tabWidget );
- QWidget *page1 = new QWidget( tabWidget );
+ TQWidget *page1 = new TQWidget( tabWidget );
tabWidget->addTab( page1, i18n("&General") );
- QGridLayout *grid = new QGridLayout( page1, 16, 2, marginHint(), spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( page1, 16, 2, marginHint(), spacingHint() );
grid->addColSpacing( 1, fontMetrics().maxWidth()*15 );
grid->setRowStretch( 15, 10 );
grid->setColStretch( 1, 10 );
- QLabel *label = new QLabel( i18n("Account &name:"), page1 );
+ TQLabel *label = new TQLabel( i18n("Account &name:"), page1 );
grid->addWidget( label, 0, 0 );
mPop.nameEdit = new KLineEdit( page1 );
label->setBuddy( mPop.nameEdit );
grid->addWidget( mPop.nameEdit, 0, 1 );
- label = new QLabel( i18n("&Login:"), page1 );
- QWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
+ label = new TQLabel( i18n("&Login:"), page1 );
+ TQWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
grid->addWidget( label, 1, 0 );
mPop.loginEdit = new KLineEdit( page1 );
label->setBuddy( mPop.loginEdit );
grid->addWidget( mPop.loginEdit, 1, 1 );
- label = new QLabel( i18n("P&assword:"), page1 );
+ label = new TQLabel( i18n("P&assword:"), page1 );
grid->addWidget( label, 2, 0 );
mPop.passwordEdit = new KLineEdit( page1 );
- mPop.passwordEdit->setEchoMode( QLineEdit::Password );
+ mPop.passwordEdit->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPop.passwordEdit );
grid->addWidget( mPop.passwordEdit, 2, 1 );
- label = new QLabel( i18n("Ho&st:"), page1 );
+ label = new TQLabel( i18n("Ho&st:"), page1 );
grid->addWidget( label, 3, 0 );
mPop.hostEdit = new KLineEdit( page1 );
// only letters, digits, '-', '.', ':' (IPv6) and '_' (for Windows
@@ -615,16 +615,16 @@ void AccountDialog::makePopAccountPage()
label->setBuddy( mPop.hostEdit );
grid->addWidget( mPop.hostEdit, 3, 1 );
- label = new QLabel( i18n("&Port:"), page1 );
+ label = new TQLabel( i18n("&Port:"), page1 );
grid->addWidget( label, 4, 0 );
mPop.portEdit = new KLineEdit( page1 );
- mPop.portEdit->setValidator( new QIntValidator(this) );
+ mPop.portEdit->setValidator( new TQIntValidator(this) );
label->setBuddy( mPop.portEdit );
grid->addWidget( mPop.portEdit, 4, 1 );
mPop.storePasswordCheck =
- new QCheckBox( i18n("Sto&re POP password"), page1 );
- QWhatsThis::add( mPop.storePasswordCheck,
+ new TQCheckBox( i18n("Sto&re POP password"), page1 );
+ TQWhatsThis::add( mPop.storePasswordCheck,
i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available "
"the password will be stored there which is considered "
@@ -637,104 +637,104 @@ void AccountDialog::makePopAccountPage()
grid->addMultiCellWidget( mPop.storePasswordCheck, 5, 5, 0, 1 );
mPop.leaveOnServerCheck =
- new QCheckBox( i18n("Lea&ve fetched messages on the server"), page1 );
- connect( mPop.leaveOnServerCheck, SIGNAL( clicked() ),
- this, SLOT( slotLeaveOnServerClicked() ) );
+ new TQCheckBox( i18n("Lea&ve fetched messages on the server"), page1 );
+ connect( mPop.leaveOnServerCheck, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotLeaveOnServerClicked() ) );
grid->addMultiCellWidget( mPop.leaveOnServerCheck, 6, 6, 0, 1 );
- QHBox *afterDaysBox = new QHBox( page1 );
+ TQHBox *afterDaysBox = new TQHBox( page1 );
afterDaysBox->setSpacing( KDialog::spacingHint() );
mPop.leaveOnServerDaysCheck =
- new QCheckBox( i18n("Leave messages on the server for"), afterDaysBox );
- connect( mPop.leaveOnServerDaysCheck, SIGNAL( toggled(bool) ),
- this, SLOT( slotEnableLeaveOnServerDays(bool)) );
+ new TQCheckBox( i18n("Leave messages on the server for"), afterDaysBox );
+ connect( mPop.leaveOnServerDaysCheck, TQT_SIGNAL( toggled(bool) ),
+ this, TQT_SLOT( slotEnableLeaveOnServerDays(bool)) );
mPop.leaveOnServerDaysSpin = new KIntNumInput( afterDaysBox );
mPop.leaveOnServerDaysSpin->setRange( 1, 365, 1, false );
- connect( mPop.leaveOnServerDaysSpin, SIGNAL(valueChanged(int)),
- SLOT(slotLeaveOnServerDaysChanged(int)));
+ connect( mPop.leaveOnServerDaysSpin, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotLeaveOnServerDaysChanged(int)));
mPop.leaveOnServerDaysSpin->setValue( 1 );
afterDaysBox->setStretchFactor( mPop.leaveOnServerDaysSpin, 1 );
grid->addMultiCellWidget( afterDaysBox, 7, 7, 0, 1 );
- QHBox *leaveOnServerCountBox = new QHBox( page1 );
+ TQHBox *leaveOnServerCountBox = new TQHBox( page1 );
leaveOnServerCountBox->setSpacing( KDialog::spacingHint() );
mPop.leaveOnServerCountCheck =
- new QCheckBox( i18n("Keep only the last"), leaveOnServerCountBox );
- connect( mPop.leaveOnServerCountCheck, SIGNAL( toggled(bool) ),
- this, SLOT( slotEnableLeaveOnServerCount(bool)) );
+ new TQCheckBox( i18n("Keep only the last"), leaveOnServerCountBox );
+ connect( mPop.leaveOnServerCountCheck, TQT_SIGNAL( toggled(bool) ),
+ this, TQT_SLOT( slotEnableLeaveOnServerCount(bool)) );
mPop.leaveOnServerCountSpin = new KIntNumInput( leaveOnServerCountBox );
mPop.leaveOnServerCountSpin->setRange( 1, 999999, 1, false );
- connect( mPop.leaveOnServerCountSpin, SIGNAL(valueChanged(int)),
- SLOT(slotLeaveOnServerCountChanged(int)));
+ connect( mPop.leaveOnServerCountSpin, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotLeaveOnServerCountChanged(int)));
mPop.leaveOnServerCountSpin->setValue( 100 );
grid->addMultiCellWidget( leaveOnServerCountBox, 8, 8, 0, 1 );
- QHBox *leaveOnServerSizeBox = new QHBox( page1 );
+ TQHBox *leaveOnServerSizeBox = new TQHBox( page1 );
leaveOnServerSizeBox->setSpacing( KDialog::spacingHint() );
mPop.leaveOnServerSizeCheck =
- new QCheckBox( i18n("Keep only the last"), leaveOnServerSizeBox );
- connect( mPop.leaveOnServerSizeCheck, SIGNAL( toggled(bool) ),
- this, SLOT( slotEnableLeaveOnServerSize(bool)) );
+ new TQCheckBox( i18n("Keep only the last"), leaveOnServerSizeBox );
+ connect( mPop.leaveOnServerSizeCheck, TQT_SIGNAL( toggled(bool) ),
+ this, TQT_SLOT( slotEnableLeaveOnServerSize(bool)) );
mPop.leaveOnServerSizeSpin = new KIntNumInput( leaveOnServerSizeBox );
mPop.leaveOnServerSizeSpin->setRange( 1, 999999, 1, false );
mPop.leaveOnServerSizeSpin->setSuffix( i18n(" MB") );
mPop.leaveOnServerSizeSpin->setValue( 10 );
grid->addMultiCellWidget( leaveOnServerSizeBox, 9, 9, 0, 1 );
#if 0
- QHBox *resourceHB = new QHBox( page1 );
+ TQHBox *resourceHB = new TQHBox( page1 );
resourceHB->setSpacing( 11 );
mPop.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mPop.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
+ new TQPushButton( i18n( "Clear" ), resourceHB );
mPop.resourceClearButton->setEnabled( false );
- connect( mPop.resourceCheck, SIGNAL( toggled(bool) ),
- mPop.resourceClearButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mPop.resourceClearButton,
+ connect( mPop.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mPop.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mPop.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
- connect( mPop.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mPop.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mPop.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mPop.resourceClearPastButton->setEnabled( false );
- connect( mPop.resourceCheck, SIGNAL( toggled(bool) ),
- mPop.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mPop.resourceClearPastButton,
+ connect( mPop.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mPop.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mPop.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mPop.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mPop.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
grid->addMultiCellWidget( resourceHB, 10, 10, 0, 2 );
#endif
mPop.includeInCheck =
- new QCheckBox( i18n("Include in man&ual mail check"), page1 );
+ new TQCheckBox( i18n("Include in man&ual mail check"), page1 );
grid->addMultiCellWidget( mPop.includeInCheck, 10, 10, 0, 1 );
- QHBox * hbox = new QHBox( page1 );
+ TQHBox * hbox = new TQHBox( page1 );
hbox->setSpacing( KDialog::spacingHint() );
mPop.filterOnServerCheck =
- new QCheckBox( i18n("&Filter messages if they are greater than"), hbox );
+ new TQCheckBox( i18n("&Filter messages if they are greater than"), hbox );
mPop.filterOnServerSizeSpin = new KIntNumInput ( hbox );
mPop.filterOnServerSizeSpin->setEnabled( false );
hbox->setStretchFactor( mPop.filterOnServerSizeSpin, 1 );
mPop.filterOnServerSizeSpin->setRange( 1, 10000000, 100, false );
- connect(mPop.filterOnServerSizeSpin, SIGNAL(valueChanged(int)),
- SLOT(slotFilterOnServerSizeChanged(int)));
+ connect(mPop.filterOnServerSizeSpin, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotFilterOnServerSizeChanged(int)));
mPop.filterOnServerSizeSpin->setValue( 50000 );
grid->addMultiCellWidget( hbox, 11, 11, 0, 1 );
- connect( mPop.filterOnServerCheck, SIGNAL(toggled(bool)),
- mPop.filterOnServerSizeSpin, SLOT(setEnabled(bool)) );
- connect( mPop.filterOnServerCheck, SIGNAL( clicked() ),
- this, SLOT( slotFilterOnServerClicked() ) );
- QString msg = i18n("If you select this option, POP Filters will be used to "
+ connect( mPop.filterOnServerCheck, TQT_SIGNAL(toggled(bool)),
+ mPop.filterOnServerSizeSpin, TQT_SLOT(setEnabled(bool)) );
+ connect( mPop.filterOnServerCheck, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotFilterOnServerClicked() ) );
+ TQString msg = i18n("If you select this option, POP Filters will be used to "
"decide what to do with messages. You can then select "
"to download, delete or keep them on the server." );
- QWhatsThis::add( mPop.filterOnServerCheck, msg );
- QWhatsThis::add( mPop.filterOnServerSizeSpin, msg );
+ TQWhatsThis::add( mPop.filterOnServerCheck, msg );
+ TQWhatsThis::add( mPop.filterOnServerSizeSpin, msg );
mPop.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page1 );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page1 );
grid->addMultiCellWidget( mPop.intervalCheck, 12, 12, 0, 1 );
- connect( mPop.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnablePopInterval(bool)) );
- mPop.intervalLabel = new QLabel( i18n("Chec&k interval:"), page1 );
+ connect( mPop.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnablePopInterval(bool)) );
+ mPop.intervalLabel = new TQLabel( i18n("Chec&k interval:"), page1 );
grid->addWidget( mPop.intervalLabel, 13, 0 );
mPop.intervalSpin = new KIntNumInput( page1 );
mPop.intervalSpin->setRange( GlobalSettings::self()->minimumCheckInterval(), 10000, 1, false );
@@ -743,142 +743,142 @@ void AccountDialog::makePopAccountPage()
mPop.intervalLabel->setBuddy( mPop.intervalSpin );
grid->addWidget( mPop.intervalSpin, 13, 1 );
- label = new QLabel( i18n("Des&tination folder:"), page1 );
+ label = new TQLabel( i18n("Des&tination folder:"), page1 );
grid->addWidget( label, 14, 0 );
- mPop.folderCombo = new QComboBox( false, page1 );
+ mPop.folderCombo = new TQComboBox( false, page1 );
label->setBuddy( mPop.folderCombo );
grid->addWidget( mPop.folderCombo, 14, 1 );
- label = new QLabel( i18n("Pre-com&mand:"), page1 );
+ label = new TQLabel( i18n("Pre-com&mand:"), page1 );
grid->addWidget( label, 15, 0 );
mPop.precommand = new KLineEdit( page1 );
label->setBuddy(mPop.precommand);
grid->addWidget( mPop.precommand, 15, 1 );
- mPop.identityLabel = new QLabel( i18n("Identity:"), page1 );
+ mPop.identityLabel = new TQLabel( i18n("Identity:"), page1 );
grid->addWidget( mPop.identityLabel, 16, 0 );
mPop.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page1 );
mPop.identityLabel->setBuddy( mPop.identityCombo );
grid->addWidget( mPop.identityCombo, 16, 1 );
- QWidget *page2 = new QWidget( tabWidget );
+ TQWidget *page2 = new TQWidget( tabWidget );
tabWidget->addTab( page2, i18n("&Extras") );
- QVBoxLayout *vlay = new QVBoxLayout( page2, marginHint(), spacingHint() );
+ TQVBoxLayout *vlay = new TQVBoxLayout( page2, marginHint(), spacingHint() );
vlay->addSpacing( KDialog::spacingHint() );
- QHBoxLayout *buttonLay = new QHBoxLayout( vlay );
+ TQHBoxLayout *buttonLay = new TQHBoxLayout( vlay );
mPop.checkCapabilities =
- new QPushButton( i18n("Check &What the Server Supports"), page2 );
- connect(mPop.checkCapabilities, SIGNAL(clicked()),
- SLOT(slotCheckPopCapabilities()));
+ new TQPushButton( i18n("Check &What the Server Supports"), page2 );
+ connect(mPop.checkCapabilities, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotCheckPopCapabilities()));
buttonLay->addStretch();
buttonLay->addWidget( mPop.checkCapabilities );
buttonLay->addStretch();
vlay->addSpacing( KDialog::spacingHint() );
- mPop.encryptionGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mPop.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Encryption"), page2 );
mPop.encryptionNone =
- new QRadioButton( i18n("&None"), mPop.encryptionGroup );
+ new TQRadioButton( i18n("&None"), mPop.encryptionGroup );
mPop.encryptionSSL =
- new QRadioButton( i18n("Use &SSL for secure mail download"),
+ new TQRadioButton( i18n("Use &SSL for secure mail download"),
mPop.encryptionGroup );
mPop.encryptionTLS =
- new QRadioButton( i18n("Use &TLS for secure mail download"),
+ new TQRadioButton( i18n("Use &TLS for secure mail download"),
mPop.encryptionGroup );
- connect(mPop.encryptionGroup, SIGNAL(clicked(int)),
- SLOT(slotPopEncryptionChanged(int)));
+ connect(mPop.encryptionGroup, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(slotPopEncryptionChanged(int)));
vlay->addWidget( mPop.encryptionGroup );
- mPop.authGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mPop.authGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Authentication Method"), page2 );
- mPop.authUser = new QRadioButton( i18n("Clear te&xt") , mPop.authGroup,
+ mPop.authUser = new TQRadioButton( i18n("Clear te&xt") , mPop.authGroup,
"auth clear text" );
- mPop.authLogin = new QRadioButton( i18n("Please translate this "
+ mPop.authLogin = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&LOGIN"),
mPop.authGroup, "auth login" );
- mPop.authPlain = new QRadioButton( i18n("Please translate this "
+ mPop.authPlain = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&PLAIN"),
mPop.authGroup, "auth plain" );
- mPop.authCRAM_MD5 = new QRadioButton( i18n("CRAM-MD&5"), mPop.authGroup, "auth cram-md5" );
- mPop.authDigestMd5 = new QRadioButton( i18n("&DIGEST-MD5"), mPop.authGroup, "auth digest-md5" );
- mPop.authNTLM = new QRadioButton( i18n("&NTLM"), mPop.authGroup, "auth ntlm" );
- mPop.authGSSAPI = new QRadioButton( i18n("&GSSAPI"), mPop.authGroup, "auth gssapi" );
+ mPop.authCRAM_MD5 = new TQRadioButton( i18n("CRAM-MD&5"), mPop.authGroup, "auth cram-md5" );
+ mPop.authDigestMd5 = new TQRadioButton( i18n("&DIGEST-MD5"), mPop.authGroup, "auth digest-md5" );
+ mPop.authNTLM = new TQRadioButton( i18n("&NTLM"), mPop.authGroup, "auth ntlm" );
+ mPop.authGSSAPI = new TQRadioButton( i18n("&GSSAPI"), mPop.authGroup, "auth gssapi" );
if ( KProtocolInfo::capabilities("pop3").contains("SASL") == 0 )
{
mPop.authNTLM->hide();
mPop.authGSSAPI->hide();
}
- mPop.authAPOP = new QRadioButton( i18n("&APOP"), mPop.authGroup, "auth apop" );
+ mPop.authAPOP = new TQRadioButton( i18n("&APOP"), mPop.authGroup, "auth apop" );
vlay->addWidget( mPop.authGroup );
mPop.usePipeliningCheck =
- new QCheckBox( i18n("&Use pipelining for faster mail download"), page2 );
- connect(mPop.usePipeliningCheck, SIGNAL(clicked()),
- SLOT(slotPipeliningClicked()));
+ new TQCheckBox( i18n("&Use pipelining for faster mail download"), page2 );
+ connect(mPop.usePipeliningCheck, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotPipeliningClicked()));
vlay->addWidget( mPop.usePipeliningCheck );
vlay->addStretch();
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::makeImapAccountPage( bool connected )
{
- QFrame *page = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- mImap.titleLabel = new QLabel( page );
+ mImap.titleLabel = new TQLabel( page );
if( connected )
mImap.titleLabel->setText( i18n("Account Type: Disconnected IMAP Account") );
else
mImap.titleLabel->setText( i18n("Account Type: IMAP Account") );
- QFont titleFont( mImap.titleLabel->font() );
+ TQFont titleFont( mImap.titleLabel->font() );
titleFont.setBold( true );
mImap.titleLabel->setFont( titleFont );
topLayout->addWidget( mImap.titleLabel );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addWidget( hline );
- QTabWidget *tabWidget = new QTabWidget(page);
+ TQTabWidget *tabWidget = new TQTabWidget(page);
topLayout->addWidget( tabWidget );
- QWidget *page1 = new QWidget( tabWidget );
+ TQWidget *page1 = new TQWidget( tabWidget );
tabWidget->addTab( page1, i18n("&General") );
int row = -1;
- QGridLayout *grid = new QGridLayout( page1, 16, 2, marginHint(), spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( page1, 16, 2, marginHint(), spacingHint() );
grid->addColSpacing( 1, fontMetrics().maxWidth()*16 );
++row;
- QLabel *label = new QLabel( i18n("Account &name:"), page1 );
+ TQLabel *label = new TQLabel( i18n("Account &name:"), page1 );
grid->addWidget( label, row, 0 );
mImap.nameEdit = new KLineEdit( page1 );
label->setBuddy( mImap.nameEdit );
grid->addWidget( mImap.nameEdit, row, 1 );
++row;
- label = new QLabel( i18n("&Login:"), page1 );
- QWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
+ label = new TQLabel( i18n("&Login:"), page1 );
+ TQWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
grid->addWidget( label, row, 0 );
mImap.loginEdit = new KLineEdit( page1 );
label->setBuddy( mImap.loginEdit );
grid->addWidget( mImap.loginEdit, row, 1 );
++row;
- label = new QLabel( i18n("P&assword:"), page1 );
+ label = new TQLabel( i18n("P&assword:"), page1 );
grid->addWidget( label, row, 0 );
mImap.passwordEdit = new KLineEdit( page1 );
- mImap.passwordEdit->setEchoMode( QLineEdit::Password );
+ mImap.passwordEdit->setEchoMode( TQLineEdit::Password );
label->setBuddy( mImap.passwordEdit );
grid->addWidget( mImap.passwordEdit, row, 1 );
++row;
- label = new QLabel( i18n("Ho&st:"), page1 );
+ label = new TQLabel( i18n("Ho&st:"), page1 );
grid->addWidget( label, row, 0 );
mImap.hostEdit = new KLineEdit( page1 );
// only letters, digits, '-', '.', ':' (IPv6) and '_' (for Windows
@@ -888,77 +888,77 @@ void AccountDialog::makeImapAccountPage( bool connected )
grid->addWidget( mImap.hostEdit, row, 1 );
++row;
- label = new QLabel( i18n("&Port:"), page1 );
+ label = new TQLabel( i18n("&Port:"), page1 );
grid->addWidget( label, row, 0 );
mImap.portEdit = new KLineEdit( page1 );
- mImap.portEdit->setValidator( new QIntValidator(this) );
+ mImap.portEdit->setValidator( new TQIntValidator(this) );
label->setBuddy( mImap.portEdit );
grid->addWidget( mImap.portEdit, row, 1 );
// namespace list
++row;
- QHBox* box = new QHBox( page1 );
- label = new QLabel( i18n("Namespaces:"), box );
- QWhatsThis::add( label, i18n( "Here you see the different namespaces that your IMAP server supports."
+ TQHBox* box = new TQHBox( page1 );
+ label = new TQLabel( i18n("Namespaces:"), box );
+ TQWhatsThis::add( label, i18n( "Here you see the different namespaces that your IMAP server supports."
"Each namespace represents a prefix that separates groups of folders."
"Namespaces allow KMail for example to display your personal folders and shared folders in one account." ) );
// button to reload
- QToolButton* button = new QToolButton( box );
+ TQToolButton* button = new TQToolButton( box );
button->setAutoRaise(true);
- button->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 );
button->setIconSet(
KGlobal::iconLoader()->loadIconSet( "reload", KIcon::Small, 0 ) );
- connect( button, SIGNAL(clicked()), this, SLOT(slotReloadNamespaces()) );
- QWhatsThis::add( button,
+ connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReloadNamespaces()) );
+ TQWhatsThis::add( button,
i18n("Reload the namespaces from the server. This overwrites any changes.") );
grid->addWidget( box, row, 0 );
// grid with label, namespace list and edit button
- QGrid* listbox = new QGrid( 3, page1 );
- label = new QLabel( i18n("Personal"), listbox );
- QWhatsThis::add( label, i18n( "Personal namespaces include your personal folders." ) );
+ TQGrid* listbox = new TQGrid( 3, page1 );
+ label = new TQLabel( i18n("Personal"), listbox );
+ TQWhatsThis::add( label, i18n( "Personal namespaces include your personal folders." ) );
mImap.personalNS = new KLineEdit( listbox );
mImap.personalNS->setReadOnly( true );
- mImap.editPNS = new QToolButton( listbox );
+ mImap.editPNS = new TQToolButton( listbox );
mImap.editPNS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editPNS->setAutoRaise( true );
- mImap.editPNS->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ mImap.editPNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editPNS->setFixedSize( 22, 22 );
- connect( mImap.editPNS, SIGNAL(clicked()), this, SLOT(slotEditPersonalNamespace()) );
+ connect( mImap.editPNS, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditPersonalNamespace()) );
- label = new QLabel( i18n("Other Users"), listbox );
- QWhatsThis::add( label, i18n( "These namespaces include the folders of other users." ) );
+ label = new TQLabel( i18n("Other Users"), listbox );
+ TQWhatsThis::add( label, i18n( "These namespaces include the folders of other users." ) );
mImap.otherUsersNS = new KLineEdit( listbox );
mImap.otherUsersNS->setReadOnly( true );
- mImap.editONS = new QToolButton( listbox );
+ mImap.editONS = new TQToolButton( listbox );
mImap.editONS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editONS->setAutoRaise( true );
- mImap.editONS->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ mImap.editONS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editONS->setFixedSize( 22, 22 );
- connect( mImap.editONS, SIGNAL(clicked()), this, SLOT(slotEditOtherUsersNamespace()) );
+ connect( mImap.editONS, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditOtherUsersNamespace()) );
- label = new QLabel( i18n("Shared"), listbox );
- QWhatsThis::add( label, i18n( "These namespaces include the shared folders." ) );
+ label = new TQLabel( i18n("Shared"), listbox );
+ TQWhatsThis::add( label, i18n( "These namespaces include the shared folders." ) );
mImap.sharedNS = new KLineEdit( listbox );
mImap.sharedNS->setReadOnly( true );
- mImap.editSNS = new QToolButton( listbox );
+ mImap.editSNS = new TQToolButton( listbox );
mImap.editSNS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editSNS->setAutoRaise( true );
- mImap.editSNS->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ mImap.editSNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editSNS->setFixedSize( 22, 22 );
- connect( mImap.editSNS, SIGNAL(clicked()), this, SLOT(slotEditSharedNamespace()) );
+ connect( mImap.editSNS, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditSharedNamespace()) );
label->setBuddy( listbox );
grid->addWidget( listbox, row, 1 );
++row;
mImap.storePasswordCheck =
- new QCheckBox( i18n("Sto&re IMAP password"), page1 );
- QWhatsThis::add( mImap.storePasswordCheck,
+ new TQCheckBox( i18n("Sto&re IMAP password"), page1 );
+ TQWhatsThis::add( mImap.storePasswordCheck,
i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available "
"the password will be stored there which is considered "
@@ -973,31 +973,31 @@ void AccountDialog::makeImapAccountPage( bool connected )
if( !connected ) {
++row;
mImap.autoExpungeCheck =
- new QCheckBox( i18n("Automaticall&y compact folders (expunges deleted messages)"), page1);
+ new TQCheckBox( i18n("Automaticall&y compact folders (expunges deleted messages)"), page1);
grid->addMultiCellWidget( mImap.autoExpungeCheck, row, row, 0, 1 );
}
++row;
- mImap.hiddenFoldersCheck = new QCheckBox( i18n("Sho&w hidden folders"), page1);
+ mImap.hiddenFoldersCheck = new TQCheckBox( i18n("Sho&w hidden folders"), page1);
grid->addMultiCellWidget( mImap.hiddenFoldersCheck, row, row, 0, 1 );
++row;
- mImap.subscribedFoldersCheck = new QCheckBox(
+ mImap.subscribedFoldersCheck = new TQCheckBox(
i18n("Show only s&ubscribed folders"), page1);
grid->addMultiCellWidget( mImap.subscribedFoldersCheck, row, row, 0, 1 );
++row;
- mImap.locallySubscribedFoldersCheck = new QCheckBox(
+ mImap.locallySubscribedFoldersCheck = new TQCheckBox(
i18n("Show only &locally subscribed folders"), page1);
grid->addMultiCellWidget( mImap.locallySubscribedFoldersCheck, row, row, 0, 1 );
if ( !connected ) {
// not implemented for disconnected yet
++row;
- mImap.loadOnDemandCheck = new QCheckBox(
+ mImap.loadOnDemandCheck = new TQCheckBox(
i18n("Load attach&ments on demand"), page1);
- QWhatsThis::add( mImap.loadOnDemandCheck,
+ TQWhatsThis::add( mImap.loadOnDemandCheck,
i18n("Activate this to load attachments not automatically when you select the email but only when you click on the attachment. This way also big emails are shown instantly.") );
grid->addMultiCellWidget( mImap.loadOnDemandCheck, row, row, 0, 1 );
}
@@ -1005,53 +1005,53 @@ void AccountDialog::makeImapAccountPage( bool connected )
if ( !connected ) {
// not implemented for disconnected yet
++row;
- mImap.listOnlyOpenCheck = new QCheckBox(
+ mImap.listOnlyOpenCheck = new TQCheckBox(
i18n("List only open folders"), page1);
- QWhatsThis::add( mImap.listOnlyOpenCheck,
+ TQWhatsThis::add( mImap.listOnlyOpenCheck,
i18n("Only folders that are open (expanded) in the folder tree are checked for subfolders. Use this if there are many folders on the server.") );
grid->addMultiCellWidget( mImap.listOnlyOpenCheck, row, row, 0, 1 );
}
#if 0
++row;
- QHBox* resourceHB = new QHBox( page1 );
+ TQHBox* resourceHB = new TQHBox( page1 );
resourceHB->setSpacing( 11 );
mImap.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mImap.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
+ new TQPushButton( i18n( "Clear" ), resourceHB );
mImap.resourceClearButton->setEnabled( false );
- connect( mImap.resourceCheck, SIGNAL( toggled(bool) ),
- mImap.resourceClearButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mImap.resourceClearButton,
+ connect( mImap.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mImap.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mImap.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
- connect( mImap.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mImap.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mImap.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mImap.resourceClearPastButton->setEnabled( false );
- connect( mImap.resourceCheck, SIGNAL( toggled(bool) ),
- mImap.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mImap.resourceClearPastButton,
+ connect( mImap.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mImap.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mImap.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mImap.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mImap.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
grid->addMultiCellWidget( resourceHB, row, row, 0, 2 );
#endif
++row;
mImap.includeInCheck =
- new QCheckBox( i18n("Include in manual mail chec&k"), page1 );
+ new TQCheckBox( i18n("Include in manual mail chec&k"), page1 );
grid->addMultiCellWidget( mImap.includeInCheck, row, row, 0, 1 );
++row;
mImap.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page1 );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page1 );
grid->addMultiCellWidget( mImap.intervalCheck, row, row, 0, 2 );
- connect( mImap.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnableImapInterval(bool)) );
+ connect( mImap.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnableImapInterval(bool)) );
++row;
- mImap.intervalLabel = new QLabel( i18n("Check inter&val:"), page1 );
+ mImap.intervalLabel = new TQLabel( i18n("Check inter&val:"), page1 );
grid->addWidget( mImap.intervalLabel, row, 0 );
mImap.intervalSpin = new KIntNumInput( page1 );
mImap.intervalSpin->setRange( GlobalSettings::minimumCheckInterval(), 60, 1, false );
@@ -1061,7 +1061,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
grid->addWidget( mImap.intervalSpin, row, 1 );
++row;
- label = new QLabel( i18n("&Trash folder:"), page1 );
+ label = new TQLabel( i18n("&Trash folder:"), page1 );
grid->addWidget( label, row, 0 );
mImap.trashCombo = new FolderRequester( page1,
kmkernel->getKMMainWidget()->folderTree() );
@@ -1070,57 +1070,57 @@ void AccountDialog::makeImapAccountPage( bool connected )
grid->addWidget( mImap.trashCombo, row, 1 );
++row;
- mImap.identityLabel = new QLabel( i18n("Identity:"), page1 );
+ mImap.identityLabel = new TQLabel( i18n("Identity:"), page1 );
grid->addWidget( mImap.identityLabel, row, 0 );
mImap.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page1 );
mImap.identityLabel->setBuddy( mImap.identityCombo );
grid->addWidget( mImap.identityCombo, row, 1 );
- QWidget *page2 = new QWidget( tabWidget );
+ TQWidget *page2 = new TQWidget( tabWidget );
tabWidget->addTab( page2, i18n("S&ecurity") );
- QVBoxLayout *vlay = new QVBoxLayout( page2, marginHint(), spacingHint() );
+ TQVBoxLayout *vlay = new TQVBoxLayout( page2, marginHint(), spacingHint() );
vlay->addSpacing( KDialog::spacingHint() );
- QHBoxLayout *buttonLay = new QHBoxLayout( vlay );
+ TQHBoxLayout *buttonLay = new TQHBoxLayout( vlay );
mImap.checkCapabilities =
- new QPushButton( i18n("Check &What the Server Supports"), page2 );
- connect(mImap.checkCapabilities, SIGNAL(clicked()),
- SLOT(slotCheckImapCapabilities()));
+ new TQPushButton( i18n("Check &What the Server Supports"), page2 );
+ connect(mImap.checkCapabilities, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotCheckImapCapabilities()));
buttonLay->addStretch();
buttonLay->addWidget( mImap.checkCapabilities );
buttonLay->addStretch();
vlay->addSpacing( KDialog::spacingHint() );
- mImap.encryptionGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mImap.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Encryption"), page2 );
mImap.encryptionNone =
- new QRadioButton( i18n("&None"), mImap.encryptionGroup );
+ new TQRadioButton( i18n("&None"), mImap.encryptionGroup );
mImap.encryptionSSL =
- new QRadioButton( i18n("Use &SSL for secure mail download"),
+ new TQRadioButton( i18n("Use &SSL for secure mail download"),
mImap.encryptionGroup );
mImap.encryptionTLS =
- new QRadioButton( i18n("Use &TLS for secure mail download"),
+ new TQRadioButton( i18n("Use &TLS for secure mail download"),
mImap.encryptionGroup );
- connect(mImap.encryptionGroup, SIGNAL(clicked(int)),
- SLOT(slotImapEncryptionChanged(int)));
+ connect(mImap.encryptionGroup, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(slotImapEncryptionChanged(int)));
vlay->addWidget( mImap.encryptionGroup );
- mImap.authGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mImap.authGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Authentication Method"), page2 );
- mImap.authUser = new QRadioButton( i18n("Clear te&xt"), mImap.authGroup );
- mImap.authLogin = new QRadioButton( i18n("Please translate this "
+ mImap.authUser = new TQRadioButton( i18n("Clear te&xt"), mImap.authGroup );
+ mImap.authLogin = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&LOGIN"),
mImap.authGroup );
- mImap.authPlain = new QRadioButton( i18n("Please translate this "
+ mImap.authPlain = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&PLAIN"),
mImap.authGroup );
- mImap.authCramMd5 = new QRadioButton( i18n("CRAM-MD&5"), mImap.authGroup );
- mImap.authDigestMd5 = new QRadioButton( i18n("&DIGEST-MD5"), mImap.authGroup );
- mImap.authNTLM = new QRadioButton( i18n("&NTLM"), mImap.authGroup );
- mImap.authGSSAPI = new QRadioButton( i18n("&GSSAPI"), mImap.authGroup );
- mImap.authAnonymous = new QRadioButton( i18n("&Anonymous"), mImap.authGroup );
+ mImap.authCramMd5 = new TQRadioButton( i18n("CRAM-MD&5"), mImap.authGroup );
+ mImap.authDigestMd5 = new TQRadioButton( i18n("&DIGEST-MD5"), mImap.authGroup );
+ mImap.authNTLM = new TQRadioButton( i18n("&NTLM"), mImap.authGroup );
+ mImap.authGSSAPI = new TQRadioButton( i18n("&GSSAPI"), mImap.authGroup );
+ mImap.authAnonymous = new TQRadioButton( i18n("&Anonymous"), mImap.authGroup );
vlay->addWidget( mImap.authGroup );
vlay->addStretch();
@@ -1130,16 +1130,16 @@ void AccountDialog::makeImapAccountPage( bool connected )
mSieveConfigEditor->layout()->setMargin( KDialog::marginHint() );
tabWidget->addTab( mSieveConfigEditor, i18n("&Filtering") );
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::setupSettings()
{
- QComboBox *folderCombo = 0;
+ TQComboBox *folderCombo = 0;
int interval = mAccount->checkInterval();
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
ProcmailRCParser procmailrcParser;
@@ -1191,7 +1191,7 @@ void AccountDialog::setupSettings()
mPop.loginEdit->setText( ap.login() );
mPop.passwordEdit->setText( ap.passwd());
mPop.hostEdit->setText( ap.host() );
- mPop.portEdit->setText( QString("%1").arg( ap.port() ) );
+ mPop.portEdit->setText( TQString("%1").arg( ap.port() ) );
mPop.usePipeliningCheck->setChecked( ap.usePipelining() );
mPop.storePasswordCheck->setChecked( ap.storePasswd() );
mPop.leaveOnServerCheck->setChecked( ap.leaveOnServer() );
@@ -1256,7 +1256,7 @@ void AccountDialog::setupSettings()
mImap.loginEdit->setText( ai.login() );
mImap.passwordEdit->setText( ai.passwd());
mImap.hostEdit->setText( ai.host() );
- mImap.portEdit->setText( QString("%1").arg( ai.port() ) );
+ mImap.portEdit->setText( TQString("%1").arg( ai.port() ) );
mImap.autoExpungeCheck->setChecked( ai.autoExpunge() );
mImap.hiddenFoldersCheck->setChecked( ai.hiddenFolders() );
mImap.subscribedFoldersCheck->setChecked( ai.onlySubscribedFolders() );
@@ -1271,7 +1271,7 @@ void AccountDialog::setupSettings()
mImap.intervalCheck->setChecked( interval >= 1 );
if ( interval <= 0 ) mImap.intervalSpin->setValue( defaultmailcheckintervalmin );
else mImap.intervalSpin->setValue( interval );
- QString trashfolder = ai.trash();
+ TQString trashfolder = ai.trash();
if (trashfolder.isEmpty())
trashfolder = kmkernel->trashFolder()->idString();
mImap.trashCombo->setFolder( trashfolder );
@@ -1309,7 +1309,7 @@ void AccountDialog::setupSettings()
mImap.loginEdit->setText( ai.login() );
mImap.passwordEdit->setText( ai.passwd());
mImap.hostEdit->setText( ai.host() );
- mImap.portEdit->setText( QString("%1").arg( ai.port() ) );
+ mImap.portEdit->setText( TQString("%1").arg( ai.port() ) );
#if 0
mImap.resourceCheck->setChecked( ai.resource() );
#endif
@@ -1321,7 +1321,7 @@ void AccountDialog::setupSettings()
if ( interval <= 0 ) mImap.intervalSpin->setValue( defaultmailcheckintervalmin );
else mImap.intervalSpin->setValue( interval );
mImap.includeInCheck->setChecked( !ai.checkExclude() );
- QString trashfolder = ai.trash();
+ TQString trashfolder = ai.trash();
if (trashfolder.isEmpty())
trashfolder = kmkernel->trashFolder()->idString();
mImap.trashCombo->setFolder( trashfolder );
@@ -1407,7 +1407,7 @@ void AccountDialog::setupSettings()
kmkernel->folderMgr()->createI18nFolderList(&mFolderNames, &mFolderList);
while (i < mFolderNames.count())
{
- QValueList<QGuardedPtr<KMFolder> >::Iterator it = mFolderList.at(i);
+ TQValueList<TQGuardedPtr<KMFolder> >::Iterator it = mFolderList.at(i);
KMFolder *folder = *it;
if (folder->isSystemFolder())
{
@@ -1490,7 +1490,7 @@ void AccountDialog::slotPipeliningClicked()
"Supports\" button at the bottom of the dialog;\n"
"if your server does not announce it, but you want more speed, then "
"you should do some testing first by sending yourself a batch "
- "of mail and downloading it."), QString::null,
+ "of mail and downloading it."), TQString::null,
"pipelining");
}
@@ -1507,7 +1507,7 @@ void AccountDialog::slotPopEncryptionChanged(int id)
: ( id == SSL ) ? mCapaSSL
: mCapaNormal;
enablePopFeatures( mCurCapa );
- const QButton *old = mPop.authGroup->selected();
+ const TQButton *old = mPop.authGroup->selected();
if ( !old->isEnabled() )
checkHighest( mPop.authGroup );
}
@@ -1525,7 +1525,7 @@ void AccountDialog::slotImapEncryptionChanged(int id)
: ( id == SSL ) ? mCapaSSL
: mCapaNormal;
enableImapAuthMethods( authMethods );
- QButton *old = mImap.authGroup->selected();
+ TQButton *old = mImap.authGroup->selected();
if ( !old->isEnabled() )
checkHighest( mImap.authGroup );
}
@@ -1542,10 +1542,10 @@ void AccountDialog::slotCheckPopCapabilities()
delete mServerTest;
mServerTest = new KMServerTest(POP_PROTOCOL, mPop.hostEdit->text(),
mPop.portEdit->text().toInt());
- connect( mServerTest, SIGNAL( capabilities( const QStringList &,
- const QStringList & ) ),
- this, SLOT( slotPopCapabilities( const QStringList &,
- const QStringList & ) ) );
+ connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList &,
+ const TQStringList & ) ),
+ this, TQT_SLOT( slotPopCapabilities( const TQStringList &,
+ const TQStringList & ) ) );
mPop.checkCapabilities->setEnabled(false);
}
@@ -1561,20 +1561,20 @@ void AccountDialog::slotCheckImapCapabilities()
delete mServerTest;
mServerTest = new KMServerTest(IMAP_PROTOCOL, mImap.hostEdit->text(),
mImap.portEdit->text().toInt());
- connect( mServerTest, SIGNAL( capabilities( const QStringList &,
- const QStringList & ) ),
- this, SLOT( slotImapCapabilities( const QStringList &,
- const QStringList & ) ) );
+ connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList &,
+ const TQStringList & ) ),
+ this, TQT_SLOT( slotImapCapabilities( const TQStringList &,
+ const TQStringList & ) ) );
mImap.checkCapabilities->setEnabled(false);
}
-unsigned int AccountDialog::popCapabilitiesFromStringList( const QStringList & l )
+unsigned int AccountDialog::popCapabilitiesFromStringList( const TQStringList & l )
{
unsigned int capa = 0;
kdDebug( 5006 ) << k_funcinfo << l << endl;
- for ( QStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
- QString cur = (*it).upper();
+ for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
+ TQString cur = (*it).upper();
if ( cur == "PLAIN" )
capa |= Plain;
else if ( cur == "LOGIN" )
@@ -1602,8 +1602,8 @@ unsigned int AccountDialog::popCapabilitiesFromStringList( const QStringList & l
}
-void AccountDialog::slotPopCapabilities( const QStringList & capaNormal,
- const QStringList & capaSSL )
+void AccountDialog::slotPopCapabilities( const TQStringList & capaNormal,
+ const TQStringList & capaSSL )
{
mPop.checkCapabilities->setEnabled( true );
mCapaNormal = popCapabilitiesFromStringList( capaNormal );
@@ -1682,11 +1682,11 @@ void AccountDialog::enablePopFeatures( unsigned int capa )
}
-unsigned int AccountDialog::imapCapabilitiesFromStringList( const QStringList & l )
+unsigned int AccountDialog::imapCapabilitiesFromStringList( const TQStringList & l )
{
unsigned int capa = 0;
- for ( QStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
- QString cur = (*it).upper();
+ for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
+ TQString cur = (*it).upper();
if ( cur == "AUTH=PLAIN" )
capa |= Plain;
else if ( cur == "AUTH=LOGIN" )
@@ -1708,8 +1708,8 @@ unsigned int AccountDialog::imapCapabilitiesFromStringList( const QStringList &
}
-void AccountDialog::slotImapCapabilities( const QStringList & capaNormal,
- const QStringList & capaSSL )
+void AccountDialog::slotImapCapabilities( const TQStringList & capaNormal,
+ const TQStringList & capaSSL )
{
mImap.checkCapabilities->setEnabled( true );
mCapaNormal = imapCapabilitiesFromStringList( capaNormal );
@@ -1760,11 +1760,11 @@ void AccountDialog::enableImapAuthMethods( unsigned int capa )
}
-void AccountDialog::checkHighest( QButtonGroup *btnGroup )
+void AccountDialog::checkHighest( TQButtonGroup *btnGroup )
{
kdDebug(5006) << "checkHighest( " << btnGroup << " )" << endl;
for ( int i = btnGroup->count() - 1; i >= 0 ; --i ) {
- QButton * btn = btnGroup->find( i );
+ TQButton * btn = btnGroup->find( i );
if ( btn && btn->isEnabled() ) {
btn->animateClick();
return;
@@ -1782,7 +1782,7 @@ void AccountDialog::slotOk()
void AccountDialog::saveSettings()
{
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
KMAcctLocal *acctLocal = dynamic_cast<KMAcctLocal*>(mAccount);
@@ -1957,7 +1957,7 @@ void AccountDialog::saveSettings()
ImapAccountBase::nsDelimMap::Iterator it;
ImapAccountBase::namespaceDelim::Iterator it2;
for ( it = mImap.nsMap.begin(); it != mImap.nsMap.end(); ++it ) {
- QStringList list;
+ TQStringList list;
for ( it2 = it.data().begin(); it2 != it.data().end(); ++it2 ) {
list << it2.key();
delimMap[it2.key()] = it2.data();
@@ -1992,9 +1992,9 @@ void AccountDialog::saveSettings()
void AccountDialog::slotLocationChooser()
{
- static QString directory( "/" );
+ static TQString directory( "/" );
- KFileDialog dialog( directory, QString::null, this, 0, true );
+ KFileDialog dialog( directory, TQString::null, this, 0, true );
dialog.setCaption( i18n("Choose Location") );
bool result = dialog.exec();
@@ -2020,9 +2020,9 @@ void AccountDialog::slotLocationChooser()
void AccountDialog::slotMaildirChooser()
{
- static QString directory( "/" );
+ static TQString directory( "/" );
- QString dir = KFileDialog::getExistingDirectory(directory, this, i18n("Choose Location"));
+ TQString dir = KFileDialog::getExistingDirectory(directory, this, i18n("Choose Location"));
if( dir.isEmpty() )
return;
@@ -2077,22 +2077,22 @@ void AccountDialog::slotEnableMaildirInterval( bool state )
void AccountDialog::slotFontChanged( void )
{
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
- QFont titleFont( mLocal.titleLabel->font() );
+ TQFont titleFont( mLocal.titleLabel->font() );
titleFont.setBold( true );
mLocal.titleLabel->setFont(titleFont);
}
else if( accountType == "pop" )
{
- QFont titleFont( mPop.titleLabel->font() );
+ TQFont titleFont( mPop.titleLabel->font() );
titleFont.setBold( true );
mPop.titleLabel->setFont(titleFont);
}
else if( accountType == "imap" )
{
- QFont titleFont( mImap.titleLabel->font() );
+ TQFont titleFont( mImap.titleLabel->font() );
titleFont.setBold( true );
mImap.titleLabel->setFont(titleFont);
}
@@ -2117,35 +2117,35 @@ void AccountDialog::slotReloadNamespaces()
{
initAccountForConnect();
mImap.personalNS->setText( i18n("Fetching Namespaces...") );
- mImap.otherUsersNS->setText( QString::null );
- mImap.sharedNS->setText( QString::null );
+ mImap.otherUsersNS->setText( TQString::null );
+ mImap.sharedNS->setText( TQString::null );
ImapAccountBase* ai = static_cast<ImapAccountBase*>( mAccount );
- connect( ai, SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
- this, SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
- connect( ai, SIGNAL( connectionResult(int, const QString&) ),
- this, SLOT( slotConnectionResult(int, const QString&) ) );
+ connect( ai, TQT_SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
+ this, TQT_SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
+ connect( ai, TQT_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQT_SLOT( slotConnectionResult(int, const TQString&) ) );
ai->getNamespaces();
}
}
-void AccountDialog::slotConnectionResult( int errorCode, const QString& )
+void AccountDialog::slotConnectionResult( int errorCode, const TQString& )
{
if ( errorCode > 0 ) {
ImapAccountBase* ai = static_cast<ImapAccountBase*>( mAccount );
- disconnect( ai, SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
- this, SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
- disconnect( ai, SIGNAL( connectionResult(int, const QString&) ),
- this, SLOT( slotConnectionResult(int, const QString&) ) );
- mImap.personalNS->setText( QString::null );
+ disconnect( ai, TQT_SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
+ this, TQT_SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
+ disconnect( ai, TQT_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQT_SLOT( slotConnectionResult(int, const TQString&) ) );
+ mImap.personalNS->setText( TQString::null );
}
}
void AccountDialog::slotSetupNamespaces( const ImapAccountBase::nsDelimMap& map )
{
- disconnect( this, SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
- mImap.personalNS->setText( QString::null );
- mImap.otherUsersNS->setText( QString::null );
- mImap.sharedNS->setText( QString::null );
+ disconnect( this, TQT_SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
+ mImap.personalNS->setText( TQString::null );
+ mImap.otherUsersNS->setText( TQString::null );
+ mImap.sharedNS->setText( TQString::null );
mImap.nsMap = map;
ImapAccountBase::namespaceDelim ns = map[ImapAccountBase::PersonalNS];
@@ -2172,10 +2172,10 @@ void AccountDialog::slotSetupNamespaces( const ImapAccountBase::nsDelimMap& map
}
}
-const QString AccountDialog::namespaceListToString( const QStringList& list )
+const TQString AccountDialog::namespaceListToString( const TQStringList& list )
{
- QStringList myList = list;
- for ( QStringList::Iterator it = myList.begin(); it != myList.end(); ++it ) {
+ TQStringList myList = list;
+ for ( TQStringList::Iterator it = myList.begin(); it != myList.end(); ++it ) {
if ( (*it).isEmpty() ) {
(*it) = "<" + i18n("Empty") + ">";
}
@@ -2185,7 +2185,7 @@ const QString AccountDialog::namespaceListToString( const QStringList& list )
void AccountDialog::initAccountForConnect()
{
- QString type = mAccount->type();
+ TQString type = mAccount->type();
if ( type == "local" )
return;
@@ -2246,7 +2246,7 @@ void AccountDialog::initAccountForConnect()
void AccountDialog::slotEditPersonalNamespace()
{
NamespaceEditDialog dialog( this, ImapAccountBase::PersonalNS, &mImap.nsMap );
- if ( dialog.exec() == QDialog::Accepted ) {
+ if ( dialog.exec() == TQDialog::Accepted ) {
slotSetupNamespaces( mImap.nsMap );
}
}
@@ -2254,7 +2254,7 @@ void AccountDialog::slotEditPersonalNamespace()
void AccountDialog::slotEditOtherUsersNamespace()
{
NamespaceEditDialog dialog( this, ImapAccountBase::OtherUsersNS, &mImap.nsMap );
- if ( dialog.exec() == QDialog::Accepted ) {
+ if ( dialog.exec() == TQDialog::Accepted ) {
slotSetupNamespaces( mImap.nsMap );
}
}
@@ -2262,30 +2262,30 @@ void AccountDialog::slotEditOtherUsersNamespace()
void AccountDialog::slotEditSharedNamespace()
{
NamespaceEditDialog dialog( this, ImapAccountBase::SharedNS, &mImap.nsMap );
- if ( dialog.exec() == QDialog::Accepted ) {
+ if ( dialog.exec() == TQDialog::Accepted ) {
slotSetupNamespaces( mImap.nsMap );
}
}
-NamespaceLineEdit::NamespaceLineEdit( QWidget* parent )
+NamespaceLineEdit::NamespaceLineEdit( TQWidget* parent )
: KLineEdit( parent )
{
}
-void NamespaceLineEdit::setText( const QString& text )
+void NamespaceLineEdit::setText( const TQString& text )
{
mLastText = text;
KLineEdit::setText( text );
}
-NamespaceEditDialog::NamespaceEditDialog( QWidget *parent,
+NamespaceEditDialog::NamespaceEditDialog( TQWidget *parent,
ImapAccountBase::imapNamespace type, ImapAccountBase::nsDelimMap* map )
- : KDialogBase( parent, "edit_namespace", false, QString::null,
+ : KDialogBase( parent, "edit_namespace", false, TQString::null,
Ok|Cancel, Ok, true ), mType( type ), mNamespaceMap( map )
{
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
- QString ns;
+ TQString ns;
if ( mType == ImapAccountBase::PersonalNS ) {
ns = i18n("Personal");
} else if ( mType == ImapAccountBase::OtherUsersNS ) {
@@ -2294,20 +2294,20 @@ NamespaceEditDialog::NamespaceEditDialog( QWidget *parent,
ns = i18n("Shared");
}
setCaption( i18n("Edit Namespace '%1'").arg(ns) );
- QGrid* grid = new QGrid( 2, page );
+ TQGrid* grid = new TQGrid( 2, page );
- mBg = new QButtonGroup( 0 );
- connect( mBg, SIGNAL( clicked(int) ), this, SLOT( slotRemoveEntry(int) ) );
+ mBg = new TQButtonGroup( 0 );
+ connect( mBg, TQT_SIGNAL( clicked(int) ), this, TQT_SLOT( slotRemoveEntry(int) ) );
mDelimMap = mNamespaceMap->find( mType ).data();
ImapAccountBase::namespaceDelim::Iterator it;
for ( it = mDelimMap.begin(); it != mDelimMap.end(); ++it ) {
NamespaceLineEdit* edit = new NamespaceLineEdit( grid );
edit->setText( it.key() );
- QToolButton* button = new QToolButton( grid );
+ TQToolButton* button = new TQToolButton( grid );
button->setIconSet(
KGlobal::iconLoader()->loadIconSet( "editdelete", KIcon::Small, 0 ) );
button->setAutoRaise( true );
- button->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 );
mLineEditMap[ mBg->insert( button ) ] = edit;
}
@@ -2334,7 +2334,7 @@ void NamespaceEditDialog::slotRemoveEntry( int id )
void NamespaceEditDialog::slotOk()
{
- QMap<int, NamespaceLineEdit*>::Iterator it;
+ TQMap<int, NamespaceLineEdit*>::Iterator it;
for ( it = mLineEditMap.begin(); it != mLineEditMap.end(); ++it ) {
NamespaceLineEdit* edit = it.data();
if ( edit->isModified() ) {