diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 21:47:32 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 21:47:32 -0600 |
commit | 7cb24f16beba124f021091c4b7bcf8565a06fb95 (patch) | |
tree | 966c56d322d59439374c65c06803bdca34b00af5 /kaddressbook/features | |
parent | dbb49d72f7a1bc5c4b7312219cae8491cc571def (diff) | |
download | tdepim-7cb24f16beba124f021091c4b7bcf8565a06fb95.tar.gz tdepim-7cb24f16beba124f021091c4b7bcf8565a06fb95.zip |
Rename additional instances of KDE to TDE
Diffstat (limited to 'kaddressbook/features')
-rw-r--r-- | kaddressbook/features/Makefile.am | 6 | ||||
-rw-r--r-- | kaddressbook/features/distributionlistwidget.cpp | 44 | ||||
-rw-r--r-- | kaddressbook/features/distributionlistwidget.h | 6 |
3 files changed, 28 insertions, 28 deletions
diff --git a/kaddressbook/features/Makefile.am b/kaddressbook/features/Makefile.am index e529cb684..6258a6a74 100644 --- a/kaddressbook/features/Makefile.am +++ b/kaddressbook/features/Makefile.am @@ -17,16 +17,16 @@ XXLIBS = $(top_builddir)/kaddressbook/interfaces/libkabinterfaces.la \ if compile_newdistrlists libkaddrbk_distributionlistng_la_SOURCES = distributionlistngwidget.cpp libkaddrbk_distributionlistng_la_LDFLAGS = -module $(KDE_PLUGIN) $(KDE_RPATH) $(all_libraries) -no-undefined -libkaddrbk_distributionlistng_la_LIBADD = $(XXLIBS) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KABC) +libkaddrbk_distributionlistng_la_LIBADD = $(XXLIBS) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KABC) else libkaddrbk_distributionlist_la_SOURCES = distributionlistwidget.cpp libkaddrbk_distributionlist_la_LDFLAGS = -module $(KDE_PLUGIN) $(KDE_RPATH) $(all_libraries) -no-undefined -libkaddrbk_distributionlist_la_LIBADD = $(XXLIBS) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KABC) +libkaddrbk_distributionlist_la_LIBADD = $(XXLIBS) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KABC) endif libkaddrbk_resourceselection_la_SOURCES = resourceselection.cpp libkaddrbk_resourceselection_la_LDFLAGS = -module $(KDE_PLUGIN) $(KDE_RPATH) $(all_libraries) -no-undefined -libkaddrbk_resourceselection_la_LIBADD = $(XXLIBS) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KABC) -lkresources +libkaddrbk_resourceselection_la_LIBADD = $(XXLIBS) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_KABC) -lkresources noinst_HEADERS = distributionlistwidget.h distributionlistngwidget.h resourceselection.h diff --git a/kaddressbook/features/distributionlistwidget.cpp b/kaddressbook/features/distributionlistwidget.cpp index 86515599f..035eba6ce 100644 --- a/kaddressbook/features/distributionlistwidget.cpp +++ b/kaddressbook/features/distributionlistwidget.cpp @@ -39,7 +39,7 @@ #include <kmessagebox.h> #include <kabc/addresseedialog.h> -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS #include <libtdepim/distributionlist.h> typedef KPIM::DistributionList DistributionList; #else @@ -149,7 +149,7 @@ class ContactItem : public TQListViewItem DistributionListWidget::DistributionListWidget( KAB::Core *core, TQWidget *parent, const char *name ) : KAB::ExtensionWidget( core, parent, name ) -#ifndef KDEPIM_NEW_DISTRLISTS +#ifndef TDEPIM_NEW_DISTRLISTS , mManager( 0 ) #endif { @@ -201,7 +201,7 @@ DistributionListWidget::DistributionListWidget( KAB::Core *core, TQWidget *paren topLayout->addWidget( mRemoveContactButton, 2, 3 ); connect( mRemoveContactButton, TQT_SIGNAL( clicked() ), TQT_SLOT( removeContact() ) ); -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS // When contacts are changed, update both distr list combo and contents of displayed distr list connect( core, TQT_SIGNAL( contactsUpdated() ), this, TQT_SLOT( updateNameCombo() ) ); @@ -228,7 +228,7 @@ DistributionListWidget::DistributionListWidget( KAB::Core *core, TQWidget *paren DistributionListWidget::~DistributionListWidget() { -#ifndef KDEPIM_NEW_DISTRLISTS +#ifndef TDEPIM_NEW_DISTRLISTS delete mManager; #endif @@ -237,7 +237,7 @@ DistributionListWidget::~DistributionListWidget() void DistributionListWidget::save() { -#ifndef KDEPIM_NEW_DISTRLISTS +#ifndef TDEPIM_NEW_DISTRLISTS mManager->save(); #endif } @@ -254,7 +254,7 @@ void DistributionListWidget::selectionContactViewChanged() bool DistributionListWidget::alreadyExists( const TQString& distrListName ) const { -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS return core()->distributionListNames().contains( distrListName ); #else return mManager->listNames().contains( distrListName ); @@ -273,7 +273,7 @@ void DistributionListWidget::createList() KMessageBox::sorry( this, i18n( "The name already exists" ) ); return; } -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KABC::Resource* resource = core()->requestResource( this ); if ( !resource ) return; @@ -313,7 +313,7 @@ void DistributionListWidget::editList() KMessageBox::sorry( this, i18n( "The name already exists." ) ); return; } -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KPIM::DistributionList dist = KPIM::DistributionList::findByName( core()->addressBook(), mNameCombo->currentText() ); if ( dist.isEmpty() ) // not found [should be impossible] @@ -335,7 +335,7 @@ void DistributionListWidget::editList() // Display the contents of the list we just selected updateContactView(); -#ifndef KDEPIM_NEW_DISTRLISTS +#ifndef TDEPIM_NEW_DISTRLISTS changed(); #endif } @@ -349,7 +349,7 @@ void DistributionListWidget::removeList() if ( result != KMessageBox::Continue ) return; -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KPIM::DistributionList dist = KPIM::DistributionList::findByName( core()->addressBook(), mNameCombo->currentText() ); if ( dist.isEmpty() ) // not found [should be impossible] @@ -369,7 +369,7 @@ void DistributionListWidget::removeList() void DistributionListWidget::addContact() { -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KPIM::DistributionList dist = KPIM::DistributionList::findByName( core()->addressBook(), mNameCombo->currentText() ); if ( dist.isEmpty() ) { // not found @@ -388,7 +388,7 @@ void DistributionListWidget::addContact() for ( it = addrList.begin(); it != addrList.end(); ++it ) dist.insertEntry( *it ); -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS core()->addressBook()->insertAddressee( dist ); changed( dist ); #else @@ -399,7 +399,7 @@ void DistributionListWidget::addContact() void DistributionListWidget::removeContact() { -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KPIM::DistributionList dist = KPIM::DistributionList::findByName( core()->addressBook(), mNameCombo->currentText() ); if ( dist.isEmpty() ) // not found @@ -419,7 +419,7 @@ void DistributionListWidget::removeContact() dist.removeEntry( contactItem->addressee(), contactItem->email() ); delete contactItem; -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS core()->addressBook()->insertAddressee( dist ); changed( dist ); #else @@ -429,7 +429,7 @@ void DistributionListWidget::removeContact() void DistributionListWidget::changeEmail() { -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KPIM::DistributionList dist = KPIM::DistributionList::findByName( core()->addressBook(), mNameCombo->currentText() ); if ( dist.isEmpty() ) // not found @@ -454,7 +454,7 @@ void DistributionListWidget::changeEmail() dist.removeEntry( contactItem->addressee(), contactItem->email() ); dist.insertEntry( contactItem->addressee(), email ); -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS core()->addressBook()->insertAddressee( dist ); changed( dist ); #else @@ -468,7 +468,7 @@ void DistributionListWidget::updateContactView() mContactView->clear(); bool isListSelected = false; -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KPIM::DistributionList dist; if ( mNameCombo->count() != 0 ) dist = KPIM::DistributionList::findByName( @@ -491,7 +491,7 @@ void DistributionListWidget::updateContactView() mContactView->setEnabled( true ); uint entryCount = 0; -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS const KPIM::DistributionList::Entry::List entries = dist.entries( core()->addressBook() ); KPIM::DistributionList::Entry::List::ConstIterator it; #else @@ -512,7 +512,7 @@ void DistributionListWidget::updateNameCombo() { int pos = mNameCombo->currentItem(); mNameCombo->clear(); -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS const TQStringList names = core()->distributionListNames(); #else mManager->load(); @@ -529,7 +529,7 @@ void DistributionListWidget::dropEvent( TQDropEvent *e ) if ( mNameCombo->count() == 0 ) return; -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS KPIM::DistributionList dist = KPIM::DistributionList::findByName( core()->addressBook(), mNameCombo->currentText() ); if ( dist.isEmpty() ) @@ -548,7 +548,7 @@ void DistributionListWidget::dropEvent( TQDropEvent *e ) for ( KABC::Addressee::List::ConstIterator it = lst.begin(); it != lst.end(); ++it ) dist.insertEntry( *it ); -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS core()->addressBook()->insertAddressee( dist ); changed( dist ); #else @@ -578,7 +578,7 @@ void DistributionListWidget::dropped( TQDropEvent *e, TQListViewItem* ) dropEvent( e ); } -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS void DistributionListWidget::changed( const KABC::Addressee& dist ) { emit modified( KABC::Addressee::List() << dist ); diff --git a/kaddressbook/features/distributionlistwidget.h b/kaddressbook/features/distributionlistwidget.h index 7729b50d4..1d82e99a3 100644 --- a/kaddressbook/features/distributionlistwidget.h +++ b/kaddressbook/features/distributionlistwidget.h @@ -24,7 +24,7 @@ #ifndef DISTRIBUTIONLISTWIDGET_H #define DISTRIBUTIONLISTWIDGET_H -#include <config.h> // for KDEPIM_NEW_DISTRLISTS +#include <config.h> // for TDEPIM_NEW_DISTRLISTS #include <kdialogbase.h> #include <klistview.h> @@ -76,7 +76,7 @@ class DistributionListWidget : public KAB::ExtensionWidget void selectionContactViewChanged(); private: -#ifdef KDEPIM_NEW_DISTRLISTS +#ifdef TDEPIM_NEW_DISTRLISTS void changed( const KABC::Addressee& dist ); #else void changed(); @@ -91,7 +91,7 @@ class DistributionListWidget : public KAB::ExtensionWidget TQLabel *mEntryCountLabel; DistributionListView *mContactView; -#ifndef KDEPIM_NEW_DISTRLISTS +#ifndef TDEPIM_NEW_DISTRLISTS KABC::DistributionListManager *mManager; #endif TQPushButton *mCreateListButton; |