summaryrefslogtreecommitdiffstats
path: root/kontact
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:12 -0600
commitfd5d099065a748cac49e20a13481f85666c53c71 (patch)
treea0f1672cd88eb0e69b9ddc2ed9b08ecd98538bd3 /kontact
parentb440a9c608596cd88efdb3bfa4661c5e37efbe4b (diff)
downloadtdepim-fd5d099065a748cac49e20a13481f85666c53c71.tar.gz
tdepim-fd5d099065a748cac49e20a13481f85666c53c71.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kontact')
-rw-r--r--kontact/interfaces/core.h2
-rw-r--r--kontact/interfaces/plugin.cpp16
-rw-r--r--kontact/interfaces/plugin.h10
-rw-r--r--kontact/plugins/akregator/akregator_plugin.cpp2
-rw-r--r--kontact/plugins/kaddressbook/kaddressbook_plugin.cpp6
-rw-r--r--kontact/plugins/karm/karm_plugin.cpp2
-rw-r--r--kontact/plugins/kmail/kcmkmailsummary.cpp4
-rw-r--r--kontact/plugins/kmail/kcmkmailsummary.h4
-rw-r--r--kontact/plugins/kmail/kmail_plugin.cpp4
-rw-r--r--kontact/plugins/knode/knode_plugin.cpp2
-rw-r--r--kontact/plugins/knotes/knotes_part.cpp12
-rw-r--r--kontact/plugins/knotes/knotes_part_p.h6
-rw-r--r--kontact/plugins/knotes/knotes_plugin.cpp4
-rw-r--r--kontact/plugins/korganizer/journalplugin.cpp4
-rw-r--r--kontact/plugins/korganizer/kcmkorgsummary.cpp2
-rw-r--r--kontact/plugins/korganizer/korganizerplugin.cpp4
-rw-r--r--kontact/plugins/korganizer/summarywidget.cpp2
-rw-r--r--kontact/plugins/korganizer/todoplugin.cpp4
-rw-r--r--kontact/plugins/korganizer/todosummarywidget.cpp2
-rw-r--r--kontact/plugins/newsticker/kcmkontactknt.cpp6
-rw-r--r--kontact/plugins/newsticker/kcmkontactknt.h6
-rw-r--r--kontact/plugins/specialdates/kcmsdsummary.cpp2
-rw-r--r--kontact/plugins/specialdates/sdsummarywidget.cpp2
-rw-r--r--kontact/plugins/summary/kcmkontactsummary.cpp4
-rw-r--r--kontact/plugins/summary/kcmkontactsummary.h2
-rw-r--r--kontact/plugins/summary/summaryview_part.cpp2
-rw-r--r--kontact/plugins/summary/summaryview_part.h4
-rw-r--r--kontact/plugins/summary/summaryview_plugin.cpp6
-rw-r--r--kontact/plugins/summary/summaryview_plugin.h4
-rw-r--r--kontact/plugins/test/test_part.cpp2
-rw-r--r--kontact/plugins/test/test_plugin.cpp2
-rw-r--r--kontact/src/iconsidepane.cpp10
-rw-r--r--kontact/src/iconsidepane.h8
-rw-r--r--kontact/src/kcmkontact.h2
-rw-r--r--kontact/src/main.cpp6
-rw-r--r--kontact/src/mainwindow.cpp74
-rw-r--r--kontact/src/mainwindow.h16
-rw-r--r--kontact/src/profiledialog.cpp2
-rw-r--r--kontact/src/profiledialog.h4
-rw-r--r--kontact/src/sidepanebase.h2
40 files changed, 129 insertions, 129 deletions
diff --git a/kontact/interfaces/core.h b/kontact/interfaces/core.h
index c92aca5d1..65e939b94 100644
--- a/kontact/interfaces/core.h
+++ b/kontact/interfaces/core.h
@@ -28,7 +28,7 @@
#include <tdeparts/mainwindow.h>
#include <tdeparts/part.h>
-class KAction;
+class TDEAction;
namespace Kontact
{
diff --git a/kontact/interfaces/plugin.cpp b/kontact/interfaces/plugin.cpp
index 9d9445e99..ae7efa528 100644
--- a/kontact/interfaces/plugin.cpp
+++ b/kontact/interfaces/plugin.cpp
@@ -40,8 +40,8 @@ class Plugin::Private
public:
Kontact::Core *core;
DCOPClient *dcopClient;
- TQPtrList<KAction> *newActions;
- TQPtrList<KAction> *syncActions;
+ TQPtrList<TDEAction> *newActions;
+ TQPtrList<TDEAction> *syncActions;
TQString identifier;
TQString title;
TQString icon;
@@ -61,8 +61,8 @@ Plugin::Plugin( Kontact::Core *core, TQObject *parent, const char *name )
d->core = core;
d->dcopClient = 0;
- d->newActions = new TQPtrList<KAction>;
- d->syncActions = new TQPtrList<KAction>;
+ d->newActions = new TQPtrList<TDEAction>;
+ d->syncActions = new TQPtrList<TDEAction>;
d->hasPart = true;
d->part = 0;
d->disabled = false;
@@ -173,22 +173,22 @@ DCOPClient* Plugin::dcopClient() const
return d->dcopClient;
}
-void Plugin::insertNewAction( KAction *action )
+void Plugin::insertNewAction( TDEAction *action )
{
d->newActions->append( action );
}
-void Plugin::insertSyncAction( KAction *action )
+void Plugin::insertSyncAction( TDEAction *action )
{
d->syncActions->append( action );
}
-TQPtrList<KAction> *Plugin::newActions() const
+TQPtrList<TDEAction> *Plugin::newActions() const
{
return d->newActions;
}
-TQPtrList<KAction> *Plugin::syncActions() const
+TQPtrList<TDEAction> *Plugin::syncActions() const
{
return d->syncActions;
}
diff --git a/kontact/interfaces/plugin.h b/kontact/interfaces/plugin.h
index 863e75c6d..c4d573abe 100644
--- a/kontact/interfaces/plugin.h
+++ b/kontact/interfaces/plugin.h
@@ -33,7 +33,7 @@ class TQStringList;
class DCOPClient;
class DCOPObject;
class TDEAboutData;
-class KAction;
+class TDEAction;
class TDEConfig;
class TQWidget;
namespace KParts { class ReadOnlyPart; }
@@ -211,22 +211,22 @@ class KDE_EXPORT Plugin : public TQObject, virtual public KXMLGUIClient
/**
Insert "New" action.
*/
- void insertNewAction( KAction *action );
+ void insertNewAction( TDEAction *action );
/**
Insert "Sync" action.
*/
- void insertSyncAction( KAction *action );
+ void insertSyncAction( TDEAction *action );
/**
FIXME: write API doc for Kontact::Plugin::newActions().
*/
- TQPtrList<KAction>* newActions() const;
+ TQPtrList<TDEAction>* newActions() const;
/**
FIXME: write API doc for Kontact::Plugin::syncActions().
*/
- TQPtrList<KAction>* syncActions() const;
+ TQPtrList<TDEAction>* syncActions() const;
/**
Returns a list of action name which shall be hidden in the main toolbar.
diff --git a/kontact/plugins/akregator/akregator_plugin.cpp b/kontact/plugins/akregator/akregator_plugin.cpp
index bf4e2b17c..81740c7b7 100644
--- a/kontact/plugins/akregator/akregator_plugin.cpp
+++ b/kontact/plugins/akregator/akregator_plugin.cpp
@@ -54,7 +54,7 @@ Plugin::Plugin( Kontact::Core *core, const char *, const TQStringList& )
setInstance( PluginFactory::instance() );
- insertNewAction( new KAction( i18n( "New Feed..." ), "bookmark_add", CTRL+SHIFT+Key_F, this, TQT_SLOT( addFeed() ), actionCollection(), "feed_new" ) );
+ insertNewAction( new TDEAction( i18n( "New Feed..." ), "bookmark_add", CTRL+SHIFT+Key_F, this, TQT_SLOT( addFeed() ), actionCollection(), "feed_new" ) );
m_uniqueAppWatcher = new Kontact::UniqueAppWatcher(
new Kontact::UniqueAppHandlerFactory<Akregator::UniqueAppHandler>(), this );
diff --git a/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp b/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp
index 159962e7a..929bd1b83 100644
--- a/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp
+++ b/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp
@@ -57,14 +57,14 @@ KAddressbookPlugin::KAddressbookPlugin( Kontact::Core *core, const char *, const
{
setInstance( KAddressbookPluginFactory::instance() );
- insertNewAction( new KAction( i18n( "New Contact..." ), "identity",
+ insertNewAction( new TDEAction( i18n( "New Contact..." ), "identity",
CTRL+SHIFT+Key_C, this, TQT_SLOT( slotNewContact() ), actionCollection(),
"new_contact" ) );
- insertNewAction( new KAction( i18n( "&New Distribution List..." ), "kontact_contacts", 0, this,
+ insertNewAction( new TDEAction( i18n( "&New Distribution List..." ), "kontact_contacts", 0, this,
TQT_SLOT( slotNewDistributionList() ), actionCollection(), "new_distributionlist" ) );
- insertSyncAction( new KAction( i18n( "Synchronize Contacts" ), "reload",
+ insertSyncAction( new TDEAction( i18n( "Synchronize Contacts" ), "reload",
0, this, TQT_SLOT( slotSyncContacts() ), actionCollection(),
"kaddressbook_sync" ) );
mUniqueAppWatcher = new Kontact::UniqueAppWatcher(
diff --git a/kontact/plugins/karm/karm_plugin.cpp b/kontact/plugins/karm/karm_plugin.cpp
index 93d894933..8db54bc96 100644
--- a/kontact/plugins/karm/karm_plugin.cpp
+++ b/kontact/plugins/karm/karm_plugin.cpp
@@ -41,7 +41,7 @@ KarmPlugin::KarmPlugin( Kontact::Core *core, const char *, const TQStringList& )
{
setInstance( KarmPluginFactory::instance() );
(void)dcopClient();
- insertNewAction( new KAction( i18n( "New Task" ), "karm",
+ insertNewAction( new TDEAction( i18n( "New Task" ), "karm",
CTRL+SHIFT+Key_W, this, TQT_SLOT( newTask() ), actionCollection(),
"new_task" ) );
}
diff --git a/kontact/plugins/kmail/kcmkmailsummary.cpp b/kontact/plugins/kmail/kcmkmailsummary.cpp
index eb8906d26..3ca4c9036 100644
--- a/kontact/plugins/kmail/kcmkmailsummary.cpp
+++ b/kontact/plugins/kmail/kcmkmailsummary.cpp
@@ -55,7 +55,7 @@ KCMKMailSummary::KCMKMailSummary( TQWidget *parent, const char *name )
connect( mFolderView, TQT_SIGNAL( clicked( TQListViewItem* ) ), TQT_SLOT( modified() ) );
connect( mFullPath, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( modified() ) );
- KAcceleratorManager::manage( this );
+ TDEAcceleratorManager::manage( this );
load();
@@ -77,7 +77,7 @@ void KCMKMailSummary::initGUI()
{
TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
- mFolderView = new KListView( this );
+ mFolderView = new TDEListView( this );
mFolderView->setRootIsDecorated( true );
mFolderView->setFullWidth( true );
diff --git a/kontact/plugins/kmail/kcmkmailsummary.h b/kontact/plugins/kmail/kcmkmailsummary.h
index 3b6a8f53e..7cc4763e7 100644
--- a/kontact/plugins/kmail/kcmkmailsummary.h
+++ b/kontact/plugins/kmail/kcmkmailsummary.h
@@ -28,7 +28,7 @@
#include <tdecmodule.h>
-class KListView;
+class TDEListView;
class TQCheckBox;
class TQCheckListItem;
@@ -54,7 +54,7 @@ class KCMKMailSummary : public TDECModule
void loadFolders();
void storeFolders();
- KListView *mFolderView;
+ TDEListView *mFolderView;
TQCheckBox *mFullPath;
TQMap<TQString, TQListViewItem*> mFolderMap;
};
diff --git a/kontact/plugins/kmail/kmail_plugin.cpp b/kontact/plugins/kmail/kmail_plugin.cpp
index e6a1fae21..051d69b95 100644
--- a/kontact/plugins/kmail/kmail_plugin.cpp
+++ b/kontact/plugins/kmail/kmail_plugin.cpp
@@ -61,11 +61,11 @@ KMailPlugin::KMailPlugin(Kontact::Core *core, const char *, const TQStringList&
{
setInstance( KMailPluginFactory::instance() );
- insertNewAction( new KAction( i18n( "New Message..." ), "mail_new",
+ insertNewAction( new TDEAction( i18n( "New Message..." ), "mail_new",
CTRL+SHIFT+Key_M, this, TQT_SLOT( slotNewMail() ), actionCollection(),
"new_mail" ) );
- insertSyncAction( new KAction( i18n( "Synchronize Mail" ), "reload",
+ insertSyncAction( new TDEAction( i18n( "Synchronize Mail" ), "reload",
0, this, TQT_SLOT( slotSyncFolders() ), actionCollection(),
"sync_mail" ) );
diff --git a/kontact/plugins/knode/knode_plugin.cpp b/kontact/plugins/knode/knode_plugin.cpp
index 9713d853f..eded07cbd 100644
--- a/kontact/plugins/knode/knode_plugin.cpp
+++ b/kontact/plugins/knode/knode_plugin.cpp
@@ -49,7 +49,7 @@ KNodePlugin::KNodePlugin( Kontact::Core *core, const char *, const TQStringList&
{
setInstance( KNodePluginFactory::instance() );
- insertNewAction( new KAction( i18n( "New Article..." ), "mail_new", CTRL+SHIFT+Key_A,
+ insertNewAction( new TDEAction( i18n( "New Article..." ), "mail_new", CTRL+SHIFT+Key_A,
this, TQT_SLOT( slotPostArticle() ), actionCollection(), "post_article" ) );
mUniqueAppWatcher = new Kontact::UniqueAppWatcher(
diff --git a/kontact/plugins/knotes/knotes_part.cpp b/kontact/plugins/knotes/knotes_part.cpp
index 725219f4f..d73bd1fbe 100644
--- a/kontact/plugins/knotes/knotes_part.cpp
+++ b/kontact/plugins/knotes/knotes_part.cpp
@@ -50,13 +50,13 @@ KNotesPart::KNotesPart( TQObject *parent, const char *name )
setInstance( new TDEInstance( "knotes" ) );
// create the actions
- new KAction( i18n( "&New" ), "knotes", CTRL+Key_N, this, TQT_SLOT( newNote() ),
+ new TDEAction( i18n( "&New" ), "knotes", CTRL+Key_N, this, TQT_SLOT( newNote() ),
actionCollection(), "file_new" );
- new KAction( i18n( "Rename..." ), "text", this, TQT_SLOT( renameNote() ),
+ new TDEAction( i18n( "Rename..." ), "text", this, TQT_SLOT( renameNote() ),
actionCollection(), "edit_rename" );
- new KAction( i18n( "Delete" ), "editdelete", Key_Delete, this, TQT_SLOT( killSelectedNotes() ),
+ new TDEAction( i18n( "Delete" ), "editdelete", Key_Delete, this, TQT_SLOT( killSelectedNotes() ),
actionCollection(), "edit_delete" );
- new KAction( i18n( "Print Selected Notes..." ), "print", CTRL+Key_P, this, TQT_SLOT( printSelectedNotes() ),
+ new TDEAction( i18n( "Print Selected Notes..." ), "print", CTRL+Key_P, this, TQT_SLOT( printSelectedNotes() ),
actionCollection(), "print_note" );
// TODO icons: s/editdelete/knotes_delete/ or the other way round in knotes
@@ -398,8 +398,8 @@ void KNotesPart::renamedNote( TQIconViewItem* )
void KNotesPart::slotOnCurrentChanged( TQIconViewItem* )
{
- KAction *renameAction = actionCollection()->action( "edit_rename" );
- KAction *deleteAction = actionCollection()->action( "edit_delete" );
+ TDEAction *renameAction = actionCollection()->action( "edit_rename" );
+ TDEAction *deleteAction = actionCollection()->action( "edit_delete" );
if ( !mNotesView->currentItem() ) {
renameAction->setEnabled( false );
diff --git a/kontact/plugins/knotes/knotes_part_p.h b/kontact/plugins/knotes/knotes_part_p.h
index 91c198af2..648c94c2d 100644
--- a/kontact/plugins/knotes/knotes_part_p.h
+++ b/kontact/plugins/knotes/knotes_part_p.h
@@ -147,7 +147,7 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient
KXMLGUIFactory factory( &builder, TQT_TQOBJECT(this) );
factory.addClient( this );
- mTool = static_cast<KToolBar *>(factory.container( "note_tool", this ));
+ mTool = static_cast<TDEToolBar *>(factory.container( "note_tool", this ));
layout->addWidget( mTool );
layout->addWidget( mNoteEdit );
@@ -181,8 +181,8 @@ class KNoteEditDlg : public KDialogBase, virtual public KXMLGUIClient
private:
KLineEdit *mTitleEdit;
KNoteEdit *mNoteEdit;
- KToolBar *mTool;
- KPopupMenu *mEditMenu;
+ TDEToolBar *mTool;
+ TDEPopupMenu *mEditMenu;
};
diff --git a/kontact/plugins/knotes/knotes_plugin.cpp b/kontact/plugins/knotes/knotes_plugin.cpp
index 2f3f470b8..adf704b1d 100644
--- a/kontact/plugins/knotes/knotes_plugin.cpp
+++ b/kontact/plugins/knotes/knotes_plugin.cpp
@@ -44,9 +44,9 @@ KNotesPlugin::KNotesPlugin( Kontact::Core *core, const char *, const TQStringLis
{
setInstance( KNotesPluginFactory::instance() );
- insertNewAction( new KAction( i18n( "New Note..." ), "knotes", CTRL+SHIFT+Key_N,
+ insertNewAction( new TDEAction( i18n( "New Note..." ), "knotes", CTRL+SHIFT+Key_N,
this, TQT_SLOT( slotNewNote() ), actionCollection(), "new_note" ) );
- insertSyncAction( new KAction( i18n( "Synchronize Notes" ), "reload", 0,
+ insertSyncAction( new TDEAction( i18n( "Synchronize Notes" ), "reload", 0,
this, TQT_SLOT( slotSyncNotes() ), actionCollection(), "knotes_sync" ) );
}
diff --git a/kontact/plugins/korganizer/journalplugin.cpp b/kontact/plugins/korganizer/journalplugin.cpp
index 0bdb167f8..d75bfe76d 100644
--- a/kontact/plugins/korganizer/journalplugin.cpp
+++ b/kontact/plugins/korganizer/journalplugin.cpp
@@ -49,10 +49,10 @@ JournalPlugin::JournalPlugin( Kontact::Core *core, const char *, const TQStringL
setInstance( JournalPluginFactory::instance() );
instance()->iconLoader()->addAppDir("tdepim");
- insertNewAction( new KAction( i18n( "New Journal..." ), "newjournal",
+ insertNewAction( new TDEAction( i18n( "New Journal..." ), "newjournal",
CTRL+SHIFT+Key_J, this, TQT_SLOT( slotNewJournal() ), actionCollection(),
"new_journal" ) );
- insertSyncAction( new KAction( i18n( "Synchronize Journal" ), "reload",
+ insertSyncAction( new TDEAction( i18n( "Synchronize Journal" ), "reload",
0, this, TQT_SLOT( slotSyncJournal() ), actionCollection(),
"journal_sync" ) );
diff --git a/kontact/plugins/korganizer/kcmkorgsummary.cpp b/kontact/plugins/korganizer/kcmkorgsummary.cpp
index 818f3c056..acc95d0f2 100644
--- a/kontact/plugins/korganizer/kcmkorgsummary.cpp
+++ b/kontact/plugins/korganizer/kcmkorgsummary.cpp
@@ -60,7 +60,7 @@ KCMKOrgSummary::KCMKOrgSummary( TQWidget *parent, const char *name )
connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( modified() ) );
connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( customDaysChanged( int ) ) );
- KAcceleratorManager::manage( this );
+ TDEAcceleratorManager::manage( this );
load();
diff --git a/kontact/plugins/korganizer/korganizerplugin.cpp b/kontact/plugins/korganizer/korganizerplugin.cpp
index 2262dcef3..00ed1e532 100644
--- a/kontact/plugins/korganizer/korganizerplugin.cpp
+++ b/kontact/plugins/korganizer/korganizerplugin.cpp
@@ -64,11 +64,11 @@ KOrganizerPlugin::KOrganizerPlugin( Kontact::Core *core, const char *, const TQS
setInstance( KOrganizerPluginFactory::instance() );
instance()->iconLoader()->addAppDir("tdepim");
- insertNewAction( new KAction( i18n( "New Event..." ), "newappointment",
+ insertNewAction( new TDEAction( i18n( "New Event..." ), "newappointment",
CTRL+SHIFT+Key_E, this, TQT_SLOT( slotNewEvent() ), actionCollection(),
"new_event" ) );
- insertSyncAction( new KAction( i18n( "Synchronize Calendar" ), "reload",
+ insertSyncAction( new TDEAction( i18n( "Synchronize Calendar" ), "reload",
0, this, TQT_SLOT( slotSyncEvents() ), actionCollection(),
"korganizer_sync" ) );
diff --git a/kontact/plugins/korganizer/summarywidget.cpp b/kontact/plugins/korganizer/summarywidget.cpp
index 451d8df57..416b0a5ad 100644
--- a/kontact/plugins/korganizer/summarywidget.cpp
+++ b/kontact/plugins/korganizer/summarywidget.cpp
@@ -267,7 +267,7 @@ void SummaryWidget::removeEvent( const TQString &uid )
void SummaryWidget::popupMenu( const TQString &uid )
{
- KPopupMenu popup( this );
+ TDEPopupMenu popup( this );
TQToolTip::remove( this );
popup.insertItem( i18n( "&Edit Appointment..." ), 0 );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small),
diff --git a/kontact/plugins/korganizer/todoplugin.cpp b/kontact/plugins/korganizer/todoplugin.cpp
index e3ff2ba8f..5c6ce7e9d 100644
--- a/kontact/plugins/korganizer/todoplugin.cpp
+++ b/kontact/plugins/korganizer/todoplugin.cpp
@@ -61,11 +61,11 @@ TodoPlugin::TodoPlugin( Kontact::Core *core, const char *, const TQStringList& )
setInstance( TodoPluginFactory::instance() );
instance()->iconLoader()->addAppDir("tdepim");
- insertNewAction( new KAction( i18n( "New To-do..." ), "newtodo",
+ insertNewAction( new TDEAction( i18n( "New To-do..." ), "newtodo",
CTRL+SHIFT+Key_T, this, TQT_SLOT( slotNewTodo() ), actionCollection(),
"new_todo" ) );
- insertSyncAction( new KAction( i18n( "Synchronize To-do List" ), "reload",
+ insertSyncAction( new TDEAction( i18n( "Synchronize To-do List" ), "reload",
0, this, TQT_SLOT( slotSyncTodos() ), actionCollection(),
"todo_sync" ) );
diff --git a/kontact/plugins/korganizer/todosummarywidget.cpp b/kontact/plugins/korganizer/todosummarywidget.cpp
index 818eac7c4..996ea070f 100644
--- a/kontact/plugins/korganizer/todosummarywidget.cpp
+++ b/kontact/plugins/korganizer/todosummarywidget.cpp
@@ -224,7 +224,7 @@ void TodoSummaryWidget::completeTodo( const TQString &uid )
void TodoSummaryWidget::popupMenu( const TQString &uid )
{
- KPopupMenu popup( this );
+ TDEPopupMenu popup( this );
TQToolTip::remove( this );
popup.insertItem( i18n( "&Edit To-do..." ), 0 );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small),
diff --git a/kontact/plugins/newsticker/kcmkontactknt.cpp b/kontact/plugins/newsticker/kcmkontactknt.cpp
index 958959667..ce433d053 100644
--- a/kontact/plugins/newsticker/kcmkontactknt.cpp
+++ b/kontact/plugins/newsticker/kcmkontactknt.cpp
@@ -146,7 +146,7 @@ KCMKontactKNT::KCMKontactKNT( TQWidget *parent, const char *name )
connect( mNewButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( newFeed() ) );
connect( mDeleteButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( deleteFeed() ) );
- KAcceleratorManager::manage( this );
+ TDEAcceleratorManager::manage( this );
load();
}
@@ -334,7 +334,7 @@ void KCMKontactKNT::initGUI()
TQGridLayout *layout = new TQGridLayout( this, 2, 3, KDialog::marginHint(),
KDialog::spacingHint() );
- mAllNews = new KListView( this );
+ mAllNews = new TDEListView( this );
mAllNews->addColumn( i18n( "All" ) );
mAllNews->setRootIsDecorated( true );
mAllNews->setFullWidth( true );
@@ -351,7 +351,7 @@ void KCMKontactKNT::initGUI()
vbox->addWidget( mRemoveButton );
vbox->addStretch();
- mSelectedNews = new KListView( this );
+ mSelectedNews = new TDEListView( this );
mSelectedNews->addColumn( i18n( "Selected" ) );
mSelectedNews->setFullWidth( true );
layout->addWidget( mSelectedNews, 0, 2 );
diff --git a/kontact/plugins/newsticker/kcmkontactknt.h b/kontact/plugins/newsticker/kcmkontactknt.h
index cd3cbf0ee..a44cae7fb 100644
--- a/kontact/plugins/newsticker/kcmkontactknt.h
+++ b/kontact/plugins/newsticker/kcmkontactknt.h
@@ -30,7 +30,7 @@ class TQListViewItem;
class TQSpinxBox;
class TDEAboutData;
-class KListView;
+class TDEListView;
class KPushButton;
class NewsItem;
@@ -68,8 +68,8 @@ class KCMKontactKNT : public TDECModule
bool dcopActive() const;
- KListView *mAllNews;
- KListView *mSelectedNews;
+ TDEListView *mAllNews;
+ TDEListView *mSelectedNews;
TQListViewItem *mCustomItem;
KPushButton *mAddButton;
diff --git a/kontact/plugins/specialdates/kcmsdsummary.cpp b/kontact/plugins/specialdates/kcmsdsummary.cpp
index a15d1118c..e88911bad 100644
--- a/kontact/plugins/specialdates/kcmsdsummary.cpp
+++ b/kontact/plugins/specialdates/kcmsdsummary.cpp
@@ -63,7 +63,7 @@ KCMSDSummary::KCMSDSummary( TQWidget *parent, const char *name )
connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( modified() ) );
connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( customDaysChanged( int ) ) );
- KAcceleratorManager::manage( this );
+ TDEAcceleratorManager::manage( this );
load();
}
diff --git a/kontact/plugins/specialdates/sdsummarywidget.cpp b/kontact/plugins/specialdates/sdsummarywidget.cpp
index 4857f1035..32aab8d0a 100644
--- a/kontact/plugins/specialdates/sdsummarywidget.cpp
+++ b/kontact/plugins/specialdates/sdsummarywidget.cpp
@@ -574,7 +574,7 @@ void SDSummaryWidget::viewContact( const TQString &uid )
void SDSummaryWidget::popupMenu( const TQString &uid )
{
- KPopupMenu popup( this );
+ TDEPopupMenu popup( this );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kmail", KIcon::Small ),
i18n( "Send &Mail" ), 0 );
popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Small ),
diff --git a/kontact/plugins/summary/kcmkontactsummary.cpp b/kontact/plugins/summary/kcmkontactsummary.cpp
index 91f33d3fc..e1e3c7f00 100644
--- a/kontact/plugins/summary/kcmkontactsummary.cpp
+++ b/kontact/plugins/summary/kcmkontactsummary.cpp
@@ -51,7 +51,7 @@ extern "C"
class PluginItem : public TQCheckListItem
{
public:
- PluginItem( KPluginInfo *info, KListView *parent )
+ PluginItem( KPluginInfo *info, TDEListView *parent )
: TQCheckListItem( parent, TQString(), TQCheckListItem::CheckBox ),
mInfo( info )
{
@@ -79,7 +79,7 @@ class PluginItem : public TQCheckListItem
};
PluginView::PluginView( TQWidget *parent, const char *name )
- : KListView( parent, name )
+ : TDEListView( parent, name )
{
addColumn( i18n( "Name" ) );
setAllColumnsShowFocus( true );
diff --git a/kontact/plugins/summary/kcmkontactsummary.h b/kontact/plugins/summary/kcmkontactsummary.h
index 3e624798d..75cd79821 100644
--- a/kontact/plugins/summary/kcmkontactsummary.h
+++ b/kontact/plugins/summary/kcmkontactsummary.h
@@ -30,7 +30,7 @@
class KPluginInfo;
-class PluginView : public KListView
+class PluginView : public TDEListView
{
Q_OBJECT
diff --git a/kontact/plugins/summary/summaryview_part.cpp b/kontact/plugins/summary/summaryview_part.cpp
index 27dac829f..335651cbd 100644
--- a/kontact/plugins/summary/summaryview_part.cpp
+++ b/kontact/plugins/summary/summaryview_part.cpp
@@ -88,7 +88,7 @@ SummaryViewPart::SummaryViewPart( Kontact::Core *core, const char*,
connect( this, TQT_SIGNAL( textChanged( const TQString& ) ),
info, TQT_SIGNAL( textChanged( const TQString& ) ) );
- mConfigAction = new KAction( i18n( "&Configure Summary View..." ),
+ mConfigAction = new TDEAction( i18n( "&Configure Summary View..." ),
"configure", 0, this,
TQT_SLOT( slotConfigure() ), actionCollection(),
"summaryview_configure" );
diff --git a/kontact/plugins/summary/summaryview_part.h b/kontact/plugins/summary/summaryview_part.h
index 9de42432e..03b37d033 100644
--- a/kontact/plugins/summary/summaryview_part.h
+++ b/kontact/plugins/summary/summaryview_part.h
@@ -46,7 +46,7 @@ namespace KParts
class TQFrame;
class TQLabel;
class TQGridLayout;
-class KAction;
+class TDEAction;
class KCMultiDialog;
class SummaryViewPart : public KParts::ReadOnlyPart
@@ -95,7 +95,7 @@ class SummaryViewPart : public KParts::ReadOnlyPart
TQVBoxLayout *mRightColumn;
TQLabel *mUsernameLabel;
TQLabel *mDateLabel;
- KAction *mConfigAction;
+ TDEAction *mConfigAction;
TQStringList mLeftColumnSummaries;
TQStringList mRightColumnSummaries;
diff --git a/kontact/plugins/summary/summaryview_plugin.cpp b/kontact/plugins/summary/summaryview_plugin.cpp
index a7bb89960..21c3a24c5 100644
--- a/kontact/plugins/summary/summaryview_plugin.cpp
+++ b/kontact/plugins/summary/summaryview_plugin.cpp
@@ -39,7 +39,7 @@ SummaryView::SummaryView( Kontact::Core *core, const char *name, const TQStringL
{
setInstance( SummaryViewFactory::instance() );
- mSyncAction = new KSelectAction( i18n( "Synchronize All" ), "reload", 0, 0,
+ mSyncAction = new TDESelectAction( i18n( "Synchronize All" ), "reload", 0, 0,
0, actionCollection(),
"kontact_summary_sync" );
connect( mSyncAction, TQT_SIGNAL( activated( const TQString& ) ), this, TQT_SLOT( syncAccount( const TQString& ) ) );
@@ -90,8 +90,8 @@ void SummaryView::doSync()
for ( TQValueList<Kontact::Plugin*>::ConstIterator it = pluginList.begin(), end = pluginList.end();
it != end; ++it ) {
// execute all sync actions but our own
- TQPtrList<KAction> *actions = (*it)->syncActions();
- for ( TQPtrList<KAction>::Iterator jt = actions->begin(), end = actions->end(); jt != end; ++jt ) {
+ TQPtrList<TDEAction> *actions = (*it)->syncActions();
+ for ( TQPtrList<TDEAction>::Iterator jt = actions->begin(), end = actions->end(); jt != end; ++jt ) {
if ( *jt != mSyncAction )
(*jt)->activate();
}
diff --git a/kontact/plugins/summary/summaryview_plugin.h b/kontact/plugins/summary/summaryview_plugin.h
index 336f43dbd..ad14ce2ec 100644
--- a/kontact/plugins/summary/summaryview_plugin.h
+++ b/kontact/plugins/summary/summaryview_plugin.h
@@ -28,7 +28,7 @@
#include <tqmap.h>
-class KSelectAction;
+class TDESelectAction;
class SummaryViewPart;
@@ -57,7 +57,7 @@ class SummaryView : public Kontact::Plugin
private:
TDEAboutData *mAboutData;
SummaryViewPart *mPart;
- KSelectAction *mSyncAction;
+ TDESelectAction *mSyncAction;
};
#endif
diff --git a/kontact/plugins/test/test_part.cpp b/kontact/plugins/test/test_part.cpp
index b8e6f70cb..846717ee8 100644
--- a/kontact/plugins/test/test_part.cpp
+++ b/kontact/plugins/test/test_part.cpp
@@ -48,7 +48,7 @@ TestPart::TestPart(TQObject *parent, const char *name) // ## parentWidget
m_edit = new TQTextEdit;
setWidget(m_edit);
setXMLFile("testpartui.rc");
- new KAction( "new contact (test)", 0, this, TQT_SLOT( newContact() ), actionCollection(), "test_deleteevent" );
+ new TDEAction( "new contact (test)", 0, this, TQT_SLOT( newContact() ), actionCollection(), "test_deleteevent" );
m_kab_stub = 0L;
new KParts::SideBarExtension(new TQComboBox(this), this, "sbe");
diff --git a/kontact/plugins/test/test_plugin.cpp b/kontact/plugins/test/test_plugin.cpp
index bf5d00577..b5ca0462f 100644
--- a/kontact/plugins/test/test_plugin.cpp
+++ b/kontact/plugins/test/test_plugin.cpp
@@ -39,7 +39,7 @@ TestPlugin::TestPlugin(Kontact::Core *_core, const char *name, const TQStringLis
{
setInstance(TestPluginFactory::instance());
- insertNewAction(new KAction("Test", 0, this, TQT_SLOT(slotTestMenu()), actionCollection(), "edit_test"));
+ insertNewAction(new TDEAction("Test", 0, this, TQT_SLOT(slotTestMenu()), actionCollection(), "edit_test"));
setXMLFile("kptestplugin.rc");
}
diff --git a/kontact/src/iconsidepane.cpp b/kontact/src/iconsidepane.cpp
index 2fef3e0b2..de16ee72d 100644
--- a/kontact/src/iconsidepane.cpp
+++ b/kontact/src/iconsidepane.cpp
@@ -251,7 +251,7 @@ void EntryItem::setPaintActive( bool paintActive )
}
Navigator::Navigator( IconSidePane *parent, const char *name )
- : KListBox( parent, name ), mSidePane( parent ),
+ : TDEListBox( parent, name ), mSidePane( parent ),
mShowIcons( true ), mShowText( true )
{
mMouseOn = 0;
@@ -259,7 +259,7 @@ Navigator::Navigator( IconSidePane *parent, const char *name )
mViewMode = sizeIntToEnum( Prefs::self()->sidePaneIconSize() );
mShowIcons = Prefs::self()->sidePaneShowIcons();
mShowText = Prefs::self()->sidePaneShowText();
- setSelectionMode( KListBox::Single );
+ setSelectionMode( TDEListBox::Single );
viewport()->setBackgroundMode( PaletteBackground );
setFrameStyle( TQFrame::NoFrame );
setHScrollBarMode( TQScrollView::AlwaysOff );
@@ -400,13 +400,13 @@ void Navigator::resizeEvent( TQResizeEvent *event )
void Navigator::enterEvent( TQEvent *event )
{
// work around TQt behaviour: onItem is not emmitted in enterEvent()
- KListBox::enterEvent( event );
+ TDEListBox::enterEvent( event );
emit onItem( itemAt( mapFromGlobal( TQCursor::pos() ) ) );
}
void Navigator::leaveEvent( TQEvent *event )
{
- KListBox::leaveEvent( event );
+ TDEListBox::leaveEvent( event );
slotMouseOn( 0 );
mMouseOn = 0;
}
@@ -443,7 +443,7 @@ IconViewMode Navigator::sizeIntToEnum(int size) const
void Navigator::slotShowRMBMenu( TQListBoxItem *, const TQPoint &pos )
{
- KPopupMenu menu;
+ TDEPopupMenu menu;
menu.insertTitle( i18n( "Icon Size" ) );
menu.insertItem( i18n( "Large" ), (int)LargeIcons );
menu.setItemEnabled( (int)LargeIcons, mShowIcons );
diff --git a/kontact/src/iconsidepane.h b/kontact/src/iconsidepane.h
index 35859bda0..f7887b83e 100644
--- a/kontact/src/iconsidepane.h
+++ b/kontact/src/iconsidepane.h
@@ -115,7 +115,7 @@ class EntryItemToolTip : public TQToolTip
/**
Navigation pane showing all parts relevant to the user
*/
-class Navigator : public KListBox
+class Navigator : public TDEListBox
{
Q_OBJECT
@@ -132,7 +132,7 @@ class Navigator : public KListBox
IconViewMode viewMode() { return mViewMode; }
IconViewMode sizeIntToEnum(int size) const;
- const TQPtrList<KAction> & actions() { return mActions; }
+ const TQPtrList<TDEAction> & actions() { return mActions; }
bool showIcons() const { return mShowIcons; }
bool showText() const { return mShowText; }
signals:
@@ -166,7 +166,7 @@ class Navigator : public KListBox
EntryItem* mHighlightItem;
TQSignalMapper *mMapper;
- TQPtrList<KAction> mActions;
+ TQPtrList<TDEAction> mActions;
bool mShowIcons;
bool mShowText;
};
@@ -185,7 +185,7 @@ class IconSidePane : public SidePaneBase
virtual void updatePlugins();
virtual void selectPlugin( Kontact::Plugin* );
virtual void selectPlugin( const TQString &name );
- const TQPtrList<KAction> & actions() { return mNavigator->actions(); }
+ const TQPtrList<TDEAction> & actions() { return mNavigator->actions(); }
private:
Navigator *mNavigator;
diff --git a/kontact/src/kcmkontact.h b/kontact/src/kcmkontact.h
index 6e0c402af..f19980e29 100644
--- a/kontact/src/kcmkontact.h
+++ b/kontact/src/kcmkontact.h
@@ -34,7 +34,7 @@ class TQComboBox;
class TQListViewItem;
class TDEAboutData;
-class KListView;
+class TDEListView;
class KcmKontact : public KPrefsModule
{
diff --git a/kontact/src/main.cpp b/kontact/src/main.cpp
index 17b4710a7..1fa4e7f72 100644
--- a/kontact/src/main.cpp
+++ b/kontact/src/main.cpp
@@ -178,7 +178,7 @@ int main( int argc, char **argv )
KontactApp app;
if ( app.restoringSession() ) {
// There can only be one main window
- if ( KMainWindow::canBeRestored( 1 ) ) {
+ if ( TDEMainWindow::canBeRestored( 1 ) ) {
Kontact::MainWindow *mainWindow = new Kontact::MainWindow();
app.setMainWindow( mainWindow );
app.setSessionRestored( true );
@@ -188,8 +188,8 @@ int main( int argc, char **argv )
}
bool ret = app.exec();
- while ( KMainWindow::memberList->first() )
- delete KMainWindow::memberList->first();
+ while ( TDEMainWindow::memberList->first() )
+ delete TDEMainWindow::memberList->first();
return ret;
}
diff --git a/kontact/src/mainwindow.cpp b/kontact/src/mainwindow.cpp
index 180b087b3..c7976bd42 100644
--- a/kontact/src/mainwindow.cpp
+++ b/kontact/src/mainwindow.cpp
@@ -132,7 +132,7 @@ void MainWindow::initGUI()
for ( it = mPluginInfos.begin(); it != mPluginInfos.end(); ++it ) {
(*it)->load();
- KAction *action = new KAction( (*it)->name(), (*it)->icon(), KShortcut(),
+ TDEAction *action = new TDEAction( (*it)->name(), (*it)->icon(), TDEShortcut(),
TQT_TQOBJECT(this), TQT_SLOT(slotActionTriggered()),
actionCollection(), (*it)->pluginName().latin1() );
action->setName( (*it)->pluginName().latin1() );
@@ -334,8 +334,8 @@ void MainWindow::initAboutScreen()
void MainWindow::setupActions()
{
KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( slotQuit() ), actionCollection() );
- mNewActions = new KToolBarPopupAction( KGuiItem( i18n( "New" ), "" ),
- KStdAccel::shortcut(KStdAccel::New), TQT_TQOBJECT(this), TQT_SLOT( slotNewClicked() ),
+ mNewActions = new TDEToolBarPopupAction( KGuiItem( i18n( "New" ), "" ),
+ TDEStdAccel::shortcut(TDEStdAccel::New), TQT_TQOBJECT(this), TQT_SLOT( slotNewClicked() ),
actionCollection(), "action_new" );
TDEConfig* const cfg = Prefs::self()->config();
@@ -343,19 +343,19 @@ void MainWindow::setupActions()
mSyncActionsEnabled = cfg->readBoolEntry( "GroupwareMailFoldersEnabled", true );
if ( mSyncActionsEnabled ) {
- mSyncActions = new KToolBarPopupAction( KGuiItem( i18n( "Synchronize" ), "kitchensync" ),
- KStdAccel::shortcut(KStdAccel::Reload), TQT_TQOBJECT(this), TQT_SLOT( slotSyncClicked() ),
+ mSyncActions = new TDEToolBarPopupAction( KGuiItem( i18n( "Synchronize" ), "kitchensync" ),
+ TDEStdAccel::shortcut(TDEStdAccel::Reload), TQT_TQOBJECT(this), TQT_SLOT( slotSyncClicked() ),
actionCollection(), "action_sync" );
}
- new KAction( i18n( "Configure Kontact..." ), "configure", 0, TQT_TQOBJECT(this), TQT_SLOT( slotPreferences() ),
+ new TDEAction( i18n( "Configure Kontact..." ), "configure", 0, TQT_TQOBJECT(this), TQT_SLOT( slotPreferences() ),
actionCollection(), "settings_configure_kontact" );
- new KAction( i18n( "Configure &Profiles..." ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotConfigureProfiles() ),
+ new TDEAction( i18n( "Configure &Profiles..." ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotConfigureProfiles() ),
actionCollection(), "settings_configure_kontact_profiles" );
- new KAction( i18n( "&Kontact Introduction" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotShowIntroduction() ),
+ new TDEAction( i18n( "&Kontact Introduction" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotShowIntroduction() ),
actionCollection(), "help_introduction" );
- new KAction( i18n( "&Tip of the Day" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotShowTip() ),
+ new TDEAction( i18n( "&Tip of the Day" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotShowTip() ),
actionCollection(), "help_tipofday" );
KWidgetAction* spacerAction = new KWidgetAction( new TQWidget( this ), "SpacerAction", "", 0, 0, actionCollection(), "navigator_spacer_item" );
@@ -468,7 +468,7 @@ Plugin *MainWindow::pluginFromInfo( const KPluginInfo *info )
return 0;
}
-Plugin *MainWindow::pluginFromAction( const KAction *action )
+Plugin *MainWindow::pluginFromAction( const TDEAction *action )
{
PluginList::ConstIterator end = mPlugins.end();
for ( PluginList::ConstIterator it = mPlugins.begin(); it != end; ++it ) {
@@ -479,7 +479,7 @@ Plugin *MainWindow::pluginFromAction( const KAction *action )
return 0;
}
-bool MainWindow::isPluginLoadedByAction( const KAction *action )
+bool MainWindow::isPluginLoadedByAction( const TDEAction *action )
{
KPluginInfo::List::ConstIterator it;
for ( it = mPluginInfos.begin(); it != mPluginInfos.end(); ++it ) {
@@ -499,15 +499,15 @@ bool MainWindow::isPluginLoadedByAction( const KAction *action )
void MainWindow::sortActionsByWeight()
{
- TQPtrList<KAction> sorted;
+ TQPtrList<TDEAction> sorted;
- TQPtrListIterator<KAction> eit( mActionPlugins );
- KAction *action;
+ TQPtrListIterator<TDEAction> eit( mActionPlugins );
+ TDEAction *action;
while ( ( action = eit.current() ) != 0 ) {
++eit;
- TQPtrListIterator<KAction> sortIt( sorted );
+ TQPtrListIterator<TDEAction> sortIt( sorted );
uint at = 0;
- KAction *saction;
+ TDEAction *saction;
Plugin *p1 = pluginFromAction( action );
while ( ( saction = sortIt.current() ) != 0 ) {
Plugin *p2 = pluginFromAction( saction );
@@ -579,8 +579,8 @@ void MainWindow::loadPlugins()
for ( i = 0; i < plugins.count(); ++ i ) {
Plugin *plugin = plugins.at( i );
- KAction *action;
- TQPtrList<KAction> *actionList = plugin->newActions();
+ TDEAction *action;
+ TQPtrList<TDEAction> *actionList = plugin->newActions();
for ( action = actionList->first(); action; action = actionList->next() ) {
kdDebug(5600) << "Plugging " << action->name() << endl;
@@ -618,22 +618,22 @@ void MainWindow::unloadPlugins()
void MainWindow::updateShortcuts()
{
- TQPtrList<KAction> loadedActions;
+ TQPtrList<TDEAction> loadedActions;
sortActionsByWeight();
- TQPtrListIterator<KAction> it( mActionPlugins );
+ TQPtrListIterator<TDEAction> it( mActionPlugins );
int i = 1;
- KAction *action;
+ TDEAction *action;
while ( ( action = it.current() ) != 0 ) {
++it;
if ( isPluginLoadedByAction( action ) ) {
loadedActions.append( action );
TQString shortcut = TQString( "CTRL+%1" ).arg( i );
- action->setShortcut( KShortcut( shortcut ) );
+ action->setShortcut( TDEShortcut( shortcut ) );
i++;
} else {
- action->setShortcut( KShortcut() );
+ action->setShortcut( TDEShortcut() );
}
}
unplugActionList( "navigator_actionlist" );
@@ -647,8 +647,8 @@ bool MainWindow::removePlugin( const KPluginInfo *info )
if ( ( *it )->identifier() == info->pluginName() ) {
Plugin *plugin = *it;
- KAction *action;
- TQPtrList<KAction> *actionList = plugin->newActions();
+ TDEAction *action;
+ TQPtrList<TDEAction> *actionList = plugin->newActions();
for ( action = actionList->first(); action; action = actionList->next() ) {
kdDebug(5600) << "Unplugging " << action->name() << endl;
action->unplug( mNewActions->popupMenu() );
@@ -728,7 +728,7 @@ void MainWindow::slotActivePartChanged( KParts::Part *part )
void MainWindow::slotNewClicked()
{
- KAction *action = mCurrentPlugin->newActions()->first();
+ TDEAction *action = mCurrentPlugin->newActions()->first();
if ( action ) {
action->activate();
} else {
@@ -745,7 +745,7 @@ void MainWindow::slotNewClicked()
void MainWindow::slotSyncClicked()
{
- KAction *action = mCurrentPlugin->syncActions()->first();
+ TDEAction *action = mCurrentPlugin->syncActions()->first();
if ( action ) {
action->activate();
} else {
@@ -760,15 +760,15 @@ void MainWindow::slotSyncClicked()
}
}
-KToolBar* Kontact::MainWindow::findToolBar(const char* name)
+TDEToolBar* Kontact::MainWindow::findToolBar(const char* name)
{
- // like KMainWindow::toolBar, but which doesn't create the toolbar if not found
- return static_cast<KToolBar *>(TQT_TQWIDGET(child(name, "KToolBar")));
+ // like TDEMainWindow::toolBar, but which doesn't create the toolbar if not found
+ return static_cast<TDEToolBar *>(TQT_TQWIDGET(child(name, "TDEToolBar")));
}
void MainWindow::slotActionTriggered()
{
- const KAction *actionSender = static_cast<const KAction*>( sender() );
+ const TDEAction *actionSender = static_cast<const TDEAction*>( sender() );
TQString identifier = actionSender->name();
if ( !identifier.isEmpty() ) {
selectPlugin( identifier );
@@ -836,15 +836,15 @@ void MainWindow::selectPlugin( Kontact::Plugin *plugin )
view->setFocus();
mCurrentPlugin = plugin;
- KAction *newAction = plugin->newActions()->first();
- KAction *syncAction = plugin->syncActions()->first();
+ TDEAction *newAction = plugin->newActions()->first();
+ TDEAction *syncAction = plugin->syncActions()->first();
createGUI( plugin->part() );
- KToolBar* navigatorToolBar = findToolBar( "navigatorToolBar" );
+ TDEToolBar* navigatorToolBar = findToolBar( "navigatorToolBar" );
// Let the navigator toolbar be always the last one, if it's in the top dockwindow
if ( navigatorToolBar && !navigatorToolBar->isHidden() &&
- navigatorToolBar->barPos() == KToolBar::Top ) {
+ navigatorToolBar->barPos() == TDEToolBar::Top ) {
topDock()->moveDockWindow( navigatorToolBar, -1 );
}
@@ -885,9 +885,9 @@ void MainWindow::selectPlugin( Kontact::Plugin *plugin )
TQStringList::ConstIterator it;
for ( it = invisibleActions.begin(); it != invisibleActions.end(); ++it ) {
- KAction *action = part->actionCollection()->action( (*it).latin1() );
+ TDEAction *action = part->actionCollection()->action( (*it).latin1() );
if ( action ) {
- TQPtrListIterator<KToolBar> it( toolBarIterator() );
+ TQPtrListIterator<TDEToolBar> it( toolBarIterator() );
for ( ; it.current() ; ++it ) {
action->unplug( it.current() );
}
diff --git a/kontact/src/mainwindow.h b/kontact/src/mainwindow.h
index e9ddc121f..57df05c07 100644
--- a/kontact/src/mainwindow.h
+++ b/kontact/src/mainwindow.h
@@ -42,7 +42,7 @@ class TQSplitter;
class TQVBox;
class TQFrame;
-class KAction;
+class TDEAction;
class TDEConfig;
class KPluginInfo;
class KRSqueezedTextLabel;
@@ -62,7 +62,7 @@ class IconSidePane;
class Plugin;
typedef TQValueList<Kontact::Plugin*> PluginList;
-typedef TQPtrList<KAction> ActionPluginList;
+typedef TQPtrList<TDEAction> ActionPluginList;
class MainWindow : public Kontact::Core, public KDCOPServiceStarter, public KontactIface
{
@@ -117,9 +117,9 @@ class MainWindow : public Kontact::Core, public KDCOPServiceStarter, public Kont
void sortActionsByWeight();
bool isPluginLoaded( const KPluginInfo * );
- bool isPluginLoadedByAction( const KAction *action );
+ bool isPluginLoadedByAction( const TDEAction *action );
Kontact::Plugin *pluginFromInfo( const KPluginInfo * );
- Kontact::Plugin *pluginFromAction( const KAction * );
+ Kontact::Plugin *pluginFromAction( const TDEAction * );
void loadPlugins();
void unloadPlugins();
void updateShortcuts();
@@ -133,7 +133,7 @@ class MainWindow : public Kontact::Core, public KDCOPServiceStarter, public Kont
virtual void saveProperties( TDEConfig *config );
void paintAboutScreen( const TQString& msg );
static TQString introductionString();
- KToolBar* findToolBar(const char* name);
+ TDEToolBar* findToolBar(const char* name);
private slots:
void pluginsChanged();
@@ -146,8 +146,8 @@ class MainWindow : public Kontact::Core, public KDCOPServiceStarter, public Kont
TQSplitter *mSplitter;
- KToolBarPopupAction *mNewActions;
- KToolBarPopupAction *mSyncActions;
+ TDEToolBarPopupAction *mNewActions;
+ TDEToolBarPopupAction *mSyncActions;
IconSidePane *mSidePane;
TQWidgetStack *mPartsStack;
Plugin *mCurrentPlugin;
@@ -164,7 +164,7 @@ class MainWindow : public Kontact::Core, public KDCOPServiceStarter, public Kont
TQString mActiveModule;
TQMap<TQString, TQGuardedPtr<TQWidget> > mFocusWidgets;
- TQMap<Kontact::Plugin *, KAction *> mPluginAction;
+ TQMap<Kontact::Plugin *, TDEAction *> mPluginAction;
AboutDialog *mAboutDialog;
bool mReallyClose;
diff --git a/kontact/src/profiledialog.cpp b/kontact/src/profiledialog.cpp
index e959ad865..6d1372deb 100644
--- a/kontact/src/profiledialog.cpp
+++ b/kontact/src/profiledialog.cpp
@@ -45,7 +45,7 @@ Kontact::ProfileDialog::ProfileDialog( TQWidget* parent, WFlags flags ) : KDialo
TQHBoxLayout* horizontalLayout = new TQHBoxLayout( mainWidget );
horizontalLayout->setSpacing( 5 );
- m_list = new KListView( mainWidget );
+ m_list = new TDEListView( mainWidget );
m_list->addColumn( i18n("Name") );
m_list->addColumn( i18n("Description") );
m_list->setSelectionMode( TQListView::Single );
diff --git a/kontact/src/profiledialog.h b/kontact/src/profiledialog.h
index 640fec99a..73a44ae55 100644
--- a/kontact/src/profiledialog.h
+++ b/kontact/src/profiledialog.h
@@ -32,7 +32,7 @@
class TQListViewItem;
-class KListView;
+class TDEListView;
class TQPushButton;
namespace Kontact {
@@ -76,7 +76,7 @@ private slots:
void profileLoaded( const TQString& id );
private:
- KListView* m_list;
+ TDEListView* m_list;
TQPushButton* m_newProfileButton;
TQPushButton* m_deleteProfileButton;
TQPushButton* m_saveProfileButton;
diff --git a/kontact/src/sidepanebase.h b/kontact/src/sidepanebase.h
index 47ed09322..c8e83442c 100644
--- a/kontact/src/sidepanebase.h
+++ b/kontact/src/sidepanebase.h
@@ -56,7 +56,7 @@ class SidePaneBase : public TQVBox
private:
Core* mCore;
- KActionCollection *mActionCollection;
+ TDEActionCollection *mActionCollection;
};
}