From 86d8364ac704bdc8ad2dfcf52307d9626cfac567 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:37:21 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- libtdepim/kconfigwizard.cpp | 48 ++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'libtdepim/kconfigwizard.cpp') diff --git a/libtdepim/kconfigwizard.cpp b/libtdepim/kconfigwizard.cpp index bceacd656..c2baafcc7 100644 --- a/libtdepim/kconfigwizard.cpp +++ b/libtdepim/kconfigwizard.cpp @@ -31,7 +31,7 @@ #include #include -KConfigWizard::KConfigWizard( TQWidget *parent, +TDEConfigWizard::TDEConfigWizard( TQWidget *parent, char *name, bool modal ) : KDialogBase( TreeList, i18n("Configuration Wizard"), Ok|Cancel, Ok, parent, name, modal ), @@ -40,7 +40,7 @@ KConfigWizard::KConfigWizard( TQWidget *parent, init(); } -KConfigWizard::KConfigWizard( KConfigPropagator *propagator, TQWidget *parent, +TDEConfigWizard::TDEConfigWizard( TDEConfigPropagator *propagator, TQWidget *parent, char *name, bool modal ) : KDialogBase( TreeList, i18n("Configuration Wizard"), Ok|Cancel, Ok, parent, name, modal ), @@ -49,12 +49,12 @@ KConfigWizard::KConfigWizard( KConfigPropagator *propagator, TQWidget *parent, init(); } -KConfigWizard::~KConfigWizard() +TDEConfigWizard::~TDEConfigWizard() { delete mPropagator; } -void KConfigWizard::init() +void TDEConfigWizard::init() { connect( this, TQT_SIGNAL( aboutToShowPage( TQWidget * ) ), TQT_SLOT( slotAboutToShowPage( TQWidget * ) ) ); @@ -62,24 +62,24 @@ void KConfigWizard::init() TQTimer::singleShot( 0, this, TQT_SLOT( readConfig() ) ); } -void KConfigWizard::setPropagator( KConfigPropagator *p ) +void TDEConfigWizard::setPropagator( TDEConfigPropagator *p ) { mPropagator = p; } -void KConfigWizard::slotAboutToShowPage( TQWidget *page ) +void TDEConfigWizard::slotAboutToShowPage( TQWidget *page ) { if ( page == mChangesPage ) { updateChanges(); } } -TQFrame *KConfigWizard::createWizardPage( const TQString &title ) +TQFrame *TDEConfigWizard::createWizardPage( const TQString &title ) { return addPage( title ); } -void KConfigWizard::setupRulesPage() +void TDEConfigWizard::setupRulesPage() { TQFrame *topFrame = addPage( i18n("Rules") ); TQVBoxLayout *topLayout = new TQVBoxLayout( topFrame ); @@ -94,25 +94,25 @@ void KConfigWizard::setupRulesPage() updateRules(); } -void KConfigWizard::updateRules() +void TDEConfigWizard::updateRules() { if ( !mPropagator ) { - kdError() << "KConfigWizard: No KConfigPropagator set." << endl; + kdError() << "TDEConfigWizard: No TDEConfigPropagator set." << endl; return; } mRuleView->clear(); - KConfigPropagator::Rule::List rules = mPropagator->rules(); - KConfigPropagator::Rule::List::ConstIterator it; + TDEConfigPropagator::Rule::List rules = mPropagator->rules(); + TDEConfigPropagator::Rule::List::ConstIterator it; for( it = rules.begin(); it != rules.end(); ++it ) { - KConfigPropagator::Rule r = *it; + TDEConfigPropagator::Rule r = *it; TQString source = r.sourceFile + "/" + r.sourceGroup + "/" + r.sourceEntry; TQString target = r.targetFile + "/" + r.targetGroup + "/" + r.targetEntry; TQString condition; - KConfigPropagator::Condition c = r.condition; + TDEConfigPropagator::Condition c = r.condition; if ( c.isValid ) { condition = c.file + "/" + c.group + "/" + c.key + " = " + c.value; } @@ -120,7 +120,7 @@ void KConfigWizard::updateRules() } } -void KConfigWizard::setupChangesPage() +void TDEConfigWizard::setupChangesPage() { TQFrame *topFrame = addPage( i18n("Changes") ); TQVBoxLayout *topLayout = new TQVBoxLayout( topFrame ); @@ -136,12 +136,12 @@ void KConfigWizard::setupChangesPage() mChangesPage = topFrame; } -void KConfigWizard::updateChanges() +void TDEConfigWizard::updateChanges() { - kdDebug() << "KConfigWizard::updateChanges()" << endl; + kdDebug() << "TDEConfigWizard::updateChanges()" << endl; if ( !mPropagator ) { - kdError() << "KConfigWizard: No KConfigPropagator set." << endl; + kdError() << "TDEConfigWizard: No TDEConfigPropagator set." << endl; return; } @@ -151,16 +151,16 @@ void KConfigWizard::updateChanges() mChangeView->clear(); - KConfigPropagator::Change::List changes = mPropagator->changes(); - KConfigPropagator::Change *c; + TDEConfigPropagator::Change::List changes = mPropagator->changes(); + TDEConfigPropagator::Change *c; for( c = changes.first(); c; c = changes.next() ) { new TQListViewItem( mChangeView, mChangeView->lastItem(), c->title(), c->arg1(), c->arg2() ); } } -void KConfigWizard::readConfig() +void TDEConfigWizard::readConfig() { - kdDebug() << "KConfigWizard::readConfig()" << endl; + kdDebug() << "TDEConfigWizard::readConfig()" << endl; int result = KMessageBox::warningContinueCancel( this, i18n("Please make sure that the programs which are " @@ -172,14 +172,14 @@ void KConfigWizard::readConfig() usrReadConfig(); } -void KConfigWizard::slotOk() +void TDEConfigWizard::slotOk() { TQString error = validate(); if ( error.isNull() ) { usrWriteConfig(); if ( !mPropagator ) { - kdError() << "KConfigWizard: No KConfigPropagator set." << endl; + kdError() << "TDEConfigWizard: No TDEConfigPropagator set." << endl; return; } else { if ( mPropagator->skeleton() ) { -- cgit v1.2.1