summaryrefslogtreecommitdiffstats
path: root/libkdepim/kincidencechooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/kincidencechooser.cpp')
-rw-r--r--libkdepim/kincidencechooser.cpp112
1 files changed, 56 insertions, 56 deletions
diff --git a/libkdepim/kincidencechooser.cpp b/libkdepim/kincidencechooser.cpp
index 0708cb4c4..53f72c886 100644
--- a/libkdepim/kincidencechooser.cpp
+++ b/libkdepim/kincidencechooser.cpp
@@ -22,17 +22,17 @@
without including the source code for Qt in the source distribution.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qbuttongroup.h>
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qscrollview.h>
-#include <qtextbrowser.h>
-#include <qapplication.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqbuttongroup.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqscrollview.h>
+#include <tqtextbrowser.h>
+#include <tqapplication.h>
#include <klocale.h>
@@ -44,81 +44,81 @@
int KIncidenceChooser::chooseMode = KIncidenceChooser::ask ;
-KIncidenceChooser::KIncidenceChooser(QWidget *parent, char *name) :
+KIncidenceChooser::KIncidenceChooser(TQWidget *parent, char *name) :
KDialog(parent,name,true)
{
KDialog *topFrame = this;
- QGridLayout *topLayout = new QGridLayout(topFrame,5,3);
+ TQGridLayout *topLayout = new TQGridLayout(topFrame,5,3);
int iii = 0;
setCaption( i18n("Conflict Detected"));
- QLabel * lab;
- lab = new QLabel( i18n(
+ TQLabel * lab;
+ lab = new TQLabel( i18n(
"<qt>A conflict was detected. This probably means someone edited the same entry on the server while you changed it locally."
"<br/>NOTE: You have to check mail again to apply your changes to the server.</qt>"), topFrame);
topLayout->addMultiCellWidget(lab, iii,iii,0,2);
++iii;
- QHBox * b_box = new QHBox( topFrame );
+ TQHBox * b_box = new TQHBox( topFrame );
topLayout->addMultiCellWidget(b_box, iii,iii,0,2);
++iii;
- QPushButton* button = new QPushButton( i18n("Take Local"), b_box );
- connect ( button, SIGNAL( clicked()), this, SLOT (takeIncidence1() ) );
- button = new QPushButton( i18n("Take New"), b_box );
- connect ( button, SIGNAL( clicked()), this, SLOT (takeIncidence2() ) );
- button = new QPushButton( i18n("Take Both"), b_box );
- connect ( button, SIGNAL( clicked()), this, SLOT (takeBoth() ) );
+ TQPushButton* button = new TQPushButton( i18n("Take Local"), b_box );
+ connect ( button, TQT_SIGNAL( clicked()), this, TQT_SLOT (takeIncidence1() ) );
+ button = new TQPushButton( i18n("Take New"), b_box );
+ connect ( button, TQT_SIGNAL( clicked()), this, TQT_SLOT (takeIncidence2() ) );
+ button = new TQPushButton( i18n("Take Both"), b_box );
+ connect ( button, TQT_SIGNAL( clicked()), this, TQT_SLOT (takeBoth() ) );
topLayout->setSpacing(spacingHint());
topLayout->setMargin(marginHint());
// text is not translated, because text has to be set later
- mInc1lab = new QLabel ( i18n("Local incidence"), topFrame);
+ mInc1lab = new TQLabel ( i18n("Local incidence"), topFrame);
topLayout->addWidget(mInc1lab ,iii,0);
- mInc1Sumlab = new QLabel ( i18n("Local incidence summary"), topFrame);
+ mInc1Sumlab = new TQLabel ( i18n("Local incidence summary"), topFrame);
topLayout->addMultiCellWidget(mInc1Sumlab, iii,iii,1,2);
++iii;
- topLayout->addWidget( new QLabel ( i18n("Last modified:"), topFrame) ,iii,0);
- mMod1lab = new QLabel ( "Set Last modified", topFrame);
+ topLayout->addWidget( new TQLabel ( i18n("Last modified:"), topFrame) ,iii,0);
+ mMod1lab = new TQLabel ( "Set Last modified", topFrame);
topLayout->addWidget(mMod1lab,iii,1);
- showDetails1 = new QPushButton( i18n("Show Details"),topFrame );
- connect ( showDetails1, SIGNAL( clicked()), this, SLOT (showIncidence1() ) );
+ showDetails1 = new TQPushButton( i18n("Show Details"),topFrame );
+ connect ( showDetails1, TQT_SIGNAL( clicked()), this, TQT_SLOT (showIncidence1() ) );
topLayout->addWidget(showDetails1,iii,2);
++iii;
- mInc2lab = new QLabel ( "Local incidence", topFrame);
+ mInc2lab = new TQLabel ( "Local incidence", topFrame);
topLayout->addWidget(mInc2lab,iii,0);
- mInc2Sumlab = new QLabel ( "Local incidence summary", topFrame);
+ mInc2Sumlab = new TQLabel ( "Local incidence summary", topFrame);
topLayout->addMultiCellWidget(mInc2Sumlab, iii,iii,1,2);
++iii;
- topLayout->addWidget( new QLabel ( i18n("Last modified:"), topFrame) ,iii,0);
- mMod2lab = new QLabel ( "Set Last modified", topFrame);
+ topLayout->addWidget( new TQLabel ( i18n("Last modified:"), topFrame) ,iii,0);
+ mMod2lab = new TQLabel ( "Set Last modified", topFrame);
topLayout->addWidget(mMod2lab,iii,1);
- showDetails2 = new QPushButton( i18n("Show Details"), topFrame);
- connect ( showDetails2, SIGNAL( clicked()), this, SLOT (showIncidence2() ) );
+ showDetails2 = new TQPushButton( i18n("Show Details"), topFrame);
+ connect ( showDetails2, TQT_SIGNAL( clicked()), this, TQT_SLOT (showIncidence2() ) );
topLayout->addWidget(showDetails2,iii,2);
++iii;
//
#if 0
// commented out for now, because the diff code has too many bugs
- diffBut = new QPushButton( i18n("Show Differences"), topFrame );
- connect ( diffBut, SIGNAL( clicked()), this, SLOT ( showDiff() ) );
+ diffBut = new TQPushButton( i18n("Show Differences"), topFrame );
+ connect ( diffBut, TQT_SIGNAL( clicked()), this, TQT_SLOT ( showDiff() ) );
topLayout->addMultiCellWidget(diffBut, iii,iii,0,2);
++iii;
#else
diffBut = 0;
#endif
- mBg = new QButtonGroup ( 1, Qt::Horizontal, i18n("Sync Preferences"), topFrame);
+ mBg = new TQButtonGroup ( 1, Qt::Horizontal, i18n("Sync Preferences"), topFrame);
topLayout->addMultiCellWidget(mBg, iii,iii,0,2);
++iii;
- mBg->insert( new QRadioButton ( i18n("Take local entry on conflict"), mBg ), KIncidenceChooser::local);
- mBg->insert( new QRadioButton ( i18n("Take new (remote) entry on conflict"), mBg ), KIncidenceChooser::remote);
- mBg->insert( new QRadioButton ( i18n("Take newest entry on conflict"), mBg ), KIncidenceChooser::newest );
- mBg->insert( new QRadioButton ( i18n("Ask for every entry on conflict"), mBg ),KIncidenceChooser::ask );
- mBg->insert( new QRadioButton ( i18n("Take both on conflict"), mBg ), KIncidenceChooser::both );
+ mBg->insert( new TQRadioButton ( i18n("Take local entry on conflict"), mBg ), KIncidenceChooser::local);
+ mBg->insert( new TQRadioButton ( i18n("Take new (remote) entry on conflict"), mBg ), KIncidenceChooser::remote);
+ mBg->insert( new TQRadioButton ( i18n("Take newest entry on conflict"), mBg ), KIncidenceChooser::newest );
+ mBg->insert( new TQRadioButton ( i18n("Ask for every entry on conflict"), mBg ),KIncidenceChooser::ask );
+ mBg->insert( new TQRadioButton ( i18n("Take both on conflict"), mBg ), KIncidenceChooser::both );
mBg->setButton ( chooseMode );
mTbL = 0;
mTbN = 0;
mDisplayDiff = 0;
choosedIncidence = 0;
- button = new QPushButton( i18n("Apply This to All Conflicts of This Sync"), topFrame );
- connect ( button, SIGNAL( clicked()), this, SLOT ( setSyncMode() ) );
+ button = new TQPushButton( i18n("Apply This to All Conflicts of This Sync"), topFrame );
+ connect ( button, TQT_SIGNAL( clicked()), this, TQT_SLOT ( setSyncMode() ) );
topLayout->addMultiCellWidget(button, iii,iii,0,2);
}
@@ -165,21 +165,21 @@ void KIncidenceChooser::setSyncMode()
{
chooseMode = mBg->selectedId ();
if ( chooseMode != KIncidenceChooser::ask )
- QDialog::accept();
+ TQDialog::accept();
}
void KIncidenceChooser::useGlobalMode()
{
if ( chooseMode != KIncidenceChooser::ask )
- QDialog::reject();
+ TQDialog::reject();
}
void KIncidenceChooser::setLabels()
{
KCal::Incidence* inc = mInc1;
- QLabel* des = mInc1lab;
- QLabel * sum = mInc1Sumlab;
+ TQLabel* des = mInc1lab;
+ TQLabel * sum = mInc1Sumlab;
if ( inc->type() == "Event" ) {
@@ -237,8 +237,8 @@ void KIncidenceChooser::showIncidence1()
}
mTbL = new KDialogBase( this, "", false /*not modal*/, mInc1lab->text(), KDialogBase::Ok );
mTbL->setEscapeButton( KDialogBase::Ok );
- connect( mTbL, SIGNAL( okClicked() ), this, SLOT( detailsDialogClosed() ) );
- QTextBrowser* textBrowser = new QTextBrowser( mTbL );
+ connect( mTbL, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( detailsDialogClosed() ) );
+ TQTextBrowser* textBrowser = new TQTextBrowser( mTbL );
mTbL->setMainWidget( textBrowser );
textBrowser->setText( KCal::IncidenceFormatter::extensiveDisplayString( mInc1 ) );
mTbL->setMinimumSize( 400, 400 );
@@ -249,7 +249,7 @@ void KIncidenceChooser::showIncidence1()
void KIncidenceChooser::detailsDialogClosed()
{
- KDialogBase* dialog = static_cast<KDialogBase *>( const_cast<QObject *>( sender() ) );
+ KDialogBase* dialog = static_cast<KDialogBase *>( const_cast<TQObject *>( sender() ) );
if ( dialog == mTbL )
showDetails1->setText( i18n( "Show details..." ) );
else
@@ -293,8 +293,8 @@ void KIncidenceChooser::showIncidence2()
}
mTbN = new KDialogBase( this, "", false /*not modal*/, mInc2lab->text(), KDialogBase::Ok );
mTbN->setEscapeButton( KDialogBase::Ok );
- connect( mTbN, SIGNAL( okClicked() ), this, SLOT( detailsDialogClosed() ) );
- QTextBrowser* textBrowser = new QTextBrowser( mTbN );
+ connect( mTbN, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( detailsDialogClosed() ) );
+ TQTextBrowser* textBrowser = new TQTextBrowser( mTbN );
mTbN->setMainWidget( textBrowser );
textBrowser->setText( KCal::IncidenceFormatter::extensiveDisplayString( mInc2 ) );
mTbN->setMinimumSize( 400, 400 );
@@ -306,20 +306,20 @@ void KIncidenceChooser::showIncidence2()
void KIncidenceChooser::takeIncidence1()
{
choosedIncidence = mInc1;
- QDialog::accept();
+ TQDialog::accept();
}
void KIncidenceChooser::takeIncidence2()
{
choosedIncidence = mInc2;
- QDialog::accept();
+ TQDialog::accept();
}
void KIncidenceChooser::takeBoth()
{
choosedIncidence = 0;
- QDialog::accept();
+ TQDialog::accept();
}