summaryrefslogtreecommitdiffstats
path: root/kopete
diff options
context:
space:
mode:
Diffstat (limited to 'kopete')
-rw-r--r--kopete/kopete/addaccountwizard/addaccountwizardpage1.ui2
-rw-r--r--kopete/kopete/addcontactwizard/addcontactwizard_base.ui4
-rw-r--r--kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui2
-rw-r--r--kopete/kopete/chatwindow/chatmemberslistwidget.cpp18
-rw-r--r--kopete/kopete/chatwindow/chatmemberslistwidget.h6
-rw-r--r--kopete/kopete/chatwindow/chatmessagepart.cpp20
-rw-r--r--kopete/kopete/chatwindow/chatmessagepart.h4
-rw-r--r--kopete/kopete/chatwindow/chatview.cpp2
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindow.cpp50
-rw-r--r--kopete/kopete/chatwindow/kopetechatwindow.h44
-rw-r--r--kopete/kopete/chatwindow/kopeteemailwindow.cpp16
-rw-r--r--kopete/kopete/chatwindow/kopeteemoticonaction.cpp18
-rw-r--r--kopete/kopete/chatwindow/kopeteemoticonaction.h14
-rw-r--r--kopete/kopete/chatwindow/krichtexteditpart.cpp30
-rw-r--r--kopete/kopete/chatwindow/krichtexteditpart.h34
-rw-r--r--kopete/kopete/config/accounts/kopeteaccountconfig.cpp4
-rw-r--r--kopete/kopete/config/accounts/kopeteaccountconfigbase.ui2
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui2
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_colors.ui8
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_emoticons.ui2
-rw-r--r--kopete/kopete/config/appearance/emoticonseditdialog.cpp4
-rw-r--r--kopete/kopete/config/appearance/emoticonseditwidget.ui2
-rw-r--r--kopete/kopete/config/appearance/tooltipeditdialog.cpp10
-rw-r--r--kopete/kopete/config/appearance/tooltipeditwidget.ui4
-rw-r--r--kopete/kopete/contactlist/kopeteaddrbookexport.cpp6
-rw-r--r--kopete/kopete/contactlist/kopeteaddrbookexport.h8
-rw-r--r--kopete/kopete/contactlist/kopeteaddrbookexportui.ui8
-rw-r--r--kopete/kopete/contactlist/kopetecontactlistview.cpp56
-rw-r--r--kopete/kopete/contactlist/kopetecontactlistview.h40
-rw-r--r--kopete/kopete/contactlist/kopetegrouplistaction.cpp4
-rw-r--r--kopete/kopete/contactlist/kopetegrouplistaction.h4
-rw-r--r--kopete/kopete/contactlist/kopetegroupviewitem.cpp10
-rw-r--r--kopete/kopete/contactlist/kopetegroupviewitem.h2
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.cpp24
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.h8
-rw-r--r--kopete/kopete/kopeteapplication.cpp4
-rw-r--r--kopete/kopete/kopeteeditglobalidentitywidget.cpp2
-rw-r--r--kopete/kopete/kopetewindow.cpp88
-rw-r--r--kopete/kopete/kopetewindow.h58
-rw-r--r--kopete/kopete/systemtray.cpp4
-rw-r--r--kopete/kopete/systemtray.h10
-rw-r--r--kopete/libkopete/compat/kpixmapregionselectorwidget.cpp10
-rw-r--r--kopete/libkopete/compat/kpixmapregionselectorwidget.h6
-rw-r--r--kopete/libkopete/kautoconfig.cpp8
-rw-r--r--kopete/libkopete/kopeteaccount.cpp6
-rw-r--r--kopete/libkopete/kopeteaccount.h4
-rw-r--r--kopete/libkopete/kopeteaccountmanager.h2
-rw-r--r--kopete/libkopete/kopeteawayaction.cpp8
-rw-r--r--kopete/libkopete/kopeteawayaction.h12
-rw-r--r--kopete/libkopete/kopetecommandhandler.cpp8
-rw-r--r--kopete/libkopete/kopetecommandhandler.h4
-rw-r--r--kopete/libkopete/kopetecontact.cpp20
-rw-r--r--kopete/libkopete/kopetecontact.h12
-rw-r--r--kopete/libkopete/kopetecontactlist.h2
-rw-r--r--kopete/libkopete/kopeteonlinestatus.h2
-rw-r--r--kopete/libkopete/kopeteonlinestatusmanager.cpp8
-rw-r--r--kopete/libkopete/kopeteonlinestatusmanager.h6
-rw-r--r--kopete/libkopete/kopeteplugin.h2
-rw-r--r--kopete/libkopete/private/kopetecommand.cpp6
-rw-r--r--kopete/libkopete/private/kopetecommand.h4
-rw-r--r--kopete/libkopete/ui/accountselector.cpp8
-rw-r--r--kopete/libkopete/ui/accountselector.h6
-rw-r--r--kopete/libkopete/ui/addressbookselectorwidget.cpp2
-rw-r--r--kopete/libkopete/ui/addressbookselectorwidget_base.ui4
-rw-r--r--kopete/libkopete/ui/addresseeitem.cpp2
-rw-r--r--kopete/libkopete/ui/addresseeitem.h2
-rw-r--r--kopete/libkopete/ui/kopetecontactaction.cpp6
-rw-r--r--kopete/libkopete/ui/kopetecontactaction.h6
-rw-r--r--kopete/libkopete/ui/kopetelistview.cpp10
-rw-r--r--kopete/libkopete/ui/kopetelistview.h4
-rw-r--r--kopete/libkopete/ui/kopetelistviewitem.cpp14
-rw-r--r--kopete/libkopete/ui/kopetelistviewitem.h2
-rw-r--r--kopete/libkopete/ui/kopetelistviewsearchline.cpp8
-rw-r--r--kopete/libkopete/ui/kopetelistviewsearchline.h4
-rw-r--r--kopete/libkopete/ui/kopetestdaction.cpp52
-rw-r--r--kopete/libkopete/ui/kopetestdaction.h28
-rw-r--r--kopete/libkopete/ui/kopeteview.h4
-rw-r--r--kopete/plugins/alias/aliasdialog.ui2
-rw-r--r--kopete/plugins/alias/aliasdialogbase.ui2
-rw-r--r--kopete/plugins/contactnotes/contactnotesplugin.cpp2
-rw-r--r--kopete/plugins/contactnotes/contactnotesplugin.h4
-rw-r--r--kopete/plugins/cryptography/cryptographyguiclient.cpp2
-rw-r--r--kopete/plugins/cryptography/cryptographyguiclient.h4
-rw-r--r--kopete/plugins/cryptography/cryptographyplugin.cpp8
-rw-r--r--kopete/plugins/cryptography/kgpgselkey.cpp6
-rw-r--r--kopete/plugins/cryptography/kgpgselkey.h4
-rw-r--r--kopete/plugins/cryptography/popuppublic.cpp20
-rw-r--r--kopete/plugins/cryptography/popuppublic.h6
-rw-r--r--kopete/plugins/highlight/highlightprefsbase.ui2
-rw-r--r--kopete/plugins/history/historydialog.cpp34
-rw-r--r--kopete/plugins/history/historydialog.h8
-rw-r--r--kopete/plugins/history/historyguiclient.cpp2
-rw-r--r--kopete/plugins/history/historyguiclient.h8
-rw-r--r--kopete/plugins/history/historyplugin.cpp2
-rw-r--r--kopete/plugins/history/historyplugin.h2
-rw-r--r--kopete/plugins/history/historyviewer.ui4
-rw-r--r--kopete/plugins/latex/latexguiclient.cpp2
-rw-r--r--kopete/plugins/netmeeting/netmeetingguiclient.cpp2
-rw-r--r--kopete/plugins/nowlistening/DESIGN2
-rw-r--r--kopete/plugins/nowlistening/nowlisteningguiclient.cpp2
-rw-r--r--kopete/plugins/nowlistening/nowlisteningguiclient.h4
-rw-r--r--kopete/plugins/nowlistening/nowlisteningprefs.ui2
-rw-r--r--kopete/plugins/smpppdcs/smpppdcsprefs.ui2
-rw-r--r--kopete/plugins/statistics/statisticsdialog.cpp2
-rw-r--r--kopete/plugins/statistics/statisticsplugin.cpp2
-rw-r--r--kopete/plugins/statistics/statisticsplugin.h2
-rw-r--r--kopete/plugins/texteffect/texteffectprefs.ui2
-rw-r--r--kopete/plugins/translator/translatorguiclient.cpp2
-rw-r--r--kopete/plugins/translator/translatorplugin.cpp2
-rw-r--r--kopete/plugins/translator/translatorplugin.h4
-rw-r--r--kopete/plugins/webpresence/webpresenceplugin.h4
-rw-r--r--kopete/protocols/gadu/gaduaccount.cpp38
-rw-r--r--kopete/protocols/gadu/gaduaccount.h4
-rw-r--r--kopete/protocols/gadu/gaducontact.cpp8
-rw-r--r--kopete/protocols/gadu/gaducontact.h10
-rw-r--r--kopete/protocols/gadu/gaduprotocol.h4
-rw-r--r--kopete/protocols/gadu/ui/gadusearch.ui2
-rw-r--r--kopete/protocols/groupwise/gwaccount.cpp12
-rw-r--r--kopete/protocols/groupwise/gwaccount.h14
-rw-r--r--kopete/protocols/groupwise/gwcontact.cpp6
-rw-r--r--kopete/protocols/groupwise/gwcontact.h12
-rw-r--r--kopete/protocols/groupwise/gwmessagemanager.cpp22
-rw-r--r--kopete/protocols/groupwise/gwmessagemanager.h12
-rw-r--r--kopete/protocols/groupwise/ui/gwchatpropswidget.ui2
-rw-r--r--kopete/protocols/groupwise/ui/gwchatsearchwidget.ui2
-rw-r--r--kopete/protocols/groupwise/ui/gwcontactproperties.cpp2
-rw-r--r--kopete/protocols/groupwise/ui/gwcontactproperties.h4
-rw-r--r--kopete/protocols/groupwise/ui/gwcontactpropswidget.ui2
-rw-r--r--kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui2
-rw-r--r--kopete/protocols/irc/ircaccount.cpp12
-rw-r--r--kopete/protocols/irc/ircaccount.h10
-rw-r--r--kopete/protocols/irc/ircchannelcontact.cpp24
-rw-r--r--kopete/protocols/irc/ircchannelcontact.h30
-rw-r--r--kopete/protocols/irc/ircguiclient.cpp6
-rw-r--r--kopete/protocols/irc/ircprotocol.cpp2
-rw-r--r--kopete/protocols/irc/ircprotocol.h2
-rw-r--r--kopete/protocols/irc/ircservercontact.h6
-rw-r--r--kopete/protocols/irc/ircusercontact.cpp32
-rw-r--r--kopete/protocols/irc/ircusercontact.h16
-rw-r--r--kopete/protocols/irc/kcodecaction.cpp4
-rw-r--r--kopete/protocols/irc/kcodecaction.h4
-rw-r--r--kopete/protocols/irc/ui/channellist.cpp18
-rw-r--r--kopete/protocols/irc/ui/channellist.h4
-rw-r--r--kopete/protocols/irc/ui/irceditaccount.ui4
-rw-r--r--kopete/protocols/irc/ui/irceditaccountwidget.cpp12
-rw-r--r--kopete/protocols/irc/ui/irceditaccountwidget.h6
-rw-r--r--kopete/protocols/jabber/jabberaccount.cpp14
-rw-r--r--kopete/protocols/jabber/jabberaccount.h4
-rw-r--r--kopete/protocols/jabber/jabberbasecontact.h2
-rw-r--r--kopete/protocols/jabber/jabberbookmarks.cpp4
-rw-r--r--kopete/protocols/jabber/jabberbookmarks.h4
-rw-r--r--kopete/protocols/jabber/jabberchatsession.cpp4
-rw-r--r--kopete/protocols/jabber/jabbercontact.cpp40
-rw-r--r--kopete/protocols/jabber/jabbercontact.h2
-rw-r--r--kopete/protocols/jabber/jabbergroupcontact.cpp6
-rw-r--r--kopete/protocols/jabber/jabbergroupcontact.h2
-rw-r--r--kopete/protocols/jabber/jabbergroupmembercontact.cpp2
-rw-r--r--kopete/protocols/jabber/jabbergroupmembercontact.h2
-rw-r--r--kopete/protocols/jabber/jabbertransport.cpp18
-rw-r--r--kopete/protocols/jabber/jabbertransport.h2
-rw-r--r--kopete/protocols/meanwhile/meanwhileaccount.cpp6
-rw-r--r--kopete/protocols/meanwhile/meanwhileaccount.h2
-rw-r--r--kopete/protocols/meanwhile/meanwhilecontact.h4
-rw-r--r--kopete/protocols/meanwhile/meanwhileplugin.cpp2
-rw-r--r--kopete/protocols/meanwhile/meanwhileplugin.h2
-rw-r--r--kopete/protocols/msn/msnaccount.cpp14
-rw-r--r--kopete/protocols/msn/msnaccount.h12
-rw-r--r--kopete/protocols/msn/msnchatsession.cpp28
-rw-r--r--kopete/protocols/msn/msnchatsession.h14
-rw-r--r--kopete/protocols/msn/msncontact.cpp14
-rw-r--r--kopete/protocols/msn/msncontact.h16
-rw-r--r--kopete/protocols/msn/msnprotocol.h4
-rw-r--r--kopete/protocols/oscar/aim/aimaccount.cpp16
-rw-r--r--kopete/protocols/oscar/aim/aimaccount.h4
-rw-r--r--kopete/protocols/oscar/aim/aimcontact.cpp10
-rw-r--r--kopete/protocols/oscar/aim/aimcontact.h8
-rw-r--r--kopete/protocols/oscar/icq/icqaccount.cpp12
-rw-r--r--kopete/protocols/oscar/icq/icqaccount.h4
-rw-r--r--kopete/protocols/oscar/icq/icqcontact.cpp18
-rw-r--r--kopete/protocols/oscar/icq/icqcontact.h20
-rw-r--r--kopete/protocols/oscar/icq/ui/icqsearchbase.ui2
-rw-r--r--kopete/protocols/oscar/oscaraccount.h2
-rw-r--r--kopete/protocols/oscar/oscarcontact.h2
-rw-r--r--kopete/protocols/oscar/oscarmyselfcontact.h2
-rw-r--r--kopete/protocols/sms/smsaccount.cpp4
-rw-r--r--kopete/protocols/sms/smsaccount.h4
-rw-r--r--kopete/protocols/sms/smscontact.cpp6
-rw-r--r--kopete/protocols/sms/smscontact.h8
-rw-r--r--kopete/protocols/sms/smsprotocol.h4
-rw-r--r--kopete/protocols/testbed/testbedaccount.cpp8
-rw-r--r--kopete/protocols/testbed/testbedaccount.h12
-rw-r--r--kopete/protocols/testbed/testbedcontact.cpp6
-rw-r--r--kopete/protocols/testbed/testbedcontact.h10
-rw-r--r--kopete/protocols/winpopup/wpaccount.cpp12
-rw-r--r--kopete/protocols/winpopup/wpaccount.h8
-rw-r--r--kopete/protocols/winpopup/wpcontact.cpp4
-rw-r--r--kopete/protocols/winpopup/wpcontact.h8
-rw-r--r--kopete/protocols/winpopup/wpprotocol.cpp2
-rw-r--r--kopete/protocols/winpopup/wpprotocol.h6
-rw-r--r--kopete/protocols/yahoo/yahooaccount.cpp20
-rw-r--r--kopete/protocols/yahoo/yahooaccount.h14
-rw-r--r--kopete/protocols/yahoo/yahoochatsession.cpp18
-rw-r--r--kopete/protocols/yahoo/yahoochatsession.h4
-rw-r--r--kopete/protocols/yahoo/yahooconferencemessagemanager.cpp2
-rw-r--r--kopete/protocols/yahoo/yahooconferencemessagemanager.h6
-rw-r--r--kopete/protocols/yahoo/yahoocontact.cpp16
-rw-r--r--kopete/protocols/yahoo/yahoocontact.h16
-rw-r--r--kopete/protocols/yahoo/yahooprotocol.h6
208 files changed, 983 insertions, 983 deletions
diff --git a/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui b/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui
index 04ab9f9a..5c722a0e 100644
--- a/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui
+++ b/kopete/kopete/addaccountwizard/addaccountwizardpage1.ui
@@ -66,7 +66,7 @@
</spacer>
</vbox>
</widget>
- <widget class="KListView" row="1" column="1">
+ <widget class="TDEListView" row="1" column="1">
<column>
<property name="text">
<string>Name</string>
diff --git a/kopete/kopete/addcontactwizard/addcontactwizard_base.ui b/kopete/kopete/addcontactwizard/addcontactwizard_base.ui
index 26d3b909..ff9ec4dc 100644
--- a/kopete/kopete/addcontactwizard/addcontactwizard_base.ui
+++ b/kopete/kopete/addcontactwizard/addcontactwizard_base.ui
@@ -250,7 +250,7 @@
<cstring>groupList</cstring>
</property>
</widget>
- <widget class="KListView" row="6" column="0" rowspan="1" colspan="2">
+ <widget class="TDEListView" row="6" column="0" rowspan="1" colspan="2">
<column>
<property name="text">
<string>Groups</string>
@@ -343,7 +343,7 @@
<string>&lt;p&gt;&lt;i&gt;Note&lt;/i&gt;: If a messaging service is missing from the list, please make sure you have created an account for it in Kopete, and that it ready to add new contacts.&lt;/p&gt;</string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Account</string>
diff --git a/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui b/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui
index cc8d9ce0..5bd2f3a8 100644
--- a/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui
+++ b/kopete/kopete/addcontactwizard/fastaddcontactwizard_base.ui
@@ -80,7 +80,7 @@
<string>&lt;p&gt;&lt;h2&gt;Select IM Accounts&lt;/h2&gt;&lt;/p&gt;</string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Account</string>
diff --git a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp
index eed962f9..15b9fb56 100644
--- a/kopete/kopete/chatwindow/chatmemberslistwidget.cpp
+++ b/kopete/kopete/chatwindow/chatmemberslistwidget.cpp
@@ -40,7 +40,7 @@
class ChatMembersListWidget::ToolTip : public TQToolTip
{
public:
- ToolTip( KListView *parent )
+ ToolTip( TDEListView *parent )
: TQToolTip( parent->viewport() ), m_listView ( parent )
{
}
@@ -61,7 +61,7 @@ public:
}
private:
- KListView *m_listView;
+ TDEListView *m_listView;
};
//END ChatMembersListWidget::ToolTip
@@ -70,7 +70,7 @@ private:
//BEGIN ChatMembersListWidget::ContactItem
ChatMembersListWidget::ContactItem::ContactItem( ChatMembersListWidget *parent, Kopete::Contact *contact )
- : KListViewItem( parent ), m_contact( contact )
+ : TDEListViewItem( parent ), m_contact( contact )
{
TQString nick = m_contact->property(Kopete::Global::Properties::self()->nickName().key()).value().toString();
if ( nick.isEmpty() )
@@ -111,7 +111,7 @@ void ChatMembersListWidget::ContactItem::reposition()
int ourWeight = session->contactOnlineStatus(m_contact).weight();
TQListViewItem *after = 0;
- for ( TQListViewItem *it = KListViewItem::listView()->firstChild(); it; it = it->nextSibling() )
+ for ( TQListViewItem *it = TDEListViewItem::listView()->firstChild(); it; it = it->nextSibling() )
{
ChatMembersListWidget::ContactItem *item = static_cast<ChatMembersListWidget::ContactItem*>(it);
int theirWeight = session->contactOnlineStatus(item->m_contact).weight();
@@ -134,7 +134,7 @@ void ChatMembersListWidget::ContactItem::reposition()
//BEGIN ChatMembersListWidget
ChatMembersListWidget::ChatMembersListWidget( Kopete::ChatSession *session, TQWidget *parent, const char *name )
- : KListView( parent, name ), m_session( session )
+ : TDEListView( parent, name ), m_session( session )
{
// use our own custom tooltips
setShowToolTips( false );
@@ -154,8 +154,8 @@ ChatMembersListWidget::ChatMembersListWidget( Kopete::ChatSession *session, TQWi
for ( TQPtrListIterator<Kopete::Contact> it( session->members() ); it.current(); ++it )
slotContactAdded( *it );
- connect( this, TQT_SIGNAL( contextMenu( KListView*, TQListViewItem *, const TQPoint &) ),
- TQT_SLOT( slotContextMenu(KListView*, TQListViewItem *, const TQPoint & ) ) );
+ connect( this, TQT_SIGNAL( contextMenu( TDEListView*, TQListViewItem *, const TQPoint &) ),
+ TQT_SLOT( slotContextMenu(TDEListView*, TQListViewItem *, const TQPoint & ) ) );
connect( this, TQT_SIGNAL( executed( TQListViewItem* ) ),
TQT_SLOT( slotExecute( TQListViewItem * ) ) );
@@ -171,11 +171,11 @@ ChatMembersListWidget::~ChatMembersListWidget()
{
}
-void ChatMembersListWidget::slotContextMenu( KListView*, TQListViewItem *item, const TQPoint &point )
+void ChatMembersListWidget::slotContextMenu( TDEListView*, TQListViewItem *item, const TQPoint &point )
{
if ( ContactItem *contactItem = dynamic_cast<ContactItem*>(item) )
{
- KPopupMenu *p = contactItem->contact()->popupMenu( session() );
+ TDEPopupMenu *p = contactItem->contact()->popupMenu( session() );
connect( p, TQT_SIGNAL( aboutToHide() ), p, TQT_SLOT( deleteLater() ) );
p->popup( point );
}
diff --git a/kopete/kopete/chatwindow/chatmemberslistwidget.h b/kopete/kopete/chatwindow/chatmemberslistwidget.h
index 0c1668fa..5108ae5c 100644
--- a/kopete/kopete/chatwindow/chatmemberslistwidget.h
+++ b/kopete/kopete/chatwindow/chatmemberslistwidget.h
@@ -32,7 +32,7 @@ class OnlineStatus;
/**
* @author Richard Smith <[email protected]>
*/
-class ChatMembersListWidget : public KListView
+class ChatMembersListWidget : public TDEListView
{
Q_OBJECT
@@ -61,7 +61,7 @@ private slots:
/**
* Show the context menu for @p item at @p point
*/
- void slotContextMenu( KListView*, TQListViewItem *item, const TQPoint &point );
+ void slotContextMenu( TDEListView*, TQListViewItem *item, const TQPoint &point );
/**
* Called when a contact is added to the chat session.
@@ -96,7 +96,7 @@ private:
ToolTip *m_toolTip;
};
-class ChatMembersListWidget::ContactItem : public TQObject, public KListViewItem
+class ChatMembersListWidget::ContactItem : public TQObject, public TDEListViewItem
{
Q_OBJECT
diff --git a/kopete/kopete/chatwindow/chatmessagepart.cpp b/kopete/kopete/chatwindow/chatmessagepart.cpp
index 8b7d5e3e..52d5e99e 100644
--- a/kopete/kopete/chatwindow/chatmessagepart.cpp
+++ b/kopete/kopete/chatwindow/chatmessagepart.cpp
@@ -142,12 +142,12 @@ public:
DOM::HTMLElement activeElement;
- KAction *copyAction;
- KAction *saveAction;
- KAction *printAction;
- KAction *closeAction;
- KAction *copyURLAction;
- KAction *importEmoticon;
+ TDEAction *copyAction;
+ TDEAction *saveAction;
+ TDEAction *printAction;
+ TDEAction *closeAction;
+ TDEAction *copyURLAction;
+ TDEAction *importEmoticon;
ChatWindowStyle *currentChatStyle;
Kopete::Contact *latestContact;
@@ -263,8 +263,8 @@ ChatMessagePart::ChatMessagePart( Kopete::ChatSession *mgr, TQWidget *parent, co
d->saveAction = KStdAction::saveAs( this, TQT_SLOT(save()), actionCollection() );
d->printAction = KStdAction::print( this, TQT_SLOT(print()),actionCollection() );
d->closeAction = KStdAction::close( this, TQT_SLOT(slotCloseView()),actionCollection() );
- d->importEmoticon = new KAction( i18n( "Import Emoticon"), TQString::fromLatin1( "importemot" ), 0, this, TQT_SLOT( slotImportEmoticon() ), actionCollection() );
- d->copyURLAction = new KAction( i18n( "Copy Link Address" ), TQString::fromLatin1( "editcopy" ), 0, this, TQT_SLOT( slotCopyURL() ), actionCollection() );
+ d->importEmoticon = new TDEAction( i18n( "Import Emoticon"), TQString::fromLatin1( "importemot" ), 0, this, TQT_SLOT( slotImportEmoticon() ), actionCollection() );
+ d->copyURLAction = new TDEAction( i18n( "Copy Link Address" ), TQString::fromLatin1( "editcopy" ), 0, this, TQT_SLOT( slotCopyURL() ), actionCollection() );
// read formatting override flags
readOverrides();
@@ -710,7 +710,7 @@ void ChatMessagePart::slotRightClick( const TQString &, const TQPoint &point )
if ( d->activeElement.isNull() )
return;
- KPopupMenu *chatWindowPopup = 0L;
+ TDEPopupMenu *chatWindowPopup = 0L;
if ( Kopete::Contact *contact = contactFromNode( d->activeElement ) )
{
@@ -719,7 +719,7 @@ void ChatMessagePart::slotRightClick( const TQString &, const TQPoint &point )
}
else
{
- chatWindowPopup = new KPopupMenu();
+ chatWindowPopup = new TDEPopupMenu();
if ( d->activeElement.className() == "KopeteDisplayName" )
{
diff --git a/kopete/kopete/chatwindow/chatmessagepart.h b/kopete/kopete/chatwindow/chatmessagepart.h
index 278291bb..dc94a799 100644
--- a/kopete/kopete/chatwindow/chatmessagepart.h
+++ b/kopete/kopete/chatwindow/chatmessagepart.h
@@ -30,7 +30,7 @@ namespace Kopete
class ChatSession;
class Contact;
}
-class KPopupMenu;
+class TDEPopupMenu;
class ChatWindowStyle;
/**
@@ -128,7 +128,7 @@ signals:
/**
* Emits before the context menu is about to show
*/
- void contextMenuEvent( const TQString &textUnderMouse, KPopupMenu *popupMenu );
+ void contextMenuEvent( const TQString &textUnderMouse, TDEPopupMenu *popupMenu );
/**
* Emits before the tooltip is about to show
diff --git a/kopete/kopete/chatwindow/chatview.cpp b/kopete/kopete/chatwindow/chatview.cpp
index 487f80c5..bf40970a 100644
--- a/kopete/kopete/chatwindow/chatview.cpp
+++ b/kopete/kopete/chatwindow/chatview.cpp
@@ -1067,7 +1067,7 @@ void ChatView::dropEvent ( TQDropEvent * event )
void ChatView::registerContextMenuHandler( TQObject *target, const char* slot )
{
connect( m_messagePart,
- TQT_SIGNAL( contextMenuEvent( Kopete::Message &, const TQString &, KPopupMenu * ) ),
+ TQT_SIGNAL( contextMenuEvent( Kopete::Message &, const TQString &, TDEPopupMenu * ) ),
target,
slot
);
diff --git a/kopete/kopete/chatwindow/kopetechatwindow.cpp b/kopete/kopete/chatwindow/kopetechatwindow.cpp
index a330dc43..5d1d2d11 100644
--- a/kopete/kopete/chatwindow/kopetechatwindow.cpp
+++ b/kopete/kopete/chatwindow/kopetechatwindow.cpp
@@ -287,7 +287,7 @@ void KopeteChatWindow::slotTabContextMenu( TQWidget *tab, const TQPoint &pos )
{
m_popupView = static_cast<ChatView*>( tab );
- KPopupMenu *popup = new KPopupMenu;
+ TDEPopupMenu *popup = new TDEPopupMenu;
popup->insertTitle( KStringHandler::rsqueeze( m_popupView->caption() ) );
actionContactMenu->plug( popup );
@@ -309,42 +309,42 @@ ChatView *KopeteChatWindow::activeView()
void KopeteChatWindow::initActions(void)
{
- KActionCollection *coll = actionCollection();
+ TDEActionCollection *coll = actionCollection();
createStandardStatusBarAction();
- chatSend = new KAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail_send" ), TQKeySequence(Key_Return) ,
+ chatSend = new TDEAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail_send" ), TQKeySequence(Key_Return) ,
TQT_TQOBJECT(this), TQT_SLOT( slotSendMessage() ), coll, "chat_send" );
chatSend->setEnabled( false );
KStdAction::save ( TQT_TQOBJECT(this), TQT_SLOT(slotChatSave()), coll );
KStdAction::print ( TQT_TQOBJECT(this), TQT_SLOT(slotChatPrint()), coll );
- KAction* quitAction = KStdAction::quit ( TQT_TQOBJECT(this), TQT_SLOT(close()), coll );
+ TDEAction* quitAction = KStdAction::quit ( TQT_TQOBJECT(this), TQT_SLOT(close()), coll );
quitAction->setText( i18n("Close All Chats") );
tabClose = KStdAction::close ( TQT_TQOBJECT(this), TQT_SLOT(slotChatClosed()), coll, "tabs_close" );
- tabRight=new KAction( i18n( "&Activate Next Tab" ), 0, KStdAccel::tabNext(),
+ tabRight=new TDEAction( i18n( "&Activate Next Tab" ), 0, TDEStdAccel::tabNext(),
TQT_TQOBJECT(this), TQT_SLOT( slotNextTab() ), coll, "tabs_right" );
- tabLeft=new KAction( i18n( "&Activate Previous Tab" ), 0, KStdAccel::tabPrev(),
+ tabLeft=new TDEAction( i18n( "&Activate Previous Tab" ), 0, TDEStdAccel::tabPrev(),
TQT_TQOBJECT(this), TQT_SLOT( slotPreviousTab() ), coll, "tabs_left" );
tabLeft->setEnabled( false );
tabRight->setEnabled( false );
- nickComplete = new KAction( i18n( "Nic&k Completion" ), TQString(), 0, TQT_TQOBJECT(this), TQT_SLOT( slotNickComplete() ), coll , "nick_compete");
+ nickComplete = new TDEAction( i18n( "Nic&k Completion" ), TQString(), 0, TQT_TQOBJECT(this), TQT_SLOT( slotNickComplete() ), coll , "nick_compete");
nickComplete->setShortcut( TQKeySequence( Key_Tab ) );
- tabDetach = new KAction( i18n( "&Detach Chat" ), TQString::fromLatin1( "tab_breakoff" ), 0,
+ tabDetach = new TDEAction( i18n( "&Detach Chat" ), TQString::fromLatin1( "tab_breakoff" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotDetachChat() ), coll, "tabs_detach" );
tabDetach->setEnabled( false );
- actionDetachMenu = new KActionMenu( i18n( "&Move Tab to Window" ), TQString::fromLatin1( "tab_breakoff" ), coll, "tabs_detachmove" );
+ actionDetachMenu = new TDEActionMenu( i18n( "&Move Tab to Window" ), TQString::fromLatin1( "tab_breakoff" ), coll, "tabs_detachmove" );
actionDetachMenu->setDelayed( false );
connect ( actionDetachMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotPrepareDetachMenu()) );
connect ( actionDetachMenu->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotDetachChat(int)) );
- actionTabPlacementMenu = new KActionMenu( i18n( "&Tab Placement" ), coll, "tabs_placement" );
+ actionTabPlacementMenu = new TDEActionMenu( i18n( "&Tab Placement" ), coll, "tabs_placement" );
connect ( actionTabPlacementMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotPreparePlacementMenu()) );
connect ( actionTabPlacementMenu->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPlaceTabs(int)) );
@@ -354,15 +354,15 @@ void KopeteChatWindow::initActions(void)
KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), coll);
KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(slotPaste()), coll);
- new KAction( i18n( "Set Default &Font..." ), TQString::fromLatin1( "charset" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFont() ), coll, "format_font" );
- new KAction( i18n( "Set Default Text &Color..." ), TQString::fromLatin1( "pencil" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFgColor() ), coll, "format_fgcolor" );
- new KAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetBgColor() ), coll, "format_bgcolor" );
+ new TDEAction( i18n( "Set Default &Font..." ), TQString::fromLatin1( "charset" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFont() ), coll, "format_font" );
+ new TDEAction( i18n( "Set Default Text &Color..." ), TQString::fromLatin1( "pencil" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetFgColor() ), coll, "format_fgcolor" );
+ new TDEAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotSetBgColor() ), coll, "format_bgcolor" );
- historyUp = new KAction( i18n( "Previous History" ), TQString(), 0,
+ historyUp = new TDEAction( i18n( "Previous History" ), TQString(), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotHistoryUp() ), coll, "history_up" );
historyUp->setShortcut( TQKeySequence(CTRL + Key_Up) );
- historyDown = new KAction( i18n( "Next History" ), TQString(), 0,
+ historyDown = new TDEAction( i18n( "Next History" ), TQString(), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotHistoryDown() ), coll, "history_down" );
historyDown->setShortcut( TQKeySequence(CTRL + Key_Down) );
@@ -371,14 +371,14 @@ void KopeteChatWindow::initActions(void)
KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT(slotViewMenuBar()), coll );
- membersLeft = new KToggleAction( i18n( "Place to Left of Chat Area" ), TQString(), 0,
+ membersLeft = new TDEToggleAction( i18n( "Place to Left of Chat Area" ), TQString(), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotViewMembersLeft() ), coll, "options_membersleft" );
- membersRight = new KToggleAction( i18n( "Place to Right of Chat Area" ), TQString(), 0,
+ membersRight = new TDEToggleAction( i18n( "Place to Right of Chat Area" ), TQString(), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotViewMembersRight() ), coll, "options_membersright" );
- toggleMembers = new KToggleAction( i18n( "Show" ), TQString(), 0,
+ toggleMembers = new TDEToggleAction( i18n( "Show" ), TQString(), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotToggleViewMembers() ), coll, "options_togglemembers" );
toggleMembers->setCheckedState(i18n("Hide"));
- toggleAutoSpellCheck = new KToggleAction( i18n( "Automatic Spell Checking" ), TQString(), 0,
+ toggleAutoSpellCheck = new TDEToggleAction( i18n( "Automatic Spell Checking" ), TQString(), 0,
TQT_TQOBJECT(this), TQT_SLOT( toggleAutoSpellChecking() ), coll, "enable_auto_spell_check" );
toggleAutoSpellCheck->setChecked( true );
@@ -386,7 +386,7 @@ void KopeteChatWindow::initActions(void)
actionSmileyMenu->setDelayed( false );
connect(actionSmileyMenu, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotSmileyActivated(const TQString &)));
- actionContactMenu = new KActionMenu(i18n("Co&ntacts"), coll, "contacts_menu" );
+ actionContactMenu = new TDEActionMenu(i18n("Co&ntacts"), coll, "contacts_menu" );
actionContactMenu->setDelayed( false );
connect ( actionContactMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotPrepareContactMenu()) );
@@ -981,7 +981,7 @@ void KopeteChatWindow::slotPrepareContactMenu(void)
for ( contact = m_them.first(); contact; contact = m_them.next() )
{
- KPopupMenu *p = contact->popupMenu();
+ TDEPopupMenu *p = contact->popupMenu();
connect ( actionContactMenu->popupMenu(), TQT_SIGNAL(aboutToHide()),
p, TQT_SLOT(deleteLater() ) );
@@ -993,7 +993,7 @@ void KopeteChatWindow::slotPrepareContactMenu(void)
//FIXME: This number should be a config option
if( ++contactCount == 15 && contact != m_them.getLast() )
{
- KActionMenu *moreMenu = new KActionMenu( i18n("More..."),
+ TDEActionMenu *moreMenu = new TDEActionMenu( i18n("More..."),
TQString::fromLatin1("folder_open"), TQT_TQOBJECT(contactsMenu) );
connect ( actionContactMenu->popupMenu(), TQT_SIGNAL(aboutToHide()),
moreMenu, TQT_SLOT(deleteLater() ) );
@@ -1176,7 +1176,7 @@ void KopeteChatWindow::closeEvent( TQCloseEvent * e )
KopeteApplication *app = static_cast<KopeteApplication *>( kapp );
if ( KopetePrefs::prefs()->showTray() && !app->isShuttingDown() && !app->sessionSaving() ) {
// hide();
- // BEGIN of code borrowed from KMainWindow::closeEvent
+ // BEGIN of code borrowed from TDEMainWindow::closeEvent
// Save settings if auto-save is enabled, and settings have changed
if ( settingsDirty() && autoSaveSettings() )
saveAutoSaveSettings();
@@ -1184,10 +1184,10 @@ void KopeteChatWindow::closeEvent( TQCloseEvent * e )
if ( queryClose() ) {
e->accept();
}
- // END of code borrowed from KMainWindow::closeEvent
+ // END of code borrowed from TDEMainWindow::closeEvent
}
else
- KMainWindow::closeEvent( e );
+ TDEMainWindow::closeEvent( e );
}
void KopeteChatWindow::slotConfKeys()
diff --git a/kopete/kopete/chatwindow/kopetechatwindow.h b/kopete/kopete/chatwindow/kopetechatwindow.h
index 70c72b94..edee0b51 100644
--- a/kopete/kopete/chatwindow/kopetechatwindow.h
+++ b/kopete/kopete/chatwindow/kopetechatwindow.h
@@ -24,9 +24,9 @@
#include "kopetecontact.h"
#include "tdeversion.h"
-class KAction;
-class KToggleAction;
-class KActionMenu;
+class TDEAction;
+class TDEToggleAction;
+class TDEActionMenu;
class KTempFile;
class TQPixmap;
class TQTabWidget;
@@ -39,7 +39,7 @@ class KTabWidget;
class TQLabel;
class KopeteEmoticonAction;
class KopeteView;
-class KSelectAction;
+class TDESelectAction;
class ChatView;
namespace Kopete
@@ -96,7 +96,7 @@ public:
void setStatus( const TQString & );
/**
- * Reimplemented from KMainWindow - asks each ChatView in the window if it is ok to close the window
+ * Reimplemented from TDEMainWindow - asks each ChatView in the window if it is ok to close the window
* @return true if no ChatView objects to closing.
*/
virtual bool queryClose();
@@ -140,28 +140,28 @@ private:
TQMovie animIcon;
TQPixmap normalIcon;
- KAction *chatSend;
- KAction *historyUp;
- KAction *historyDown;
- KAction *nickComplete;
+ TDEAction *chatSend;
+ TDEAction *historyUp;
+ TDEAction *historyDown;
+ TDEAction *nickComplete;
- KToggleAction *mStatusbarAction;
+ TDEToggleAction *mStatusbarAction;
- KAction *tabLeft;
- KAction *tabRight;
- KAction *tabDetach;
- KAction* tabClose;
+ TDEAction *tabLeft;
+ TDEAction *tabRight;
+ TDEAction *tabDetach;
+ TDEAction* tabClose;
- KToggleAction* membersLeft;
- KToggleAction* membersRight;
- KToggleAction* toggleMembers;
- KToggleAction* toggleAutoSpellCheck;
+ TDEToggleAction* membersLeft;
+ TDEToggleAction* membersRight;
+ TDEToggleAction* toggleMembers;
+ TDEToggleAction* toggleAutoSpellCheck;
KopeteEmoticonAction *actionSmileyMenu;
- KActionMenu *actionActionMenu;
- KActionMenu *actionContactMenu;
- KActionMenu *actionDetachMenu;
- KActionMenu *actionTabPlacementMenu;
+ TDEActionMenu *actionActionMenu;
+ TDEActionMenu *actionContactMenu;
+ TDEActionMenu *actionDetachMenu;
+ TDEActionMenu *actionTabPlacementMenu;
TQString statusMsg;
signals:
diff --git a/kopete/kopete/chatwindow/kopeteemailwindow.cpp b/kopete/kopete/chatwindow/kopeteemailwindow.cpp
index b70313b9..cc4e6fa9 100644
--- a/kopete/kopete/chatwindow/kopeteemailwindow.cpp
+++ b/kopete/kopete/chatwindow/kopeteemailwindow.cpp
@@ -86,14 +86,14 @@ public:
TQSplitter *split;
ChatMessagePart *messagePart;
KopeteEmailWindow::WindowMode mode;
- KAction *chatSend;
+ TDEAction *chatSend;
TQLabel *anim;
TQMovie animIcon;
TQPixmap normalIcon;
TQString unreadMessageFrom;
ChatTextEditPart *editPart;
- KActionMenu *actionActionMenu;
+ TDEActionMenu *actionActionMenu;
KopeteEmoticonAction *actionSmileyMenu;
};
@@ -204,9 +204,9 @@ KopeteEmailWindow::~KopeteEmailWindow()
void KopeteEmailWindow::initActions(void)
{
- KActionCollection *coll = actionCollection();
+ TDEActionCollection *coll = actionCollection();
- d->chatSend = new KAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail_send" ), 0,
+ d->chatSend = new TDEAction( i18n( "&Send Message" ), TQString::fromLatin1( "mail_send" ), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotReplySend() ), coll, "chat_send" );
//Default to 'Return' for sending messages
d->chatSend->setShortcut( TQKeySequence( Key_Return ) );
@@ -217,11 +217,11 @@ void KopeteEmailWindow::initActions(void)
KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), coll);
KStdAction::paste( TQT_TQOBJECT(d->editPart->widget()), TQT_SLOT( paste() ), coll );
- new KAction( i18n( "&Set Font..." ), TQString::fromLatin1( "charset" ), 0,
+ new TDEAction( i18n( "&Set Font..." ), TQString::fromLatin1( "charset" ), 0,
d->editPart, TQT_SLOT( setFont() ), coll, "format_font" );
- new KAction( i18n( "Set Text &Color..." ), TQString::fromLatin1( "pencil" ), 0,
+ new TDEAction( i18n( "Set Text &Color..." ), TQString::fromLatin1( "pencil" ), 0,
d->editPart, TQT_SLOT( setFgColor() ), coll, "format_color" );
- new KAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0,
+ new TDEAction( i18n( "Set &Background Color..." ), TQString::fromLatin1( "fill" ), 0,
d->editPart, TQT_SLOT( setBgColor() ), coll, "format_bgcolor" );
KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT( slotViewMenuBar() ), coll );
@@ -509,7 +509,7 @@ void KopeteEmailWindow::raise(bool activate)
if ( !KWin::windowInfo( winId(), NET::WMDesktop ).onAllDesktops() )
KWin::setOnDesktop( winId(), KWin::currentDesktop() );
- KMainWindow::raise();
+ TDEMainWindow::raise();
/* Removed Nov 2003
According to Zack, the user double-clicking a contact is not valid reason for a non-pager
diff --git a/kopete/kopete/chatwindow/kopeteemoticonaction.cpp b/kopete/kopete/chatwindow/kopeteemoticonaction.cpp
index 4be23dd4..8c2811c9 100644
--- a/kopete/kopete/chatwindow/kopeteemoticonaction.cpp
+++ b/kopete/kopete/chatwindow/kopeteemoticonaction.cpp
@@ -1,7 +1,7 @@
/*
kopeteemoticonaction.cpp
- KAction to show the emoticon selector
+ TDEAction to show the emoticon selector
Copyright (c) 2002 by Stefan Gehn <metz AT gehn.net>
Copyright (c) 2003 by Martijn Klingens <[email protected]>
@@ -42,7 +42,7 @@ public:
{
m_delayed = true;
m_stickyMenu = true;
- m_popup = new KPopupMenu(0L,"KopeteEmoticonActionPrivate::m_popup");
+ m_popup = new TDEPopupMenu(0L,"KopeteEmoticonActionPrivate::m_popup");
emoticonSelector = new EmoticonSelector( m_popup, "KopeteEmoticonActionPrivate::emoticonSelector");
m_popup->insertItem( emoticonSelector );
// TODO: Maybe connect to kopeteprefs and redo list only on config changes
@@ -55,14 +55,14 @@ public:
m_popup = 0;
}
- KPopupMenu *m_popup;
+ TDEPopupMenu *m_popup;
EmoticonSelector *emoticonSelector;
bool m_delayed;
bool m_stickyMenu;
};
KopeteEmoticonAction::KopeteEmoticonAction( TQObject* parent, const char* name )
- : KAction( i18n( "Add Smiley" ), 0, parent, name )
+ : TDEAction( i18n( "Add Smiley" ), 0, parent, name )
{
d = new KopeteEmoticonActionPrivate;
@@ -103,7 +103,7 @@ void KopeteEmoticonAction::popup( const TQPoint& global )
popupMenu()->popup( global );
}
-KPopupMenu* KopeteEmoticonAction::popupMenu() const
+TDEPopupMenu* KopeteEmoticonAction::popupMenu() const
{
return d->m_popup;
}
@@ -130,7 +130,7 @@ void KopeteEmoticonAction::setStickyMenu(bool sticky)
int KopeteEmoticonAction::plug( TQWidget* widget, int index )
{
- if (kapp && !kapp->authorizeKAction(name()))
+ if (kapp && !kapp->authorizeTDEAction(name()))
return -1;
// kdDebug(14010) << "KopeteEmoticonAction::plug( " << widget << ", " << index << " )" << endl;
@@ -157,11 +157,11 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index )
return containerCount() - 1;
}
// KDE4/TQt TODO: Use qobject_cast instead.
- else if ( widget->inherits( "KToolBar" ) )
+ else if ( widget->inherits( "TDEToolBar" ) )
{
- KToolBar *bar = static_cast<KToolBar *>( widget );
+ TDEToolBar *bar = static_cast<TDEToolBar *>( widget );
- int id_ = KAction::getToolButtonID();
+ int id_ = TDEAction::getToolButtonID();
if ( icon().isEmpty() && !iconSet(KIcon::Small).isNull() )
{
diff --git a/kopete/kopete/chatwindow/kopeteemoticonaction.h b/kopete/kopete/chatwindow/kopeteemoticonaction.h
index eb77a84b..bc1a9859 100644
--- a/kopete/kopete/chatwindow/kopeteemoticonaction.h
+++ b/kopete/kopete/chatwindow/kopeteemoticonaction.h
@@ -1,7 +1,7 @@
/*
kopeteemoticonaction.h
- KAction to show the emoticon selector
+ TDEAction to show the emoticon selector
Copyright (c) 2002 by Stefan Gehn <metz AT gehn.net>
Copyright (c) 2003 by Martijn Klingens <[email protected]>
@@ -23,7 +23,7 @@
#include <kaction.h>
-class KopeteEmoticonAction : public KAction
+class KopeteEmoticonAction : public TDEAction
{
Q_OBJECT
@@ -35,18 +35,18 @@ public:
KopeteEmoticonAction( TQObject *parent = 0, const char *name = 0 );
virtual ~KopeteEmoticonAction();
- KPopupMenu * popupMenu() const;
+ TDEPopupMenu * popupMenu() const;
void popup( const TQPoint &global );
/**
* Returns true if this action creates a delayed popup menu
- * when plugged in a KToolbar.
+ * when plugged in a TDEToolbar.
*/
bool delayed() const;
/**
* If set to true, this action will create a delayed popup menu
- * when plugged in a KToolbar. Otherwise it creates a normal popup.
+ * when plugged in a TDEToolbar. Otherwise it creates a normal popup.
* Default: delayed
*
* Remember that if the "main" action (the toolbar button itself)
@@ -55,7 +55,7 @@ public:
* On the opposite, if the main action can be clicked, it can only happen
* in a toolbar: in a menu, the parent of a submenu can't be activated.
* To get a "normal" menu item when plugged a menu (and no submenu)
- * use KToolBarPopupAction.
+ * use TDEToolBarPopupAction.
*/
void setDelayed( bool delayed );
@@ -67,7 +67,7 @@ public:
/**
* If set to true, this action will create a sticky popup menu
- * when plugged in a KToolbar.
+ * when plugged in a TDEToolbar.
* "Sticky", means it's visible until a selection is made or the mouse is
* clicked elsewhere. This feature allows you to make a selection without
* having to press and hold down the mouse while making a selection.
diff --git a/kopete/kopete/chatwindow/krichtexteditpart.cpp b/kopete/kopete/chatwindow/krichtexteditpart.cpp
index 152570a8..4d8a0f8d 100644
--- a/kopete/kopete/chatwindow/krichtexteditpart.cpp
+++ b/kopete/kopete/chatwindow/krichtexteditpart.cpp
@@ -122,51 +122,51 @@ TDEAboutData *KopeteRichTextEditPart::createAboutData()
return aboutData;
}
-void KopeteRichTextEditPart::createActions( KActionCollection *ac )
+void KopeteRichTextEditPart::createActions( TDEActionCollection *ac )
{
- enableRichText = new KToggleAction(i18n("Enable &Rich Text"), "pencil", 0,
+ enableRichText = new TDEToggleAction(i18n("Enable &Rich Text"), "pencil", 0,
ac, "enableRichText" );
enableRichText->setCheckedState(i18n("Disable &Rich Text"));
connect( enableRichText, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( slotSetRichTextEnabled(bool) ) );
- checkSpelling = new KAction( i18n("Check &Spelling"), "spellcheck", 0,
+ checkSpelling = new TDEAction( i18n("Check &Spelling"), "spellcheck", 0,
TQT_TQOBJECT(editor), TQT_SLOT( checkSpelling() ), ac, "check_spelling" );
//Fg Color
- actionFgColor = new KAction( i18n("Text &Color..."), "color_line", 0,
+ actionFgColor = new TDEAction( i18n("Text &Color..."), "color_line", 0,
this, TQT_SLOT( setFgColor() ),
ac, "format_color" );
//BG Color
- actionBgColor = new KAction( i18n("Background Co&lor..."), "color_fill", 0,
+ actionBgColor = new TDEAction( i18n("Background Co&lor..."), "color_fill", 0,
this, TQT_SLOT( setBgColor() ),
ac, "format_bgcolor" );
//Font Family
- action_font = new KFontAction( i18n("&Font"), 0,
+ action_font = new TDEFontAction( i18n("&Font"), 0,
ac, "format_font" );
connect( action_font, TQT_SIGNAL( activated( const TQString & ) ),
this, TQT_SLOT( setFont( const TQString & ) ) );
//Font Size
- action_font_size = new KFontSizeAction( i18n("Font &Size"), 0,
+ action_font_size = new TDEFontSizeAction( i18n("Font &Size"), 0,
ac, "format_font_size" );
connect( action_font_size, TQT_SIGNAL( fontSizeChanged(int) ),
this, TQT_SLOT( setFontSize(int) ) );
//Formatting
- action_bold = new KToggleAction( i18n("&Bold"), "text_bold", CTRL+Key_B,
+ action_bold = new TDEToggleAction( i18n("&Bold"), "text_bold", CTRL+Key_B,
ac, "format_bold" );
connect( action_bold, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setBold(bool) ) );
- action_italic = new KToggleAction( i18n("&Italic"), "text_italic", CTRL+Key_I,
+ action_italic = new TDEToggleAction( i18n("&Italic"), "text_italic", CTRL+Key_I,
ac, "format_italic" );
connect( action_italic, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setItalic(bool) ) );
- action_underline = new KToggleAction( i18n("&Underline"), "text_under", CTRL+Key_U,
+ action_underline = new TDEToggleAction( i18n("&Underline"), "text_under", CTRL+Key_U,
ac, "format_underline" );
connect( action_underline, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setUnderline(bool) ) );
@@ -180,22 +180,22 @@ void KopeteRichTextEditPart::createActions( KActionCollection *ac )
updateFont();
//Alignment
- action_align_left = new KToggleAction( i18n("Align &Left"), "text_left", 0,
+ action_align_left = new TDEToggleAction( i18n("Align &Left"), "text_left", 0,
ac, "format_align_left" );
connect( action_align_left, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignLeft(bool) ) );
- action_align_center = new KToggleAction( i18n("Align &Center"), "text_center", 0,
+ action_align_center = new TDEToggleAction( i18n("Align &Center"), "text_center", 0,
ac, "format_align_center" );
connect( action_align_center, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignCenter(bool) ) );
- action_align_right = new KToggleAction( i18n("Align &Right"), "text_right", 0,
+ action_align_right = new TDEToggleAction( i18n("Align &Right"), "text_right", 0,
ac, "format_align_right" );
connect( action_align_right, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignRight(bool) ) );
- action_align_justify = new KToggleAction( i18n("&Justify"), "text_block", 0,
+ action_align_justify = new TDEToggleAction( i18n("&Justify"), "text_block", 0,
ac, "format_align_justify" );
connect( action_align_justify, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( setAlignJustify(bool) ) );
@@ -448,7 +448,7 @@ void KopeteRichTextEditPart::setFontSize( int size )
void KopeteRichTextEditPart::setFont()
{
- KFontDialog::getFont(mFont, false, editor);
+ TDEFontDialog::getFont(mFont, false, editor);
setFont(mFont);
writeConfig();
}
diff --git a/kopete/kopete/chatwindow/krichtexteditpart.h b/kopete/kopete/chatwindow/krichtexteditpart.h
index e5159d0f..470369ad 100644
--- a/kopete/kopete/chatwindow/krichtexteditpart.h
+++ b/kopete/kopete/chatwindow/krichtexteditpart.h
@@ -10,9 +10,9 @@
class TDEAboutData;
class KTextEdit;
-class KFontAction;
-class KFontSizeAction;
-class KToggleAction;
+class TDEFontAction;
+class TDEFontSizeAction;
+class TDEToggleAction;
class KopeteTextEdit;
/**
@@ -89,7 +89,7 @@ class KopeteRichTextEditPart : public KParts::ReadOnlyPart
/**
* Creates the part's actions in the specified action collection.
*/
- virtual void createActions( KActionCollection *ac );
+ virtual void createActions( TDEActionCollection *ac );
protected slots:
@@ -108,23 +108,23 @@ class KopeteRichTextEditPart : public KParts::ReadOnlyPart
void writeConfig();
KopeteTextEdit *editor;
- KAction *checkSpelling;
- KToggleAction *enableRichText;
+ TDEAction *checkSpelling;
+ TDEToggleAction *enableRichText;
- KAction *actionFgColor;
- KAction *actionBgColor;
+ TDEAction *actionFgColor;
+ TDEAction *actionBgColor;
- KToggleAction *action_bold;
- KToggleAction *action_italic;
- KToggleAction *action_underline;
+ TDEToggleAction *action_bold;
+ TDEToggleAction *action_italic;
+ TDEToggleAction *action_underline;
- KFontAction *action_font;
- KFontSizeAction *action_font_size;
+ TDEFontAction *action_font;
+ TDEFontSizeAction *action_font_size;
- KToggleAction *action_align_left;
- KToggleAction *action_align_right;
- KToggleAction *action_align_center;
- KToggleAction *action_align_justify;
+ TDEToggleAction *action_align_left;
+ TDEToggleAction *action_align_right;
+ TDEToggleAction *action_align_center;
+ TDEToggleAction *action_align_justify;
int m_capabilities;
bool m_richTextAvailable;
diff --git a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
index 28af94f6..d779eac0 100644
--- a/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
+++ b/kopete/kopete/config/accounts/kopeteaccountconfig.cpp
@@ -39,10 +39,10 @@
#include "kopeteprotocol.h"
#include "kopeteaccount.h"
-class KopeteAccountLVI : public KListViewItem
+class KopeteAccountLVI : public TDEListViewItem
{
public:
- KopeteAccountLVI( Kopete::Account *a, KListView *p ) : KListViewItem( p ){ m_account = a; }
+ KopeteAccountLVI( Kopete::Account *a, TDEListView *p ) : TDEListViewItem( p ){ m_account = a; }
Kopete::Account *account() { return m_account; }
private:
diff --git a/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui b/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui
index 321adac8..8162208c 100644
--- a/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui
+++ b/kopete/kopete/config/accounts/kopeteaccountconfigbase.ui
@@ -62,7 +62,7 @@
<string>Remove selected account</string>
</property>
</widget>
- <widget class="KListView" row="0" column="0" rowspan="8" colspan="1">
+ <widget class="TDEListView" row="0" column="0" rowspan="8" colspan="1">
<column>
<property name="text">
<string>Protocol</string>
diff --git a/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui b/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui
index 67dbaa07..ed7d5cf9 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_chatwindow.ui
@@ -61,7 +61,7 @@
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <widget class="KListBox">
+ <widget class="TDEListBox">
<property name="name">
<cstring>styleList</cstring>
</property>
diff --git a/kopete/kopete/config/appearance/appearanceconfig_colors.ui b/kopete/kopete/config/appearance/appearanceconfig_colors.ui
index 8943bc6c..a4adb253 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_colors.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_colors.ui
@@ -138,7 +138,7 @@
<string>Background color:</string>
</property>
</widget>
- <widget class="KFontRequester" row="0" column="1" rowspan="1" colspan="3">
+ <widget class="TDEFontRequester" row="0" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>fontFace</cstring>
</property>
@@ -253,7 +253,7 @@
<string>Group font:</string>
</property>
</widget>
- <widget class="KFontRequester">
+ <widget class="TDEFontRequester">
<property name="name">
<cstring>mGroupFont</cstring>
</property>
@@ -282,7 +282,7 @@
<string>Normal font:</string>
</property>
</widget>
- <widget class="KFontRequester">
+ <widget class="TDEFontRequester">
<property name="name">
<cstring>mNormalFont</cstring>
</property>
@@ -311,7 +311,7 @@
<string>Small font:</string>
</property>
</widget>
- <widget class="KFontRequester">
+ <widget class="TDEFontRequester">
<property name="name">
<cstring>mSmallFont</cstring>
</property>
diff --git a/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui b/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
index 6af82e16..1cc3153d 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
@@ -55,7 +55,7 @@
<string>Select emoticon theme:</string>
</property>
</widget>
- <widget class="KListBox">
+ <widget class="TDEListBox">
<property name="name">
<cstring>icon_theme_list</cstring>
</property>
diff --git a/kopete/kopete/config/appearance/emoticonseditdialog.cpp b/kopete/kopete/config/appearance/emoticonseditdialog.cpp
index 1330b566..ce252a8f 100644
--- a/kopete/kopete/config/appearance/emoticonseditdialog.cpp
+++ b/kopete/kopete/config/appearance/emoticonseditdialog.cpp
@@ -101,7 +101,7 @@ EmoticonsEditDialog::EmoticonsEditDialog(TQWidget *parent, TQString theme, const
for(TQMap<TQString, TQStringList>::Iterator it = smileys.begin(); it != smileys.end(); ++it )
{
- KListViewItem *itm = new KListViewItem(mMainWidget->klvEmoticons);
+ TDEListViewItem *itm = new TDEListViewItem(mMainWidget->klvEmoticons);
itm->setPixmap(0, TQPixmap(it.key()));
itm->setText(2, TQFileInfo(it.key()).baseName());
TQString text = *it.data().at(0);
@@ -228,7 +228,7 @@ void EmoticonsEditDialog::addEmoticon(TQString emo, TQString text, bool copy)
if(copy)
TDEIO::copy(emo, TDEGlobal::dirs()->saveLocation( "emoticons", themeName, false ));
- KListViewItem *itm = new KListViewItem(mMainWidget->klvEmoticons);
+ TDEListViewItem *itm = new TDEListViewItem(mMainWidget->klvEmoticons);
itm->setPixmap(0, TQPixmap(emo));
itm->setText(1, text);
itm->setText(2, TQFileInfo(emo).baseName());
diff --git a/kopete/kopete/config/appearance/emoticonseditwidget.ui b/kopete/kopete/config/appearance/emoticonseditwidget.ui
index e5a23692..a90031d2 100644
--- a/kopete/kopete/config/appearance/emoticonseditwidget.ui
+++ b/kopete/kopete/config/appearance/emoticonseditwidget.ui
@@ -70,7 +70,7 @@
</spacer>
</vbox>
</widget>
- <widget class="KListView" row="0" column="0">
+ <widget class="TDEListView" row="0" column="0">
<property name="name">
<cstring>klvEmoticons</cstring>
</property>
diff --git a/kopete/kopete/config/appearance/tooltipeditdialog.cpp b/kopete/kopete/config/appearance/tooltipeditdialog.cpp
index eef1ccb0..e5fb0b16 100644
--- a/kopete/kopete/config/appearance/tooltipeditdialog.cpp
+++ b/kopete/kopete/config/appearance/tooltipeditdialog.cpp
@@ -30,17 +30,17 @@
#include <klistview.h>
#include <klocale.h>
-class TooltipItem : public KListViewItem
+class TooltipItem : public TDEListViewItem
{
public:
- TooltipItem(KListView *parent, const TQString& label, const TQString& propertyName)
- : KListViewItem(parent, label),
+ TooltipItem(TDEListView *parent, const TQString& label, const TQString& propertyName)
+ : TDEListViewItem(parent, label),
mPropName(propertyName)
{
}
- TooltipItem(KListView *parent, TQListViewItem *item, const TQString& label, const TQString& propertyName)
- : KListViewItem(parent, item, label),
+ TooltipItem(TDEListView *parent, TQListViewItem *item, const TQString& label, const TQString& propertyName)
+ : TDEListViewItem(parent, item, label),
mPropName(propertyName)
{
}
diff --git a/kopete/kopete/config/appearance/tooltipeditwidget.ui b/kopete/kopete/config/appearance/tooltipeditwidget.ui
index 8a2021fd..ec250cea 100644
--- a/kopete/kopete/config/appearance/tooltipeditwidget.ui
+++ b/kopete/kopete/config/appearance/tooltipeditwidget.ui
@@ -65,7 +65,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string></string>
@@ -179,7 +179,7 @@
</spacer>
</vbox>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string></string>
diff --git a/kopete/kopete/contactlist/kopeteaddrbookexport.cpp b/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
index 11ec93d0..fd2b5c18 100644
--- a/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
+++ b/kopete/kopete/contactlist/kopeteaddrbookexport.cpp
@@ -107,7 +107,7 @@ void KopeteAddressBookExport::fetchKABCData()
}
}
-void KopeteAddressBookExport::fetchPhoneNumbers( KListBox * listBox, int type, uint& counter )
+void KopeteAddressBookExport::fetchPhoneNumbers( TDEListBox * listBox, int type, uint& counter )
{
KABC::PhoneNumber::List phones = mAddressee.phoneNumbers( type );
counter = phones.count();
@@ -156,7 +156,7 @@ void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const
}
}
-void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const TQPixmap &icon, KListBox *listBox, const Kopete::ContactPropertyTmpl &property )
+void KopeteAddressBookExport::populateIM( const Kopete::Contact *contact, const TQPixmap &icon, TDEListBox *listBox, const Kopete::ContactPropertyTmpl &property )
{
Kopete::ContactProperty prop = contact->property( property );
if ( !prop.isNull() )
@@ -274,7 +274,7 @@ bool KopeteAddressBookExport::newValue( TQComboBox *combo )
( combo->text( combo->currentItem() ) == combo->text( 0 ) ) );
}
-TQStringList KopeteAddressBookExport::newValues( KListBox *listBox, uint counter )
+TQStringList KopeteAddressBookExport::newValues( TDEListBox *listBox, uint counter )
{
TQStringList newValues;
// need to iterate all items except those from KABC and check if selected and not same as the first
diff --git a/kopete/kopete/contactlist/kopeteaddrbookexport.h b/kopete/kopete/contactlist/kopeteaddrbookexport.h
index 62f1858d..587de5c9 100644
--- a/kopete/kopete/contactlist/kopeteaddrbookexport.h
+++ b/kopete/kopete/contactlist/kopeteaddrbookexport.h
@@ -28,7 +28,7 @@
class AddressBookExportUI;
class KDialogBase;
-class KListBox;
+class TDEListBox;
class KComboBox;
namespace Kopete
@@ -65,7 +65,7 @@ protected:
/**
* Populate a listbox with a given type of phone number
*/
- void fetchPhoneNumbers( KListBox * listBox, int type, uint& counter );
+ void fetchPhoneNumbers( TDEListBox * listBox, int type, uint& counter );
/**
* Populate the GUI with data from IM systems
*/
@@ -79,11 +79,11 @@ protected:
* Populate a listbox with a contact's IM data
*/
void populateIM( const Kopete::Contact *contact, const TQPixmap &icon,
- KListBox *combo, const Kopete::ContactPropertyTmpl &property );
+ TDEListBox *combo, const Kopete::ContactPropertyTmpl &property );
/** Check the selected item is not the first (existing KABC) item, or the same as it */
bool newValue( TQComboBox *combo );
- TQStringList newValues( KListBox *listBox, uint counter );
+ TQStringList newValues( TDEListBox *listBox, uint counter );
// the GUI
TQWidget *mParent;
diff --git a/kopete/kopete/contactlist/kopeteaddrbookexportui.ui b/kopete/kopete/contactlist/kopeteaddrbookexportui.ui
index 8afccb19..a1827dc9 100644
--- a/kopete/kopete/contactlist/kopeteaddrbookexportui.ui
+++ b/kopete/kopete/contactlist/kopeteaddrbookexportui.ui
@@ -41,7 +41,7 @@
<cstring>mPhones</cstring>
</property>
</widget>
- <widget class="KListBox" row="5" column="1">
+ <widget class="TDEListBox" row="5" column="1">
<property name="name">
<cstring>mWorkPhones</cstring>
</property>
@@ -49,7 +49,7 @@
<enum>Extended</enum>
</property>
</widget>
- <widget class="KListBox" row="6" column="1">
+ <widget class="TDEListBox" row="6" column="1">
<property name="name">
<cstring>mMobilePhones</cstring>
</property>
@@ -57,7 +57,7 @@
<enum>Extended</enum>
</property>
</widget>
- <widget class="KListBox" row="4" column="1">
+ <widget class="TDEListBox" row="4" column="1">
<property name="name">
<cstring>mHomePhones</cstring>
</property>
@@ -124,7 +124,7 @@
<cstring>comboBox2</cstring>
</property>
</widget>
- <widget class="KListBox" row="2" column="1">
+ <widget class="TDEListBox" row="2" column="1">
<property name="name">
<cstring>mEmails</cstring>
</property>
diff --git a/kopete/kopete/contactlist/kopetecontactlistview.cpp b/kopete/kopete/contactlist/kopetecontactlistview.cpp
index e271801e..54f52528 100644
--- a/kopete/kopete/contactlist/kopetecontactlistview.cpp
+++ b/kopete/kopete/contactlist/kopetecontactlistview.cpp
@@ -81,19 +81,19 @@ class KopeteContactListViewPrivate
public:
std::auto_ptr<ContactListViewStrategy> viewStrategy;
- void updateViewStrategy( KListView *view );
+ void updateViewStrategy( TDEListView *view );
};
class ContactListViewStrategy
{
public:
- ContactListViewStrategy( KListView *view )
+ ContactListViewStrategy( TDEListView *view )
: _listView( view )
{
view->clear();
}
virtual ~ContactListViewStrategy() {}
- KListView *listView() { return _listView; }
+ TDEListView *listView() { return _listView; }
void addCurrentItems()
{
// Add the already existing groups now
@@ -147,13 +147,13 @@ protected:
}
private:
- KListView *_listView;
+ TDEListView *_listView;
};
class ArrangeByGroupsViewStrategy : public ContactListViewStrategy
{
public:
- ArrangeByGroupsViewStrategy( KListView *view )
+ ArrangeByGroupsViewStrategy( TDEListView *view )
: ContactListViewStrategy( view )
{
addCurrentItems();
@@ -242,7 +242,7 @@ private:
class ArrangeByPresenceViewStrategy : public ContactListViewStrategy
{
public:
- ArrangeByPresenceViewStrategy( KListView *view )
+ ArrangeByPresenceViewStrategy( TDEListView *view )
: ContactListViewStrategy( view )
, m_onlineItem( new KopeteStatusGroupViewItem( Kopete::OnlineStatus::Online, listView() ) )
, m_offlineItem( new KopeteStatusGroupViewItem( Kopete::OnlineStatus::Offline, listView() ) )
@@ -357,7 +357,7 @@ private:
TQGuardedPtr<KopeteGroupViewItem> m_temporaryItem;
};
-void KopeteContactListViewPrivate::updateViewStrategy( KListView *view )
+void KopeteContactListViewPrivate::updateViewStrategy( TDEListView *view )
{
// this is a bit nasty, but this function needs changing if we add
// more view strategies anyway, so it should be fine.
@@ -411,8 +411,8 @@ KopeteContactListView::KopeteContactListView( TQWidget *parent, const char *name
setFullWidth( true );
- connect( this, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ),
- TQT_SLOT( slotContextMenu( KListView *, TQListViewItem *, const TQPoint & ) ) );
+ connect( this, TQT_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ),
+ TQT_SLOT( slotContextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ) );
connect( this, TQT_SIGNAL( expanded( TQListViewItem * ) ),
TQT_SLOT( slotExpanded( TQListViewItem * ) ) );
connect( this, TQT_SIGNAL( collapsed( TQListViewItem * ) ),
@@ -459,7 +459,7 @@ KopeteContactListView::KopeteContactListView( TQWidget *parent, const char *name
slotSettingsChanged();
}
-void KopeteContactListView::initActions( KActionCollection *ac )
+void KopeteContactListView::initActions( TDEActionCollection *ac )
{
actionUndo = KStdAction::undo( TQT_TQOBJECT(this) , TQT_SLOT( slotUndo() ) , ac );
actionRedo = KStdAction::redo( TQT_TQOBJECT(this) , TQT_SLOT( slotRedo() ) , ac );
@@ -467,7 +467,7 @@ void KopeteContactListView::initActions( KActionCollection *ac )
actionRedo->setEnabled(false);
- new KAction( i18n( "Create New Group..." ), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( addGroup() ),
+ new TDEAction( i18n( "Create New Group..." ), 0, 0, TQT_TQOBJECT(this), TQT_SLOT( addGroup() ),
ac, "AddGroup" );
actionSendMessage = KopeteStdAction::sendMessage(
@@ -482,19 +482,19 @@ void KopeteContactListView::initActions( KActionCollection *ac )
actionRemove = KopeteStdAction::deleteContact( TQT_TQOBJECT(this), TQT_SLOT( slotRemove() ),
ac, "contactRemove" );
- actionSendEmail = new KAction( i18n( "Send Email..." ), TQString::fromLatin1( "mail_generic" ),
+ actionSendEmail = new TDEAction( i18n( "Send Email..." ), TQString::fromLatin1( "mail_generic" ),
0, TQT_TQOBJECT(this), TQT_SLOT( slotSendEmail() ), ac, "contactSendEmail" );
/* this actionRename is buggy, and useless with properties, removed in kopeteui.rc*/
- actionRename = new KAction( i18n( "Rename" ), "filesaveas", 0,
+ actionRename = new TDEAction( i18n( "Rename" ), "filesaveas", 0,
TQT_TQOBJECT(this), TQT_SLOT( slotRename() ), ac, "contactRename" );
actionSendFile = KopeteStdAction::sendFile( TQT_TQOBJECT(this), TQT_SLOT( slotSendFile() ),
ac, "contactSendFile" );
- actionAddContact = new KActionMenu( i18n( "&Add Contact" ),
+ actionAddContact = new TDEActionMenu( i18n( "&Add Contact" ),
TQString::fromLatin1( "add_user" ), ac , "contactAddContact" );
actionAddContact->popupMenu()->insertTitle( i18n("Select Account") );
- actionAddTemporaryContact = new KAction( i18n( "Add to Your Contact List" ), "add_user", 0,
+ actionAddTemporaryContact = new TDEAction( i18n( "Add to Your Contact List" ), "add_user", 0,
TQT_TQOBJECT(this), TQT_SLOT( slotAddTemporaryContact() ), ac, "contactAddTemporaryContact" );
connect( Kopete::ContactList::self(), TQT_SIGNAL( metaContactSelected( bool ) ), this, TQT_SLOT( slotMetaContactSelected( bool ) ) );
@@ -502,7 +502,7 @@ void KopeteContactListView::initActions( KActionCollection *ac )
connect( Kopete::AccountManager::self(), TQT_SIGNAL(accountRegistered( Kopete::Account* )), TQT_SLOT(slotAddSubContactActionNewAccount(Kopete::Account*)));
connect( Kopete::AccountManager::self(), TQT_SIGNAL(accountUnregistered( const Kopete::Account* )), TQT_SLOT(slotAddSubContactActionAccountDeleted(const Kopete::Account *)));
- actionProperties = new KAction( i18n( "&Properties" ), "edit_user", TQt::Key_Alt + TQt::Key_Return,
+ actionProperties = new TDEAction( i18n( "&Properties" ), "edit_user", TQt::Key_Alt + TQt::Key_Return,
TQT_TQOBJECT(this), TQT_SLOT( slotProperties() ), ac, "contactProperties" );
// Update enabled/disabled actions
@@ -516,7 +516,7 @@ KopeteContactListView::~KopeteContactListView()
void KopeteContactListView::slotAddSubContactActionNewAccount(Kopete::Account* account)
{
- KAction *action = new KAction( account->accountLabel(), account->accountIcon(), 0 , TQT_TQOBJECT(this), TQT_SLOT(slotAddContact()), account);
+ TDEAction *action = new TDEAction( account->accountLabel(), account->accountIcon(), 0 , TQT_TQOBJECT(this), TQT_SLOT(slotAddContact()), account);
m_accountAddContactMap.insert( account, action);
actionAddContact->insert( action );
}
@@ -526,7 +526,7 @@ void KopeteContactListView::slotAddSubContactActionAccountDeleted(const Kopete::
kdDebug(14000) << k_funcinfo << endl;
if ( m_accountAddContactMap.contains( account ) )
{
- KAction *action = m_accountAddContactMap[account];
+ TDEAction *action = m_accountAddContactMap[account];
m_accountAddContactMap.remove( account );
actionAddContact->remove( action );
}
@@ -636,7 +636,7 @@ void KopeteContactListView::slotCollapsed( TQListViewItem *item )
}
}
-void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
+void KopeteContactListView::slotContextMenu( TDEListView * /*listview*/,
TQListViewItem *item, const TQPoint &point )
{
// FIXME: this code should be moved to the various list view item classes.
@@ -659,7 +659,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
int nb = Kopete::ContactList::self()->selectedMetaContacts().count() +
Kopete::ContactList::self()->selectedGroups().count();
- KMainWindow *window = dynamic_cast<KMainWindow *>(topLevelWidget());
+ TDEMainWindow *window = dynamic_cast<TDEMainWindow *>(topLevelWidget());
if ( !window )
{
kdError( 14000 ) << k_funcinfo << "Main window not found, unable to display context-menu; "
@@ -677,13 +677,13 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
Kopete::Contact *c = metaLVI->contactForPoint( TQPoint( px, py ) ) ;
if ( c )
{
- KPopupMenu *p = c->popupMenu();
+ TDEPopupMenu *p = c->popupMenu();
connect( p, TQT_SIGNAL( aboutToHide() ), p, TQT_SLOT( deleteLater() ) );
p->popup( point );
}
else
{
- KPopupMenu *popup = dynamic_cast<KPopupMenu *>(
+ TDEPopupMenu *popup = dynamic_cast<TDEPopupMenu *>(
window->factory()->container( "contact_popup", window ) );
if ( popup )
{
@@ -709,7 +709,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
sep = false;
}
- KPopupMenu *contactMenu = it.current()->popupMenu();
+ TDEPopupMenu *contactMenu = it.current()->popupMenu();
connect( popup, TQT_SIGNAL( aboutToHide() ), contactMenu, TQT_SLOT( deleteLater() ) );
TQString nick=c->property(Kopete::Global::Properties::self()->nickName()).value().toString();
TQString text= nick.isEmpty() ? c->contactId() : i18n( "Translators: format: '<displayName> (<id>)'", "%2 <%1>" ). arg( c->contactId(), nick );
@@ -727,7 +727,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
}
else if ( groupvi && nb == 1 )
{
- KPopupMenu *popup = dynamic_cast<KPopupMenu *>(
+ TDEPopupMenu *popup = dynamic_cast<TDEPopupMenu *>(
window->factory()->container( "group_popup", window ) );
if ( popup )
{
@@ -745,14 +745,14 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/,
}
else if ( nb >= 1 )
{
- KPopupMenu *popup = dynamic_cast<KPopupMenu *>(
+ TDEPopupMenu *popup = dynamic_cast<TDEPopupMenu *>(
window->factory()->container( "contactlistitems_popup", window ) );
if ( popup )
popup->popup( point );
}
else
{
- KPopupMenu *popup = dynamic_cast<KPopupMenu *>(
+ TDEPopupMenu *popup = dynamic_cast<TDEPopupMenu *>(
window->factory()->container( "contactlist_popup", window ) );
if ( popup )
{
@@ -1066,7 +1066,7 @@ bool KopeteContactListView::acceptDrag(TQDropEvent *e) const
TQListViewItem *source=currentItem();
TQListViewItem *parent;
TQListViewItem *afterme;
- // Due to a little design problem in KListView::findDrop() we can't
+ // Due to a little design problem in TDEListView::findDrop() we can't
// call it directly from a const method until KDE 4.0, but as the
// method is in fact const we can of course get away with a
// const_cast...
@@ -1204,7 +1204,7 @@ void KopeteContactListView::findDrop(const TQPoint &pos, TQListViewItem *&parent
void KopeteContactListView::contentsMousePressEvent( TQMouseEvent *e )
{
- KListView::contentsMousePressEvent( e );
+ TDEListView::contentsMousePressEvent( e );
if (e->button() == Qt::LeftButton )
{
TQPoint p=contentsToViewport(e->pos());
diff --git a/kopete/kopete/contactlist/kopetecontactlistview.h b/kopete/kopete/contactlist/kopetecontactlistview.h
index eb9cb690..09e71524 100644
--- a/kopete/kopete/contactlist/kopetecontactlistview.h
+++ b/kopete/kopete/contactlist/kopetecontactlistview.h
@@ -38,10 +38,10 @@ class KopeteMetaContactLVI;
class KopeteGroupViewItem;
class KopeteStatusGroupViewItem;
class KRootPixmap;
-class KActionCollection;
-class KAction;
-class KListAction;
-class KActionMenu;
+class TDEActionCollection;
+class TDEAction;
+class TDEListAction;
+class TDEActionMenu;
class KopeteContactListViewPrivate;
@@ -68,7 +68,7 @@ public:
/**
* Init MetaContact related actions
*/
- void initActions(KActionCollection*);
+ void initActions(TDEActionCollection*);
/**
* Add a given group name and return it
@@ -127,7 +127,7 @@ private slots:
void slotViewSelectionChanged();
void slotListSelectionChanged();
- void slotContextMenu(KListView*,TQListViewItem *item, const TQPoint &point );
+ void slotContextMenu(TDEListView*,TQListViewItem *item, const TQPoint &point );
void slotExpanded( TQListViewItem *item );
void slotCollapsed( TQListViewItem *item );
@@ -192,18 +192,18 @@ private:
TQPoint m_startDragPos;
/* ACTIONS */
- KAction *actionSendMessage;
- KAction *actionStartChat;
- KAction *actionSendFile;
- KAction *actionSendEmail;
- KListAction *actionMove;
- KListAction *actionCopy;
- KAction *actionRename;
- KAction *actionRemove;
- KAction *actionAddTemporaryContact;
- KAction *actionProperties;
- KAction *actionUndo;
- KAction *actionRedo;
+ TDEAction *actionSendMessage;
+ TDEAction *actionStartChat;
+ TDEAction *actionSendFile;
+ TDEAction *actionSendEmail;
+ TDEListAction *actionMove;
+ TDEListAction *actionCopy;
+ TDEAction *actionRename;
+ TDEAction *actionRemove;
+ TDEAction *actionAddTemporaryContact;
+ TDEAction *actionProperties;
+ TDEAction *actionUndo;
+ TDEAction *actionRedo;
KopeteContactListViewPrivate *d;
@@ -223,8 +223,8 @@ public:
public:
// This is public so the chatwinodw can handle sub actions
// FIXME: do we not believe in accessor functions any more?
- KActionMenu *actionAddContact;
- TQMap<const Kopete::Account *, KAction *> m_accountAddContactMap;
+ TDEActionMenu *actionAddContact;
+ TQMap<const Kopete::Account *, TDEAction *> m_accountAddContactMap;
};
struct KopeteContactListView::UndoItem
diff --git a/kopete/kopete/contactlist/kopetegrouplistaction.cpp b/kopete/kopete/contactlist/kopetegrouplistaction.cpp
index 142e4090..a2606ab9 100644
--- a/kopete/kopete/contactlist/kopetegrouplistaction.cpp
+++ b/kopete/kopete/contactlist/kopetegrouplistaction.cpp
@@ -29,9 +29,9 @@
#include "kopetecontactlist.h"
#include "kopetegroup.h"
-KopeteGroupListAction::KopeteGroupListAction( const TQString &text, const TQString &pix, const KShortcut &cut, const TQObject *receiver,
+KopeteGroupListAction::KopeteGroupListAction( const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver,
const char *slot, TQObject *parent, const char *name )
-: KListAction( text, pix, cut, parent, name )
+: TDEListAction( text, pix, cut, parent, name )
{
connect( this, TQT_SIGNAL( activated() ), receiver, slot );
diff --git a/kopete/kopete/contactlist/kopetegrouplistaction.h b/kopete/kopete/contactlist/kopetegrouplistaction.h
index 2d4bb985..a9c1a502 100644
--- a/kopete/kopete/contactlist/kopetegrouplistaction.h
+++ b/kopete/kopete/contactlist/kopetegrouplistaction.h
@@ -26,13 +26,13 @@
/**
* Action used for Copy To and Move To
*/
-class KopeteGroupListAction : public KListAction
+class KopeteGroupListAction : public TDEListAction
{
Q_OBJECT
public:
- KopeteGroupListAction( const TQString &, const TQString &, const KShortcut &,
+ KopeteGroupListAction( const TQString &, const TQString &, const TDEShortcut &,
const TQObject *, const char *, TQObject *, const char * );
~KopeteGroupListAction();
diff --git a/kopete/kopete/contactlist/kopetegroupviewitem.cpp b/kopete/kopete/contactlist/kopetegroupviewitem.cpp
index b28b7cb3..988ef1d8 100644
--- a/kopete/kopete/contactlist/kopetegroupviewitem.cpp
+++ b/kopete/kopete/contactlist/kopetegroupviewitem.cpp
@@ -192,20 +192,20 @@ TQString KopeteGroupViewItem::key( int, bool ) const
void KopeteGroupViewItem::startRename( int /*col*/ )
{
//kdDebug(14000) << k_funcinfo << endl;
- KListViewItem::startRename( 0 );
+ TDEListViewItem::startRename( 0 );
}
void KopeteGroupViewItem::okRename( int col )
{
//kdDebug(14000) << k_funcinfo << endl;
- KListViewItem::okRename(col);
+ TDEListViewItem::okRename(col);
setRenameEnabled( 0, false );
}
void KopeteGroupViewItem::cancelRename( int col )
{
//kdDebug(14000) << k_funcinfo << endl;
- KListViewItem::cancelRename(col);
+ TDEListViewItem::cancelRename(col);
setRenameEnabled( 0, false );
}
@@ -265,7 +265,7 @@ TQString KopeteGroupViewItem::text( int column ) const
if ( column == 0 )
return d->name->text();
else
- return KListViewItem::text( column );
+ return TDEListViewItem::text( column );
}
void KopeteGroupViewItem::setText( int column, const TQString &text )
@@ -282,7 +282,7 @@ void KopeteGroupViewItem::setText( int column, const TQString &text )
group()->setDisplayName( text );
}
else
- KListViewItem::setText( column, text );
+ TDEListViewItem::setText( column, text );
}
#include "kopetegroupviewitem.moc"
diff --git a/kopete/kopete/contactlist/kopetegroupviewitem.h b/kopete/kopete/contactlist/kopetegroupviewitem.h
index 0447d809..f42b614c 100644
--- a/kopete/kopete/contactlist/kopetegroupviewitem.h
+++ b/kopete/kopete/contactlist/kopetegroupviewitem.h
@@ -46,7 +46,7 @@ public:
virtual void startRename( int col );
/**
- * reimplemented from KListViewItem to take into account our alternate text storage
+ * reimplemented from TDEListViewItem to take into account our alternate text storage
*/
virtual TQString text( int column ) const;
virtual void setText( int column, const TQString &text );
diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
index 3f2165c4..19529351 100644
--- a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
+++ b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
@@ -1,5 +1,5 @@
/*
- kopetemetacontactlvi.cpp - Kopete Meta Contact KListViewItem
+ kopetemetacontactlvi.cpp - Kopete Meta Contact TDEListViewItem
Copyright (c) 2004 by Richard Smith <[email protected]>
Copyright (c) 2002-2004 by Martijn Klingens <[email protected]>
@@ -169,7 +169,7 @@ public:
KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, KopeteGroupViewItem *parent )
: ListView::Item( parent, contact, "MetaContactLVI" )
-//: TQObject( contact, "MetaContactLVI" ), KListViewItem( parent )
+//: TQObject( contact, "MetaContactLVI" ), TDEListViewItem( parent )
{
m_metaContact = contact;
m_isTopLevel = false;
@@ -182,7 +182,7 @@ KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, Kopete
KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, TQListViewItem *parent )
: ListView::Item( parent, contact, "MetaContactLVI" )
-//: TQObject( contact, "MetaContactLVI" ), KListViewItem( parent )
+//: TQObject( contact, "MetaContactLVI" ), TDEListViewItem( parent )
{
m_metaContact = contact;
@@ -195,7 +195,7 @@ KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, TQList
KopeteMetaContactLVI::KopeteMetaContactLVI( Kopete::MetaContact *contact, TQListView *parent )
: ListView::Item( parent, contact, "MetaContactLVI" )
-//: TQObject( contact, "MetaContactLVI" ), KListViewItem( parent )
+//: TQObject( contact, "MetaContactLVI" ), TDEListViewItem( parent )
{
m_metaContact = contact;
@@ -280,13 +280,13 @@ void KopeteMetaContactLVI::movedToDifferentGroup()
// create a spacer if wanted
// I assume that the safety property that allows the delete in slotConfigChanged holds here - Will
delete d->spacerBox->component( 0 );
- if ( KListViewItem::parent() && KopetePrefs::prefs()->contactListIndentContacts() &&
+ if ( TDEListViewItem::parent() && KopetePrefs::prefs()->contactListIndentContacts() &&
!KopetePrefs::prefs()->treeView() )
{
new ListView::SpacerComponent( d->spacerBox, 20, 0 );
}
- KopeteGroupViewItem *group_item = dynamic_cast<KopeteGroupViewItem*>(KListViewItem::parent());
+ KopeteGroupViewItem *group_item = dynamic_cast<KopeteGroupViewItem*>(TDEListViewItem::parent());
if ( group_item )
{
m_isTopLevel = false;
@@ -582,18 +582,18 @@ void KopeteMetaContactLVI::slotRemoveFromGroup()
void KopeteMetaContactLVI::startRename( int /*col*/ )
{
- KListViewItem::startRename( 0 );
+ TDEListViewItem::startRename( 0 );
}
void KopeteMetaContactLVI::okRename( int col )
{
- KListViewItem::okRename( col );
+ TDEListViewItem::okRename( col );
setRenameEnabled( 0, false );
}
void KopeteMetaContactLVI::cancelRename( int col )
{
- KListViewItem::cancelRename( col );
+ TDEListViewItem::cancelRename( col );
setRenameEnabled( 0, false );
}
@@ -658,7 +658,7 @@ void KopeteMetaContactLVI::slotConfigChanged()
// create a spacer if wanted
delete d->spacerBox->component( 0 );
- if ( KListViewItem::parent() && KopetePrefs::prefs()->contactListIndentContacts() &&
+ if ( TDEListViewItem::parent() && KopetePrefs::prefs()->contactListIndentContacts() &&
!KopetePrefs::prefs()->treeView() )
{
new ListView::SpacerComponent( d->spacerBox, 20, 0 );
@@ -1094,7 +1094,7 @@ TQString KopeteMetaContactLVI::text( int column ) const
if ( column == 0 )
return d->nameText->text();
else
- return KListViewItem::text( column );
+ return TDEListViewItem::text( column );
}
void KopeteMetaContactLVI::setText( int column, const TQString &text )
@@ -1102,7 +1102,7 @@ void KopeteMetaContactLVI::setText( int column, const TQString &text )
if ( column == 0 )
rename( text );
else
- KListViewItem::setText( column, text );
+ TDEListViewItem::setText( column, text );
}
#include "kopetemetacontactlvi.moc"
diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.h b/kopete/kopete/contactlist/kopetemetacontactlvi.h
index ba0e28f0..1b766b44 100644
--- a/kopete/kopete/contactlist/kopetemetacontactlvi.h
+++ b/kopete/kopete/contactlist/kopetemetacontactlvi.h
@@ -1,5 +1,5 @@
/*
- kopetemetacontactlvi.h - Kopete Meta Contact KListViewItem
+ kopetemetacontactlvi.h - Kopete Meta Contact TDEListViewItem
Copyright (c) 2004 by Richard Smith <[email protected]>
Copyright (c) 2002-2003 by Olivier Goffart <ogoffart @ kde.org>
@@ -31,8 +31,8 @@
class TQVariant;
-class KAction;
-class KListAction;
+class TDEAction;
+class TDEListAction;
namespace Kopete
{
@@ -116,7 +116,7 @@ public:
bool isGrouped() const;
/**
- * reimplemented from KListViewItem to take into account our alternate text storage
+ * reimplemented from TDEListViewItem to take into account our alternate text storage
*/
virtual TQString text( int column ) const;
virtual void setText( int column, const TQString &text );
diff --git a/kopete/kopete/kopeteapplication.cpp b/kopete/kopete/kopeteapplication.cpp
index 2e469bf5..5b07089f 100644
--- a/kopete/kopete/kopeteapplication.cpp
+++ b/kopete/kopete/kopeteapplication.cpp
@@ -72,7 +72,7 @@ KopeteApplication::KopeteApplication()
* TQApplication thinks the application shuts down (this is usually the case
* when the loop_level goes down to zero) . So it emits aboutToQuit(), to
* which TDEApplication is connected and re-emits shutdown() , to which again
- * KMainWindow (a KopeteWindow instance exists already) is connected. KMainWindow's
+ * TDEMainWindow (a KopeteWindow instance exists already) is connected. TDEMainWindow's
* shuttingDown() slot calls queryExit() which results in KopeteWindow::queryExit()
* calling unloadPlugins() . This of course is wrong and just shouldn't happen.
* The workaround is to simply delay the initialization of all this to a point
@@ -316,7 +316,7 @@ void KopeteApplication::quitKopete()
m_isShuttingDown = true;
// close all windows
- TQPtrListIterator<KMainWindow> it(*KMainWindow::memberList);
+ TQPtrListIterator<TDEMainWindow> it(*TDEMainWindow::memberList);
for (it.toFirst(); it.current(); ++it)
{
if ( !it.current()->close() )
diff --git a/kopete/kopete/kopeteeditglobalidentitywidget.cpp b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
index c1f181be..97bd1732 100644
--- a/kopete/kopete/kopeteeditglobalidentitywidget.cpp
+++ b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
@@ -107,7 +107,7 @@ void KopeteEditGlobalIdentityWidget::iconSizeChanged()
{
kdDebug(14000) << k_funcinfo << "Changing icon size (i.e the picture size)" << endl;
- KToolBar *tb = (KToolBar*)sender();
+ TDEToolBar *tb = (TDEToolBar*)sender();
if(tb)
{
// Update the picture (change the size of it)
diff --git a/kopete/kopete/kopetewindow.cpp b/kopete/kopete/kopetewindow.cpp
index 5e4c7bd0..a631f304 100644
--- a/kopete/kopete/kopetewindow.cpp
+++ b/kopete/kopete/kopetewindow.cpp
@@ -96,12 +96,12 @@ void GlobalStatusMessageIconLabel::mouseReleaseEvent( TQMouseEvent *event )
}
//END GlobalStatusMessageIconLabel
-/* KMainWindow is very broken from our point of view - it deref()'s the app
- * when the last visible KMainWindow is destroyed. But when our main window is
+/* TDEMainWindow is very broken from our point of view - it deref()'s the app
+ * when the last visible TDEMainWindow is destroyed. But when our main window is
* hidden when it's in the tray,closing the last chatwindow would cause the app
* to quit. - Richard
*
- * Fortunately KMainWindow checks queryExit before deref()ing the Kapplication.
+ * Fortunately TDEMainWindow checks queryExit before deref()ing the Kapplication.
* KopeteWindow reimplements queryExit() and only returns true if it is shutting down
* (either because the user quit Kopete, or the session manager did).
*
@@ -121,7 +121,7 @@ void GlobalStatusMessageIconLabel::mouseReleaseEvent( TQMouseEvent *event )
*/
KopeteWindow::KopeteWindow( TQWidget *parent, const char *name )
-: KMainWindow( parent, name, WType_TopLevel )
+: TDEMainWindow( parent, name, WType_TopLevel )
{
// Applications should ensure that their StatusBar exists before calling createGUI()
// so that the StatusBar is always correctly positioned when KDE is configured to use
@@ -205,7 +205,7 @@ void KopeteWindow::initView()
void KopeteWindow::initActions()
{
// this action menu contains one action per account and is updated when accounts are registered/unregistered
- actionAddContact = new KActionMenu( i18n( "&Add Contact" ), "add_user",
+ actionAddContact = new TDEActionMenu( i18n( "&Add Contact" ), "add_user",
actionCollection(), "AddContact" );
actionAddContact->setDelayed( false );
// this signal mapper is needed to call slotAddContact with the correct arguments
@@ -214,20 +214,20 @@ void KopeteWindow::initActions()
this, TQT_SLOT( slotAddContactDialogInternal( const TQString & ) ) );
/* ConnectAll is now obsolete. "Go online" has replaced it.
- actionConnect = new KAction( i18n( "&Connect Accounts" ), "connect_creating",
+ actionConnect = new TDEAction( i18n( "&Connect Accounts" ), "connect_creating",
0, Kopete::AccountManager::self(), TQT_SLOT( connectAll() ),
actionCollection(), "ConnectAll" );
*/
- actionDisconnect = new KAction( i18n( "O&ffline" ), "connect_no",
+ actionDisconnect = new TDEAction( i18n( "O&ffline" ), "connect_no",
0, TQT_TQOBJECT(this), TQT_SLOT( slotDisconnectAll() ),
actionCollection(), "DisconnectAll" );
- actionExportContacts = new KAction( i18n( "&Export Contacts..." ), "", 0, TQT_TQOBJECT(this),
+ actionExportContacts = new TDEAction( i18n( "&Export Contacts..." ), "", 0, TQT_TQOBJECT(this),
TQT_SLOT( showExportDialog() ),actionCollection(), "ExportContacts" );
/* the connection menu has been replaced by the set status menu
- actionConnectionMenu = new KActionMenu( i18n("Connection"),"connect_established",
+ actionConnectionMenu = new TDEActionMenu( i18n("Connection"),"connect_established",
actionCollection(), "Connection" );
actionConnectionMenu->setDelayed( false );
@@ -237,32 +237,32 @@ void KopeteWindow::initActions()
*/
actionDisconnect->setEnabled(false);
- selectAway = new KAction( i18n("&Away"), SmallIcon("kopeteaway"), 0,
+ selectAway = new TDEAction( i18n("&Away"), SmallIcon("kopeteaway"), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotGlobalAway() ), actionCollection(),
"SetAwayAll" );
- selectBusy = new KAction( i18n("&Busy"), SmallIcon("kopeteaway"), 0,
+ selectBusy = new TDEAction( i18n("&Busy"), SmallIcon("kopeteaway"), 0,
TQT_TQOBJECT(this), TQT_SLOT( slotGlobalBusy() ), actionCollection(),
"SetBusyAll" );
- actionSetInvisible = new KAction( i18n( "&Invisible" ), "kopeteavailable", 0 ,
+ actionSetInvisible = new TDEAction( i18n( "&Invisible" ), "kopeteavailable", 0 ,
TQT_TQOBJECT(this), TQT_SLOT( slotSetInvisibleAll() ), actionCollection(),
"SetInvisibleAll" );
- /*actionSetAvailable = new KAction( i18n( "&Online" ),
+ /*actionSetAvailable = new TDEAction( i18n( "&Online" ),
"kopeteavailable", 0 , Kopete::AccountManager::self(),
TQT_SLOT( setAvailableAll() ), actionCollection(),
"SetAvailableAll" );*/
- actionSetAvailable = new KAction( i18n("&Online"),
+ actionSetAvailable = new TDEAction( i18n("&Online"),
SmallIcon("kopeteavailable"), 0, TQT_TQOBJECT(this),
TQT_SLOT( slotGlobalAvailable() ), actionCollection(),
"SetAvailableAll" );
- actionAwayMenu = new KActionMenu( i18n("&Set Status"), "kopeteavailable",
+ actionAwayMenu = new TDEActionMenu( i18n("&Set Status"), "kopeteavailable",
actionCollection(), "Status" );
actionAwayMenu->setDelayed( false );
actionAwayMenu->insert(actionSetAvailable);
@@ -280,17 +280,17 @@ void KopeteWindow::initActions()
statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(showStatusbar()), actionCollection(), "settings_showstatusbar");
KStdAction::keyBindings( guiFactory(), TQT_SLOT( configureShortcuts() ), actionCollection(), "settings_keys" );
- new KAction( i18n( "Configure Plugins..." ), "input_devices_settings", 0, TQT_TQOBJECT(this),
+ new TDEAction( i18n( "Configure Plugins..." ), "input_devices_settings", 0, TQT_TQOBJECT(this),
TQT_SLOT( slotConfigurePlugins() ), actionCollection(), "settings_plugins" );
- new KAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, TQT_TQOBJECT(this),
+ new TDEAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, TQT_TQOBJECT(this),
TQT_SLOT( slotConfGlobalKeys() ), actionCollection(), "settings_global" );
KStdAction::configureToolbars( TQT_TQOBJECT(this), TQT_SLOT(slotConfToolbar()), actionCollection() );
KStdAction::configureNotifications(TQT_TQOBJECT(this), TQT_SLOT(slotConfNotifications()), actionCollection(), "settings_notifications" );
- actionShowOffliners = new KToggleAction( i18n( "Show Offline &Users" ), "show_offliners", CTRL + Key_U,
+ actionShowOffliners = new TDEToggleAction( i18n( "Show Offline &Users" ), "show_offliners", CTRL + Key_U,
TQT_TQOBJECT(this), TQT_SLOT( slotToggleShowOffliners() ), actionCollection(), "settings_show_offliners" );
- actionShowEmptyGroups = new KToggleAction( i18n( "Show Empty &Groups" ), "folder", CTRL + Key_G,
+ actionShowEmptyGroups = new TDEToggleAction( i18n( "Show Empty &Groups" ), "folder", CTRL + Key_G,
TQT_TQOBJECT(this), TQT_SLOT( slotToggleShowEmptyGroups() ), actionCollection(), "settings_show_empty_groups" );
actionShowOffliners->setCheckedState(i18n("Hide Offline &Users"));
@@ -304,7 +304,7 @@ void KopeteWindow::initActions()
new KWidgetAction( searchLabel, i18n( "Search:" ), 0, 0, 0, actionCollection(), "quicksearch_label" );
quickSearch->setAutoSized( true );
// quick search bar - clear button
- KAction *resetQuickSearch = new KAction( i18n( "Reset Quick Search" ),
+ TDEAction *resetQuickSearch = new TDEAction( i18n( "Reset Quick Search" ),
TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase",
0, TQT_TQOBJECT(searchBar), TQT_SLOT( clear() ), actionCollection(), "quicksearch_reset" );
resetQuickSearch->setWhatsThis( i18n( "Reset Quick Search\n"
@@ -316,8 +316,8 @@ void KopeteWindow::initActions()
KWidgetAction *editGlobalAction = new KWidgetAction( editGlobalIdentityWidget, i18n("Edit Global Identity Widget"), 0, 0, 0, actionCollection(), "editglobal_widget");
editGlobalAction->setAutoSized( true );
- // KActionMenu for selecting the global status message(kopeteonlinestatus_0)
- KActionMenu * setStatusMenu = new KActionMenu( i18n( "Set Status Message" ), "kopeteeditstatusmessage", actionCollection(), "SetStatusMessage" );
+ // TDEActionMenu for selecting the global status message(kopeteonlinestatus_0)
+ TDEActionMenu * setStatusMenu = new TDEActionMenu( i18n( "Set Status Message" ), "kopeteeditstatusmessage", actionCollection(), "SetStatusMessage" );
setStatusMenu->setDelayed( false );
connect( setStatusMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ), TQT_SLOT(slotBuildStatusMessageMenu() ) );
connect( setStatusMenu->popupMenu(), TQT_SIGNAL( activated( int ) ), TQT_SLOT(slotStatusMessageSelected( int ) ) );
@@ -380,7 +380,7 @@ void KopeteWindow::initSystray()
{
m_tray = KopeteSystemTray::systemTray( this, "KopeteSystemTray" );
Kopete::UI::Global::setSysTrayWId( m_tray->winId() );
- KPopupMenu *tm = m_tray->contextMenu();
+ TDEPopupMenu *tm = m_tray->contextMenu();
// NOTE: This is in reverse order because we insert
// at the top of the menu, not at bottom!
@@ -391,8 +391,8 @@ void KopeteWindow::initSystray()
//actionConnectionMenu->plug ( tm, 1 );
tm->insertSeparator( 1 );
- TQObject::connect( m_tray, TQT_SIGNAL( aboutToShowMenu( KPopupMenu * ) ),
- this, TQT_SLOT( slotTrayAboutToShowMenu( KPopupMenu * ) ) );
+ TQObject::connect( m_tray, TQT_SIGNAL( aboutToShowMenu( TDEPopupMenu * ) ),
+ this, TQT_SLOT( slotTrayAboutToShowMenu( TDEPopupMenu * ) ) );
TQObject::connect( m_tray, TQT_SIGNAL( quitSelected() ), this, TQT_SLOT( slotQuit() ) );
}
@@ -403,8 +403,8 @@ KopeteWindow::~KopeteWindow()
bool KopeteWindow::eventFilter( TQObject* target, TQEvent* event )
{
- KToolBar* toolBar = dynamic_cast<KToolBar*>( target );
- KAction* resetAction = actionCollection()->action( "quicksearch_reset" );
+ TDEToolBar* toolBar = dynamic_cast<TDEToolBar*>( target );
+ TDEAction* resetAction = actionCollection()->action( "quicksearch_reset" );
if ( toolBar && resetAction && resetAction->isPlugged( toolBar ) )
{
@@ -414,10 +414,10 @@ bool KopeteWindow::eventFilter( TQObject* target, TQEvent* event )
resetAction->activate();
return true;
}
- return KMainWindow::eventFilter( target, event );
+ return TDEMainWindow::eventFilter( target, event );
}
- return KMainWindow::eventFilter( target, event );
+ return TDEMainWindow::eventFilter( target, event );
}
void KopeteWindow::loadOptions()
@@ -657,7 +657,7 @@ void KopeteWindow::closeEvent( TQCloseEvent *e )
// window is closed.
KopeteApplication *app = static_cast<KopeteApplication *>( kapp );
if ( KopetePrefs::prefs()->showTray() && !app->isShuttingDown() && !app->sessionSaving() ) {
- // BEGIN of code borrowed from KMainWindow::closeEvent
+ // BEGIN of code borrowed from TDEMainWindow::closeEvent
// Save settings if auto-save is enabled, and settings have changed
if ( settingsDirty() && autoSaveSettings() )
saveAutoSaveSettings();
@@ -665,13 +665,13 @@ void KopeteWindow::closeEvent( TQCloseEvent *e )
if ( queryClose() ) {
e->accept();
}
- // END of code borrowed from KMainWindow::closeEvent
+ // END of code borrowed from TDEMainWindow::closeEvent
kdDebug( 14000 ) << k_funcinfo << "just closing because we have a system tray icon" << endl;
}
else
{
- kdDebug( 14000 ) << k_funcinfo << "delegating to KMainWindow::closeEvent()" << endl;
- KMainWindow::closeEvent( e );
+ kdDebug( 14000 ) << k_funcinfo << "delegating to TDEMainWindow::closeEvent()" << endl;
+ TDEMainWindow::closeEvent( e );
}
}
@@ -728,7 +728,7 @@ void KopeteWindow::slotAccountRegistered( Kopete::Account *account )
// add an item for this account to the add contact actionmenu
TQString s = "actionAdd%1Contact";
s.arg( account->accountId() );
- KAction *action = new KAction( account->accountLabel(), account->accountIcon(), 0 , addContactMapper, TQT_SLOT( map() ), account, s.latin1() );
+ TDEAction *action = new TDEAction( account->accountLabel(), account->accountIcon(), 0 , addContactMapper, TQT_SLOT( map() ), account, s.latin1() );
addContactMapper->setMapping( action, account->protocol()->pluginId() + TQChar(0xE000) + account->accountId() );
actionAddContact->insert( action );
}
@@ -757,12 +757,12 @@ void KopeteWindow::slotAccountUnregistered( const Kopete::Account *account)
// update add contact actionmenu
TQString s = "actionAdd%1Contact";
s.arg( account->accountId() );
-// KAction * action = actionCollection()->action( account->accountId() );
+// TDEAction * action = actionCollection()->action( account->accountId() );
Kopete::Account * myAccount = const_cast< Kopete::Account * > ( account );
- KAction * action = static_cast< KAction *>( myAccount->child( s.latin1() ) );
+ TDEAction * action = static_cast< TDEAction *>( myAccount->child( s.latin1() ) );
if ( action )
{
- kdDebug(14000) << " found KAction " << action << " with name: " << action->name() << endl;
+ kdDebug(14000) << " found TDEAction " << action << " with name: " << action->name() << endl;
addContactMapper->removeMappings( action );
actionAddContact->remove( action );
}
@@ -878,7 +878,7 @@ void KopeteWindow::makeTrayToolTip()
void KopeteWindow::slotAccountStatusIconRightClicked( Kopete::Account *account, const TQPoint &p )
{
- KActionMenu *actionMenu = account->actionMenu();
+ TDEActionMenu *actionMenu = account->actionMenu();
if ( !actionMenu )
return;
@@ -886,12 +886,12 @@ void KopeteWindow::slotAccountStatusIconRightClicked( Kopete::Account *account,
actionMenu->popupMenu()->popup( p );
}
-void KopeteWindow::slotTrayAboutToShowMenu( KPopupMenu * popup )
+void KopeteWindow::slotTrayAboutToShowMenu( TDEPopupMenu * popup )
{
TQPtrList<Kopete::Account> accounts = Kopete::AccountManager::self()->accounts();
for(Kopete::Account *a=accounts.first() ; a; a=accounts.next() )
{
- KActionMenu *menu = a->actionMenu();
+ TDEActionMenu *menu = a->actionMenu();
if( menu )
menu->plug(popup, 1 );
@@ -907,7 +907,7 @@ void KopeteWindow::slotTrayAboutToShowMenu( KPopupMenu * popup )
//kdDebug( 14000 ) << k_funcinfo << endl;
if ( Kopete::AccountManager::self()->accounts( proto ).count() > 0 )
{
- KActionMenu *menu = proto->protocolActions();
+ TDEActionMenu *menu = proto->protocolActions();
connect( menu->popupMenu(), TQT_SIGNAL( aboutToHide() ), menu, TQT_SLOT( deleteLater() ) );
menu->popupMenu()->popup( p );
@@ -969,11 +969,11 @@ void KopeteWindow::setStatusMessage( const TQString & message )
void KopeteWindow::slotBuildStatusMessageMenu()
{
TQObject * senderObj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() ));
- m_globalStatusMessageMenu = static_cast<KPopupMenu *>( TQT_TQWIDGET(senderObj) );
+ m_globalStatusMessageMenu = static_cast<TDEPopupMenu *>( TQT_TQWIDGET(senderObj) );
m_globalStatusMessageMenu->clear();
// pop up a menu containing the away messages, and a lineedit
// see kopeteaway
- //messageMenu = new KPopupMenu( this );
+ //messageMenu = new TDEPopupMenu( this );
// messageMenu->insertTitle( i18n( "Status Message" ) );
TQHBox * newMessageBox = new TQHBox( 0 );
newMessageBox->setMargin( 1 );
@@ -1033,7 +1033,7 @@ void KopeteWindow::slotNewStatusMessageEntered()
void KopeteWindow::slotGlobalStatusMessageIconClicked( const TQPoint &position )
{
- KPopupMenu *statusMessageIconMenu = new KPopupMenu(this, "statusMessageIconMenu");
+ TDEPopupMenu *statusMessageIconMenu = new TDEPopupMenu(this, "statusMessageIconMenu");
connect(statusMessageIconMenu, TQT_SIGNAL( aboutToShow() ),
this, TQT_SLOT(slotBuildStatusMessageMenu()));
connect( statusMessageIconMenu, TQT_SIGNAL( activated( int ) ),
diff --git a/kopete/kopete/kopetewindow.h b/kopete/kopete/kopetewindow.h
index a9625931..881382c0 100644
--- a/kopete/kopete/kopetewindow.h
+++ b/kopete/kopete/kopetewindow.h
@@ -32,13 +32,13 @@ class TQSignalMapper;
class TQMouseEvent;
class TQPoint;
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
class TDEGlobalAccel;
-class KSelectAction;
+class TDESelectAction;
class KSqueezedTextLabel;
-class KToggleAction;
+class TDEToggleAction;
class KopeteAccountStatusBarIcon;
class KopeteContactListView;
@@ -58,7 +58,7 @@ class Protocol;
/**
* @author Duncan Mac-Vicar P. <[email protected]>
*/
-class KopeteWindow : public KMainWindow
+class KopeteWindow : public TDEMainWindow
{
Q_OBJECT
@@ -155,7 +155,7 @@ private slots:
void slotAccountStatusIconRightClicked( Kopete::Account *a,
const TQPoint &p );
- void slotTrayAboutToShowMenu(KPopupMenu *);
+ void slotTrayAboutToShowMenu(TDEPopupMenu *);
/**
* Show the Add Contact wizard
@@ -198,28 +198,28 @@ public:
KopeteContactListView *contactlist;
// Some Actions
- KActionMenu* actionAddContact;
-
- //KActionMenu* actionConnectionMenu;
- //KAction* actionConnect;
- KAction* actionDisconnect;
- KAction* actionExportContacts;
-
- KActionMenu* actionAwayMenu;
- KActionMenu* actionDockMenu;
- KAction* selectAway;
- KAction* selectBusy;
- KAction* actionSetAvailable;
- KAction* actionSetInvisible;
-
-
- KAction* actionPrefs;
- KAction* actionQuit;
- KAction* actionSave;
- KToggleAction *menubarAction;
- KToggleAction *statusbarAction;
- KToggleAction *actionShowOffliners;
- KToggleAction *actionShowEmptyGroups;
+ TDEActionMenu* actionAddContact;
+
+ //TDEActionMenu* actionConnectionMenu;
+ //TDEAction* actionConnect;
+ TDEAction* actionDisconnect;
+ TDEAction* actionExportContacts;
+
+ TDEActionMenu* actionAwayMenu;
+ TDEActionMenu* actionDockMenu;
+ TDEAction* selectAway;
+ TDEAction* selectBusy;
+ TDEAction* actionSetAvailable;
+ TDEAction* actionSetInvisible;
+
+
+ TDEAction* actionPrefs;
+ TDEAction* actionQuit;
+ TDEAction* actionSave;
+ TDEToggleAction *menubarAction;
+ TDEToggleAction *statusbarAction;
+ TDEToggleAction *actionShowOffliners;
+ TDEToggleAction *actionShowEmptyGroups;
TDEGlobalAccel *globalAccel;
KopeteEditGlobalIdentityWidget *editGlobalIdentityWidget;
@@ -257,7 +257,7 @@ private:
*/
TQPtrDict<TQObject> m_accountStatusBarIcons;
KSqueezedTextLabel * m_globalStatusMessage;
- KPopupMenu * m_globalStatusMessageMenu;
+ TDEPopupMenu * m_globalStatusMessageMenu;
TQLineEdit * m_newMessageEdit;
TQString m_globalStatusMessageStored;
};
diff --git a/kopete/kopete/systemtray.cpp b/kopete/kopete/systemtray.cpp
index 75fef262..009ac09d 100644
--- a/kopete/kopete/systemtray.cpp
+++ b/kopete/kopete/systemtray.cpp
@@ -78,7 +78,7 @@ KopeteSystemTray::KopeteSystemTray(TQWidget* parent, const char* name)
// in the close widget click case, we only want to hide the parent window
// so instead, we make it call our general purpose quit slot on the window, which causes a window close and everything else we need
// KDE4 - app will have to listen for quitSelected instead
- KAction *quit = actionCollection()->action( "file_quit" );
+ TDEAction *quit = actionCollection()->action( "file_quit" );
quit->disconnect();
KopeteWindow *myParent = static_cast<KopeteWindow *>( parent );
connect( quit, TQT_SIGNAL( activated() ), myParent, TQT_SLOT( slotQuit() ) );
@@ -124,7 +124,7 @@ void KopeteSystemTray::mouseDoubleClickEvent( TQMouseEvent *me )
}
}
-void KopeteSystemTray::contextMenuAboutToShow( KPopupMenu *me )
+void KopeteSystemTray::contextMenuAboutToShow( TDEPopupMenu *me )
{
//kdDebug(14010) << k_funcinfo << "Called." << endl;
emit aboutToShowMenu( me );
diff --git a/kopete/kopete/systemtray.h b/kopete/kopete/systemtray.h
index 496e438d..2f483600 100644
--- a/kopete/kopete/systemtray.h
+++ b/kopete/kopete/systemtray.h
@@ -29,8 +29,8 @@
class TQTimer;
class TQPoint;
-class KPopupMenu;
-class KActionMenu;
+class TDEPopupMenu;
+class TDEActionMenu;
class KopeteBalloon;
/**
@@ -60,15 +60,15 @@ public:
void stopBlink();
bool isBlinking() const { return mIsBlinking; };
- KPopupMenu *contextMenu() const { return KSystemTray::contextMenu(); };
+ TDEPopupMenu *contextMenu() const { return KSystemTray::contextMenu(); };
protected:
virtual void mousePressEvent( TQMouseEvent *e );
virtual void mouseDoubleClickEvent( TQMouseEvent *me );
- virtual void contextMenuAboutToShow( KPopupMenu * );
+ virtual void contextMenuAboutToShow( TDEPopupMenu * );
signals:
- void aboutToShowMenu(KPopupMenu *am);
+ void aboutToShowMenu(TDEPopupMenu *am);
private slots:
void slotBlink();
diff --git a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
index 967a47eb..ccecf81a 100644
--- a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
+++ b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
@@ -135,17 +135,17 @@ void KPixmapRegionSelectorWidget::updatePixmap()
}
-KPopupMenu *KPixmapRegionSelectorWidget::createPopupMenu()
+TDEPopupMenu *KPixmapRegionSelectorWidget::createPopupMenu()
{
- KPopupMenu *popup=new KPopupMenu(this, "PixmapRegionSelectorPopup");
+ TDEPopupMenu *popup=new TDEPopupMenu(this, "PixmapRegionSelectorPopup");
popup->insertTitle(i18n("Image Operations"));
- KAction *action = new KAction(i18n("&Rotate Clockwise"), "rotate_cw",
+ TDEAction *action = new TDEAction(i18n("&Rotate Clockwise"), "rotate_cw",
0, this, TQT_SLOT(rotateClockwise()),
popup, "rotateclockwise");
action->plug(popup);
- action = new KAction(i18n("Rotate &Counterclockwise"), "rotate_ccw",
+ action = new TDEAction(i18n("Rotate &Counterclockwise"), "rotate_ccw",
0, this, TQT_SLOT(rotateCounterclockwise()),
popup, "rotatecounterclockwise");
action->plug(popup);
@@ -215,7 +215,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
if ( mev->button() == RightButton )
{
- KPopupMenu *popup = createPopupMenu( );
+ TDEPopupMenu *popup = createPopupMenu( );
popup->exec( mev->globalPos() );
delete popup;
return TRUE;
diff --git a/kopete/libkopete/compat/kpixmapregionselectorwidget.h b/kopete/libkopete/compat/kpixmapregionselectorwidget.h
index db95ee37..0eb626ed 100644
--- a/kopete/libkopete/compat/kpixmapregionselectorwidget.h
+++ b/kopete/libkopete/compat/kpixmapregionselectorwidget.h
@@ -25,7 +25,7 @@
#include <tqlabel.h>
#include <kimageeffect.h>
-class KPopupMenu;
+class TDEPopupMenu;
#include "kopete_export.h"
@@ -136,9 +136,9 @@ public slots:
protected:
/**
- * Creates a KPopupMenu with the menu that appears when clicking with the right button on the label
+ * Creates a TDEPopupMenu with the menu that appears when clicking with the right button on the label
*/
- virtual KPopupMenu *createPopupMenu();
+ virtual TDEPopupMenu *createPopupMenu();
private:
bool eventFilter(TQObject *obj, TQEvent *ev);
diff --git a/kopete/libkopete/kautoconfig.cpp b/kopete/libkopete/kautoconfig.cpp
index e1fcf210..b3595516 100644
--- a/kopete/libkopete/kautoconfig.cpp
+++ b/kopete/libkopete/kautoconfig.cpp
@@ -163,15 +163,15 @@ bool KAutoConfig::retrieveSettings(bool trackChanges){
// KDE
changedMap.insert( TQString::fromLatin1("KComboBox"), TQT_SIGNAL(activated (int)));
- changedMap.insert( TQString::fromLatin1("KFontCombo"), TQT_SIGNAL(activated (int)));
- changedMap.insert( TQString::fromLatin1("KFontRequester"), TQT_SIGNAL(fontSelected(const TQFont &)));
- changedMap.insert( TQString::fromLatin1("KFontChooser"), TQT_SIGNAL(fontSelected(const TQFont &)));
+ changedMap.insert( TQString::fromLatin1("TDEFontCombo"), TQT_SIGNAL(activated (int)));
+ changedMap.insert( TQString::fromLatin1("TDEFontRequester"), TQT_SIGNAL(fontSelected(const TQFont &)));
+ changedMap.insert( TQString::fromLatin1("TDEFontChooser"), TQT_SIGNAL(fontSelected(const TQFont &)));
changedMap.insert( TQString::fromLatin1("KHistoryCombo"), TQT_SIGNAL(activated (int)));
changedMap.insert( TQString::fromLatin1("KColorButton"), TQT_SIGNAL(changed(const TQColor &)));
changedMap.insert( TQString::fromLatin1("KDatePicker"), TQT_SIGNAL(dateSelected (TQDate)));
changedMap.insert( TQString::fromLatin1("KEditListBox"), TQT_SIGNAL(changed()));
- changedMap.insert( TQString::fromLatin1("KListBox"), TQT_SIGNAL(selectionChanged()));
+ changedMap.insert( TQString::fromLatin1("TDEListBox"), TQT_SIGNAL(selectionChanged()));
changedMap.insert( TQString::fromLatin1("KLineEdit"), TQT_SIGNAL(textChanged(const TQString &)));
changedMap.insert( TQString::fromLatin1("KPasswordEdit"), TQT_SIGNAL(textChanged(const TQString &)));
changedMap.insert( TQString::fromLatin1("KRestrictedLine"), TQT_SIGNAL(textChanged(const TQString &)));
diff --git a/kopete/libkopete/kopeteaccount.cpp b/kopete/libkopete/kopeteaccount.cpp
index ccca93be..08f7a95e 100644
--- a/kopete/libkopete/kopeteaccount.cpp
+++ b/kopete/libkopete/kopeteaccount.cpp
@@ -358,10 +358,10 @@ bool Account::addContact(const TQString &contactId , MetaContact *parent, AddMod
return success;
}
-KActionMenu * Account::actionMenu()
+TDEActionMenu * Account::actionMenu()
{
//default implementation
- KActionMenu *menu = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
+ TDEActionMenu *menu = new TDEActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
TQString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString();
menu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ),
@@ -370,7 +370,7 @@ KActionMenu * Account::actionMenu()
OnlineStatusManager::self()->createAccountStatusActions(this, menu);
menu->popupMenu()->insertSeparator();
- menu->insert( new KAction ( i18n( "Properties" ), 0, this, TQT_SLOT( editAccount() ), menu, "actionAccountProperties" ) );
+ menu->insert( new TDEAction ( i18n( "Properties" ), 0, this, TQT_SLOT( editAccount() ), menu, "actionAccountProperties" ) );
return menu;
}
diff --git a/kopete/libkopete/kopeteaccount.h b/kopete/libkopete/kopeteaccount.h
index 1cf045d2..a8cd087c 100644
--- a/kopete/libkopete/kopeteaccount.h
+++ b/kopete/libkopete/kopeteaccount.h
@@ -27,7 +27,7 @@
#include <tqdict.h>
class TQDomNode;
-class KActionMenu;
+class TDEActionMenu;
class TDEConfigGroup;
namespace Kopete
@@ -221,7 +221,7 @@ public:
*
* @see OnlineStatusManager::registerOnlineStatus
*/
- virtual KActionMenu* actionMenu() ;
+ virtual TDEActionMenu* actionMenu() ;
/**
* @brief Retrieve the list of contacts for this account
diff --git a/kopete/libkopete/kopeteaccountmanager.h b/kopete/libkopete/kopeteaccountmanager.h
index 4f8f3bc2..70aaad9d 100644
--- a/kopete/libkopete/kopeteaccountmanager.h
+++ b/kopete/libkopete/kopeteaccountmanager.h
@@ -160,7 +160,7 @@ public slots:
* Make all accounts Available, by setting status, and connecting if necessary.
* Accounts are connected based on their excludeConnect() setting.
* Accounts which are already connected are controlled regardless of their excludeConnect() setting.
- * This is a slot, so you can connect directly to it from e.g. a KAction.
+ * This is a slot, so you can connect directly to it from e.g. a TDEAction.
* @param awayReason is the away(status) message that will be set.
*/
void setAvailableAll( const TQString &awayReason = TQString() );
diff --git a/kopete/libkopete/kopeteawayaction.cpp b/kopete/libkopete/kopeteawayaction.cpp
index 537b01fd..12c133f9 100644
--- a/kopete/libkopete/kopeteawayaction.cpp
+++ b/kopete/libkopete/kopeteawayaction.cpp
@@ -36,9 +36,9 @@ public:
};
-AwayAction::AwayAction(const TQString &text, const TQIconSet &pix, const KShortcut &cut,
+AwayAction::AwayAction(const TQString &text, const TQIconSet &pix, const TDEShortcut &cut,
const TQObject *receiver, const char *slot, TQObject *parent, const char *name )
- : KSelectAction(text, pix, cut, parent, name ) , d(new Private( OnlineStatus() ) )
+ : TDESelectAction(text, pix, cut, parent, name ) , d(new Private( OnlineStatus() ) )
{
TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
this, TQT_SLOT( slotAwayChanged() ) );
@@ -52,9 +52,9 @@ AwayAction::AwayAction(const TQString &text, const TQIconSet &pix, const KShortc
slotAwayChanged();
}
-AwayAction::AwayAction( const OnlineStatus& status, const TQString &text, const TQIconSet &pix, const KShortcut &cut,
+AwayAction::AwayAction( const OnlineStatus& status, const TQString &text, const TQIconSet &pix, const TDEShortcut &cut,
const TQObject *receiver, const char *slot, TQObject *parent, const char *name )
- : KSelectAction(text, pix, cut, parent, name ) , d(new Private( status ) )
+ : TDESelectAction(text, pix, cut, parent, name ) , d(new Private( status ) )
{
TQObject::connect( Kopete::Away::getInstance(), TQT_SIGNAL( messagesChanged() ),
this, TQT_SLOT( slotAwayChanged() ) );
diff --git a/kopete/libkopete/kopeteawayaction.h b/kopete/libkopete/kopeteawayaction.h
index 23680ed4..805d6c89 100644
--- a/kopete/libkopete/kopeteawayaction.h
+++ b/kopete/libkopete/kopeteawayaction.h
@@ -32,12 +32,12 @@ class OnlineStatus;
/**
* @class Kopete::AwayAction
*
- * Kopete::AwayAction is a KAction that lets you select an away message
+ * Kopete::AwayAction is a TDEAction that lets you select an away message
* from the list of predefined away messages, or enter a custom one.
*
* @author Jason Keirstead <[email protected]>
*/
-class KOPETE_EXPORT AwayAction : public KSelectAction
+class KOPETE_EXPORT AwayAction : public TDESelectAction
{
Q_OBJECT
@@ -45,10 +45,10 @@ class KOPETE_EXPORT AwayAction : public KSelectAction
/**
* Constructor
* @p text, @p pix, @p cut, @p receiver, @p slot, @p parent and
- * @p name are all handled by KSelectAction.
+ * @p name are all handled by TDESelectAction.
**/
AwayAction(const TQString &text, const TQIconSet &pix,
- const KShortcut &cut, const TQObject *receiver, const char *slot,
+ const TDEShortcut &cut, const TQObject *receiver, const char *slot,
TQObject *parent, const char *name = 0);
/**
@@ -56,10 +56,10 @@ class KOPETE_EXPORT AwayAction : public KSelectAction
* @param status the OnlineStatus that appears in the signal
* @param slot must have the following signature: ( const OnlineStatus &, const TQString & )
* @p text, @p pix, @p cut, @p receiver, @p slot, @p parent and
- * @p name are all handled by KSelectAction.
+ * @p name are all handled by TDESelectAction.
**/
AwayAction(const OnlineStatus &status, const TQString &text, const TQIconSet &pix,
- const KShortcut &cut, const TQObject *receiver, const char *slot,
+ const TDEShortcut &cut, const TQObject *receiver, const char *slot,
TQObject *parent, const char *name = 0);
/**
diff --git a/kopete/libkopete/kopetecommandhandler.cpp b/kopete/libkopete/kopetecommandhandler.cpp
index eba7c4ed..63269c4b 100644
--- a/kopete/libkopete/kopetecommandhandler.cpp
+++ b/kopete/libkopete/kopetecommandhandler.cpp
@@ -55,7 +55,7 @@ class KopeteCommandGUIClient : public TQObject, public KXMLGUIClient
for( TQDictIterator<Kopete::Command> it( mCommands ); it.current(); ++it )
{
- KAction *a = static_cast<KAction*>( it.current() );
+ TDEAction *a = static_cast<TDEAction*>( it.current() );
actionCollection()->insert( a );
TQDomElement newNode = doc.createElement( TQString::fromLatin1("Action") );
newNode.setAttribute( TQString::fromLatin1("name"),
@@ -89,7 +89,7 @@ struct CommandHandlerPrivate
Kopete::CommandHandler *s_handler;
TQMap<TDEProcess*,ManagerPair> processMap;
bool inCommand;
- TQPtrList<KAction> m_commands;
+ TQPtrList<TDEAction> m_commands;
};
CommandHandlerPrivate *Kopete::CommandHandler::p = 0L;
@@ -157,7 +157,7 @@ Kopete::CommandHandler *Kopete::CommandHandler::commandHandler()
}
void Kopete::CommandHandler::registerCommand( TQObject *parent, const TQString &command, const char* handlerSlot,
- const TQString &help, uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix )
+ const TQString &help, uint minArgs, int maxArgs, const TDEShortcut &cut, const TQString &pix )
{
TQString lowerCommand = command.lower();
@@ -173,7 +173,7 @@ void Kopete::CommandHandler::unregisterCommand( TQObject *parent, const TQString
}
void Kopete::CommandHandler::registerAlias( TQObject *parent, const TQString &alias, const TQString &formatString,
- const TQString &help, CommandType type, uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix )
+ const TQString &help, CommandType type, uint minArgs, int maxArgs, const TDEShortcut &cut, const TQString &pix )
{
TQString lowerAlias = alias.lower();
diff --git a/kopete/libkopete/kopetecommandhandler.h b/kopete/libkopete/kopetecommandhandler.h
index 7c26ace5..ebaae2c1 100644
--- a/kopete/libkopete/kopetecommandhandler.h
+++ b/kopete/libkopete/kopetecommandhandler.h
@@ -88,7 +88,7 @@ class KOPETE_EXPORT CommandHandler : public TQObject
*/
void registerCommand( TQObject *parent, const TQString &command, const char* handlerSlot,
const TQString &help = TQString(), uint minArgs = 0, int maxArgs = -1,
- const KShortcut &cut = 0, const TQString &pix = TQString() );
+ const TDEShortcut &cut = 0, const TQString &pix = TQString() );
/**
* \brief Register a command alias.
@@ -114,7 +114,7 @@ class KOPETE_EXPORT CommandHandler : public TQObject
CommandType = SystemAlias,
uint minArgs = 0,
int maxArgs = -1,
- const KShortcut &cut = 0,
+ const TDEShortcut &cut = 0,
const TQString &pix = TQString() );
/**
diff --git a/kopete/libkopete/kopetecontact.cpp b/kopete/libkopete/kopetecontact.cpp
index 85387709..28266e28 100644
--- a/kopete/libkopete/kopetecontact.cpp
+++ b/kopete/libkopete/kopetecontact.cpp
@@ -193,10 +193,10 @@ void Contact::slotAddContact()
}
}
-KPopupMenu* Contact::popupMenu( ChatSession *manager )
+TDEPopupMenu* Contact::popupMenu( ChatSession *manager )
{
// Build the menu
- KPopupMenu *menu = new KPopupMenu();
+ TDEPopupMenu *menu = new TDEPopupMenu();
// insert title
TQString titleText;
@@ -209,7 +209,7 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
if( metaContact() && metaContact()->isTemporary() && contactId() != account()->myself()->contactId() )
{
- KAction *actionAddContact = new KAction( i18n( "&Add to Your Contact List" ), TQString::fromLatin1( "add_user" ),
+ TDEAction *actionAddContact = new TDEAction( i18n( "&Add to Your Contact List" ), TQString::fromLatin1( "add_user" ),
0, TQT_TQOBJECT(this), TQT_SLOT( slotAddContact() ), TQT_TQOBJECT(menu), "actionAddContact" );
actionAddContact->plug( menu );
menu->insertSeparator();
@@ -219,15 +219,15 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
bool reach = account()->isConnected() && isReachable();
bool myself = (this == account()->myself());
- KAction *actionSendMessage = KopeteStdAction::sendMessage( TQT_TQOBJECT(this), TQT_SLOT( sendMessage() ), TQT_TQOBJECT(menu), "actionSendMessage" );
+ TDEAction *actionSendMessage = KopeteStdAction::sendMessage( TQT_TQOBJECT(this), TQT_SLOT( sendMessage() ), TQT_TQOBJECT(menu), "actionSendMessage" );
actionSendMessage->setEnabled( reach && !myself );
actionSendMessage->plug( menu );
- KAction *actionChat = KopeteStdAction::chat( TQT_TQOBJECT(this), TQT_SLOT( startChat() ), TQT_TQOBJECT(menu), "actionChat" );
+ TDEAction *actionChat = KopeteStdAction::chat( TQT_TQOBJECT(this), TQT_SLOT( startChat() ), TQT_TQOBJECT(menu), "actionChat" );
actionChat->setEnabled( reach && !myself );
actionChat->plug( menu );
- KAction *actionSendFile = KopeteStdAction::sendFile( TQT_TQOBJECT(this), TQT_SLOT( sendFile() ), TQT_TQOBJECT(menu), "actionSendFile" );
+ TDEAction *actionSendFile = KopeteStdAction::sendFile( TQT_TQOBJECT(this), TQT_SLOT( sendFile() ), TQT_TQOBJECT(menu), "actionSendFile" );
actionSendFile->setEnabled( reach && d->fileCapable && !myself );
actionSendFile->plug( menu );
@@ -235,12 +235,12 @@ KPopupMenu* Contact::popupMenu( ChatSession *manager )
// through the use of the customContextMenuActions() function
// Get the custom actions from the protocols ( pure virtual function )
- TQPtrList<KAction> *customActions = customContextMenuActions( manager );
+ TQPtrList<TDEAction> *customActions = customContextMenuActions( manager );
if( customActions && !customActions->isEmpty() )
{
menu->insertSeparator();
- for( KAction *a = customActions->first(); a; a = customActions->next() )
+ for( TDEAction *a = customActions->first(); a; a = customActions->next() )
a->plug( menu );
}
delete customActions;
@@ -511,12 +511,12 @@ void Contact::setIcon( const TQString& icon )
return;
}
-TQPtrList<KAction> *Contact::customContextMenuActions()
+TQPtrList<TDEAction> *Contact::customContextMenuActions()
{
return 0L;
}
-TQPtrList<KAction> *Contact::customContextMenuActions( ChatSession * /* manager */ )
+TQPtrList<TDEAction> *Contact::customContextMenuActions( ChatSession * /* manager */ )
{
return customContextMenuActions();
}
diff --git a/kopete/libkopete/kopetecontact.h b/kopete/libkopete/kopetecontact.h
index a268920f..f8a6052d 100644
--- a/kopete/libkopete/kopetecontact.h
+++ b/kopete/libkopete/kopetecontact.h
@@ -28,8 +28,8 @@
#include "kopete_export.h"
class TQImage;
-class KPopupMenu;
-class KAction;
+class TDEPopupMenu;
+class TDEAction;
namespace Kopete
{
@@ -223,12 +223,12 @@ public:
* @return Collection of menu items to be show on the context menu
* @todo if possible, try to use KXMLGUI
*/
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
/**
* @todo What is this function for ?
*/
- virtual TQPtrList<KAction> *customContextMenuActions( ChatSession *manager );
+ virtual TQPtrList<TDEAction> *customContextMenuActions( ChatSession *manager );
/**
* @brief Get the Context Menu for this contact
@@ -236,7 +236,7 @@ public:
* This menu includes generic actions common to each protocol, and action defined in
* @ref customContextMenuActions()
*/
- KPopupMenu *popupMenu( ChatSession *manager = 0L );
+ TDEPopupMenu *popupMenu( ChatSession *manager = 0L );
/**
* \brief Get whether or not this contact is capable of file transfers
@@ -426,7 +426,7 @@ public slots:
/**
* Changes the MetaContact that this contact is a part of. This function
- * is called by the KAction changeMetaContact that is part of the context
+ * is called by the TDEAction changeMetaContact that is part of the context
* menu.
*/
void changeMetaContact();
diff --git a/kopete/libkopete/kopetecontactlist.h b/kopete/libkopete/kopetecontactlist.h
index c929ac13..742c9c67 100644
--- a/kopete/libkopete/kopetecontactlist.h
+++ b/kopete/libkopete/kopetecontactlist.h
@@ -224,7 +224,7 @@ signals:
/**
* This signal is emitted each time the selection has changed. the bool is set to true if only one meta contact has been selected,
* and set to false if none, or several contacts are selected
- * you can connect this signal to KAction::setEnabled if you have an action which is applied to only one contact
+ * you can connect this signal to TDEAction::setEnabled if you have an action which is applied to only one contact
*/
void metaContactSelected(bool);
diff --git a/kopete/libkopete/kopeteonlinestatus.h b/kopete/libkopete/kopeteonlinestatus.h
index b1308131..6ad34c55 100644
--- a/kopete/libkopete/kopeteonlinestatus.h
+++ b/kopete/libkopete/kopeteonlinestatus.h
@@ -181,7 +181,7 @@ public:
* Constructor.
*
* @p Creates a new OnlineStatus object and registers it with the @ref Kopete::OnlineStatusManager.
- * Registration allows you to generate a KActionMenu filled with KActions for changing to this OnlineStatus,
+ * Registration allows you to generate a TDEActionMenu filled with TDEActions for changing to this OnlineStatus,
* using Kopete::Account::accountMenu().
*
* @p Note that weight has an additional significance for registered protocols when used for menu generation.
diff --git a/kopete/libkopete/kopeteonlinestatusmanager.cpp b/kopete/libkopete/kopeteonlinestatusmanager.cpp
index 07b23e81..c583198a 100644
--- a/kopete/libkopete/kopeteonlinestatusmanager.cpp
+++ b/kopete/libkopete/kopeteonlinestatusmanager.cpp
@@ -368,7 +368,7 @@ TQPixmap* OnlineStatusManager::renderIcon( const OnlineStatus &statusFor, const
return basis;
}
-void OnlineStatusManager::createAccountStatusActions( Account *account , KActionMenu *parent)
+void OnlineStatusManager::createAccountStatusActions( Account *account , TDEActionMenu *parent)
{
Private::ProtocolMap protocolMap=d->registeredStatus[account->protocol()];
Private::ProtocolMap::Iterator it;
@@ -380,14 +380,14 @@ void OnlineStatusManager::createAccountStatusActions( Account *account , KAction
OnlineStatus status=it.key();
TQString caption=it.data().caption;
- KAction *action;
+ TDEAction *action;
// Any existing actions owned by the account are reused by recovering them
// from the parent's child list.
// The description of the onlinestatus is used as the qobject name
// This is safe as long as OnlineStatus are immutable
TQCString actionName = status.description().ascii();
- if ( !( action = static_cast<KAction*>( account->child( actionName ) ) ) )
+ if ( !( action = static_cast<TDEAction*>( account->child( actionName ) ) ) )
{
if(options & OnlineStatusManager::HasAwayMessage)
{
@@ -417,7 +417,7 @@ void OnlineStatusManager::createAccountStatusActions( Account *account , KAction
OnlineStatusAction::OnlineStatusAction( const OnlineStatus& status, const TQString &text, const TQIconSet &pix, TQObject *parent, const char *name)
- : KAction( text, pix, KShortcut() , parent, name) , m_status(status)
+ : TDEAction( text, pix, TDEShortcut() , parent, name) , m_status(status)
{
connect(this,TQT_SIGNAL(activated()),this,TQT_SLOT(slotActivated()));
}
diff --git a/kopete/libkopete/kopeteonlinestatusmanager.h b/kopete/libkopete/kopeteonlinestatusmanager.h
index 92650fce..0ddd0745 100644
--- a/kopete/libkopete/kopeteonlinestatusmanager.h
+++ b/kopete/libkopete/kopeteonlinestatusmanager.h
@@ -26,7 +26,7 @@
class TQString;
class TQPixmap;
class TQColor;
-class KActionMenu;
+class TDEActionMenu;
namespace Kopete
{
@@ -115,7 +115,7 @@ public:
* @param account the account
* @param parent the ActionMenu where action are inserted
*/
- void createAccountStatusActions( Account *account , KActionMenu *parent);
+ void createAccountStatusActions( Account *account , TDEActionMenu *parent);
/**
* return the status of the @p protocol which is in the category @p category
@@ -149,7 +149,7 @@ private:
/**
* @internal
*/
-class OnlineStatusAction : public KAction
+class OnlineStatusAction : public TDEAction
{
Q_OBJECT
diff --git a/kopete/libkopete/kopeteplugin.h b/kopete/libkopete/kopeteplugin.h
index c3dacdac..54edc414 100644
--- a/kopete/libkopete/kopeteplugin.h
+++ b/kopete/libkopete/kopeteplugin.h
@@ -28,7 +28,7 @@
#include <kopetemessage.h> //TODO: remove
namespace DOM { class Node; } //TODO: remove
-class KAction; //TODO: remove
+class TDEAction; //TODO: remove
class KPluginInfo;
diff --git a/kopete/libkopete/private/kopetecommand.cpp b/kopete/libkopete/private/kopetecommand.cpp
index d86313d8..116fee30 100644
--- a/kopete/libkopete/private/kopetecommand.cpp
+++ b/kopete/libkopete/private/kopetecommand.cpp
@@ -27,8 +27,8 @@
Kopete::Command::Command( TQObject *parent, const TQString &command, const char* handlerSlot,
const TQString &help, Kopete::CommandHandler::CommandType type, const TQString &formatString,
- uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix )
- : KAction( command[0].upper() + command.right( command.length() - 1).lower(), pix, cut, parent,
+ uint minArgs, int maxArgs, const TDEShortcut &cut, const TQString &pix )
+ : TDEAction( command[0].upper() + command.right( command.length() - 1).lower(), pix, cut, parent,
( command.lower() + TQString::fromLatin1("_command") ).latin1() )
{
init( command, handlerSlot, help, type, formatString, minArgs, maxArgs );
@@ -88,7 +88,7 @@ void Kopete::Command::processCommand( const TQString &args, Kopete::ChatSession
"\"%1\" has a maximum of %n arguments.", m_minArgs)
.arg( text() ), manager, gui );
}
- else if( !TDEApplication::kApplication()->authorizeKAction( name() ) )
+ else if( !TDEApplication::kApplication()->authorizeTDEAction( name() ) )
{
printError( i18n("You are not authorized to perform the command \"%1\".").arg(text()), manager, gui );
}
diff --git a/kopete/libkopete/private/kopetecommand.h b/kopete/libkopete/private/kopetecommand.h
index 80e68fea..177f3b80 100644
--- a/kopete/libkopete/private/kopetecommand.h
+++ b/kopete/libkopete/private/kopetecommand.h
@@ -27,7 +27,7 @@ namespace Kopete
class ChatSession;
-class Command : public KAction
+class Command : public TDEAction
{
Q_OBJECT
@@ -52,7 +52,7 @@ class Command : public KAction
*/
Command( TQObject *parent, const TQString &command, const char* handlerSlot,
const TQString &help = TQString(), CommandHandler::CommandType type = CommandHandler::Normal, const TQString &formatString = TQString(),
- uint minArgs = 0, int maxArgs = -1, const KShortcut &cut = 0,
+ uint minArgs = 0, int maxArgs = -1, const TDEShortcut &cut = 0,
const TQString &pix = TQString() );
/**
diff --git a/kopete/libkopete/ui/accountselector.cpp b/kopete/libkopete/ui/accountselector.cpp
index 345e9ab4..f6cd3855 100644
--- a/kopete/libkopete/ui/accountselector.cpp
+++ b/kopete/libkopete/ui/accountselector.cpp
@@ -26,14 +26,14 @@
#include <kdebug.h>
#include <klistview.h>
-class AccountListViewItem : public KListViewItem
+class AccountListViewItem : public TDEListViewItem
{
private:
Kopete::Account *mAccount;
public:
AccountListViewItem(TQListView *parent, Kopete::Account *acc)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
if (acc==0)
return;
@@ -57,7 +57,7 @@ class AccountListViewItem : public KListViewItem
class AccountSelectorPrivate
{
public:
- KListView *lv;
+ TDEListView *lv;
Kopete::Protocol *proto;
};
@@ -93,7 +93,7 @@ void AccountSelector::initUI()
{
kdDebug(14010) << k_funcinfo << endl;
(new TQVBoxLayout(this))->setAutoAdd(true);
- d->lv = new KListView(this);
+ d->lv = new TDEListView(this);
d->lv->setFullWidth(true);
d->lv->addColumn(TQString::fromLatin1(""));
d->lv->header()->hide();
diff --git a/kopete/libkopete/ui/accountselector.h b/kopete/libkopete/ui/accountselector.h
index f675603f..6beb35c9 100644
--- a/kopete/libkopete/ui/accountselector.h
+++ b/kopete/libkopete/ui/accountselector.h
@@ -25,7 +25,7 @@
class AccountSelectorPrivate;
class TQListViewItem;
/**
- * \brief widget to select an account, based on KListView
+ * \brief widget to select an account, based on TDEListView
* @author Stefan Gehn <metz AT gehn.net>
*/
class KOPETE_EXPORT AccountSelector : public TQWidget
@@ -38,7 +38,7 @@ Q_OBJECT
* Constructor.
*
* The parameters @p parent and @p name are handled by
- * KListView.
+ * TDEListView.
*/
AccountSelector(TQWidget *parent=0, const char *name=0);
@@ -46,7 +46,7 @@ Q_OBJECT
* Constructor for a list of accounts for one protocol only
*
* The parameters @p parent and @p name are handled by
- * KListView. @p proto defines the protocol whose accounts are
+ * TDEListView. @p proto defines the protocol whose accounts are
* shown in the list
*/
AccountSelector(Kopete::Protocol *proto, TQWidget *parent=0, const char *name=0);
diff --git a/kopete/libkopete/ui/addressbookselectorwidget.cpp b/kopete/libkopete/ui/addressbookselectorwidget.cpp
index 5a75bbf9..16009ee5 100644
--- a/kopete/libkopete/ui/addressbookselectorwidget.cpp
+++ b/kopete/libkopete/ui/addressbookselectorwidget.cpp
@@ -72,7 +72,7 @@ AddressBookSelectorWidget::AddressBookSelectorWidget( TQWidget *parent, const ch
connect( m_addressBook, TQT_SIGNAL( addressBookChanged( AddressBook * ) ), this, TQT_SLOT( slotLoadAddressees() ) );
- //We should add a clear KAction here. But we can't really do that with a designer file :\ this sucks
+ //We should add a clear TDEAction here. But we can't really do that with a designer file :\ this sucks
addresseeListView->setColumnText(2, SmallIconSet(TQString::fromLatin1("email")), i18n("Email"));
diff --git a/kopete/libkopete/ui/addressbookselectorwidget_base.ui b/kopete/libkopete/ui/addressbookselectorwidget_base.ui
index 423b2047..ee4c2016 100644
--- a/kopete/libkopete/ui/addressbookselectorwidget_base.ui
+++ b/kopete/libkopete/ui/addressbookselectorwidget_base.ui
@@ -71,7 +71,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="KListView" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TDEListView" row="2" column="0" rowspan="1" colspan="2">
<column>
<property name="text">
<string>Photo</string>
@@ -153,7 +153,7 @@
<cstring>kListViewSearchLine</cstring>
</property>
</widget>
- <widget class="KListViewSearchLine">
+ <widget class="TDEListViewSearchLine">
<property name="name">
<cstring>kListViewSearchLine</cstring>
</property>
diff --git a/kopete/libkopete/ui/addresseeitem.cpp b/kopete/libkopete/ui/addresseeitem.cpp
index 9fa9f023..724f277c 100644
--- a/kopete/libkopete/ui/addresseeitem.cpp
+++ b/kopete/libkopete/ui/addresseeitem.cpp
@@ -28,7 +28,7 @@
#include "addresseeitem.h"
AddresseeItem::AddresseeItem( TQListView *parent, const KABC::Addressee &addressee) :
- KListViewItem( parent ),
+ TDEListViewItem( parent ),
mAddressee( addressee )
{
//We can't save showphoto because we don't have a d pointer
diff --git a/kopete/libkopete/ui/addresseeitem.h b/kopete/libkopete/ui/addresseeitem.h
index 36d1d284..29546ebc 100644
--- a/kopete/libkopete/ui/addresseeitem.h
+++ b/kopete/libkopete/ui/addresseeitem.h
@@ -32,7 +32,7 @@
/**
@short Special ListViewItem
*/
-class AddresseeItem : public KListViewItem
+class AddresseeItem : public TDEListViewItem
{
public:
diff --git a/kopete/libkopete/ui/kopetecontactaction.cpp b/kopete/libkopete/ui/kopetecontactaction.cpp
index cc6754d2..b2e8dba0 100644
--- a/kopete/libkopete/ui/kopetecontactaction.cpp
+++ b/kopete/libkopete/ui/kopetecontactaction.cpp
@@ -1,5 +1,5 @@
/*
- kopetecontactaction.cpp - KAction for selecting a Kopete::Contact
+ kopetecontactaction.cpp - TDEAction for selecting a Kopete::Contact
Copyright (c) 2003 by Martijn Klingens <[email protected]>
@@ -22,8 +22,8 @@
#include "kopeteonlinestatus.h"
KopeteContactAction::KopeteContactAction( Kopete::Contact *contact, const TQObject *receiver,
- const char *slot, KAction *parent )
-: KAction( contact->metaContact()->displayName(), TQIconSet( contact->onlineStatus().iconFor( contact ) ), KShortcut(),
+ const char *slot, TDEAction *parent )
+: TDEAction( contact->metaContact()->displayName(), TQIconSet( contact->onlineStatus().iconFor( contact ) ), TDEShortcut(),
parent, contact->contactId().latin1() )
{
m_contact = contact;
diff --git a/kopete/libkopete/ui/kopetecontactaction.h b/kopete/libkopete/ui/kopetecontactaction.h
index 15143697..3b370916 100644
--- a/kopete/libkopete/ui/kopetecontactaction.h
+++ b/kopete/libkopete/ui/kopetecontactaction.h
@@ -1,5 +1,5 @@
/*
- kopetecontactaction.cpp - KAction for selecting a Kopete::Contact
+ kopetecontactaction.cpp - TDEAction for selecting a Kopete::Contact
Copyright (c) 2003 by Martijn Klingens <[email protected]>
@@ -29,7 +29,7 @@ class Contact;
/**
* @author Martijn Klingens <[email protected]>
*/
-class KOPETE_EXPORT KopeteContactAction : public KAction
+class KOPETE_EXPORT KopeteContactAction : public TDEAction
{
Q_OBJECT
@@ -38,7 +38,7 @@ public:
/**
* Create a new KopeteContactAction
*/
- KopeteContactAction( Kopete::Contact *contact, const TQObject* receiver, const char* slot, KAction* parent );
+ KopeteContactAction( Kopete::Contact *contact, const TQObject* receiver, const char* slot, TDEAction* parent );
~KopeteContactAction();
Kopete::Contact * contact() const;
diff --git a/kopete/libkopete/ui/kopetelistview.cpp b/kopete/libkopete/ui/kopetelistview.cpp
index b0f7e787..44b2a8d9 100644
--- a/kopete/libkopete/ui/kopetelistview.cpp
+++ b/kopete/libkopete/ui/kopetelistview.cpp
@@ -103,7 +103,7 @@ struct ListView::Private
};
ListView::ListView( TQWidget *parent, const char *name )
- : KListView( parent, name ), d( new Private )
+ : TDEListView( parent, name ), d( new Private )
{
connect( &d->sortTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotSort() ) );
@@ -111,8 +111,8 @@ ListView::ListView( TQWidget *parent, const char *name )
setShowToolTips( false );
d->toolTip.reset( new ToolTip( viewport(), this ) );
- connect( this, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ),
- TQT_SLOT( slotContextMenu( KListView *, TQListViewItem *, const TQPoint & ) ) );
+ connect( this, TQT_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ),
+ TQT_SLOT( slotContextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ) );
connect( this, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ),
TQT_SLOT( slotDoubleClicked( TQListViewItem * ) ) );
@@ -147,7 +147,7 @@ void ListView::slotDoubleClicked( TQListViewItem *item )
setOpen( item, !isOpen( item ) );
}
-void ListView::slotContextMenu( KListView * /*listview*/,
+void ListView::slotContextMenu( TDEListView * /*listview*/,
TQListViewItem *item, const TQPoint &/*point*/ )
{
if ( item && !item->isSelected() )
@@ -197,7 +197,7 @@ void ListView::keyPressEvent( TQKeyEvent *e )
emitExecute( currentItem(), p, 0 );
}
else
- KListView::keyPressEvent(e);
+ TDEListView::keyPressEvent(e);
}
void ListView::delayedSort()
diff --git a/kopete/libkopete/ui/kopetelistview.h b/kopete/libkopete/ui/kopetelistview.h
index 79a96dbb..98ae4b19 100644
--- a/kopete/libkopete/ui/kopetelistview.h
+++ b/kopete/libkopete/ui/kopetelistview.h
@@ -29,7 +29,7 @@ namespace ListView {
* @author Engin AYDOGAN <[email protected]>
* @author Richard Smith <[email protected]>
*/
-class ListView : public KListView
+class ListView : public TDEListView
{
Q_OBJECT
@@ -59,7 +59,7 @@ public slots:
protected:
virtual void keyPressEvent( TQKeyEvent *e );
private slots:
- void slotContextMenu(KListView*,TQListViewItem *item, const TQPoint &point );
+ void slotContextMenu(TDEListView*,TQListViewItem *item, const TQPoint &point );
void slotDoubleClicked( TQListViewItem *item );
private:
struct Private;
diff --git a/kopete/libkopete/ui/kopetelistviewitem.cpp b/kopete/libkopete/ui/kopetelistviewitem.cpp
index 03616908..6a0cfae4 100644
--- a/kopete/libkopete/ui/kopetelistviewitem.cpp
+++ b/kopete/libkopete/ui/kopetelistviewitem.cpp
@@ -1280,13 +1280,13 @@ bool Item::Private::fadeVisibility = true;
bool Item::Private::foldVisibility = true;
Item::Item( TQListViewItem *parent, TQObject *owner, const char *name )
- : TQObject( owner, name ), KListViewItem( parent ), d( new Private(this) )
+ : TQObject( owner, name ), TDEListViewItem( parent ), d( new Private(this) )
{
initLVI();
}
Item::Item( TQListView *parent, TQObject *owner, const char *name )
- : TQObject( owner, name ), KListViewItem( parent ), d( new Private(this) )
+ : TQObject( owner, name ), TDEListViewItem( parent ), d( new Private(this) )
{
initLVI();
}
@@ -1469,7 +1469,7 @@ void Item::relayout()
void Item::setup()
{
- KListViewItem::setup();
+ TDEListViewItem::setup();
slotLayoutItems();
}
@@ -1484,7 +1484,7 @@ void Item::setHeight( int )
int vis = TQMIN( d->visibilityLevel, Private::visibilityFoldSteps );
minHeight = (minHeight * vis) / Private::visibilityFoldSteps;
}
- KListViewItem::setHeight( minHeight );
+ TDEListViewItem::setHeight( minHeight );
}
int Item::width( const TQFontMetrics &, const TQListView *lv, int c ) const
@@ -1498,15 +1498,15 @@ void Item::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int widt
{
TQPixmap back( width, height() );
TQPainter paint( &back );
- //KListViewItem::paintCell( &paint, cg, column, width, align );
+ //TDEListViewItem::paintCell( &paint, cg, column, width, align );
// PASTED FROM KLISTVIEWITEM:
// set the alternate cell background colour if necessary
TQColorGroup _cg = cg;
if (isAlternate())
if (listView()->viewport()->backgroundMode()==TQt::FixedColor)
- _cg.setColor(TQColorGroup::Background, static_cast< KListView* >(listView())->alternateBackground());
+ _cg.setColor(TQColorGroup::Background, static_cast< TDEListView* >(listView())->alternateBackground());
else
- _cg.setColor(TQColorGroup::Base, static_cast< KListView* >(listView())->alternateBackground());
+ _cg.setColor(TQColorGroup::Base, static_cast< TDEListView* >(listView())->alternateBackground());
// PASTED FROM TQLISTVIEWITEM
{
TQPainter *p = &paint;
diff --git a/kopete/libkopete/ui/kopetelistviewitem.h b/kopete/libkopete/ui/kopetelistviewitem.h
index 8285047a..871f1a6d 100644
--- a/kopete/libkopete/ui/kopetelistviewitem.h
+++ b/kopete/libkopete/ui/kopetelistviewitem.h
@@ -451,7 +451,7 @@ public:
*
* @author Richard Smith <[email protected]>
*/
-class Item : public TQObject, public KListViewItem, public ComponentBase
+class Item : public TQObject, public TDEListViewItem, public ComponentBase
{
Q_OBJECT
diff --git a/kopete/libkopete/ui/kopetelistviewsearchline.cpp b/kopete/libkopete/ui/kopetelistviewsearchline.cpp
index edb63ffc..24acfb08 100644
--- a/kopete/libkopete/ui/kopetelistviewsearchline.cpp
+++ b/kopete/libkopete/ui/kopetelistviewsearchline.cpp
@@ -25,12 +25,12 @@ namespace UI {
namespace ListView {
SearchLine::SearchLine( TQWidget *parent, ListView *listView, const char *name )
- : KListViewSearchLine( parent, listView, name )
+ : TDEListViewSearchLine( parent, listView, name )
{
}
SearchLine::SearchLine(TQWidget *parent, const char *name)
- : KListViewSearchLine( parent, 0, name )
+ : TDEListViewSearchLine( parent, 0, name )
{
}
@@ -58,9 +58,9 @@ void SearchLine::updateSearch( const TQString &s )
switch( listView()->selectionMode() )
{
- case KListView::NoSelection:
+ case TDEListView::NoSelection:
break;
- case KListView::Single:
+ case TDEListView::Single:
currentItem = listView()->selectedItem();
break;
default:
diff --git a/kopete/libkopete/ui/kopetelistviewsearchline.h b/kopete/libkopete/ui/kopetelistviewsearchline.h
index 55d3ce91..70b419d5 100644
--- a/kopete/libkopete/ui/kopetelistviewsearchline.h
+++ b/kopete/libkopete/ui/kopetelistviewsearchline.h
@@ -26,7 +26,7 @@ namespace ListView {
class ListView;
-class SearchLine : public KListViewSearchLine
+class SearchLine : public TDEListViewSearchLine
{
Q_OBJECT
@@ -41,7 +41,7 @@ public:
SearchLine( TQWidget *parent, ListView *listView = 0, const char *name = 0 );
/**
* Constructs a SearchLine without any ListView to filter. The
- * KListView object has to be set later with setListView().
+ * TDEListView object has to be set later with setListView().
*/
SearchLine(TQWidget *parent, const char *name);
/**
diff --git a/kopete/libkopete/ui/kopetestdaction.cpp b/kopete/libkopete/ui/kopetestdaction.cpp
index f69adcfc..5a589293 100644
--- a/kopete/libkopete/ui/kopetestdaction.cpp
+++ b/kopete/libkopete/ui/kopetestdaction.cpp
@@ -36,11 +36,11 @@
KSettings::Dialog *KopetePreferencesAction::s_settingsDialog = 0L;
-KopetePreferencesAction::KopetePreferencesAction( KActionCollection *parent, const char *name )
+KopetePreferencesAction::KopetePreferencesAction( TDEActionCollection *parent, const char *name )
#if KDE_IS_VERSION( 3, 3, 90 )
-: KAction( KStdGuiItem::configure(), 0, 0, 0, parent, name )
+: TDEAction( KStdGuiItem::configure(), 0, 0, 0, parent, name )
#else
-: KAction( KGuiItem( i18n( "&Configure Kopete..." ),
+: TDEAction( KGuiItem( i18n( "&Configure Kopete..." ),
TQString::fromLatin1( "configure" ) ), 0, 0, 0, parent, name )
#endif
{
@@ -63,64 +63,64 @@ void KopetePreferencesAction::slotShowPreferences()
KWin::activateWindow( s_settingsDialog->dialog()->winId() );
}
-KAction * KopeteStdAction::preferences( KActionCollection *parent, const char *name )
+TDEAction * KopeteStdAction::preferences( TDEActionCollection *parent, const char *name )
{
return new KopetePreferencesAction( parent, name );
}
-KAction * KopeteStdAction::chat( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::chat( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "Start &Chat..." ), TQString::fromLatin1( "mail_generic" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "Start &Chat..." ), TQString::fromLatin1( "mail_generic" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::sendMessage( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::sendMessage( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "&Send Single Message..." ), TQString::fromLatin1( "mail_generic" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "&Send Single Message..." ), TQString::fromLatin1( "mail_generic" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::contactInfo( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::contactInfo( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "User &Info" ), TQString::fromLatin1( "messagebox_info" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "User &Info" ), TQString::fromLatin1( "messagebox_info" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::sendFile( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::sendFile( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "Send &File..." ), TQString::fromLatin1( "attach" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "Send &File..." ), TQString::fromLatin1( "attach" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::viewHistory( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::viewHistory( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "View &History..." ), TQString::fromLatin1( "history" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "View &History..." ), TQString::fromLatin1( "history" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::addGroup( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::addGroup( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "&Create Group..." ), TQString::fromLatin1( "folder" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "&Create Group..." ), TQString::fromLatin1( "folder" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::changeMetaContact( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::changeMetaContact( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "Cha&nge Meta Contact..." ), TQString::fromLatin1( "move" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "Cha&nge Meta Contact..." ), TQString::fromLatin1( "move" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::deleteContact( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::deleteContact( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "&Delete Contact" ), TQString::fromLatin1( "delete_user" ), TQt::Key_Delete, recvr, slot, parent, name );
+ return new TDEAction( i18n( "&Delete Contact" ), TQString::fromLatin1( "delete_user" ), TQt::Key_Delete, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::changeAlias( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
+TDEAction * KopeteStdAction::changeAlias( const TQObject *recvr, const char *slot, TQObject *parent, const char *name )
{
- return new KAction( i18n( "Change A&lias..." ), TQString::fromLatin1( "signature" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "Change A&lias..." ), TQString::fromLatin1( "signature" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::blockContact( const TQObject *recvr, const char *slot, TQObject* parent, const char *name )
+TDEAction * KopeteStdAction::blockContact( const TQObject *recvr, const char *slot, TQObject* parent, const char *name )
{
- return new KAction( i18n( "&Block Contact" ), TQString::fromLatin1( "player_pause" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "&Block Contact" ), TQString::fromLatin1( "player_pause" ), 0, recvr, slot, parent, name );
}
-KAction * KopeteStdAction::unblockContact( const TQObject *recvr, const char *slot, TQObject* parent, const char *name )
+TDEAction * KopeteStdAction::unblockContact( const TQObject *recvr, const char *slot, TQObject* parent, const char *name )
{
- return new KAction( i18n( "Un&block Contact" ), TQString::fromLatin1( "player_play" ), 0, recvr, slot, parent, name );
+ return new TDEAction( i18n( "Un&block Contact" ), TQString::fromLatin1( "player_play" ), 0, recvr, slot, parent, name );
}
#include "kopetestdaction.moc"
diff --git a/kopete/libkopete/ui/kopetestdaction.h b/kopete/libkopete/ui/kopetestdaction.h
index 895ad180..376548b9 100644
--- a/kopete/libkopete/ui/kopetestdaction.h
+++ b/kopete/libkopete/ui/kopetestdaction.h
@@ -34,57 +34,57 @@ public:
/**
* Standard action to start a chat
*/
- static KAction *chat( const TQObject *recvr, const char *slot,
+ static TDEAction *chat( const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0 );
/**
* Standard action to send a single message
*/
- static KAction *sendMessage(const TQObject *recvr, const char *slot,
+ static TDEAction *sendMessage(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to open a user info dialog
*/
- static KAction *contactInfo(const TQObject *recvr, const char *slot,
+ static TDEAction *contactInfo(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to open a history dialog or something similar
*/
- static KAction *viewHistory(const TQObject *recvr, const char *slot,
+ static TDEAction *viewHistory(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to initiate sending a file to a contact
*/
- static KAction *sendFile(const TQObject *recvr, const char *slot,
+ static TDEAction *sendFile(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to change a contacts @ref Kopete::MetaContact
*/
- static KAction *changeMetaContact(const TQObject *recvr, const char *slot,
+ static TDEAction *changeMetaContact(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to add a group
*/
- static KAction *addGroup(const TQObject *recvr, const char *slot,
+ static TDEAction *addGroup(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to delete a contact
*/
- static KAction *deleteContact(const TQObject *recvr, const char *slot,
+ static TDEAction *deleteContact(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to change a contact alias/nickname in your contactlist
*/
- static KAction *changeAlias(const TQObject *recvr, const char *slot,
+ static TDEAction *changeAlias(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to block a contact
*/
- static KAction *blockContact(const TQObject *recvr, const char *slot,
+ static TDEAction *blockContact(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
* Standard action to unblock a contact
*/
- static KAction *unblockContact(const TQObject *recvr, const char *slot,
+ static TDEAction *unblockContact(const TQObject *recvr, const char *slot,
TQObject* parent, const char *name = 0);
/**
@@ -92,7 +92,7 @@ public:
*
* The object has no signal/slot, the prefs are automatically shown
*/
- static KAction *preferences(KActionCollection *parent, const char *name = 0);
+ static TDEAction *preferences(TDEActionCollection *parent, const char *name = 0);
};
@@ -101,13 +101,13 @@ namespace KSettings
class Dialog;
}
-class KOPETE_EXPORT KopetePreferencesAction : public KAction
+class KOPETE_EXPORT KopetePreferencesAction : public TDEAction
{
Q_OBJECT
public:
- KopetePreferencesAction( KActionCollection *parent, const char *name = 0 );
+ KopetePreferencesAction( TDEActionCollection *parent, const char *name = 0 );
~KopetePreferencesAction();
protected slots:
diff --git a/kopete/libkopete/ui/kopeteview.h b/kopete/libkopete/ui/kopeteview.h
index c54b1dba..b1daf472 100644
--- a/kopete/libkopete/ui/kopeteview.h
+++ b/kopete/libkopete/ui/kopeteview.h
@@ -136,7 +136,7 @@ class KOPETE_EXPORT KopeteView
* menus that can be extended
*
* @param target A target TQObject for the contextMenuEvent signal of the view
- * @param slot A slot that matches the signature ( TQString&, KPopupMenu *)
+ * @param slot A slot that matches the signature ( TQString&, TDEPopupMenu *)
*/
virtual void registerContextMenuHandler( TQObject *target, const char*slot ){ Q_UNUSED(target); Q_UNUSED(slot); };
@@ -152,7 +152,7 @@ class KOPETE_EXPORT KopeteView
* to show tooltips
*
* @param target A target TQObject for the contextMenuEvent signal of the view
- * @param slot A slot that matches the signature ( TQString&, KPopupMenu *)
+ * @param slot A slot that matches the signature ( TQString&, TDEPopupMenu *)
*/
virtual void registerTooltipHandler( TQObject *target, const char*slot ){ Q_UNUSED(target); Q_UNUSED(slot); };
diff --git a/kopete/plugins/alias/aliasdialog.ui b/kopete/plugins/alias/aliasdialog.ui
index 5b6a832c..6e52c0ce 100644
--- a/kopete/plugins/alias/aliasdialog.ui
+++ b/kopete/plugins/alias/aliasdialog.ui
@@ -86,7 +86,7 @@ Do not include the '/' in the command (if you do it will be stripped off anyway)
<string>&amp;Cancel</string>
</property>
</widget>
- <widget class="KListView" row="2" column="1" rowspan="1" colspan="2">
+ <widget class="TDEListView" row="2" column="1" rowspan="1" colspan="2">
<column>
<property name="text">
<string>Protocols</string>
diff --git a/kopete/plugins/alias/aliasdialogbase.ui b/kopete/plugins/alias/aliasdialogbase.ui
index 1121c24d..2bdc2e77 100644
--- a/kopete/plugins/alias/aliasdialogbase.ui
+++ b/kopete/plugins/alias/aliasdialogbase.ui
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TDEListView" row="0" column="0" rowspan="1" colspan="3">
<column>
<property name="text">
<string>Alias</string>
diff --git a/kopete/plugins/contactnotes/contactnotesplugin.cpp b/kopete/plugins/contactnotes/contactnotesplugin.cpp
index ce67e663..db3d1302 100644
--- a/kopete/plugins/contactnotes/contactnotesplugin.cpp
+++ b/kopete/plugins/contactnotes/contactnotesplugin.cpp
@@ -37,7 +37,7 @@ ContactNotesPlugin::ContactNotesPlugin( TQObject *parent, const char *name, cons
else
pluginStatic_ = this;
- KAction *m_actionEdit=new KAction( i18n("&Notes"), "identity", 0, this, TQT_SLOT (slotEditInfo()), actionCollection() , "editContactNotes");
+ TDEAction *m_actionEdit=new TDEAction( i18n("&Notes"), "identity", 0, this, TQT_SLOT (slotEditInfo()), actionCollection() , "editContactNotes");
connect ( Kopete::ContactList::self() , TQT_SIGNAL( metaContactSelected(bool)) , m_actionEdit , TQT_SLOT(setEnabled(bool)));
m_actionEdit->setEnabled(Kopete::ContactList::self()->selectedMetaContacts().count()==1 );
diff --git a/kopete/plugins/contactnotes/contactnotesplugin.h b/kopete/plugins/contactnotes/contactnotesplugin.h
index ebd2cade..34335186 100644
--- a/kopete/plugins/contactnotes/contactnotesplugin.h
+++ b/kopete/plugins/contactnotes/contactnotesplugin.h
@@ -25,8 +25,8 @@
#include "kopeteplugin.h"
class TQString;
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
namespace Kopete { class MetaContact; }
diff --git a/kopete/plugins/cryptography/cryptographyguiclient.cpp b/kopete/plugins/cryptography/cryptographyguiclient.cpp
index 4892afb1..df66c608 100644
--- a/kopete/plugins/cryptography/cryptographyguiclient.cpp
+++ b/kopete/plugins/cryptography/cryptographyguiclient.cpp
@@ -48,7 +48,7 @@ CryptographyGUIClient::CryptographyGUIClient(Kopete::ChatSession *parent )
setInstance( KGenericFactory<CryptographyPlugin>::instance() );
- m_action=new KToggleAction( i18n("Encrypt Messages" ), TQString::fromLatin1( "encrypted" ), 0, this, TQT_SLOT(slotToggled()), actionCollection() , "cryptographyToggle" );
+ m_action=new TDEToggleAction( i18n("Encrypt Messages" ), TQString::fromLatin1( "encrypted" ), 0, this, TQT_SLOT(slotToggled()), actionCollection() , "cryptographyToggle" );
m_action->setChecked( first->pluginData( CryptographyPlugin::plugin() , "encrypt_messages") != TQString::fromLatin1("off") ) ;
setXMLFile("cryptographychatui.rc");
diff --git a/kopete/plugins/cryptography/cryptographyguiclient.h b/kopete/plugins/cryptography/cryptographyguiclient.h
index 530a1172..f9c29a49 100644
--- a/kopete/plugins/cryptography/cryptographyguiclient.h
+++ b/kopete/plugins/cryptography/cryptographyguiclient.h
@@ -19,7 +19,7 @@
#include <kxmlguiclient.h>
namespace Kopete { class ChatSession; }
-class KToggleAction;
+class TDEToggleAction;
/**
*@author Olivier Goffart
@@ -33,7 +33,7 @@ public:
~CryptographyGUIClient();
private:
- KToggleAction *m_action;
+ TDEToggleAction *m_action;
private slots:
void slotToggled();
diff --git a/kopete/plugins/cryptography/cryptographyplugin.cpp b/kopete/plugins/cryptography/cryptographyplugin.cpp
index 06412936..1085da9c 100644
--- a/kopete/plugins/cryptography/cryptographyplugin.cpp
+++ b/kopete/plugins/cryptography/cryptographyplugin.cpp
@@ -68,7 +68,7 @@ CryptographyPlugin::CryptographyPlugin( TQObject *parent, const char *name, cons
TQObject::connect(m_cachedPass_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotForgetCachedPass() ));
- KAction *action=new KAction( i18n("&Select Cryptography Public Key..."), "encrypted", 0, this, TQT_SLOT (slotSelectContactKey()), actionCollection() , "contactSelectKey");
+ TDEAction *action=new TDEAction( i18n("&Select Cryptography Public Key..."), "encrypted", 0, this, TQT_SLOT (slotSelectContactKey()), actionCollection() , "contactSelectKey");
connect ( Kopete::ContactList::self() , TQT_SIGNAL( metaContactSelected(bool)) , action , TQT_SLOT(setEnabled(bool)));
action->setEnabled(Kopete::ContactList::self()->selectedMetaContacts().count()==1 );
@@ -138,12 +138,12 @@ bool CryptographyPlugin::passphraseHandling()
}
-/*KActionCollection *CryptographyPlugin::customChatActions(Kopete::ChatSession *KMM)
+/*TDEActionCollection *CryptographyPlugin::customChatActions(Kopete::ChatSession *KMM)
{
delete m_actionCollection;
- m_actionCollection = new KActionCollection(this);
- KAction *actionTranslate = new KAction( i18n ("Translate"), 0,
+ m_actionCollection = new TDEActionCollection(this);
+ TDEAction *actionTranslate = new TDEAction( i18n ("Translate"), 0,
this, TQT_SLOT( slotTranslateChat() ), m_actionCollection, "actionTranslate" );
m_actionCollection->insert( actionTranslate );
diff --git a/kopete/plugins/cryptography/kgpgselkey.cpp b/kopete/plugins/cryptography/kgpgselkey.cpp
index 37a0d8ab..63d26510 100644
--- a/kopete/plugins/cryptography/kgpgselkey.cpp
+++ b/kopete/plugins/cryptography/kgpgselkey.cpp
@@ -48,7 +48,7 @@ KgpgSelKey::KgpgSelKey(TQWidget *parent, const char *name,bool showlocal):KDialo
keyPair=loader->loadIcon("kgpg_key2",KIcon::Small,20);
setMinimumSize(300,200);
- keysListpr = new KListView( page );
+ keysListpr = new TDEListView( page );
keysListpr->setRootIsDecorated(true);
keysListpr->addColumn( i18n( "Name" ) );
keysListpr->setShowSortIndicator(true);
@@ -146,8 +146,8 @@ KgpgSelKey::KgpgSelKey(TQWidget *parent, const char *name,bool showlocal):KDialo
pclose(fp2);
if (!tst.isEmpty() && (!dead))
{
- KListViewItem *item=new KListViewItem(keysListpr,extractKeyName(tst));
- KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, expiration: %3").arg(id).arg(tr).arg(val));
+ TDEListViewItem *item=new TDEListViewItem(keysListpr,extractKeyName(tst));
+ TDEListViewItem *sub= new TDEListViewItem(item,i18n("ID: %1, trust: %2, expiration: %3").arg(id).arg(tr).arg(val));
sub->setSelectable(false);
item->setPixmap(0,keyPair);
}
diff --git a/kopete/plugins/cryptography/kgpgselkey.h b/kopete/plugins/cryptography/kgpgselkey.h
index 0742082a..a832c886 100644
--- a/kopete/plugins/cryptography/kgpgselkey.h
+++ b/kopete/plugins/cryptography/kgpgselkey.h
@@ -23,7 +23,7 @@
#include <kdialogbase.h>
-class KListView;
+class TDEListView;
class TQCheckBox;
struct gpgKey {
@@ -45,7 +45,7 @@ class KgpgSelKey : public KDialogBase
public:
KgpgSelKey( TQWidget *parent = 0, const char *name = 0,bool showlocal=true);
- KListView *keysListpr;
+ TDEListView *keysListpr;
TQPixmap keyPair;
TQCheckBox *local;
private slots:
diff --git a/kopete/plugins/cryptography/popuppublic.cpp b/kopete/plugins/cryptography/popuppublic.cpp
index e3d2e630..7764d3b3 100644
--- a/kopete/plugins/cryptography/popuppublic.cpp
+++ b/kopete/plugins/cryptography/popuppublic.cpp
@@ -54,7 +54,7 @@
///////////////// klistviewitem special
-class UpdateViewItem2 : public KListViewItem
+class UpdateViewItem2 : public TDEListViewItem
{
public:
UpdateViewItem2(TQListView *parent, TQString name,TQString mail,TQString id,bool isDefault);
@@ -64,7 +64,7 @@ public:
};
UpdateViewItem2::UpdateViewItem2(TQListView *parent, TQString name,TQString mail,TQString id,bool isDefault)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
def=isDefault;
setText(0,name);
@@ -80,7 +80,7 @@ void UpdateViewItem2::paintCell(TQPainter *p, const TQColorGroup &cg,int column,
font.setBold(true);
p->setFont(font);
}
- KListViewItem::paintCell(p, cg, column, width, alignment);
+ TDEListViewItem::paintCell(p, cg, column, width, alignment);
}
TQString UpdateViewItem2 :: key(int c,bool ) const
@@ -90,7 +90,7 @@ TQString UpdateViewItem2 :: key(int c,bool ) const
/////////////// main view
-popupPublic::popupPublic(TQWidget *parent, const char *name,TQString sfile,bool filemode,KShortcut goDefaultKey):
+popupPublic::popupPublic(TQWidget *parent, const char *name,TQString sfile,bool filemode,TDEShortcut goDefaultKey):
KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent, name,true)
{
TQWidget *page = plainPage();
@@ -120,10 +120,10 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
clearSearch->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left"
: "locationbar_erase"));
(void) new TQLabel(i18n("Search: "),hBar);
- KListViewSearchLine* listViewSearch = new KListViewSearchLine(hBar);
+ TDEListViewSearchLine* listViewSearch = new TDEListViewSearchLine(hBar);
connect(clearSearch, TQT_SIGNAL(pressed()), listViewSearch, TQT_SLOT(clear()));
- keysList = new KListView( page );
+ keysList = new TDEListView( page );
keysList->addColumn(i18n("Name"));
keysList->addColumn(i18n("Email"));
keysList->addColumn(i18n("ID"));
@@ -135,7 +135,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
keysList->setShowSortIndicator(true);
keysList->setFullWidth(true);
keysList->setAllColumnsShowFocus(true);
- keysList->setSelectionModeExt(KListView::Extended);
+ keysList->setSelectionModeExt(TDEListView::Extended);
keysList->setColumnWidthMode(0,TQListView::Manual);
keysList->setColumnWidthMode(1,TQListView::Manual);
keysList->setColumnWidth(0,210);
@@ -143,8 +143,8 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
boutonboxoptions=new TQButtonGroup(5,Qt::Vertical ,page,0);
- KActionCollection *actcol=new KActionCollection(this);
- (void) new KAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key");
+ TDEActionCollection *actcol=new TDEActionCollection(this);
+ (void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key");
CBarmor=new TQCheckBox(i18n("ASCII armored encryption"),boutonboxoptions);
@@ -452,7 +452,7 @@ void popupPublic::slotprocread(KProcIO *p)
bool isDefaultKey=false;
if (id.right(8)==defaultKey) isDefaultKey=true;
UpdateViewItem2 *item=new UpdateViewItem2(keysList,keyname,keymail,id,isDefaultKey);
- //KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").arg(id).arg(tr).arg(val));
+ //TDEListViewItem *sub= new TDEListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").arg(id).arg(tr).arg(val));
//sub->setSelectable(false);
if (seclist.find(tst,0,FALSE)!=-1)
item->setPixmap(0,keyPair);
diff --git a/kopete/plugins/cryptography/popuppublic.h b/kopete/plugins/cryptography/popuppublic.h
index 02570ef2..83ac5102 100644
--- a/kopete/plugins/cryptography/popuppublic.h
+++ b/kopete/plugins/cryptography/popuppublic.h
@@ -27,7 +27,7 @@
class TQPushButton;
class TQCheckBox;
-class KListView;
+class TDEListView;
class TQButtonGroup;
class KProcIO;
@@ -37,9 +37,9 @@ class popupPublic : public KDialogBase //TQDialog
public:
- popupPublic(TQWidget *parent=0, const char *name=0,TQString sfile="",bool filemode=false,KShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
+ popupPublic(TQWidget *parent=0, const char *name=0,TQString sfile="",bool filemode=false,TDEShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
~popupPublic();
- KListView *keysList;
+ TDEListView *keysList;
TQCheckBox *CBarmor,*CBuntrusted,*CBshred,*CBsymmetric,*CBhideid;
bool fmode,trusted;
TQPixmap keyPair,keySingle,keyGroup;
diff --git a/kopete/plugins/highlight/highlightprefsbase.ui b/kopete/plugins/highlight/highlightprefsbase.ui
index 4d39a0ca..b820151d 100644
--- a/kopete/plugins/highlight/highlightprefsbase.ui
+++ b/kopete/plugins/highlight/highlightprefsbase.ui
@@ -69,7 +69,7 @@
<string>Rename...</string>
</property>
</widget>
- <widget class="KListView" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TDEListView" row="0" column="0" rowspan="1" colspan="3">
<column>
<property name="text">
<string>Filters</string>
diff --git a/kopete/plugins/history/historydialog.cpp b/kopete/plugins/history/historydialog.cpp
index 1dd63cc3..992d586f 100644
--- a/kopete/plugins/history/historydialog.cpp
+++ b/kopete/plugins/history/historydialog.cpp
@@ -57,10 +57,10 @@
#include <kstdaction.h>
#include <kaction.h>
-class KListViewDateItem : public KListViewItem
+class TDEListViewDateItem : public TDEListViewItem
{
public:
- KListViewDateItem(KListView* parent, TQDate date, Kopete::MetaContact *mc);
+ TDEListViewDateItem(TDEListView* parent, TQDate date, Kopete::MetaContact *mc);
TQDate date() { return mDate; }
Kopete::MetaContact *metaContact() { return mMetaContact; }
@@ -73,20 +73,20 @@ private:
-KListViewDateItem::KListViewDateItem(KListView* parent, TQDate date, Kopete::MetaContact *mc)
- : KListViewItem(parent, date.toString(Qt::ISODate), mc->displayName())
+TDEListViewDateItem::TDEListViewDateItem(TDEListView* parent, TQDate date, Kopete::MetaContact *mc)
+ : TDEListViewItem(parent, date.toString(Qt::ISODate), mc->displayName())
{
mDate = date;
mMetaContact = mc;
}
-int KListViewDateItem::compare(TQListViewItem *i, int col, bool ascending) const
+int TDEListViewDateItem::compare(TQListViewItem *i, int col, bool ascending) const
{
if (col)
return TQListViewItem::compare(i, col, ascending);
//compare dates - do NOT use ascending var here
- KListViewDateItem* item = static_cast<KListViewDateItem*>(i);
+ TDEListViewDateItem* item = static_cast<TDEListViewDateItem*>(i);
if ( mDate < item->date() )
return -1;
return ( mDate > item->date() );
@@ -173,9 +173,9 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, TQWidget* parent,
connect(mHtmlPart, TQT_SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, TQT_SLOT(slotRightClick(const TQString &, const TQPoint &)));
//initActions
- KActionCollection* ac = new KActionCollection(this);
+ TDEActionCollection* ac = new TDEActionCollection(this);
mCopyAct = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), ac );
- mCopyURLAct = new KAction( i18n( "Copy Link Address" ), TQString::fromLatin1( "editcopy" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotCopyURL() ), ac );
+ mCopyURLAct = new TDEAction( i18n( "Copy Link Address" ), TQString::fromLatin1( "editcopy" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotCopyURL() ), ac );
resize(650, 700);
centerOnScreen(this);
@@ -232,7 +232,7 @@ void HistoryDialog::slotLoadDays()
{
TQDate c2Date(pair.date().year(),pair.date().month(),dayList[i]);
if (mInit.dateMCList.find(pair) == mInit.dateMCList.end())
- new KListViewDateItem(mMainWidget->dateListView, c2Date, pair.metaContact());
+ new TDEListViewDateItem(mMainWidget->dateListView, c2Date, pair.metaContact());
}
mMainWidget->searchProgress->advance(1);
TQTimer::singleShot(0,this,TQT_SLOT(slotLoadDays()));
@@ -319,7 +319,7 @@ void HistoryDialog::init(Kopete::Contact *c)
void HistoryDialog::dateSelected(TQListViewItem* it)
{
- KListViewDateItem *item = static_cast<KListViewDateItem*>(it);
+ TDEListViewDateItem *item = static_cast<TDEListViewDateItem*>(it);
if (!item) return;
@@ -420,11 +420,11 @@ void HistoryDialog::slotSearchTextChanged(const TQString& searchText)
void HistoryDialog::listViewShowElements(bool s)
{
- KListViewDateItem* item = static_cast<KListViewDateItem*>(mMainWidget->dateListView->firstChild());
+ TDEListViewDateItem* item = static_cast<TDEListViewDateItem*>(mMainWidget->dateListView->firstChild());
while (item != 0)
{
item->setVisible(s);
- item = static_cast<KListViewDateItem*>(item->nextSibling());
+ item = static_cast<TDEListViewDateItem*>(item->nextSibling());
}
}
@@ -440,7 +440,7 @@ void HistoryDialog::slotSearchErase()
* How does the search work
* ------------------------
* We do the search respecting the current metacontact filter item. To do this, we iterate over the
-* elements in the KListView (KListViewDateItems) and, for each one, we iterate over its subcontacts,
+* elements in the TDEListView (TDEListViewDateItems) and, for each one, we iterate over its subcontacts,
* manually searching the log files of each one. To avoid searching files twice, the months that have
* been searched already are stored in searchedMonths. The matches are placed in the matches TQMap.
* Finally, the current date item is checked in the matches TQMap, and if it is present, it is shown.
@@ -472,9 +472,9 @@ void HistoryDialog::slotSearch()
mSearching = true;
// iterate over items in the date list widget
- for(KListViewDateItem *curItem = static_cast<KListViewDateItem*>(mMainWidget->dateListView->firstChild());
+ for(TDEListViewDateItem *curItem = static_cast<TDEListViewDateItem*>(mMainWidget->dateListView->firstChild());
curItem != 0;
- curItem = static_cast<KListViewDateItem *>(curItem->nextSibling())
+ curItem = static_cast<TDEListViewDateItem *>(curItem->nextSibling())
)
{
tqApp->processEvents();
@@ -574,8 +574,8 @@ void HistoryDialog::doneProgressBar()
void HistoryDialog::slotRightClick(const TQString &url, const TQPoint &point)
{
- KPopupMenu *chatWindowPopup = 0L;
- chatWindowPopup = new KPopupMenu();
+ TDEPopupMenu *chatWindowPopup = 0L;
+ chatWindowPopup = new TDEPopupMenu();
if ( !url.isEmpty() )
{
diff --git a/kopete/plugins/history/historydialog.h b/kopete/plugins/history/historydialog.h
index 4df323d6..daa45362 100644
--- a/kopete/plugins/history/historydialog.h
+++ b/kopete/plugins/history/historydialog.h
@@ -40,7 +40,7 @@ class KURL;
namespace KParts { struct URLArgs; class Part; }
-class KListViewDateItem;
+class TDEListViewDateItem;
class DMPair
{
@@ -117,7 +117,7 @@ class HistoryDialog : public KDialogBase
/**
* Search if @param item already has @param text child
*/
- bool hasChild(KListViewItem* item, int month);
+ bool hasChild(TDEListViewItem* item, int month);
/**
* We show history dialog to look at the log for a metacontact. Here is this metacontact.
@@ -139,8 +139,8 @@ class HistoryDialog : public KDialogBase
bool mSearching;
- KAction *mCopyAct;
- KAction *mCopyURLAct;
+ TDEAction *mCopyAct;
+ TDEAction *mCopyURLAct;
TQString mURL;
};
diff --git a/kopete/plugins/history/historyguiclient.cpp b/kopete/plugins/history/historyguiclient.cpp
index 4b1798ae..21bde3b5 100644
--- a/kopete/plugins/history/historyguiclient.cpp
+++ b/kopete/plugins/history/historyguiclient.cpp
@@ -41,7 +41,7 @@ HistoryGUIClient::HistoryGUIClient(Kopete::ChatSession *parent, const char *name
TQPtrList<Kopete::Contact> mb=m_manager->members();
m_logger=new HistoryLogger( mb.first() , this );
- actionLast=new KAction( i18n("History Last" ), TQString::fromLatin1( "finish" ), 0, this, TQT_SLOT(slotLast()), actionCollection() , "historyLast" );
+ actionLast=new TDEAction( i18n("History Last" ), TQString::fromLatin1( "finish" ), 0, this, TQT_SLOT(slotLast()), actionCollection() , "historyLast" );
actionPrev = KStdAction::back( this, TQT_SLOT(slotPrevious()), actionCollection() , "historyPrevious" );
actionNext = KStdAction::forward( this, TQT_SLOT(slotNext()), actionCollection() , "historyNext" );
diff --git a/kopete/plugins/history/historyguiclient.h b/kopete/plugins/history/historyguiclient.h
index 356afe29..86c4ae21 100644
--- a/kopete/plugins/history/historyguiclient.h
+++ b/kopete/plugins/history/historyguiclient.h
@@ -21,7 +21,7 @@
namespace Kopete { class ChatSession; }
class HistoryLogger;
-class KAction;
+class TDEAction;
/**
*@author Olivier Goffart
@@ -48,9 +48,9 @@ private:
//int m_nbAutoChatWindow;
//unsigned int m_nbChatWindow;
- KAction *actionPrev;
- KAction *actionNext;
- KAction *actionLast;
+ TDEAction *actionPrev;
+ TDEAction *actionNext;
+ TDEAction *actionLast;
};
#endif
diff --git a/kopete/plugins/history/historyplugin.cpp b/kopete/plugins/history/historyplugin.cpp
index c9dc5fd6..d4791952 100644
--- a/kopete/plugins/history/historyplugin.cpp
+++ b/kopete/plugins/history/historyplugin.cpp
@@ -44,7 +44,7 @@ K_EXPORT_COMPONENT_FACTORY( kopete_history, HistoryPluginFactory( &aboutdata )
HistoryPlugin::HistoryPlugin( TQObject *parent, const char *name, const TQStringList & /* args */ )
: Kopete::Plugin( HistoryPluginFactory::instance(), parent, name ), m_loggerFactory( this )
{
- KAction *viewMetaContactHistory = new KAction( i18n("View &History" ),
+ TDEAction *viewMetaContactHistory = new TDEAction( i18n("View &History" ),
TQString::fromLatin1( "history" ), 0, this, TQT_SLOT(slotViewHistory()),
actionCollection(), "viewMetaContactHistory" );
viewMetaContactHistory->setEnabled(
diff --git a/kopete/plugins/history/historyplugin.h b/kopete/plugins/history/historyplugin.h
index 85aa2a3e..d20a28c9 100644
--- a/kopete/plugins/history/historyplugin.h
+++ b/kopete/plugins/history/historyplugin.h
@@ -28,7 +28,7 @@
#include "kopetemessagehandler.h"
class KopeteView;
-class KActionCollection;
+class TDEActionCollection;
namespace Kopete
{
diff --git a/kopete/plugins/history/historyviewer.ui b/kopete/plugins/history/historyviewer.ui
index 8d7ca4b2..6711dd31 100644
--- a/kopete/plugins/history/historyviewer.ui
+++ b/kopete/plugins/history/historyviewer.ui
@@ -145,7 +145,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="KListViewSearchLine">
+ <widget class="TDEListViewSearchLine">
<property name="name">
<cstring>dateSearchLine</cstring>
</property>
@@ -173,7 +173,7 @@
</size>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Date</string>
diff --git a/kopete/plugins/latex/latexguiclient.cpp b/kopete/plugins/latex/latexguiclient.cpp
index ea9420fb..7b67f119 100644
--- a/kopete/plugins/latex/latexguiclient.cpp
+++ b/kopete/plugins/latex/latexguiclient.cpp
@@ -41,7 +41,7 @@ LatexGUIClient::LatexGUIClient( Kopete::ChatSession *parent, const char *name )
m_manager = parent;
- new KAction( i18n( "Preview Latex Images" ), "latex", CTRL + Key_L, this, TQT_SLOT( slotPreview() ), actionCollection(), "latexPreview" );
+ new TDEAction( i18n( "Preview Latex Images" ), "latex", CTRL + Key_L, this, TQT_SLOT( slotPreview() ), actionCollection(), "latexPreview" );
setXMLFile( "latexchatui.rc" );
}
diff --git a/kopete/plugins/netmeeting/netmeetingguiclient.cpp b/kopete/plugins/netmeeting/netmeetingguiclient.cpp
index 9dffde7f..d01d0df0 100644
--- a/kopete/plugins/netmeeting/netmeetingguiclient.cpp
+++ b/kopete/plugins/netmeeting/netmeetingguiclient.cpp
@@ -38,7 +38,7 @@ NetMeetingGUIClient::NetMeetingGUIClient( MSNChatSession *parent, const char *n
setInstance(KGenericFactory<NetMeetingPlugin>::instance());
m_manager=parent;
- new KAction( i18n( "Invite to Use NetMeeting" ), 0, this, TQT_SLOT( slotStartInvitation() ), actionCollection() , "netmeeting" ) ;
+ new TDEAction( i18n( "Invite to Use NetMeeting" ), 0, this, TQT_SLOT( slotStartInvitation() ), actionCollection() , "netmeeting" ) ;
setXMLFile("netmeetingchatui.rc");
}
diff --git a/kopete/plugins/nowlistening/DESIGN b/kopete/plugins/nowlistening/DESIGN
index d2be5d5f..1cfb105b 100644
--- a/kopete/plugins/nowlistening/DESIGN
+++ b/kopete/plugins/nowlistening/DESIGN
@@ -36,7 +36,7 @@ How contact specific plugin data works
Each metacontact has a method pluginData(KopetePlugin *). This takes a pointer to a plugin, and returns a QStringList containing the metacontact's data for that plugin. A corresponding setPluginData() method changes this. Who is responsible for making sure this data persists?
What about custom actions?
-KopetePlugin::custom[Chat|ContextMenuActions] both return a set of KActions that the plugin wants to have added to the UI. Looking at contactnotes, it seems that this set is recreated every time thses methods are called and they change the state of the plugin (currentContact). Is this so that the context menu is generated individually for each MC, so that the method that is called when the men item is clicked know which MC it applies to?
+KopetePlugin::custom[Chat|ContextMenuActions] both return a set of TDEActions that the plugin wants to have added to the UI. Looking at contactnotes, it seems that this set is recreated every time thses methods are called and they change the state of the plugin (currentContact). Is this so that the context menu is generated individually for each MC, so that the method that is called when the men item is clicked know which MC it applies to?
Choosing whether to advertise to all contacts
We can either advertise periodically to (some) contacts, or we could just add an Action to advertise what we're currently listening to.
diff --git a/kopete/plugins/nowlistening/nowlisteningguiclient.cpp b/kopete/plugins/nowlistening/nowlisteningguiclient.cpp
index c5e47ef0..29f03175 100644
--- a/kopete/plugins/nowlistening/nowlisteningguiclient.cpp
+++ b/kopete/plugins/nowlistening/nowlisteningguiclient.cpp
@@ -34,7 +34,7 @@ NowListeningGUIClient::NowListeningGUIClient( Kopete::ChatSession *parent, NowLi
{
connect(plugin, TQT_SIGNAL(readyForUnload()), TQT_SLOT(slotPluginUnloaded()));
m_msgManager = parent;
- m_action = new KAction( i18n( "Send Media Info" ), 0, this,
+ m_action = new TDEAction( i18n( "Send Media Info" ), 0, this,
TQT_SLOT( slotAdvertToCurrentChat() ), actionCollection(), "actionSendAdvert" );
setXMLFile("nowlisteningchatui.rc");
}
diff --git a/kopete/plugins/nowlistening/nowlisteningguiclient.h b/kopete/plugins/nowlistening/nowlisteningguiclient.h
index f4c4b47f..95642ede 100644
--- a/kopete/plugins/nowlistening/nowlisteningguiclient.h
+++ b/kopete/plugins/nowlistening/nowlisteningguiclient.h
@@ -24,7 +24,7 @@
#include <tqobject.h>
#include <kxmlguiclient.h>
-class KAction;
+class TDEAction;
class NowListeningPlugin;
namespace Kopete {
@@ -46,7 +46,7 @@ protected slots:
private:
Kopete::ChatSession* m_msgManager;
- KAction* m_action;
+ TDEAction* m_action;
};
#endif
diff --git a/kopete/plugins/nowlistening/nowlisteningprefs.ui b/kopete/plugins/nowlistening/nowlisteningprefs.ui
index 125ff80b..ff3307e9 100644
--- a/kopete/plugins/nowlistening/nowlisteningprefs.ui
+++ b/kopete/plugins/nowlistening/nowlisteningprefs.ui
@@ -295,7 +295,7 @@ in place of your status message.</string>
<string>Use &amp;specified media player</string>
</property>
</widget>
- <widget class="KListBox">
+ <widget class="TDEListBox">
<property name="name">
<cstring>kcfg_SelectedMediaPlayer</cstring>
</property>
diff --git a/kopete/plugins/smpppdcs/smpppdcsprefs.ui b/kopete/plugins/smpppdcs/smpppdcsprefs.ui
index efe7ede5..747398d4 100644
--- a/kopete/plugins/smpppdcs/smpppdcsprefs.ui
+++ b/kopete/plugins/smpppdcs/smpppdcsprefs.ui
@@ -218,7 +218,7 @@
<string>Choose the accounts to ignore:</string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Account</string>
diff --git a/kopete/plugins/statistics/statisticsdialog.cpp b/kopete/plugins/statistics/statisticsdialog.cpp
index 02a5f4b7..27c8b565 100644
--- a/kopete/plugins/statistics/statisticsdialog.cpp
+++ b/kopete/plugins/statistics/statisticsdialog.cpp
@@ -359,7 +359,7 @@ void StatisticsDialog::generatePageFromTQStringList(TQStringList values, const T
// TQDateTime listViewDT1, listViewDT2;
// listViewDT1.setTime_t(values[i+1].toInt());
// listViewDT2.setTime_t(values[i+2].toInt());
- // new KListViewItem(mainWidget->listView, values[i], values[i+1], values[i+2], listViewDT1.toString(), listViewDT2.toString());
+ // new TDEListViewItem(mainWidget->listView, values[i], values[i+1], values[i+2], listViewDT1.toString(), listViewDT2.toString());
}
diff --git a/kopete/plugins/statistics/statisticsplugin.cpp b/kopete/plugins/statistics/statisticsplugin.cpp
index 8bb3c16d..14490e30 100644
--- a/kopete/plugins/statistics/statisticsplugin.cpp
+++ b/kopete/plugins/statistics/statisticsplugin.cpp
@@ -52,7 +52,7 @@ StatisticsPlugin::StatisticsPlugin( TQObject *parent, const char *name, const TQ
{
- KAction *viewMetaContactStatistics = new KAction( i18n("View &Statistics" ),
+ TDEAction *viewMetaContactStatistics = new TDEAction( i18n("View &Statistics" ),
TQString::fromLatin1( "log" ), 0, this, TQT_SLOT(slotViewStatistics()),
actionCollection(), "viewMetaContactStatistics" );
viewMetaContactStatistics->setEnabled(Kopete::ContactList::self()->selectedMetaContacts().count() == 1);
diff --git a/kopete/plugins/statistics/statisticsplugin.h b/kopete/plugins/statistics/statisticsplugin.h
index 0fe1e7b6..1f4da69c 100644
--- a/kopete/plugins/statistics/statisticsplugin.h
+++ b/kopete/plugins/statistics/statisticsplugin.h
@@ -39,7 +39,7 @@ class StatisticsContact;
class StatisticsDCOPIface;
class KopeteView;
-class KActionCollection;
+class TDEActionCollection;
/** \section Kopete Statistics Plugin
*
diff --git a/kopete/plugins/texteffect/texteffectprefs.ui b/kopete/plugins/texteffect/texteffectprefs.ui
index 2dd1ab85..2278c2a5 100644
--- a/kopete/plugins/texteffect/texteffectprefs.ui
+++ b/kopete/plugins/texteffect/texteffectprefs.ui
@@ -49,7 +49,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListBox" row="0" column="0" rowspan="5" colspan="1">
+ <widget class="TDEListBox" row="0" column="0" rowspan="5" colspan="1">
<property name="name">
<cstring>mColorsListBox</cstring>
</property>
diff --git a/kopete/plugins/translator/translatorguiclient.cpp b/kopete/plugins/translator/translatorguiclient.cpp
index ef5ac9ac..1d1eaec8 100644
--- a/kopete/plugins/translator/translatorguiclient.cpp
+++ b/kopete/plugins/translator/translatorguiclient.cpp
@@ -41,7 +41,7 @@ TranslatorGUIClient::TranslatorGUIClient( Kopete::ChatSession *parent, const cha
m_manager = parent;
- new KAction( i18n( "Translate" ), "locale", CTRL + Key_T, this, TQT_SLOT( slotTranslateChat() ), actionCollection(), "translateCurrentMessage" );
+ new TDEAction( i18n( "Translate" ), "locale", CTRL + Key_T, this, TQT_SLOT( slotTranslateChat() ), actionCollection(), "translateCurrentMessage" );
setXMLFile( "translatorchatui.rc" );
}
diff --git a/kopete/plugins/translator/translatorplugin.cpp b/kopete/plugins/translator/translatorplugin.cpp
index 066f93a9..5113e358 100644
--- a/kopete/plugins/translator/translatorplugin.cpp
+++ b/kopete/plugins/translator/translatorplugin.cpp
@@ -76,7 +76,7 @@ TranslatorPlugin::TranslatorPlugin( TQObject *parent, const char *name, const TQ
for ( int k = 0; k <= m_languages->numLanguages(); k++ )
keys << m[ m_languages->languageKey( k ) ];
- m_actionLanguage = new KSelectAction( i18n( "Set &Language" ), "locale", 0, actionCollection(), "contactLanguage" );
+ m_actionLanguage = new TDESelectAction( i18n( "Set &Language" ), "locale", 0, actionCollection(), "contactLanguage" );
m_actionLanguage->setItems( keys );
connect( m_actionLanguage, TQT_SIGNAL( activated() ), this, TQT_SLOT(slotSetLanguage() ) );
connect( Kopete::ContactList::self(), TQT_SIGNAL( metaContactSelected( bool ) ), this, TQT_SLOT( slotSelectionChanged( bool ) ) );
diff --git a/kopete/plugins/translator/translatorplugin.h b/kopete/plugins/translator/translatorplugin.h
index d7700d8e..eb65e1d1 100644
--- a/kopete/plugins/translator/translatorplugin.h
+++ b/kopete/plugins/translator/translatorplugin.h
@@ -34,7 +34,7 @@
class TQString;
-class KSelectAction;
+class TDESelectAction;
namespace Kopete { class Message; }
namespace Kopete { class MetaContact; }
@@ -93,7 +93,7 @@ private:
TQMap< TDEIO::Job *, TQCString> m_data;
TQMap< TDEIO::Job *, bool> m_completed;
- KSelectAction* m_actionLanguage;
+ TDESelectAction* m_actionLanguage;
static TranslatorPlugin* pluginStatic_;
TranslatorLanguages *m_languages;
diff --git a/kopete/plugins/webpresence/webpresenceplugin.h b/kopete/plugins/webpresence/webpresenceplugin.h
index c739d10e..9b25be07 100644
--- a/kopete/plugins/webpresence/webpresenceplugin.h
+++ b/kopete/plugins/webpresence/webpresenceplugin.h
@@ -30,8 +30,8 @@
class TQTimer;
class KTempFile;
namespace Kopete { class MetaContact; }
-class KToggleAction;
-class KActionCollection;
+class TDEToggleAction;
+class TDEActionCollection;
typedef TQValueList<Kopete::Protocol*> ProtocolList;
diff --git a/kopete/protocols/gadu/gaduaccount.cpp b/kopete/protocols/gadu/gaduaccount.cpp
index f9a725ee..542211f5 100644
--- a/kopete/protocols/gadu/gaduaccount.cpp
+++ b/kopete/protocols/gadu/gaduaccount.cpp
@@ -70,12 +70,12 @@ public:
KFileDialog* saveListDialog;
KFileDialog* loadListDialog;
- KActionMenu* actionMenu_;
- KAction* searchAction;
- KAction* listputAction;
- KAction* listToFileAction;
- KAction* listFromFileAction;
- KAction* friendsModeAction;
+ TDEActionMenu* actionMenu_;
+ TDEAction* searchAction;
+ TDEAction* listputAction;
+ TDEAction* listToFileAction;
+ TDEAction* listFromFileAction;
+ TDEAction* friendsModeAction;
bool connectWithSSL;
int currentServer;
@@ -183,19 +183,19 @@ GaduAccount::~GaduAccount()
void
GaduAccount::initActions()
{
- p->searchAction = new KAction( i18n( "&Search for Friends" ), "", 0,
+ p->searchAction = new TDEAction( i18n( "&Search for Friends" ), "", 0,
this, TQT_SLOT( slotSearch() ), this, "actionSearch" );
- p->listputAction = new KAction( i18n( "Export Contacts to Server" ), "", 0,
+ p->listputAction = new TDEAction( i18n( "Export Contacts to Server" ), "", 0,
this, TQT_SLOT( slotExportContactsList() ), this, "actionListput" );
- p->listToFileAction = new KAction( i18n( "Export Contacts to File..." ), "", 0,
+ p->listToFileAction = new TDEAction( i18n( "Export Contacts to File..." ), "", 0,
this, TQT_SLOT( slotExportContactsListToFile() ), this, "actionListputFile" );
- p->listFromFileAction = new KAction( i18n( "Import Contacts From File..." ), "", 0,
+ p->listFromFileAction = new TDEAction( i18n( "Import Contacts From File..." ), "", 0,
this, TQT_SLOT( slotImportContactsFromFile() ), this, "actionListgetFile" );
- p->friendsModeAction = new KToggleAction( i18n( "Only for Friends" ), "", 0,
+ p->friendsModeAction = new TDEToggleAction( i18n( "Only for Friends" ), "", 0,
this, TQT_SLOT( slotFriendsMode() ), this,
"actionFriendsMode" );
- static_cast<KToggleAction*>(p->friendsModeAction)->setChecked( p->forFriends );
+ static_cast<TDEToggleAction*>(p->friendsModeAction)->setChecked( p->forFriends );
}
void
@@ -246,12 +246,12 @@ GaduAccount::setAway( bool isAway, const TQString& awayMessage )
}
-KActionMenu*
+TDEActionMenu*
GaduAccount::actionMenu()
{
kdDebug(14100) << "actionMenu() " << endl;
- p->actionMenu_ = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
+ p->actionMenu_ = new TDEActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
p->actionMenu_->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ), i18n( "%1 <%2> " ).
arg( myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString(), accountId() ) );
@@ -286,23 +286,23 @@ GaduAccount::actionMenu()
else {
p->listFromFileAction->setEnabled( TRUE );
}
- p->actionMenu_->insert( new KAction( i18n( "Go O&nline" ),
+ p->actionMenu_->insert( new TDEAction( i18n( "Go O&nline" ),
GaduProtocol::protocol()->convertStatus( GG_STATUS_AVAIL ).iconFor( this ),
0, this, TQT_SLOT( slotGoOnline() ), this, "actionGaduConnect" ) );
- p->actionMenu_->insert( new KAction( i18n( "Set &Busy" ),
+ p->actionMenu_->insert( new TDEAction( i18n( "Set &Busy" ),
GaduProtocol::protocol()->convertStatus( GG_STATUS_BUSY ).iconFor( this ),
0, this, TQT_SLOT( slotGoBusy() ), this, "actionGaduConnect" ) );
- p->actionMenu_->insert( new KAction( i18n( "Set &Invisible" ),
+ p->actionMenu_->insert( new TDEAction( i18n( "Set &Invisible" ),
GaduProtocol::protocol()->convertStatus( GG_STATUS_INVISIBLE ).iconFor( this ),
0, this, TQT_SLOT( slotGoInvisible() ), this, "actionGaduConnect" ) );
- p->actionMenu_->insert( new KAction( i18n( "Go &Offline" ),
+ p->actionMenu_->insert( new TDEAction( i18n( "Go &Offline" ),
GaduProtocol::protocol()->convertStatus( GG_STATUS_NOT_AVAIL ).iconFor( this ),
0, this, TQT_SLOT( slotGoOffline() ), this, "actionGaduConnect" ) );
- p->actionMenu_->insert( new KAction( i18n( "Set &Description..." ), "info",
+ p->actionMenu_->insert( new TDEAction( i18n( "Set &Description..." ), "info",
0, this, TQT_SLOT( slotDescription() ), this, "actionGaduDescription" ) );
p->actionMenu_->insert( p->friendsModeAction );
diff --git a/kopete/protocols/gadu/gaduaccount.h b/kopete/protocols/gadu/gaduaccount.h
index dd3f6c68..37e53a7b 100644
--- a/kopete/protocols/gadu/gaduaccount.h
+++ b/kopete/protocols/gadu/gaduaccount.h
@@ -47,7 +47,7 @@ namespace Kopete { class Protocol; }
namespace Kopete { class Message; }
class GaduCommand;
class TQTimer;
-class KActionMenu;
+class TDEActionMenu;
class GaduDCC;
class GaduDCCTransaction;
@@ -61,7 +61,7 @@ public:
~GaduAccount();
//{
void setAway( bool isAway, const TQString& awayMessage = TQString() );
- KActionMenu* actionMenu();
+ TDEActionMenu* actionMenu();
void dccRequest( GaduContact* );
void sendFile( GaduContact* , TQString& );
//}
diff --git a/kopete/protocols/gadu/gaducontact.cpp b/kopete/protocols/gadu/gaducontact.cpp
index 9aea8fe5..e797ea40 100644
--- a/kopete/protocols/gadu/gaducontact.cpp
+++ b/kopete/protocols/gadu/gaducontact.cpp
@@ -190,18 +190,18 @@ GaduContact::isReachable()
return account_->isConnected();
}
-TQPtrList<KAction>*
+TQPtrList<TDEAction>*
GaduContact::customContextMenuActions()
{
- TQPtrList<KAction> *fakeCollection = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *fakeCollection = new TQPtrList<TDEAction>();
//show profile
- KAction* actionShowProfile = new KAction( i18n("Show Profile") , "info", 0,
+ TDEAction* actionShowProfile = new TDEAction( i18n("Show Profile") , "info", 0,
this, TQT_SLOT( slotShowPublicProfile() ),
this, "actionShowPublicProfile" );
fakeCollection->append( actionShowProfile );
- KAction* actionEditContact = new KAction( i18n("Edit...") , "edit", 0,
+ TDEAction* actionEditContact = new TDEAction( i18n("Edit...") , "edit", 0,
this, TQT_SLOT( slotEditContact() ),
this, "actionEditContact" );
diff --git a/kopete/protocols/gadu/gaducontact.h b/kopete/protocols/gadu/gaducontact.h
index 05d0f3b8..bcfc1b98 100644
--- a/kopete/protocols/gadu/gaducontact.h
+++ b/kopete/protocols/gadu/gaducontact.h
@@ -34,7 +34,7 @@
#include <libgadu.h>
-class KAction;
+class TDEAction;
class GaduAccount;
namespace Kopete { class Account; }
namespace Kopete { class ChatSession; }
@@ -52,7 +52,7 @@ public:
virtual bool isReachable();
virtual void serialize( TQMap<TQString, TQString>&, TQMap<TQString, TQString>& );
- virtual TQPtrList<KAction>* customContextMenuActions();
+ virtual TQPtrList<TDEAction>* customContextMenuActions();
virtual TQString identityId() const;
GaduContactsList::ContactLine* contactDetails();
@@ -99,9 +99,9 @@ private:
TQString parentIdentity_;
GaduAccount* account_;
- KAction* actionSendMessage_;
- KAction* actionInfo_;
- KAction* actionRemove_;
+ TDEAction* actionSendMessage_;
+ TDEAction* actionInfo_;
+ TDEAction* actionRemove_;
TQPtrList<Kopete::Contact> thisContact_;
diff --git a/kopete/protocols/gadu/gaduprotocol.h b/kopete/protocols/gadu/gaduprotocol.h
index 0152d680..853ad5e7 100644
--- a/kopete/protocols/gadu/gaduprotocol.h
+++ b/kopete/protocols/gadu/gaduprotocol.h
@@ -31,8 +31,8 @@
#include "gaducommands.h"
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
class TQWidget;
class TQString;
diff --git a/kopete/protocols/gadu/ui/gadusearch.ui b/kopete/protocols/gadu/ui/gadusearch.ui
index e747e952..5fe042ad 100644
--- a/kopete/protocols/gadu/ui/gadusearch.ui
+++ b/kopete/protocols/gadu/ui/gadusearch.ui
@@ -408,7 +408,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView" row="0" column="0">
+ <widget class="TDEListView" row="0" column="0">
<column>
<property name="text">
<string>Status</string>
diff --git a/kopete/protocols/groupwise/gwaccount.cpp b/kopete/protocols/groupwise/gwaccount.cpp
index 51be07e1..c61f9dfc 100644
--- a/kopete/protocols/groupwise/gwaccount.cpp
+++ b/kopete/protocols/groupwise/gwaccount.cpp
@@ -79,11 +79,11 @@ GroupWiseAccount::GroupWiseAccount( GroupWiseProtocol *parent, const TQString& a
TQObject::connect( Kopete::ContactList::self(), TQT_SIGNAL( groupRemoved( Kopete::Group * ) ),
TQT_SLOT( slotKopeteGroupRemoved( Kopete::Group * ) ) );
- m_actionAutoReply = new KAction ( i18n( "&Set Auto-Reply..." ), TQString(), 0, this,
+ m_actionAutoReply = new TDEAction ( i18n( "&Set Auto-Reply..." ), TQString(), 0, this,
TQT_SLOT( slotSetAutoReply() ), this, "actionSetAutoReply");
- m_actionJoinChatRoom = new KAction ( i18n( "&Join Channel..." ), TQString(), 0, this,
+ m_actionJoinChatRoom = new TDEAction ( i18n( "&Join Channel..." ), TQString(), 0, this,
TQT_SLOT( slotJoinChatRoom() ), this, "actionJoinChatRoom");
- m_actionManagePrivacy = new KAction ( i18n( "&Manage Privacy..." ), TQString(), 0, this,
+ m_actionManagePrivacy = new TDEAction ( i18n( "&Manage Privacy..." ), TQString(), 0, this,
TQT_SLOT( slotPrivacy() ), this, "actionPrivacy");
m_connector = 0;
@@ -100,9 +100,9 @@ GroupWiseAccount::~GroupWiseAccount()
cleanup();
}
-KActionMenu* GroupWiseAccount::actionMenu()
+TDEActionMenu* GroupWiseAccount::actionMenu()
{
- KActionMenu *m_actionMenu=Kopete::Account::actionMenu();
+ TDEActionMenu *m_actionMenu=Kopete::Account::actionMenu();
m_actionAutoReply->setEnabled( isConnected() );
m_actionManagePrivacy->setEnabled( isConnected() );
@@ -112,7 +112,7 @@ KActionMenu* GroupWiseAccount::actionMenu()
m_actionMenu->insert( m_actionJoinChatRoom );
/* Used for debugging */
/*
- theActionMenu->insert( new KAction ( "Test rtfize()", TQString(), 0, this,
+ theActionMenu->insert( new TDEAction ( "Test rtfize()", TQString(), 0, this,
TQT_SLOT( slotTestRTFize() ), this,
"actionTestRTFize") );
*/
diff --git a/kopete/protocols/groupwise/gwaccount.h b/kopete/protocols/groupwise/gwaccount.h
index df74cf66..abce33be 100644
--- a/kopete/protocols/groupwise/gwaccount.h
+++ b/kopete/protocols/groupwise/gwaccount.h
@@ -29,7 +29,7 @@
#include <managedconnectionaccount.h>
-class KActionMenu;
+class TDEActionMenu;
namespace Kopete {
class Contact;
@@ -65,7 +65,7 @@ public:
/**
* Construct the context menu used for the status bar icon
*/
- virtual KActionMenu* actionMenu();
+ virtual TDEActionMenu* actionMenu();
// DEBUG ONLY
void dumpManagers();
@@ -322,10 +322,10 @@ protected:
void cleanup();
private:
// action menu and its actions
- KActionMenu * m_actionMenu;
- KAction * m_actionAutoReply;
- KAction * m_actionManagePrivacy;
- KAction * m_actionJoinChatRoom;
+ TDEActionMenu * m_actionMenu;
+ TDEAction * m_actionAutoReply;
+ TDEAction * m_actionManagePrivacy;
+ TDEAction * m_actionJoinChatRoom;
// Network code
KNetworkConnector * m_connector;
TQCA::TLS * m_TQCATLS;
@@ -344,7 +344,7 @@ private:
* @internal
* An action that selects an OnlineStatus and provides a status message, but not using Kopete::Away, because the status message relates only to this status.
*/
-/*class OnlineStatusMessageAction : public KAction
+/*class OnlineStatusMessageAction : public TDEAction
{
Q_OBJECT
diff --git a/kopete/protocols/groupwise/gwcontact.cpp b/kopete/protocols/groupwise/gwcontact.cpp
index 1aef7110..b225162a 100644
--- a/kopete/protocols/groupwise/gwcontact.cpp
+++ b/kopete/protocols/groupwise/gwcontact.cpp
@@ -158,15 +158,15 @@ Kopete::ChatSession * GroupWiseContact::manager( Kopete::Contact::CanCreateFlags
return account()->chatSession( chatMembers, TQString(), canCreate );
}
-TQPtrList<KAction> *GroupWiseContact::customContextMenuActions()
+TQPtrList<TDEAction> *GroupWiseContact::customContextMenuActions()
{
- TQPtrList<KAction> *m_actionCollection = new TQPtrList<KAction>;
+ TQPtrList<TDEAction> *m_actionCollection = new TQPtrList<TDEAction>;
// Block/unblock Contact
TQString label = account()->isContactBlocked( m_dn ) ? i18n( "Unblock User" ) : i18n( "Block User" );
if( !m_actionBlock )
{
- m_actionBlock = new KAction( label, "msn_blocked",0, this, TQT_SLOT( slotBlock() ),
+ m_actionBlock = new TDEAction( label, "msn_blocked",0, this, TQT_SLOT( slotBlock() ),
this, "actionBlock" );
}
else
diff --git a/kopete/protocols/groupwise/gwcontact.h b/kopete/protocols/groupwise/gwcontact.h
index 7de4a61d..aa3d7a32 100644
--- a/kopete/protocols/groupwise/gwcontact.h
+++ b/kopete/protocols/groupwise/gwcontact.h
@@ -37,8 +37,8 @@
#include "gwfield.h"
#include "gwmessagemanager.h"
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
namespace Kopete { class Account; }
class GroupWiseAccount;
class GroupWiseChatSession;
@@ -100,7 +100,7 @@ public:
/**
* Return the actions for this contact
*/
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
/**
* Returns a Kopete::ChatSession associated with this contact
@@ -173,15 +173,15 @@ protected slots:
*/
void receivePrivacyChanged( const TQString &, bool );
protected:
- KActionCollection* m_actionCollection;
+ TDEActionCollection* m_actionCollection;
int m_objectId;
int m_parentId;
int m_sequence;
TQString m_dn;
TQString m_displayName;
- KAction* m_actionPrefs;
- KAction *m_actionBlock;
+ TDEAction* m_actionPrefs;
+ TDEAction *m_actionBlock;
// Novell Messenger Properties, as received by the server.
// Unfortunately we don't the domain of the set of keys, so they are not easily mappable to KopeteContactProperties
TQMap< TQString, TQString > m_serverProperties;
diff --git a/kopete/protocols/groupwise/gwmessagemanager.cpp b/kopete/protocols/groupwise/gwmessagemanager.cpp
index 100bbfdf..eef88a7b 100644
--- a/kopete/protocols/groupwise/gwmessagemanager.cpp
+++ b/kopete/protocols/groupwise/gwmessagemanager.cpp
@@ -62,13 +62,13 @@ GroupWiseChatSession::GroupWiseChatSession(const Kopete::Contact* user, Kopete::
TQT_SLOT( slotGotNotTypingNotification( const ConferenceEvent & ) ) );
// Set up the Invite menu
- m_actionInvite = new KActionMenu( i18n( "&Invite" ), actionCollection() , "gwInvite" );
+ m_actionInvite = new TDEActionMenu( i18n( "&Invite" ), actionCollection() , "gwInvite" );
connect( m_actionInvite->popupMenu(), TQT_SIGNAL( aboutToShow() ), this, TQT_SLOT(slotActionInviteAboutToShow() ) ) ;
- m_secure = new KAction( i18n( "Security Status" ), "encrypted", KShortcut(), this, TQT_SLOT( slotShowSecurity() ), actionCollection(), "gwSecureChat" );
+ m_secure = new TDEAction( i18n( "Security Status" ), "encrypted", TDEShortcut(), this, TQT_SLOT( slotShowSecurity() ), actionCollection(), "gwSecureChat" );
m_secure->setToolTip( i18n( "Conversation is secure" ) );
- m_logging = new KAction( i18n( "Archiving Status" ), "logchat", KShortcut(), this, TQT_SLOT( slotShowArchiving() ), actionCollection(), "gwLoggingChat" );
+ m_logging = new TDEAction( i18n( "Archiving Status" ), "logchat", TDEShortcut(), this, TQT_SLOT( slotShowArchiving() ), actionCollection(), "gwLoggingChat" );
updateArchiving();
setXMLFile("gwchatui.rc");
@@ -295,7 +295,7 @@ void GroupWiseChatSession::dequeueMessagesAndInvites()
void GroupWiseChatSession::slotActionInviteAboutToShow()
{
- // We can't simply insert KAction in this menu bebause we don't know when to delete them.
+ // We can't simply insert TDEAction in this menu bebause we don't know when to delete them.
// items inserted with insert items are automatically deleted when we call clear
m_inviteActions.setAutoDelete(true);
@@ -309,14 +309,14 @@ void GroupWiseChatSession::slotActionInviteAboutToShow()
{
if( !members().contains( it.current() ) && it.current()->isOnline() && it.current() != myself() )
{
- KAction *a=new KopeteContactAction( it.current(), this,
+ TDEAction *a=new KopeteContactAction( it.current(), this,
TQT_SLOT( slotInviteContact( Kopete::Contact * ) ), m_actionInvite );
m_actionInvite->insert( a );
m_inviteActions.append( a ) ;
}
}
// Invite someone off-list
- KAction *b=new KAction( i18n ("&Other..."), 0, this, TQT_SLOT( slotInviteOtherContact() ), m_actionInvite, "actionOther" );
+ TDEAction *b=new TDEAction( i18n ("&Other..."), 0, this, TQT_SLOT( slotInviteOtherContact() ), m_actionInvite, "actionOther" );
m_actionInvite->insert( b );
m_inviteActions.append( b ) ;
}
@@ -330,7 +330,7 @@ void GroupWiseChatSession::slotInviteContact( Kopete::Contact * contact )
}
else
{
- TQWidget * w = view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
+ TQWidget * w = view(false) ? dynamic_cast<TDEMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
bool ok;
TQRegExp rx( ".*" );
@@ -358,7 +358,7 @@ void GroupWiseChatSession::slotInviteOtherContact()
if ( !m_searchDlg )
{
// show search dialog
- TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<TDEMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
m_searchDlg = new KDialogBase( w, "invitesearchdialog", false, i18n( "Search for Contact to Invite" ), KDialogBase::Ok|KDialogBase::Cancel );
m_search = new GroupWiseContactSearch( account(), TQListView::Single, true, m_searchDlg, "invitesearchwidget" );
@@ -375,7 +375,7 @@ void GroupWiseChatSession::slotSearchedForUsers()
TQValueList< ContactDetails > selected = m_search->selectedResults();
if ( selected.count() )
{
- TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<TDEMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
ContactDetails cd = selected.first();
bool ok;
@@ -501,14 +501,14 @@ void GroupWiseChatSession::updateArchiving()
void GroupWiseChatSession::slotShowSecurity()
{
- TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<TDEMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
KMessageBox::queuedMessageBox( w, KMessageBox::Information, i18n( "This conversation is secured with SSL security." ), i18n("Security Status" ) );
}
void GroupWiseChatSession::slotShowArchiving()
{
- TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<TDEMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
KMessageBox::queuedMessageBox( w, KMessageBox::Information, i18n( "This conversation is being logged administratively." ), i18n("Archiving Status" ) );
}
diff --git a/kopete/protocols/groupwise/gwmessagemanager.h b/kopete/protocols/groupwise/gwmessagemanager.h
index 25f61b9a..931dbae6 100644
--- a/kopete/protocols/groupwise/gwmessagemanager.h
+++ b/kopete/protocols/groupwise/gwmessagemanager.h
@@ -19,8 +19,8 @@
#include "gwerror.h"
class TQLabel;
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
class KDialogBase;
class GroupWiseAccount;
class GroupWiseContact;
@@ -153,11 +153,11 @@ private:
TQValueList< Kopete::Message > m_pendingOutgoingMessages; // messages queued while we wait for the server to tell us the conference is created.
Kopete::ContactPtrList m_pendingInvites; // people we wanted to invite to the conference, queued while waiting for the conference to be created.
- KActionMenu *m_actionInvite;
- TQPtrList<KAction> m_inviteActions;
+ TDEActionMenu *m_actionInvite;
+ TQPtrList<TDEAction> m_inviteActions;
// labels showing secure and logging status
- KAction *m_secure;
- KAction *m_logging;
+ TDEAction *m_secure;
+ TDEAction *m_logging;
// search widget and dialog used for inviting contacts
GroupWiseContactSearch * m_search;
KDialogBase * m_searchDlg;
diff --git a/kopete/protocols/groupwise/ui/gwchatpropswidget.ui b/kopete/protocols/groupwise/ui/gwchatpropswidget.ui
index c4f9a9c6..7977ce04 100644
--- a/kopete/protocols/groupwise/ui/gwchatpropswidget.ui
+++ b/kopete/protocols/groupwise/ui/gwchatpropswidget.ui
@@ -331,7 +331,7 @@
<cstring>kListBox1</cstring>
</property>
</widget>
- <widget class="KListBox">
+ <widget class="TDEListBox">
<property name="name">
<cstring>m_acl</cstring>
</property>
diff --git a/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui b/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui
index 1899a525..86fdd734 100644
--- a/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui
+++ b/kopete/protocols/groupwise/ui/gwchatsearchwidget.ui
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Chatroom </string>
diff --git a/kopete/protocols/groupwise/ui/gwcontactproperties.cpp b/kopete/protocols/groupwise/ui/gwcontactproperties.cpp
index 3b4670a0..27fe81fb 100644
--- a/kopete/protocols/groupwise/ui/gwcontactproperties.cpp
+++ b/kopete/protocols/groupwise/ui/gwcontactproperties.cpp
@@ -117,7 +117,7 @@ void GroupWiseContactProperties::setupProperties( TQMap< TQString, TQString > se
else
localised = key;
- new KListViewItem( m_propsWidget->m_propsView, localised, it.data() );
+ new TDEListViewItem( m_propsWidget->m_propsView, localised, it.data() );
}
}
diff --git a/kopete/protocols/groupwise/ui/gwcontactproperties.h b/kopete/protocols/groupwise/ui/gwcontactproperties.h
index 213834bc..f6bbdc46 100644
--- a/kopete/protocols/groupwise/ui/gwcontactproperties.h
+++ b/kopete/protocols/groupwise/ui/gwcontactproperties.h
@@ -25,7 +25,7 @@
class GroupWiseContactPropsWidget;
class KDialogBase;
class TQListViewItem;
-class KAction;
+class TDEAction;
/**
Logic, wrapping UI, for displaying contact properties
@@ -54,7 +54,7 @@ protected slots:
void slotCopy();
private:
GroupWiseContactPropsWidget * m_propsWidget;
- KAction * m_copyAction;
+ TDEAction * m_copyAction;
KDialogBase * m_dialog;
};
diff --git a/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui b/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui
index 95481add..8113c238 100644
--- a/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui
+++ b/kopete/protocols/groupwise/ui/gwcontactpropswidget.ui
@@ -163,7 +163,7 @@
<string>Additional properties:</string>
</property>
</widget>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Property</string>
diff --git a/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui b/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui
index 0c3efcac..9164d68d 100644
--- a/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui
+++ b/kopete/protocols/groupwise/ui/gwcustomstatuswidget.ui
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Name</string>
diff --git a/kopete/protocols/irc/ircaccount.cpp b/kopete/protocols/irc/ircaccount.cpp
index 7daf2f8d..3c8c5b85 100644
--- a/kopete/protocols/irc/ircaccount.cpp
+++ b/kopete/protocols/irc/ircaccount.cpp
@@ -207,9 +207,9 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const TQString &accountId, const T
setAccountLabel( TQString::fromLatin1("%1@%2").arg(mNickName,networkName) );
m_myServer = m_contactManager->myServer();
- m_joinChannelAction = new KAction ( i18n("Join Channel..."), TQString(), 0, this,
+ m_joinChannelAction = new TDEAction ( i18n("Join Channel..."), TQString(), 0, this,
TQT_SLOT(slotJoinChannel()), this);
- m_searchChannelAction = new KAction ( i18n("Search Channels..."), TQString(), 0, this,
+ m_searchChannelAction = new TDEAction ( i18n("Search Channels..."), TQString(), 0, this,
TQT_SLOT(slotSearchChannels()), this);
}
@@ -414,11 +414,11 @@ void IRCAccount::setMessageDestinations( int serverNotices, int serverMessages,
m_errorMessages = (MessageDestination)errorMessages;
}
-KActionMenu *IRCAccount::actionMenu()
+TDEActionMenu *IRCAccount::actionMenu()
{
TQString menuTitle = TQString::fromLatin1( " %1 <%2> " ).arg( accountId() ).arg( myself()->onlineStatus().description() );
- KActionMenu *mActionMenu = Kopete::Account::actionMenu();
+ TDEActionMenu *mActionMenu = Kopete::Account::actionMenu();
m_joinChannelAction->setEnabled( isConnected() );
m_searchChannelAction->setEnabled( isConnected() );
@@ -426,11 +426,11 @@ KActionMenu *IRCAccount::actionMenu()
mActionMenu->popupMenu()->insertSeparator();
mActionMenu->insert(m_joinChannelAction);
mActionMenu->insert(m_searchChannelAction);
- mActionMenu->insert( new KAction ( i18n("Show Server Window"), TQString(), 0, this, TQT_SLOT(slotShowServerWindow()), mActionMenu ) );
+ mActionMenu->insert( new TDEAction ( i18n("Show Server Window"), TQString(), 0, this, TQT_SLOT(slotShowServerWindow()), mActionMenu ) );
if( m_engine->isConnected() && m_engine->useSSL() )
{
- mActionMenu->insert( new KAction ( i18n("Show Security Information"), "", 0, m_engine,
+ mActionMenu->insert( new TDEAction ( i18n("Show Security Information"), "", 0, m_engine,
TQT_SLOT(showInfoDialog()), mActionMenu ) );
}
diff --git a/kopete/protocols/irc/ircaccount.h b/kopete/protocols/irc/ircaccount.h
index 640fb678..f942000c 100644
--- a/kopete/protocols/irc/ircaccount.h
+++ b/kopete/protocols/irc/ircaccount.h
@@ -48,8 +48,8 @@ class ChatSession;
class MetaContact;
}
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
struct IRCHost
{
@@ -156,7 +156,7 @@ public:
public slots:
- virtual KActionMenu *actionMenu();
+ virtual TDEActionMenu *actionMenu();
virtual void setAway( bool isAway, const TQString &awayMessage = TQString() );
@@ -239,8 +239,8 @@ private:
TQMap< TQString, TQString > m_customCtcp;
Kopete::ChatSession *commandSource;
- KAction *m_joinChannelAction;
- KAction *m_searchChannelAction;
+ TDEAction *m_joinChannelAction;
+ TDEAction *m_searchChannelAction;
};
#endif
diff --git a/kopete/protocols/irc/ircchannelcontact.cpp b/kopete/protocols/irc/ircchannelcontact.cpp
index cab34817..71071610 100644
--- a/kopete/protocols/irc/ircchannelcontact.cpp
+++ b/kopete/protocols/irc/ircchannelcontact.cpp
@@ -59,11 +59,11 @@ IRCChannelContact::IRCChannelContact(IRCContactManager *contactManager, const TQ
this, TQT_SLOT(slotChannelListed(const TQString &, uint, const TQString &)));
actionJoin = 0L;
- actionModeT = new KToggleAction(i18n("Only Operators Can Change &Topic"), 0, this, TQT_SLOT(slotModeChanged()), this );
- actionModeN = new KToggleAction(i18n("&No Outside Messages"), 0, this, TQT_SLOT(slotModeChanged()), this );
- actionModeS = new KToggleAction(i18n("&Secret"), 0, this, TQT_SLOT(slotModeChanged()), this );
- actionModeM = new KToggleAction(i18n("&Moderated"), 0, this, TQT_SLOT(slotModeChanged()), this );
- actionModeI = new KToggleAction(i18n("&Invite Only"), 0, this, TQT_SLOT(slotModeChanged()), this );
+ actionModeT = new TDEToggleAction(i18n("Only Operators Can Change &Topic"), 0, this, TQT_SLOT(slotModeChanged()), this );
+ actionModeN = new TDEToggleAction(i18n("&No Outside Messages"), 0, this, TQT_SLOT(slotModeChanged()), this );
+ actionModeS = new TDEToggleAction(i18n("&Secret"), 0, this, TQT_SLOT(slotModeChanged()), this );
+ actionModeM = new TDEToggleAction(i18n("&Moderated"), 0, this, TQT_SLOT(slotModeChanged()), this );
+ actionModeI = new TDEToggleAction(i18n("&Invite Only"), 0, this, TQT_SLOT(slotModeChanged()), this );
actionHomePage = 0L;
updateStatus();
@@ -653,19 +653,19 @@ bool IRCChannelContact::modeEnabled( TQChar mode, TQString *value )
return false;
}
-TQPtrList<KAction> *IRCChannelContact::customContextMenuActions()
+TQPtrList<TDEAction> *IRCChannelContact::customContextMenuActions()
{
- TQPtrList<KAction> *mCustomActions = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *mCustomActions = new TQPtrList<TDEAction>();
if( !actionJoin )
{
- actionJoin = new KAction(i18n("&Join"), 0, this, TQT_SLOT(join()), this, "actionJoin");
- actionPart = new KAction(i18n("&Part"), 0, this, TQT_SLOT(partAction()), this, "actionPart");
- actionTopic = new KAction(i18n("Change &Topic..."), 0, this, TQT_SLOT(setTopic()), this, "actionTopic");
- actionModeMenu = new KActionMenu(i18n("Channel Modes"), 0, this, "actionModeMenu");
+ actionJoin = new TDEAction(i18n("&Join"), 0, this, TQT_SLOT(join()), this, "actionJoin");
+ actionPart = new TDEAction(i18n("&Part"), 0, this, TQT_SLOT(partAction()), this, "actionPart");
+ actionTopic = new TDEAction(i18n("Change &Topic..."), 0, this, TQT_SLOT(setTopic()), this, "actionTopic");
+ actionModeMenu = new TDEActionMenu(i18n("Channel Modes"), 0, this, "actionModeMenu");
if( !property(m_protocol->propHomepage).value().isNull() )
{
- actionHomePage = new KAction( i18n("Visit &Homepage"), 0, this,
+ actionHomePage = new TDEAction( i18n("Visit &Homepage"), 0, this,
TQT_SLOT(slotHomepage()), this, "actionHomepage");
}
else if( actionHomePage )
diff --git a/kopete/protocols/irc/ircchannelcontact.h b/kopete/protocols/irc/ircchannelcontact.h
index 853bd256..f78862b4 100644
--- a/kopete/protocols/irc/ircchannelcontact.h
+++ b/kopete/protocols/irc/ircchannelcontact.h
@@ -21,11 +21,11 @@
#include "irccontact.h"
-class KActionCollection;
-class KAction;
-class KActionMenu;
+class TDEActionCollection;
+class TDEAction;
+class TDEActionMenu;
class KCodecAction;
-class KToggleAction;
+class TDEToggleAction;
namespace Kopete { class MetaContact; }
namespace Kopete { class ChatSession; }
@@ -74,7 +74,7 @@ public:
bool modeEnabled( TQChar mode, TQString *value = 0 );
// Kopete::Contact stuff
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
virtual const TQString caption() const;
//Methods handled by the signal mapper
@@ -131,18 +131,18 @@ private slots:
void slotOnlineStatusChanged(Kopete::Contact *c, const Kopete::OnlineStatus &status, const Kopete::OnlineStatus &oldStatus);
private:
- KAction *actionJoin;
- KAction *actionPart;
- KAction *actionTopic;
- KAction *actionHomePage;
- KActionMenu *actionModeMenu;
+ TDEAction *actionJoin;
+ TDEAction *actionPart;
+ TDEAction *actionTopic;
+ TDEAction *actionHomePage;
+ TDEActionMenu *actionModeMenu;
KCodecAction *codecAction;
- KToggleAction *actionModeT; // Only Operators Can Change Topic
- KToggleAction *actionModeN; // No Outside Messages
- KToggleAction *actionModeS; // Secret
- KToggleAction *actionModeI; // Invite Only
- KToggleAction *actionModeM; // Moderated
+ TDEToggleAction *actionModeT; // Only Operators Can Change Topic
+ TDEToggleAction *actionModeN; // No Outside Messages
+ TDEToggleAction *actionModeS; // Secret
+ TDEToggleAction *actionModeI; // Invite Only
+ TDEToggleAction *actionModeM; // Moderated
TQString mTopic;
TQString mPassword;
diff --git a/kopete/protocols/irc/ircguiclient.cpp b/kopete/protocols/irc/ircguiclient.cpp
index 43febda9..702aafa9 100644
--- a/kopete/protocols/irc/ircguiclient.cpp
+++ b/kopete/protocols/irc/ircguiclient.cpp
@@ -53,7 +53,7 @@ IRCGUIClient::IRCGUIClient( Kopete::ChatSession *parent ) : TQObject(parent) , K
setXMLFile("ircchatui.rc");
unplugActionList( "irccontactactionlist" );
- TQPtrList<KAction> *actions = m_user->customContextMenuActions( parent );
+ TQPtrList<TDEAction> *actions = m_user->customContextMenuActions( parent );
plugActionList( "irccontactactionlist", *actions );
delete actions;
*/
@@ -62,10 +62,10 @@ IRCGUIClient::IRCGUIClient( Kopete::ChatSession *parent ) : TQObject(parent) , K
TQDomDocument doc = domDocument();
TQDomNode menu = doc.documentElement().firstChild().firstChild();
- TQPtrList<KAction> *actions = m_user->customContextMenuActions( parent );
+ TQPtrList<TDEAction> *actions = m_user->customContextMenuActions( parent );
if( actions )
{
- for( KAction *a = actions->first(); a; a = actions->next() )
+ for( TDEAction *a = actions->first(); a; a = actions->next() )
{
actionCollection()->insert( a );
TQDomElement newNode = doc.createElement( "Action" );
diff --git a/kopete/protocols/irc/ircprotocol.cpp b/kopete/protocols/irc/ircprotocol.cpp
index e2d359dd..2f39a329 100644
--- a/kopete/protocols/irc/ircprotocol.cpp
+++ b/kopete/protocols/irc/ircprotocol.cpp
@@ -382,7 +382,7 @@ void IRCProtocol::slotMessageFilter( Kopete::Message &msg )
}
}
-TQPtrList<KAction> *IRCProtocol::customChatWindowPopupActions( const Kopete::Message &m, DOM::Node &n )
+TQPtrList<TDEAction> *IRCProtocol::customChatWindowPopupActions( const Kopete::Message &m, DOM::Node &n )
{
DOM::HTMLElement e = n;
diff --git a/kopete/protocols/irc/ircprotocol.h b/kopete/protocols/irc/ircprotocol.h
index 7820da1f..fe3ee85a 100644
--- a/kopete/protocols/irc/ircprotocol.h
+++ b/kopete/protocols/irc/ircprotocol.h
@@ -98,7 +98,7 @@ public:
virtual Kopete::Account* createNewAccount(const TQString &accountId);
- virtual TQPtrList<KAction> *customChatWindowPopupActions( const Kopete::Message &, DOM::Node & );
+ virtual TQPtrList<TDEAction> *customChatWindowPopupActions( const Kopete::Message &, DOM::Node & );
static IRCProtocol *protocol();
diff --git a/kopete/protocols/irc/ircservercontact.h b/kopete/protocols/irc/ircservercontact.h
index 97f99d88..17f6d0aa 100644
--- a/kopete/protocols/irc/ircservercontact.h
+++ b/kopete/protocols/irc/ircservercontact.h
@@ -27,9 +27,9 @@
#include <tqvaluelist.h>
#include <tqstringlist.h>
-class KActionCollection;
-class KAction;
-class KActionMenu;
+class TDEActionCollection;
+class TDEAction;
+class TDEActionMenu;
class KopeteView;
class IRCContactManager;
diff --git a/kopete/protocols/irc/ircusercontact.cpp b/kopete/protocols/irc/ircusercontact.cpp
index fa2ae7b5..03806208 100644
--- a/kopete/protocols/irc/ircusercontact.cpp
+++ b/kopete/protocols/irc/ircusercontact.cpp
@@ -524,45 +524,45 @@ void IRCUserContact::newWhoReply( const TQString &channel, const TQString &user,
}
}
-TQPtrList<KAction> *IRCUserContact::customContextMenuActions( Kopete::ChatSession *manager )
+TQPtrList<TDEAction> *IRCUserContact::customContextMenuActions( Kopete::ChatSession *manager )
{
if( manager )
{
- TQPtrList<KAction> *mCustomActions = new TQPtrList<KAction> ();
+ TQPtrList<TDEAction> *mCustomActions = new TQPtrList<TDEAction> ();
mActiveManager = manager;
Kopete::ContactPtrList members = mActiveManager->members();
IRCChannelContact *isChannel = dynamic_cast<IRCChannelContact*>( members.first() );
if( !actionCtcpMenu )
{
- actionCtcpMenu = new KActionMenu(i18n("C&TCP"), 0, this );
- actionCtcpMenu->insert( new KAction(i18n("&Version"), 0, this,
+ actionCtcpMenu = new TDEActionMenu(i18n("C&TCP"), 0, this );
+ actionCtcpMenu->insert( new TDEAction(i18n("&Version"), 0, this,
TQT_SLOT(slotCtcpVersion()), actionCtcpMenu) );
- actionCtcpMenu->insert( new KAction(i18n("&Ping"), 0, this,
+ actionCtcpMenu->insert( new TDEAction(i18n("&Ping"), 0, this,
TQT_SLOT(slotCtcpPing()), actionCtcpMenu) );
- actionModeMenu = new KActionMenu(i18n("&Modes"), 0, this, "actionModeMenu");
- actionModeMenu->insert( new KAction(i18n("&Op"), 0, this,
+ actionModeMenu = new TDEActionMenu(i18n("&Modes"), 0, this, "actionModeMenu");
+ actionModeMenu->insert( new TDEAction(i18n("&Op"), 0, this,
TQT_SLOT(slotOp()), actionModeMenu, "actionOp") );
- actionModeMenu->insert( new KAction(i18n("&Deop"), 0, this,
+ actionModeMenu->insert( new TDEAction(i18n("&Deop"), 0, this,
TQT_SLOT(slotDeop()), actionModeMenu, "actionDeop") );
- actionModeMenu->insert( new KAction(i18n("&Voice"), 0, this,
+ actionModeMenu->insert( new TDEAction(i18n("&Voice"), 0, this,
TQT_SLOT(slotVoice()), actionModeMenu, "actionVoice") );
- actionModeMenu->insert( new KAction(i18n("Devoice"), 0, this,
+ actionModeMenu->insert( new TDEAction(i18n("Devoice"), 0, this,
TQT_SLOT(slotDevoice()), actionModeMenu, "actionDevoice") );
actionModeMenu->setEnabled( false );
- actionKick = new KAction(i18n("&Kick"), 0, this, TQT_SLOT(slotKick()), this);
+ actionKick = new TDEAction(i18n("&Kick"), 0, this, TQT_SLOT(slotKick()), this);
actionKick->setEnabled( false );
- actionBanMenu = new KActionMenu(i18n("&Ban"), 0, this, "actionBanMenu");
- actionBanMenu->insert( new KAction(i18n("Host (*!*@host.domain.net)"), 0, this,
+ actionBanMenu = new TDEActionMenu(i18n("&Ban"), 0, this, "actionBanMenu");
+ actionBanMenu->insert( new TDEAction(i18n("Host (*!*@host.domain.net)"), 0, this,
TQT_SLOT(slotBanHost()), actionBanMenu ) );
- actionBanMenu->insert( new KAction(i18n("Domain (*!*@*.domain.net)"), 0, this,
+ actionBanMenu->insert( new TDEAction(i18n("Domain (*!*@*.domain.net)"), 0, this,
TQT_SLOT(slotBanDomain()), actionBanMenu ) );
- actionBanMenu->insert( new KAction(i18n("User@Host (*!*[email protected])"), 0, this,
+ actionBanMenu->insert( new TDEAction(i18n("User@Host (*!*[email protected])"), 0, this,
TQT_SLOT(slotBanUserHost()), actionBanMenu ) );
- actionBanMenu->insert( new KAction(i18n("User@Domain (*!*user@*.domain.net)"), 0, this,
+ actionBanMenu->insert( new TDEAction(i18n("User@Domain (*!*user@*.domain.net)"), 0, this,
TQT_SLOT(slotBanUserDomain()), actionBanMenu ) );
actionBanMenu->setEnabled( false );
diff --git a/kopete/protocols/irc/ircusercontact.h b/kopete/protocols/irc/ircusercontact.h
index 25461b15..2ad420f5 100644
--- a/kopete/protocols/irc/ircusercontact.h
+++ b/kopete/protocols/irc/ircusercontact.h
@@ -25,9 +25,9 @@
class TQTimer;
-class KActionCollection;
-class KAction;
-class KActionMenu;
+class TDEActionCollection;
+class TDEAction;
+class TDEActionMenu;
class KCodecAction;
class IRCContactManager;
@@ -68,7 +68,7 @@ public:
IRCUserContact(IRCContactManager *, const TQString &nickname, Kopete::MetaContact *mc);
// Kopete::Contact stuff
- virtual TQPtrList<KAction> *customContextMenuActions( Kopete::ChatSession *manager );
+ virtual TQPtrList<TDEAction> *customContextMenuActions( Kopete::ChatSession *manager );
virtual const TQString caption() const;
void setAway(bool isAway);
@@ -132,10 +132,10 @@ private:
void contactMode(const TQString &mode);
void updateInfo();
- KActionMenu *actionModeMenu;
- KActionMenu *actionCtcpMenu;
- KAction *actionKick;
- KActionMenu *actionBanMenu;
+ TDEActionMenu *actionModeMenu;
+ TDEActionMenu *actionCtcpMenu;
+ TDEAction *actionKick;
+ TDEActionMenu *actionBanMenu;
KCodecAction *codecAction;
Kopete::ChatSession *mActiveManager;
TQTimer *mOnlineTimer;
diff --git a/kopete/protocols/irc/kcodecaction.cpp b/kopete/protocols/irc/kcodecaction.cpp
index 97964885..8d864078 100644
--- a/kopete/protocols/irc/kcodecaction.cpp
+++ b/kopete/protocols/irc/kcodecaction.cpp
@@ -20,8 +20,8 @@
#include "kcodecaction.h"
-KCodecAction::KCodecAction( const TQString &text, const KShortcut &cut,
- TQObject *parent, const char *name ) : KSelectAction( text, "", cut, parent, name )
+KCodecAction::KCodecAction( const TQString &text, const TDEShortcut &cut,
+ TQObject *parent, const char *name ) : TDESelectAction( text, "", cut, parent, name )
{
TQObject::connect( this, TQT_SIGNAL( activated( const TQString & ) ),
this, TQT_SLOT( slotActivated( const TQString & ) ) );
diff --git a/kopete/protocols/irc/kcodecaction.h b/kopete/protocols/irc/kcodecaction.h
index 5689d751..e581e713 100644
--- a/kopete/protocols/irc/kcodecaction.h
+++ b/kopete/protocols/irc/kcodecaction.h
@@ -26,12 +26,12 @@
#include <kaction.h>
#endif
-class KCodecAction : public KSelectAction
+class KCodecAction : public TDESelectAction
{
Q_OBJECT
public:
- KCodecAction( const TQString &text, const KShortcut &cut = KShortcut(),
+ KCodecAction( const TQString &text, const TDEShortcut &cut = TDEShortcut(),
TQObject *parent = 0, const char *name = 0 );
void setCodec( const TQTextCodec *codec );
diff --git a/kopete/protocols/irc/ui/channellist.cpp b/kopete/protocols/irc/ui/channellist.cpp
index d7ef0279..2d4e357b 100644
--- a/kopete/protocols/irc/ui/channellist.cpp
+++ b/kopete/protocols/irc/ui/channellist.cpp
@@ -38,19 +38,19 @@
#include <tqspinbox.h>
#include <tqwhatsthis.h>
-class ChannelListItem : public KListViewItem
+class ChannelListItem : public TDEListViewItem
{
public:
- ChannelListItem( KListView *parent, TQString arg1, TQString arg2, TQString arg3 );
+ ChannelListItem( TDEListView *parent, TQString arg1, TQString arg2, TQString arg3 );
virtual int compare( TQListViewItem *i, int col, bool ascending ) const;
virtual void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int align );
private:
- KListView *parentList;
+ TDEListView *parentList;
};
-ChannelListItem::ChannelListItem( KListView *parent, TQString arg1, TQString arg2, TQString arg3 ) :
- KListViewItem( parent, parent->lastItem() ), parentList( parent )
+ChannelListItem::ChannelListItem( TDEListView *parent, TQString arg1, TQString arg2, TQString arg3 ) :
+ TDEListViewItem( parent, parent->lastItem() ), parentList( parent )
{
setText(0, arg1);
setText(1, arg2);
@@ -76,15 +76,15 @@ void ChannelListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int colum
{
TQPixmap back( width, height() );
TQPainter paint( &back );
- //KListViewItem::paintCell( &paint, cg, column, width, align );
+ //TDEListViewItem::paintCell( &paint, cg, column, width, align );
// PASTED FROM KLISTVIEWITEM:
// set the alternate cell background colour if necessary
TQColorGroup _cg = cg;
if (isAlternate())
if (listView()->viewport()->backgroundMode()==TQt::FixedColor)
- _cg.setColor(TQColorGroup::Background, static_cast< KListView* >(listView())->alternateBackground());
+ _cg.setColor(TQColorGroup::Background, static_cast< TDEListView* >(listView())->alternateBackground());
else
- _cg.setColor(TQColorGroup::Base, static_cast< KListView* >(listView())->alternateBackground());
+ _cg.setColor(TQColorGroup::Base, static_cast< TDEListView* >(listView())->alternateBackground());
// PASTED FROM TQLISTVIEWITEM
{
TQPainter *p = &paint;
@@ -186,7 +186,7 @@ ChannelList::ChannelList( TQWidget* parent, KIRC::Engine *engine )
layout72_2->addWidget( mSearchButton );
ChannelListLayout->addLayout( layout72_2 );
- mChannelList = new KListView( this, "mChannelList" );
+ mChannelList = new TDEListView( this, "mChannelList" );
mChannelList->addColumn( i18n( "Channel" ) );
mChannelList->addColumn( i18n( "Users" ) );
mChannelList->header()->setResizeEnabled( FALSE, mChannelList->header()->count() - 1 );
diff --git a/kopete/protocols/irc/ui/channellist.h b/kopete/protocols/irc/ui/channellist.h
index 077372b0..84bf3464 100644
--- a/kopete/protocols/irc/ui/channellist.h
+++ b/kopete/protocols/irc/ui/channellist.h
@@ -30,7 +30,7 @@ class TQGridLayout;
class TQLabel;
class TQLineEdit;
class TQPushButton;
-class KListView;
+class TDEListView;
class TQSpinBox;
class TQListViewItem;
@@ -67,7 +67,7 @@ class ChannelList
TQLineEdit* channelSearch;
TQSpinBox* numUsers;
TQPushButton* mSearchButton;
- KListView* mChannelList;
+ TDEListView* mChannelList;
TQVBoxLayout* ChannelListLayout;
TQHBoxLayout* layout72_2;
KIRC::Engine *m_engine;
diff --git a/kopete/protocols/irc/ui/irceditaccount.ui b/kopete/protocols/irc/ui/irceditaccount.ui
index c184b92e..4b308655 100644
--- a/kopete/protocols/irc/ui/irceditaccount.ui
+++ b/kopete/protocols/irc/ui/irceditaccount.ui
@@ -757,7 +757,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>CTCP</string>
@@ -915,7 +915,7 @@
</widget>
</hbox>
</widget>
- <widget class="KListView" row="0" column="0">
+ <widget class="TDEListView" row="0" column="0">
<column>
<property name="text">
<string>Command</string>
diff --git a/kopete/protocols/irc/ui/irceditaccountwidget.cpp b/kopete/protocols/irc/ui/irceditaccountwidget.cpp
index 430282fb..12784ae5 100644
--- a/kopete/protocols/irc/ui/irceditaccountwidget.cpp
+++ b/kopete/protocols/irc/ui/irceditaccountwidget.cpp
@@ -106,11 +106,11 @@ IRCEditAccountWidget::IRCEditAccountWidget(IRCProtocol *proto, IRCAccount *ident
}
}
- connect( commandList, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ),
- this, TQT_SLOT( slotCommandContextMenu( KListView *, TQListViewItem *, const TQPoint & ) ) );
+ connect( commandList, TQT_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ),
+ this, TQT_SLOT( slotCommandContextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ) );
- connect( ctcpList, TQT_SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ),
- this, TQT_SLOT( slotCtcpContextMenu( KListView *, TQListViewItem *, const TQPoint & ) ) );
+ connect( ctcpList, TQT_SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ),
+ this, TQT_SLOT( slotCtcpContextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ) );
connect( addButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddCommand() ) );
connect( editButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT(slotEditNetworks() ) );
@@ -171,7 +171,7 @@ void IRCEditAccountWidget::slotUpdateNetworkDescription( const TQString &network
);
}
-void IRCEditAccountWidget::slotCommandContextMenu( KListView *, TQListViewItem *item, const TQPoint &p )
+void IRCEditAccountWidget::slotCommandContextMenu( TDEListView *, TQListViewItem *item, const TQPoint &p )
{
TQPopupMenu popup;
popup.insertItem( i18n("Remove Command"), 1 );
@@ -179,7 +179,7 @@ void IRCEditAccountWidget::slotCommandContextMenu( KListView *, TQListViewItem *
delete item;
}
-void IRCEditAccountWidget::slotCtcpContextMenu( KListView *, TQListViewItem *item, const TQPoint &p )
+void IRCEditAccountWidget::slotCtcpContextMenu( TDEListView *, TQListViewItem *item, const TQPoint &p )
{
TQPopupMenu popup;
popup.insertItem( i18n("Remove CTCP Reply"), 1 );
diff --git a/kopete/protocols/irc/ui/irceditaccountwidget.h b/kopete/protocols/irc/ui/irceditaccountwidget.h
index b11f2424..9f54e71b 100644
--- a/kopete/protocols/irc/ui/irceditaccountwidget.h
+++ b/kopete/protocols/irc/ui/irceditaccountwidget.h
@@ -23,7 +23,7 @@
class IRCProtocol;
class IRCAccount;
-class KListView;
+class TDEListView;
class TQListViewItem;
class IRCEditAccountWidget : public IRCEditAccountBase, public KopeteEditAccountWidget
@@ -40,8 +40,8 @@ class IRCEditAccountWidget : public IRCEditAccountBase, public KopeteEditAccount
virtual Kopete::Account *apply();
private slots:
- void slotCommandContextMenu( KListView*, TQListViewItem*, const TQPoint & );
- void slotCtcpContextMenu( KListView*, TQListViewItem*, const TQPoint & );
+ void slotCommandContextMenu( TDEListView*, TQListViewItem*, const TQPoint & );
+ void slotCtcpContextMenu( TDEListView*, TQListViewItem*, const TQPoint & );
void slotAddCommand();
void slotAddCtcp();
void slotEditNetworks();
diff --git a/kopete/protocols/jabber/jabberaccount.cpp b/kopete/protocols/jabber/jabberaccount.cpp
index 23f947fc..5d1caae1 100644
--- a/kopete/protocols/jabber/jabberaccount.cpp
+++ b/kopete/protocols/jabber/jabberaccount.cpp
@@ -170,15 +170,15 @@ void JabberAccount::setS5BServerPort ( int port )
}
-KActionMenu *JabberAccount::actionMenu ()
+TDEActionMenu *JabberAccount::actionMenu ()
{
- KActionMenu *m_actionMenu = Kopete::Account::actionMenu();
+ TDEActionMenu *m_actionMenu = Kopete::Account::actionMenu();
m_actionMenu->popupMenu()->insertSeparator();
- KAction *action;
+ TDEAction *action;
- action = new KAction (i18n ("Join Groupchat..."), "jabber_group", 0, this, TQT_SLOT (slotJoinNewChat ()), this, "actionJoinChat");
+ action = new TDEAction (i18n ("Join Groupchat..."), "jabber_group", 0, this, TQT_SLOT (slotJoinNewChat ()), this, "actionJoinChat");
m_actionMenu->insert(action);
action->setEnabled( isConnected() );
@@ -189,17 +189,17 @@ KActionMenu *JabberAccount::actionMenu ()
m_actionMenu->popupMenu()->insertSeparator();
- action = new KAction ( i18n ("Services..."), "jabber_serv_on", 0,
+ action = new TDEAction ( i18n ("Services..."), "jabber_serv_on", 0,
this, TQT_SLOT ( slotGetServices () ), this, "actionJabberServices");
action->setEnabled( isConnected() );
m_actionMenu->insert ( action );
- action = new KAction ( i18n ("Send Raw Packet to Server..."), "mail_new", 0,
+ action = new TDEAction ( i18n ("Send Raw Packet to Server..."), "mail_new", 0,
this, TQT_SLOT ( slotSendRaw () ), this, "actionJabberSendRaw") ;
action->setEnabled( isConnected() );
m_actionMenu->insert ( action );
- action = new KAction ( i18n ("Edit User Info..."), "identity", 0,
+ action = new TDEAction ( i18n ("Edit User Info..."), "identity", 0,
this, TQT_SLOT ( slotEditVCard () ), this, "actionEditVCard") ;
action->setEnabled( isConnected() );
m_actionMenu->insert ( action );
diff --git a/kopete/protocols/jabber/jabberaccount.h b/kopete/protocols/jabber/jabberaccount.h
index 05bb5f42..ebd4bff5 100644
--- a/kopete/protocols/jabber/jabberaccount.h
+++ b/kopete/protocols/jabber/jabberaccount.h
@@ -35,7 +35,7 @@
class TQString;
class TQStringList;
-class KActionMenu;
+class TDEActionMenu;
class JabberResourcePool;
class JabberContact;
class JabberContactPool;
@@ -64,7 +64,7 @@ public:
~JabberAccount ();
/* Returns the action menu for this account. */
- virtual KActionMenu *actionMenu ();
+ virtual TDEActionMenu *actionMenu ();
/* Return the resource of the client */
const TQString resource () const;
diff --git a/kopete/protocols/jabber/jabberbasecontact.h b/kopete/protocols/jabber/jabberbasecontact.h
index bb430f11..494a479c 100644
--- a/kopete/protocols/jabber/jabberbasecontact.h
+++ b/kopete/protocols/jabber/jabberbasecontact.h
@@ -78,7 +78,7 @@ public:
* Create custom context menu items for the contact
* FIXME: implement manager version here?
*/
- virtual TQPtrList<KAction> *customContextMenuActions () = 0;
+ virtual TQPtrList<TDEAction> *customContextMenuActions () = 0;
/**
* Serialize contact
diff --git a/kopete/protocols/jabber/jabberbookmarks.cpp b/kopete/protocols/jabber/jabberbookmarks.cpp
index 661f0974..54a17943 100644
--- a/kopete/protocols/jabber/jabberbookmarks.cpp
+++ b/kopete/protocols/jabber/jabberbookmarks.cpp
@@ -127,9 +127,9 @@ void JabberBookmarks::insertGroupChat(const XMPP::Jid &jid)
m_conferencesJID += jid.full();
}
-KAction * JabberBookmarks::bookmarksAction(TQObject *parent)
+TDEAction * JabberBookmarks::bookmarksAction(TQObject *parent)
{
- KSelectAction *groupchatBM = new KSelectAction( i18n("Groupchat bookmark") , "jabber_group" , 0 , parent , "actionBookMark" );
+ TDESelectAction *groupchatBM = new TDESelectAction( i18n("Groupchat bookmark") , "jabber_group" , 0 , parent , "actionBookMark" );
groupchatBM->setItems(m_conferencesJID);
TQObject::connect(groupchatBM, TQT_SIGNAL(activated (const TQString&)) , this, TQT_SLOT(slotJoinChatBookmark(const TQString&)));
return groupchatBM;
diff --git a/kopete/protocols/jabber/jabberbookmarks.h b/kopete/protocols/jabber/jabberbookmarks.h
index f60f1ccf..16014e6d 100644
--- a/kopete/protocols/jabber/jabberbookmarks.h
+++ b/kopete/protocols/jabber/jabberbookmarks.h
@@ -26,7 +26,7 @@ namespace XMPP { class Jid; }
class JabberAccount;
class JabberProtocol;
-class KAction;
+class TDEAction;
/**
* This is a class that hanlde the bookmark collection (JEP-0048)
@@ -53,7 +53,7 @@ class JabberBookmarks : public TQObject
/**
* return an action that will be added in the jabber popup menu
*/
- KAction *bookmarksAction(TQObject * parent);
+ TDEAction *bookmarksAction(TQObject * parent);
private slots:
void accountConnected();
void slotReceivedBookmarks();
diff --git a/kopete/protocols/jabber/jabberchatsession.cpp b/kopete/protocols/jabber/jabberchatsession.cpp
index cbfc0eab..71b2c7d6 100644
--- a/kopete/protocols/jabber/jabberchatsession.cpp
+++ b/kopete/protocols/jabber/jabberchatsession.cpp
@@ -65,7 +65,7 @@ JabberChatSession::JabberChatSession ( JabberProtocol *protocol, const JabberBas
slotUpdateDisplayName ();
#ifdef SUPPORT_JINGLE
- KAction *jabber_voicecall = new KAction( i18n("Voice call" ), "voicecall", 0, members().getFirst(), TQT_SLOT(voiceCall ()), actionCollection(), "jabber_voicecall" );
+ TDEAction *jabber_voicecall = new TDEAction( i18n("Voice call" ), "voicecall", 0, members().getFirst(), TQT_SLOT(voiceCall ()), actionCollection(), "jabber_voicecall" );
setInstance(protocol->instance());
jabber_voicecall->setEnabled( false );
@@ -85,7 +85,7 @@ JabberChatSession::JabberChatSession ( JabberProtocol *protocol, const JabberBas
#endif
- new KAction( i18n( "Send File" ), "attach", 0, this, TQT_SLOT( slotSendFile() ), actionCollection(), "jabberSendFile" );
+ new TDEAction( i18n( "Send File" ), "attach", 0, this, TQT_SLOT( slotSendFile() ), actionCollection(), "jabberSendFile" );
setXMLFile("jabberchatui.rc");
diff --git a/kopete/protocols/jabber/jabbercontact.cpp b/kopete/protocols/jabber/jabbercontact.cpp
index 1d7d2e3f..708d9f16 100644
--- a/kopete/protocols/jabber/jabbercontact.cpp
+++ b/kopete/protocols/jabber/jabbercontact.cpp
@@ -127,46 +127,46 @@ JabberContact::~JabberContact()
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << contactId() << " is destroyed - " << this << endl;
}
-TQPtrList<KAction> *JabberContact::customContextMenuActions ()
+TQPtrList<TDEAction> *JabberContact::customContextMenuActions ()
{
- TQPtrList<KAction> *actionCollection = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *actionCollection = new TQPtrList<TDEAction>();
- KActionMenu *actionAuthorization = new KActionMenu ( i18n ("Authorization"), "connect_established", this, "jabber_authorization");
+ TDEActionMenu *actionAuthorization = new TDEActionMenu ( i18n ("Authorization"), "connect_established", this, "jabber_authorization");
- KAction *resendAuthAction, *requestAuthAction, *removeAuthAction;
+ TDEAction *resendAuthAction, *requestAuthAction, *removeAuthAction;
- resendAuthAction = new KAction (i18n ("(Re)send Authorization To"), "mail_forward", 0,
+ resendAuthAction = new TDEAction (i18n ("(Re)send Authorization To"), "mail_forward", 0,
this, TQT_SLOT (slotSendAuth ()), actionAuthorization, "actionSendAuth");
resendAuthAction->setEnabled( mRosterItem.subscription().type() == XMPP::Subscription::To || mRosterItem.subscription().type() == XMPP::Subscription::None );
actionAuthorization->insert(resendAuthAction);
- requestAuthAction = new KAction (i18n ("(Re)request Authorization From"), "mail_reply", 0,
+ requestAuthAction = new TDEAction (i18n ("(Re)request Authorization From"), "mail_reply", 0,
this, TQT_SLOT (slotRequestAuth ()), actionAuthorization, "actionRequestAuth");
requestAuthAction->setEnabled( mRosterItem.subscription().type() == XMPP::Subscription::From || mRosterItem.subscription().type() == XMPP::Subscription::None );
actionAuthorization->insert(requestAuthAction);
- removeAuthAction = new KAction (i18n ("Remove Authorization From"), "mail_delete", 0,
+ removeAuthAction = new TDEAction (i18n ("Remove Authorization From"), "mail_delete", 0,
this, TQT_SLOT (slotRemoveAuth ()), actionAuthorization, "actionRemoveAuth");
removeAuthAction->setEnabled( mRosterItem.subscription().type() == XMPP::Subscription::Both || mRosterItem.subscription().type() == XMPP::Subscription::From );
actionAuthorization->insert(removeAuthAction);
- KActionMenu *actionSetAvailability = new KActionMenu (i18n ("Set Availability"), "kopeteavailable", this, "jabber_online");
+ TDEActionMenu *actionSetAvailability = new TDEActionMenu (i18n ("Set Availability"), "kopeteavailable", this, "jabber_online");
- actionSetAvailability->insert(new KAction (i18n ("Online"), protocol()->JabberKOSOnline.iconFor(this),
+ actionSetAvailability->insert(new TDEAction (i18n ("Online"), protocol()->JabberKOSOnline.iconFor(this),
0, this, TQT_SLOT (slotStatusOnline ()), actionSetAvailability, "actionOnline"));
- actionSetAvailability->insert(new KAction (i18n ("Free to Chat"), protocol()->JabberKOSChatty.iconFor(this),
+ actionSetAvailability->insert(new TDEAction (i18n ("Free to Chat"), protocol()->JabberKOSChatty.iconFor(this),
0, this, TQT_SLOT (slotStatusChatty ()), actionSetAvailability, "actionChatty"));
- actionSetAvailability->insert(new KAction (i18n ("Away"), protocol()->JabberKOSAway.iconFor(this),
+ actionSetAvailability->insert(new TDEAction (i18n ("Away"), protocol()->JabberKOSAway.iconFor(this),
0, this, TQT_SLOT (slotStatusAway ()), actionSetAvailability, "actionAway"));
- actionSetAvailability->insert(new KAction (i18n ("Extended Away"), protocol()->JabberKOSXA.iconFor(this),
+ actionSetAvailability->insert(new TDEAction (i18n ("Extended Away"), protocol()->JabberKOSXA.iconFor(this),
0, this, TQT_SLOT (slotStatusXA ()), actionSetAvailability, "actionXA"));
- actionSetAvailability->insert(new KAction (i18n ("Do Not Disturb"), protocol()->JabberKOSDND.iconFor(this),
+ actionSetAvailability->insert(new TDEAction (i18n ("Do Not Disturb"), protocol()->JabberKOSDND.iconFor(this),
0, this, TQT_SLOT (slotStatusDND ()), actionSetAvailability, "actionDND"));
- actionSetAvailability->insert(new KAction (i18n ("Invisible"), protocol()->JabberKOSInvisible.iconFor(this),
+ actionSetAvailability->insert(new TDEAction (i18n ("Invisible"), protocol()->JabberKOSInvisible.iconFor(this),
0, this, TQT_SLOT (slotStatusInvisible ()), actionSetAvailability, "actionInvisible"));
- KActionMenu *actionSelectResource = new KActionMenu (i18n ("Select Resource"), "connect_no", this, "actionSelectResource");
+ TDEActionMenu *actionSelectResource = new TDEActionMenu (i18n ("Select Resource"), "connect_no", this, "actionSelectResource");
// if the contact is online, display the resources we have for it,
// otherwise disable the menu
@@ -203,7 +203,7 @@ TQPtrList<KAction> *JabberContact::customContextMenuActions ()
{
if( i == activeItem )
{
- actionSelectResource->insert ( new KAction( ( *it ), "button_ok", 0, this, TQT_SLOT( slotSelectResource() ),
+ actionSelectResource->insert ( new TDEAction( ( *it ), "button_ok", 0, this, TQT_SLOT( slotSelectResource() ),
actionSelectResource, TQString::number( i ).latin1() ) );
}
else
@@ -215,7 +215,7 @@ TQPtrList<KAction> *JabberContact::customContextMenuActions ()
TQIconSet iconSet ( !i ?
protocol()->resourceToKOS ( account()->resourcePool()->bestResource ( mRosterItem.jid(), false ) ).iconFor ( account () ) : protocol()->resourceToKOS ( *availableResources.find(*it) ).iconFor ( account () ));
- actionSelectResource->insert ( new KAction( ( *it ), iconSet, 0, this, TQT_SLOT( slotSelectResource() ),
+ actionSelectResource->insert ( new TDEAction( ( *it ), iconSet, 0, this, TQT_SLOT( slotSelectResource() ),
actionSelectResource, TQString::number( i ).latin1() ) );
}
@@ -230,7 +230,7 @@ TQPtrList<KAction> *JabberContact::customContextMenuActions ()
#ifdef SUPPORT_JINGLE
- KAction *actionVoiceCall = new KAction (i18n ("Voice call"), "voicecall", 0, this, TQT_SLOT (voiceCall ()), this, "jabber_voicecall");
+ TDEAction *actionVoiceCall = new TDEAction (i18n ("Voice call"), "voicecall", 0, this, TQT_SLOT (voiceCall ()), this, "jabber_voicecall");
actionVoiceCall->setEnabled( false );
actionCollection->append( actionVoiceCall );
@@ -1075,7 +1075,7 @@ void JabberContact::sendSubscription ( const TQString& subType )
void JabberContact::slotSelectResource ()
{
- int currentItem = TQString ( static_cast<const KAction *>( sender() )->name () ).toUInt ();
+ int currentItem = TQString ( static_cast<const TDEAction *>( sender() )->name () ).toUInt ();
/*
* Warn the user if there is already an active chat window.
@@ -1101,7 +1101,7 @@ void JabberContact::slotSelectResource ()
}
else
{
- TQString selectedResource = static_cast<const KAction *>(sender())->text();
+ TQString selectedResource = static_cast<const TDEAction *>(sender())->text();
kdDebug (JABBER_DEBUG_GLOBAL) << k_funcinfo << "Moving to resource " << selectedResource << endl;
diff --git a/kopete/protocols/jabber/jabbercontact.h b/kopete/protocols/jabber/jabbercontact.h
index 4dcb6f8b..472360ab 100644
--- a/kopete/protocols/jabber/jabbercontact.h
+++ b/kopete/protocols/jabber/jabbercontact.h
@@ -47,7 +47,7 @@ public:
* Create custom context menu items for the contact
* FIXME: implement manager version here?
*/
- TQPtrList<KAction> *customContextMenuActions ();
+ TQPtrList<TDEAction> *customContextMenuActions ();
/**
* Start a rename request.
diff --git a/kopete/protocols/jabber/jabbergroupcontact.cpp b/kopete/protocols/jabber/jabbergroupcontact.cpp
index 96ab9bcd..b110b521 100644
--- a/kopete/protocols/jabber/jabbergroupcontact.cpp
+++ b/kopete/protocols/jabber/jabbergroupcontact.cpp
@@ -109,11 +109,11 @@ JabberGroupContact::~JabberGroupContact ()
}
}
-TQPtrList<KAction> *JabberGroupContact::customContextMenuActions ()
+TQPtrList<TDEAction> *JabberGroupContact::customContextMenuActions ()
{
- TQPtrList<KAction> *actionCollection = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *actionCollection = new TQPtrList<TDEAction>();
- KAction *actionSetNick = new KAction (i18n ("Change nick name"), 0, 0, this, TQT_SLOT (slotChangeNick()), this, "jabber_changenick");
+ TDEAction *actionSetNick = new TDEAction (i18n ("Change nick name"), 0, 0, this, TQT_SLOT (slotChangeNick()), this, "jabber_changenick");
actionCollection->append( actionSetNick );
return actionCollection;
diff --git a/kopete/protocols/jabber/jabbergroupcontact.h b/kopete/protocols/jabber/jabbergroupcontact.h
index 07ae6f40..899ba96a 100644
--- a/kopete/protocols/jabber/jabbergroupcontact.h
+++ b/kopete/protocols/jabber/jabbergroupcontact.h
@@ -40,7 +40,7 @@ public:
* Create custom context menu items for the contact
* FIXME: implement manager version here?
*/
- TQPtrList<KAction> *customContextMenuActions ();
+ TQPtrList<TDEAction> *customContextMenuActions ();
/**
* Deal with an incoming message for this contact.
diff --git a/kopete/protocols/jabber/jabbergroupmembercontact.cpp b/kopete/protocols/jabber/jabbergroupmembercontact.cpp
index e1bbd04a..3bbc7a94 100644
--- a/kopete/protocols/jabber/jabbergroupmembercontact.cpp
+++ b/kopete/protocols/jabber/jabbergroupmembercontact.cpp
@@ -56,7 +56,7 @@ JabberGroupMemberContact::~JabberGroupMemberContact ()
}
}
-TQPtrList<KAction> *JabberGroupMemberContact::customContextMenuActions ()
+TQPtrList<TDEAction> *JabberGroupMemberContact::customContextMenuActions ()
{
return 0;
diff --git a/kopete/protocols/jabber/jabbergroupmembercontact.h b/kopete/protocols/jabber/jabbergroupmembercontact.h
index 49dd9417..1202f1f7 100644
--- a/kopete/protocols/jabber/jabbergroupmembercontact.h
+++ b/kopete/protocols/jabber/jabbergroupmembercontact.h
@@ -41,7 +41,7 @@ public:
* Create custom context menu items for the contact
* FIXME: implement manager version here?
*/
- TQPtrList<KAction> *customContextMenuActions ();
+ TQPtrList<TDEAction> *customContextMenuActions ();
/**
* Return message manager for this instance.
diff --git a/kopete/protocols/jabber/jabbertransport.cpp b/kopete/protocols/jabber/jabbertransport.cpp
index adc53b01..6b658b2c 100644
--- a/kopete/protocols/jabber/jabbertransport.cpp
+++ b/kopete/protocols/jabber/jabbertransport.cpp
@@ -121,43 +121,43 @@ JabberTransport::~JabberTransport ()
m_account->removeTransport( myself()->contactId() );
}
-KActionMenu *JabberTransport::actionMenu ()
+TDEActionMenu *JabberTransport::actionMenu ()
{
- KActionMenu *menu = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
+ TDEActionMenu *menu = new TDEActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
TQString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString();
menu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ),
nick.isNull() ? accountLabel() : i18n( "%2 <%1>" ).arg( accountLabel(), nick )
);
- TQPtrList<KAction> *customActions = myself()->customContextMenuActions( );
+ TQPtrList<TDEAction> *customActions = myself()->customContextMenuActions( );
if( customActions && !customActions->isEmpty() )
{
menu->popupMenu()->insertSeparator();
- for( KAction *a = customActions->first(); a; a = customActions->next() )
+ for( TDEAction *a = customActions->first(); a; a = customActions->next() )
a->plug( menu->popupMenu() );
}
delete customActions;
return menu;
-/* KActionMenu *m_actionMenu = Kopete::Account::actionMenu();
+/* TDEActionMenu *m_actionMenu = Kopete::Account::actionMenu();
m_actionMenu->popupMenu()->insertSeparator();
- m_actionMenu->insert(new KAction (i18n ("Join Groupchat..."), "jabber_group", 0,
+ m_actionMenu->insert(new TDEAction (i18n ("Join Groupchat..."), "jabber_group", 0,
this, TQT_SLOT (slotJoinNewChat ()), this, "actionJoinChat"));
m_actionMenu->popupMenu()->insertSeparator();
- m_actionMenu->insert ( new KAction ( i18n ("Services..."), "jabber_serv_on", 0,
+ m_actionMenu->insert ( new TDEAction ( i18n ("Services..."), "jabber_serv_on", 0,
this, TQT_SLOT ( slotGetServices () ), this, "actionJabberServices") );
- m_actionMenu->insert ( new KAction ( i18n ("Send Raw Packet to Server..."), "mail_new", 0,
+ m_actionMenu->insert ( new TDEAction ( i18n ("Send Raw Packet to Server..."), "mail_new", 0,
this, TQT_SLOT ( slotSendRaw () ), this, "actionJabberSendRaw") );
- m_actionMenu->insert ( new KAction ( i18n ("Edit User Info..."), "identity", 0,
+ m_actionMenu->insert ( new TDEAction ( i18n ("Edit User Info..."), "identity", 0,
this, TQT_SLOT ( slotEditVCard () ), this, "actionEditVCard") );
return m_actionMenu;*/
diff --git a/kopete/protocols/jabber/jabbertransport.h b/kopete/protocols/jabber/jabbertransport.h
index 8ed1360f..83f5e502 100644
--- a/kopete/protocols/jabber/jabbertransport.h
+++ b/kopete/protocols/jabber/jabbertransport.h
@@ -61,7 +61,7 @@ public:
~JabberTransport ();
/** Returns the action menu for this account. */
- virtual KActionMenu *actionMenu ();
+ virtual TDEActionMenu *actionMenu ();
/** the parent account */
JabberAccount *account() const
diff --git a/kopete/protocols/meanwhile/meanwhileaccount.cpp b/kopete/protocols/meanwhile/meanwhileaccount.cpp
index dc66a0cf..91635c91 100644
--- a/kopete/protocols/meanwhile/meanwhileaccount.cpp
+++ b/kopete/protocols/meanwhile/meanwhileaccount.cpp
@@ -131,14 +131,14 @@ void MeanwhileAccount::disconnect(Kopete::Account::DisconnectReason reason)
m_session = 0L;
}
-KActionMenu * MeanwhileAccount::actionMenu()
+TDEActionMenu * MeanwhileAccount::actionMenu()
{
- KActionMenu *menu = Kopete::Account::actionMenu();
+ TDEActionMenu *menu = Kopete::Account::actionMenu();
menu->popupMenu()->insertSeparator();
#if 0
- menu->insert(new KAction(i18n("&Change Status Message"), TQString(), 0,
+ menu->insert(new TDEAction(i18n("&Change Status Message"), TQString(), 0,
this, TQT_SLOT(meanwhileChangeStatus()), this,
"meanwhileChangeStatus"));
//infoPlugin->addCustomMenus(theMenu);
diff --git a/kopete/protocols/meanwhile/meanwhileaccount.h b/kopete/protocols/meanwhile/meanwhileaccount.h
index cb9ac083..2e476d78 100644
--- a/kopete/protocols/meanwhile/meanwhileaccount.h
+++ b/kopete/protocols/meanwhile/meanwhileaccount.h
@@ -52,7 +52,7 @@ public:
virtual void disconnect(Kopete::Account::DisconnectReason reason);
- virtual KActionMenu *actionMenu();
+ virtual TDEActionMenu *actionMenu();
/** Get the server host name */
TQString getServerName();
diff --git a/kopete/protocols/meanwhile/meanwhilecontact.h b/kopete/protocols/meanwhile/meanwhilecontact.h
index 5c92ebb8..6de9261e 100644
--- a/kopete/protocols/meanwhile/meanwhilecontact.h
+++ b/kopete/protocols/meanwhile/meanwhilecontact.h
@@ -22,8 +22,8 @@
#include "kopetemessage.h"
#include "meanwhileaccount.h"
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
namespace Kopete { class Account; }
namespace Kopete { class ChatSession; }
namespace Kopete { class MetaContact; }
diff --git a/kopete/protocols/meanwhile/meanwhileplugin.cpp b/kopete/protocols/meanwhile/meanwhileplugin.cpp
index 4ee995dd..160a9d9f 100644
--- a/kopete/protocols/meanwhile/meanwhileplugin.cpp
+++ b/kopete/protocols/meanwhile/meanwhileplugin.cpp
@@ -32,6 +32,6 @@ void MeanwhilePlugin::showUserInfo(const TQString &/*userid*/)
{
}
-void MeanwhilePlugin::addCustomMenus(KActionMenu *menu)
+void MeanwhilePlugin::addCustomMenus(TDEActionMenu *menu)
{
}
diff --git a/kopete/protocols/meanwhile/meanwhileplugin.h b/kopete/protocols/meanwhile/meanwhileplugin.h
index 072ffc08..c11a2b2f 100644
--- a/kopete/protocols/meanwhile/meanwhileplugin.h
+++ b/kopete/protocols/meanwhile/meanwhileplugin.h
@@ -41,7 +41,7 @@ public:
/* if you want to provide more functions on the rightclick dropdown
* menu...implement this
*/
- virtual void addCustomMenus(KActionMenu *menu);
+ virtual void addCustomMenus(TDEActionMenu *menu);
};
#endif
diff --git a/kopete/protocols/msn/msnaccount.cpp b/kopete/protocols/msn/msnaccount.cpp
index 39033752..30f8d477 100644
--- a/kopete/protocols/msn/msnaccount.cpp
+++ b/kopete/protocols/msn/msnaccount.cpp
@@ -80,9 +80,9 @@ MSNAccount::MSNAccount( MSNProtocol *parent, const TQString& AccountID, const ch
TQObject::connect( Kopete::ContactList::self(), TQT_SIGNAL( globalIdentityChanged(const TQString&, const TQVariant& ) ), TQT_SLOT( slotGlobalIdentityChanged(const TQString&, const TQVariant& ) ));
- m_openInboxAction = new KAction( i18n( "Open Inbo&x..." ), "mail_generic", 0, this, TQT_SLOT( slotOpenInbox() ), this, "m_openInboxAction" );
- m_changeDNAction = new KAction( i18n( "&Change Display Name..." ), TQString(), 0, this, TQT_SLOT( slotChangePublicName() ), this, "renameAction" );
- m_startChatAction = new KAction( i18n( "&Start Chat..." ), "mail_generic", 0, this, TQT_SLOT( slotStartChat() ), this, "startChatAction" );
+ m_openInboxAction = new TDEAction( i18n( "Open Inbo&x..." ), "mail_generic", 0, this, TQT_SLOT( slotOpenInbox() ), this, "m_openInboxAction" );
+ m_changeDNAction = new TDEAction( i18n( "&Change Display Name..." ), TQString(), 0, this, TQT_SLOT( slotChangePublicName() ), this, "renameAction" );
+ m_startChatAction = new TDEAction( i18n( "&Start Chat..." ), "mail_generic", 0, this, TQT_SLOT( slotStartChat() ), this, "startChatAction" );
TDEConfigGroup *config=configGroup();
@@ -241,9 +241,9 @@ void MSNAccount::disconnect()
m_notifySocket->disconnect();
}
-KActionMenu * MSNAccount::actionMenu()
+TDEActionMenu * MSNAccount::actionMenu()
{
- KActionMenu *m_actionMenu=Kopete::Account::actionMenu();
+ TDEActionMenu *m_actionMenu=Kopete::Account::actionMenu();
if ( isConnected() )
{
m_openInboxAction->setEnabled( true );
@@ -267,8 +267,8 @@ KActionMenu * MSNAccount::actionMenu()
m_actionMenu->insert( m_openInboxAction );
#if !defined NDEBUG
- KActionMenu *debugMenu = new KActionMenu( "Debug", m_actionMenu );
- debugMenu->insert( new KAction( i18n( "Send Raw C&ommand..." ), 0,
+ TDEActionMenu *debugMenu = new TDEActionMenu( "Debug", m_actionMenu );
+ debugMenu->insert( new TDEAction( i18n( "Send Raw C&ommand..." ), 0,
this, TQT_SLOT( slotDebugRawCommand() ), debugMenu, "m_debugRawCommand" ) );
m_actionMenu->popupMenu()->insertSeparator();
m_actionMenu->insert( debugMenu );
diff --git a/kopete/protocols/msn/msnaccount.h b/kopete/protocols/msn/msnaccount.h
index d5f12840..e7a80f4a 100644
--- a/kopete/protocols/msn/msnaccount.h
+++ b/kopete/protocols/msn/msnaccount.h
@@ -25,8 +25,8 @@
#include "msnprotocol.h"
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
class MSNNotifySocket;
class MSNContact;
@@ -48,7 +48,7 @@ public:
/*
* return the menu for this account
*/
- virtual KActionMenu* actionMenu();
+ virtual TDEActionMenu* actionMenu();
//------ internal functions
/**
@@ -205,9 +205,9 @@ private slots:
private:
MSNNotifySocket *m_notifySocket;
- KAction *m_openInboxAction;
- KAction *m_startChatAction;
- KAction *m_changeDNAction;
+ TDEAction *m_openInboxAction;
+ TDEAction *m_startChatAction;
+ TDEAction *m_changeDNAction;
// status which will be using for connecting
Kopete::OnlineStatus m_connectstatus;
diff --git a/kopete/protocols/msn/msnchatsession.cpp b/kopete/protocols/msn/msnchatsession.cpp
index 487f4aaa..e4ee3c06 100644
--- a/kopete/protocols/msn/msnchatsession.cpp
+++ b/kopete/protocols/msn/msnchatsession.cpp
@@ -75,27 +75,27 @@ MSNChatSession::MSNChatSession( Kopete::Protocol *protocol, const Kopete::Contac
protocol, TQT_SIGNAL( invitation(MSNInvitation*& , const TQString & , long unsigned int , MSNChatSession* , MSNContact* ) ) );
- m_actionInvite = new KActionMenu( i18n( "&Invite" ), "kontact_contacts", actionCollection(), "msnInvite" );
+ m_actionInvite = new TDEActionMenu( i18n( "&Invite" ), "kontact_contacts", actionCollection(), "msnInvite" );
connect ( m_actionInvite->popupMenu() , TQT_SIGNAL( aboutToShow() ) , this , TQT_SLOT(slotActionInviteAboutToShow() ) ) ;
#if !defined NDEBUG
- new KAction( i18n( "Send Raw C&ommand..." ), 0, this, TQT_SLOT( slotDebugRawCommand() ), actionCollection(), "msnDebugRawCommand" ) ;
+ new TDEAction( i18n( "Send Raw C&ommand..." ), 0, this, TQT_SLOT( slotDebugRawCommand() ), actionCollection(), "msnDebugRawCommand" ) ;
#endif
- m_actionNudge=new KAction( i18n( "Send Nudge" ), "bell", 0, this, TQT_SLOT(slotSendNudge() ), actionCollection(), "msnSendNudge" ) ;
+ m_actionNudge=new TDEAction( i18n( "Send Nudge" ), "bell", 0, this, TQT_SLOT(slotSendNudge() ), actionCollection(), "msnSendNudge" ) ;
#if MSN_WEBCAM
// Invite to receive webcam action
- m_actionWebcamReceive=new KAction( i18n( "View Contact's Webcam" ), "webcamreceive", 0, this, TQT_SLOT(slotWebcamReceive()), actionCollection(), "msnWebcamReceive" ) ;
+ m_actionWebcamReceive=new TDEAction( i18n( "View Contact's Webcam" ), "webcamreceive", 0, this, TQT_SLOT(slotWebcamReceive()), actionCollection(), "msnWebcamReceive" ) ;
//Send webcam action
- m_actionWebcamSend=new KAction( i18n( "Send Webcam" ), "webcamsend", 0, this, TQT_SLOT(slotWebcamSend()), actionCollection(), "msnWebcamSend" ) ;
+ m_actionWebcamSend=new TDEAction( i18n( "Send Webcam" ), "webcamsend", 0, this, TQT_SLOT(slotWebcamSend()), actionCollection(), "msnWebcamSend" ) ;
#endif
- new KAction( i18n( "Send File" ),"attach", 0, this, TQT_SLOT( slotSendFile() ), actionCollection(), "msnSendFile" );
+ new TDEAction( i18n( "Send File" ),"attach", 0, this, TQT_SLOT( slotSendFile() ), actionCollection(), "msnSendFile" );
MSNContact *c = static_cast<MSNContact*>( others.first() );
- (new KAction( i18n( "Request Display Picture" ), "image", 0, this, TQT_SLOT( slotRequestPicture() ), actionCollection(), "msnRequestDisplayPicture" ))->setEnabled(!c->object().isEmpty());
+ (new TDEAction( i18n( "Request Display Picture" ), "image", 0, this, TQT_SLOT( slotRequestPicture() ), actionCollection(), "msnRequestDisplayPicture" ))->setEnabled(!c->object().isEmpty());
if ( !c->object().isEmpty() )
{
@@ -304,7 +304,7 @@ void MSNChatSession::slotMessageReceived( Kopete::Message &msg )
void MSNChatSession::slotActionInviteAboutToShow()
{
- // We can't simply insert KAction in this menu bebause we don't know when to delete them.
+ // We can't simply insert TDEAction in this menu bebause we don't know when to delete them.
// items inserted with insert items are automatically deleted when we call clear
m_inviteactions.setAutoDelete(true);
@@ -318,13 +318,13 @@ void MSNChatSession::slotActionInviteAboutToShow()
{
if( !members().contains( it.current() ) && it.current()->isOnline() && it.current() != myself() )
{
- KAction *a=new KopeteContactAction( it.current(), this,
+ TDEAction *a=new KopeteContactAction( it.current(), this,
TQT_SLOT( slotInviteContact( Kopete::Contact * ) ), m_actionInvite );
m_actionInvite->insert( a );
m_inviteactions.append( a ) ;
}
}
- KAction *b=new KAction( i18n ("Other..."), 0, this, TQT_SLOT( slotInviteOtherContact() ), m_actionInvite, "actionOther" );
+ TDEAction *b=new TDEAction( i18n ("Other..."), 0, this, TQT_SLOT( slotInviteOtherContact() ), m_actionInvite, "actionOther" );
m_actionInvite->insert( b );
m_inviteactions.append( b ) ;
}
@@ -548,17 +548,17 @@ void MSNChatSession::slotDisplayPictureChanged()
int sz=22;
// get the size of the toolbar were the aciton is plugged.
// if you know a better way to get the toolbar, let me know
- KMainWindow *w= view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
+ TDEMainWindow *w= view(false) ? dynamic_cast<TDEMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
if(w)
{
//We connected that in the constructor. we don't need to keep this slot active.
disconnect( Kopete::ChatSessionManager::self() , TQT_SIGNAL(viewActivated(KopeteView* )) , this, TQT_SLOT(slotDisplayPictureChanged()) );
- TQPtrListIterator<KToolBar> it=w->toolBarIterator() ;
- KAction *imgAction=actionCollection()->action("msnDisplayPicture");
+ TQPtrListIterator<TDEToolBar> it=w->toolBarIterator() ;
+ TDEAction *imgAction=actionCollection()->action("msnDisplayPicture");
if(imgAction) while(it)
{
- KToolBar *tb=*it;
+ TDEToolBar *tb=*it;
if(imgAction->isPlugged(tb))
{
sz=tb->iconSize();
diff --git a/kopete/protocols/msn/msnchatsession.h b/kopete/protocols/msn/msnchatsession.h
index fb70c573..2fb92d2a 100644
--- a/kopete/protocols/msn/msnchatsession.h
+++ b/kopete/protocols/msn/msnchatsession.h
@@ -21,10 +21,10 @@
#include "kopetechatsession.h"
class MSNSwitchBoardSocket;
-class KActionCollection;
+class TDEActionCollection;
class MSNInvitation;
class MSNContact;
-class KActionMenu;
+class TDEActionMenu;
class TQLabel;
@@ -101,11 +101,11 @@ private:
MSNSwitchBoardSocket *m_chatService;
TQString otherString;
- KActionMenu *m_actionInvite;
- TQPtrList<KAction> m_inviteactions;
- KAction *m_actionNudge;
- KAction *m_actionWebcamReceive;
- KAction *m_actionWebcamSend;
+ TDEActionMenu *m_actionInvite;
+ TQPtrList<TDEAction> m_inviteactions;
+ TDEAction *m_actionNudge;
+ TDEAction *m_actionWebcamReceive;
+ TDEAction *m_actionWebcamSend;
//Messages sent before the ending of the connection are queued
TQValueList<Kopete::Message> m_messagesQueue;
diff --git a/kopete/protocols/msn/msncontact.cpp b/kopete/protocols/msn/msncontact.cpp
index c487f1df..dcfc8ce7 100644
--- a/kopete/protocols/msn/msncontact.cpp
+++ b/kopete/protocols/msn/msncontact.cpp
@@ -125,30 +125,30 @@ Kopete::ChatSession *MSNContact::manager( Kopete::Contact::CanCreateFlags canCre
return manager;
}
-TQPtrList<KAction> *MSNContact::customContextMenuActions()
+TQPtrList<TDEAction> *MSNContact::customContextMenuActions()
{
- TQPtrList<KAction> *m_actionCollection = new TQPtrList<KAction>;
+ TQPtrList<TDEAction> *m_actionCollection = new TQPtrList<TDEAction>;
// Block/unblock Contact
TQString label = isBlocked() ? i18n( "Unblock User" ) : i18n( "Block User" );
if( !actionBlock )
{
- actionBlock = new KAction( label, "msn_blocked",0, this, TQT_SLOT( slotBlockUser() ),
+ actionBlock = new TDEAction( label, "msn_blocked",0, this, TQT_SLOT( slotBlockUser() ),
this, "actionBlock" );
//show profile
- actionShowProfile = new KAction( i18n("Show Profile") , 0, this, TQT_SLOT( slotShowProfile() ),
+ actionShowProfile = new TDEAction( i18n("Show Profile") , 0, this, TQT_SLOT( slotShowProfile() ),
this, "actionShowProfile" );
// Send mail (only available if it is an hotmail account)
- actionSendMail = new KAction( i18n("Send Email...") , "mail_generic",0, this, TQT_SLOT( slotSendMail() ),
+ actionSendMail = new TDEAction( i18n("Send Email...") , "mail_generic",0, this, TQT_SLOT( slotSendMail() ),
this, "actionSendMail" );
// Invite to receive webcam
- actionWebcamReceive = new KAction( i18n( "View Contact's Webcam" ), "webcamreceive", 0, this, TQT_SLOT(slotWebcamReceive() ), this, "msnWebcamReceive" ) ;
+ actionWebcamReceive = new TDEAction( i18n( "View Contact's Webcam" ), "webcamreceive", 0, this, TQT_SLOT(slotWebcamReceive() ), this, "msnWebcamReceive" ) ;
//Send webcam action
- actionWebcamSend = new KAction( i18n( "Send Webcam" ), "webcamsend", 0, this, TQT_SLOT(slotWebcamSend() ), this, "msnWebcamSend" ) ;
+ actionWebcamSend = new TDEAction( i18n( "Send Webcam" ), "webcamsend", 0, this, TQT_SLOT(slotWebcamSend() ), this, "msnWebcamSend" ) ;
}
else
actionBlock->setText( label );
diff --git a/kopete/protocols/msn/msncontact.h b/kopete/protocols/msn/msncontact.h
index 2eec2494..759be403 100644
--- a/kopete/protocols/msn/msncontact.h
+++ b/kopete/protocols/msn/msncontact.h
@@ -34,8 +34,8 @@ class TQPixmap;
class TQTimer;
class MSNChatSession;
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
class KTempFile;
namespace Kopete { class Protocol; }
@@ -97,7 +97,7 @@ public:
virtual bool isReachable();
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
/**
* update the server group map
@@ -176,11 +176,11 @@ private:
TQString m_phoneMobile;
- KAction *actionBlock;
- KAction *actionShowProfile;
- KAction *actionSendMail;
- KAction *actionWebcamReceive;
- KAction *actionWebcamSend;
+ TDEAction *actionBlock;
+ TDEAction *actionShowProfile;
+ TDEAction *actionSendMail;
+ TDEAction *actionWebcamReceive;
+ TDEAction *actionWebcamSend;
TQString m_obj; //the MSNObject
diff --git a/kopete/protocols/msn/msnprotocol.h b/kopete/protocols/msn/msnprotocol.h
index 5decc1ec..52fb2800 100644
--- a/kopete/protocols/msn/msnprotocol.h
+++ b/kopete/protocols/msn/msnprotocol.h
@@ -33,8 +33,8 @@
class TQImage;
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
class MSNContact;
class MSNAccount;
diff --git a/kopete/protocols/oscar/aim/aimaccount.cpp b/kopete/protocols/oscar/aim/aimaccount.cpp
index ba8d94b1..cd9e30a3 100644
--- a/kopete/protocols/oscar/aim/aimaccount.cpp
+++ b/kopete/protocols/oscar/aim/aimaccount.cpp
@@ -294,12 +294,12 @@ TQString AIMAccount::sanitizedMessage( const TQString& message )
return doc.toString();
}
-KActionMenu* AIMAccount::actionMenu()
+TDEActionMenu* AIMAccount::actionMenu()
{
// kdDebug(14152) << k_funcinfo << accountId() << ": Called." << endl;
// mActionMenu is managed by Kopete::Account. It is deleted when
// it is no longer shown, so we can (safely) just make a new one here.
- KActionMenu *mActionMenu = new KActionMenu(accountId(),
+ TDEActionMenu *mActionMenu = new TDEActionMenu(accountId(),
myself()->onlineStatus().iconFor( this ), this, "AIMAccount::mActionMenu");
AIMProtocol *p = AIMProtocol::protocol();
@@ -308,30 +308,30 @@ KActionMenu* AIMAccount::actionMenu()
mActionMenu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ),
i18n( "%2 <%1>" ).arg( accountId(), accountNick ));
- mActionMenu->insert( new KAction( i18n("Online"), p->statusOnline.iconFor( this ), 0, this,
+ mActionMenu->insert( new TDEAction( i18n("Online"), p->statusOnline.iconFor( this ), 0, this,
TQT_SLOT( slotGoOnline() ), mActionMenu, "AIMAccount::mActionOnline") );
- KAction* mActionAway = new Kopete::AwayAction(i18n("Away"), p->statusAway.iconFor( this ), 0, this,
+ TDEAction* mActionAway = new Kopete::AwayAction(i18n("Away"), p->statusAway.iconFor( this ), 0, this,
TQT_SLOT(slotGoAway( const TQString & )), this, "AIMAccount::mActionNA" );
mActionAway->setEnabled( isConnected() );
mActionMenu->insert( mActionAway );
- KAction* mActionOffline = new KAction( i18n("Offline"), p->statusOffline.iconFor(this), 0, this,
+ TDEAction* mActionOffline = new TDEAction( i18n("Offline"), p->statusOffline.iconFor(this), 0, this,
TQT_SLOT( slotGoOffline() ), mActionMenu, "AIMAccount::mActionOffline");
mActionMenu->insert( mActionOffline );
mActionMenu->popupMenu()->insertSeparator();
- KAction* m_joinChatAction = new KAction( i18n( "Join Chat..." ), TQString(), 0, this,
+ TDEAction* m_joinChatAction = new TDEAction( i18n( "Join Chat..." ), TQString(), 0, this,
TQT_SLOT( slotJoinChat() ), mActionMenu, "join_a_chat" );
- mActionMenu->insert( new KToggleAction( i18n( "Set Visibility..." ), 0, 0,
+ mActionMenu->insert( new TDEToggleAction( i18n( "Set Visibility..." ), 0, 0,
this, TQT_SLOT( slotSetVisiblility() ), this,
"AIMAccount::mActionSetVisibility") );
mActionMenu->insert( m_joinChatAction );
- KAction* m_editInfoAction = new KAction( i18n( "Edit User Info..." ), "identity", 0,
+ TDEAction* m_editInfoAction = new TDEAction( i18n( "Edit User Info..." ), "identity", 0,
this, TQT_SLOT( slotEditInfo() ), mActionMenu, "actionEditInfo");
mActionMenu->insert( m_editInfoAction );
diff --git a/kopete/protocols/oscar/aim/aimaccount.h b/kopete/protocols/oscar/aim/aimaccount.h
index c7418e36..63adeac7 100644
--- a/kopete/protocols/oscar/aim/aimaccount.h
+++ b/kopete/protocols/oscar/aim/aimaccount.h
@@ -42,7 +42,7 @@ class Group;
class ChatSession;
}
-class KAction;
+class TDEAction;
class OscarContact;
class AIMContact;
class AIMAccount;
@@ -91,7 +91,7 @@ public:
virtual ~AIMAccount();
// Accessor method for the action menu
- virtual KActionMenu* actionMenu();
+ virtual TDEActionMenu* actionMenu();
void setAway(bool away, const TQString &awayReason = TQString() );
diff --git a/kopete/protocols/oscar/aim/aimcontact.cpp b/kopete/protocols/oscar/aim/aimcontact.cpp
index a92f620e..2a8b0320 100644
--- a/kopete/protocols/oscar/aim/aimcontact.cpp
+++ b/kopete/protocols/oscar/aim/aimcontact.cpp
@@ -84,17 +84,17 @@ bool AIMContact::isReachable()
return true;
}
-TQPtrList<KAction> *AIMContact::customContextMenuActions()
+TQPtrList<TDEAction> *AIMContact::customContextMenuActions()
{
- TQPtrList<KAction> *actionCollection = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *actionCollection = new TQPtrList<TDEAction>();
if ( !m_warnUserAction )
{
- m_warnUserAction = new KAction( i18n( "&Warn User" ), 0, this, TQT_SLOT( warnUser() ), this, "warnAction" );
+ m_warnUserAction = new TDEAction( i18n( "&Warn User" ), 0, this, TQT_SLOT( warnUser() ), this, "warnAction" );
}
- m_actionVisibleTo = new KToggleAction(i18n("Always &Visible To"), "", 0,
+ m_actionVisibleTo = new TDEToggleAction(i18n("Always &Visible To"), "", 0,
this, TQT_SLOT(slotVisibleTo()), this, "actionVisibleTo");
- m_actionInvisibleTo = new KToggleAction(i18n("Always &Invisible To"), "", 0,
+ m_actionInvisibleTo = new TDEToggleAction(i18n("Always &Invisible To"), "", 0,
this, TQT_SLOT(slotInvisibleTo()), this, "actionInvisibleTo");
bool on = account()->isConnected();
diff --git a/kopete/protocols/oscar/aim/aimcontact.h b/kopete/protocols/oscar/aim/aimcontact.h
index d66c62c6..eea346ac 100644
--- a/kopete/protocols/oscar/aim/aimcontact.h
+++ b/kopete/protocols/oscar/aim/aimcontact.h
@@ -43,7 +43,7 @@ public:
virtual ~AIMContact();
bool isReachable();
- TQPtrList<KAction> *customContextMenuActions();
+ TQPtrList<TDEAction> *customContextMenuActions();
const TQString &userProfile() { return mUserProfile; }
@@ -95,9 +95,9 @@ private:
bool m_mobile; // Is this user mobile (i.e. do they have message forwarding on, or mobile AIM)
TQDateTime m_lastAutoresponseTime;
- KAction* m_warnUserAction;
- KToggleAction *m_actionVisibleTo;
- KToggleAction *m_actionInvisibleTo;
+ TDEAction* m_warnUserAction;
+ TDEToggleAction *m_actionVisibleTo;
+ TDEToggleAction *m_actionInvisibleTo;
};
#endif
//kate: tab-width 4; indent-mode csands;
diff --git a/kopete/protocols/oscar/icq/icqaccount.cpp b/kopete/protocols/oscar/icq/icqaccount.cpp
index 9ca3baae..7627648c 100644
--- a/kopete/protocols/oscar/icq/icqaccount.cpp
+++ b/kopete/protocols/oscar/icq/icqaccount.cpp
@@ -120,24 +120,24 @@ ICQ::Presence ICQAccount::presence()
}
-KActionMenu* ICQAccount::actionMenu()
+TDEActionMenu* ICQAccount::actionMenu()
{
- KActionMenu* actionMenu = Kopete::Account::actionMenu();
+ TDEActionMenu* actionMenu = Kopete::Account::actionMenu();
actionMenu->popupMenu()->insertSeparator();
- KToggleAction* actionInvisible =
- new KToggleAction( i18n( "In&visible" ),
+ TDEToggleAction* actionInvisible =
+ new TDEToggleAction( i18n( "In&visible" ),
ICQ::Presence( presence().type(), ICQ::Presence::Invisible ).toOnlineStatus().iconFor( this ),
0, this, TQT_SLOT( slotToggleInvisible() ), this );
actionInvisible->setChecked( presence().visibility() == ICQ::Presence::Invisible );
actionMenu->insert( actionInvisible );
actionMenu->popupMenu()->insertSeparator();
- actionMenu->insert( new KToggleAction( i18n( "Set Visibility..." ), 0, 0,
+ actionMenu->insert( new TDEToggleAction( i18n( "Set Visibility..." ), 0, 0,
this, TQT_SLOT( slotSetVisiblility() ), this,
"ICQAccount::mActionSetVisibility") );
- //actionMenu->insert( new KToggleAction( i18n( "Send &SMS..." ), 0, 0, this, TQT_SLOT( slotSendSMS() ), this, "ICQAccount::mActionSendSMS") );
+ //actionMenu->insert( new TDEToggleAction( i18n( "Send &SMS..." ), 0, 0, this, TQT_SLOT( slotSendSMS() ), this, "ICQAccount::mActionSendSMS") );
return actionMenu;
}
diff --git a/kopete/protocols/oscar/icq/icqaccount.h b/kopete/protocols/oscar/icq/icqaccount.h
index 19069529..52ab6a9c 100644
--- a/kopete/protocols/oscar/icq/icqaccount.h
+++ b/kopete/protocols/oscar/icq/icqaccount.h
@@ -25,7 +25,7 @@
#include "icqpresence.h"
#include "oscartypeclasses.h"
-class KAction;
+class TDEAction;
namespace Kopete { class AwayAction; }
class ICQProtocol;
class ICQAccount;
@@ -57,7 +57,7 @@ public:
ICQProtocol *protocol();
// Accessor method for the action menu
- virtual KActionMenu* actionMenu();
+ virtual TDEActionMenu* actionMenu();
/** Reimplementation from Kopete::Account */
void setOnlineStatus( const Kopete::OnlineStatus&, const TQString& );
diff --git a/kopete/protocols/oscar/icq/icqcontact.cpp b/kopete/protocols/oscar/icq/icqcontact.cpp
index c54e4ffb..19d2ee7f 100644
--- a/kopete/protocols/oscar/icq/icqcontact.cpp
+++ b/kopete/protocols/oscar/icq/icqcontact.cpp
@@ -649,9 +649,9 @@ bool ICQContact::isReachable()
return account()->isConnected();
}
-TQPtrList<KAction> *ICQContact::customContextMenuActions()
+TQPtrList<TDEAction> *ICQContact::customContextMenuActions()
{
- TQPtrList<KAction> *actionCollection = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *actionCollection = new TQPtrList<TDEAction>();
/*
TQString awTxt;
TQString awIcn;
@@ -684,12 +684,12 @@ TQPtrList<KAction> *ICQContact::customContextMenuActions()
if(actionReadAwayMessage==0)
{
- actionReadAwayMessage = new KAction(awTxt, awIcn, 0,
+ actionReadAwayMessage = new TDEAction(awTxt, awIcn, 0,
this, TQT_SLOT(slotReadAwayMessage()), this, "actionReadAwayMessage");
*/
- actionRequestAuth = new KAction(i18n("&Request Authorization"), "mail_reply", 0,
+ actionRequestAuth = new TDEAction(i18n("&Request Authorization"), "mail_reply", 0,
this, TQT_SLOT(slotRequestAuth()), this, "actionRequestAuth");
- actionSendAuth = new KAction(i18n("&Grant Authorization"), "mail_forward", 0,
+ actionSendAuth = new TDEAction(i18n("&Grant Authorization"), "mail_forward", 0,
this, TQT_SLOT(slotSendAuth()), this, "actionSendAuth");
/*
}
@@ -700,11 +700,11 @@ TQPtrList<KAction> *ICQContact::customContextMenuActions()
}
*/
- m_actionIgnore = new KToggleAction(i18n("&Ignore"), "", 0,
+ m_actionIgnore = new TDEToggleAction(i18n("&Ignore"), "", 0,
this, TQT_SLOT(slotIgnore()), this, "actionIgnore");
- m_actionVisibleTo = new KToggleAction(i18n("Always &Visible To"), "", 0,
+ m_actionVisibleTo = new TDEToggleAction(i18n("Always &Visible To"), "", 0,
this, TQT_SLOT(slotVisibleTo()), this, "actionVisibleTo");
- m_actionInvisibleTo = new KToggleAction(i18n("Always &Invisible To"), "", 0,
+ m_actionInvisibleTo = new TDEToggleAction(i18n("Always &Invisible To"), "", 0,
this, TQT_SLOT(slotInvisibleTo()), this, "actionInvisibleTo");
bool on = account()->isConnected();
@@ -716,7 +716,7 @@ TQPtrList<KAction> *ICQContact::customContextMenuActions()
actionSendAuth->setEnabled(on);
- m_selectEncoding = new KAction( i18n( "Select Encoding..." ), "charset", 0,
+ m_selectEncoding = new TDEAction( i18n( "Select Encoding..." ), "charset", 0,
this, TQT_SLOT( changeContactEncoding() ), this, "changeEncoding" );
/*
diff --git a/kopete/protocols/oscar/icq/icqcontact.h b/kopete/protocols/oscar/icq/icqcontact.h
index be8e064f..c3176028 100644
--- a/kopete/protocols/oscar/icq/icqcontact.h
+++ b/kopete/protocols/oscar/icq/icqcontact.h
@@ -23,8 +23,8 @@
#include "userdetails.h"
class OscarEncodingSelectionDialog;
-class KAction;
-class KToggleAction;
+class TDEAction;
+class TDEToggleAction;
namespace Kopete { class ChatSession; }
namespace Kopete { class OnlineStatus; }
class ICQProtocol;
@@ -60,7 +60,7 @@ public:
* Returns a set of custom menu items for
* the context menu
*/
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
/** Return whether or not this contact is reachable. */
virtual bool isReachable();
@@ -96,15 +96,15 @@ private:
ICQUserInfoWidget* m_infoWidget;
/*
ICQReadAway *awayMessageDialog;
- KAction *actionReadAwayMessage;
+ TDEAction *actionReadAwayMessage;
*/
- KAction *actionRequestAuth;
- KAction *actionSendAuth;
- KAction *m_selectEncoding;
+ TDEAction *actionRequestAuth;
+ TDEAction *actionSendAuth;
+ TDEAction *m_selectEncoding;
- KToggleAction *m_actionIgnore;
- KToggleAction *m_actionVisibleTo;
- KToggleAction *m_actionInvisibleTo;
+ TDEToggleAction *m_actionIgnore;
+ TDEToggleAction *m_actionVisibleTo;
+ TDEToggleAction *m_actionInvisibleTo;
/*
bool mInvisible;
diff --git a/kopete/protocols/oscar/icq/ui/icqsearchbase.ui b/kopete/protocols/oscar/icq/ui/icqsearchbase.ui
index 161444f6..a027985f 100644
--- a/kopete/protocols/oscar/icq/ui/icqsearchbase.ui
+++ b/kopete/protocols/oscar/icq/ui/icqsearchbase.ui
@@ -355,7 +355,7 @@
</grid>
</widget>
</widget>
- <widget class="KListView" row="1" column="0" rowspan="7" colspan="1">
+ <widget class="TDEListView" row="1" column="0" rowspan="7" colspan="1">
<column>
<property name="text">
<string>UIN</string>
diff --git a/kopete/protocols/oscar/oscaraccount.h b/kopete/protocols/oscar/oscaraccount.h
index a3290506..2a657d06 100644
--- a/kopete/protocols/oscar/oscaraccount.h
+++ b/kopete/protocols/oscar/oscaraccount.h
@@ -73,7 +73,7 @@ public:
/**
* Accessor method for the action menu
*/
- virtual KActionMenu* actionMenu() = 0;
+ virtual TDEActionMenu* actionMenu() = 0;
/** Set the server address */
void setServerAddress( const TQString& server );
diff --git a/kopete/protocols/oscar/oscarcontact.h b/kopete/protocols/oscar/oscarcontact.h
index b115f7a1..4245961a 100644
--- a/kopete/protocols/oscar/oscarcontact.h
+++ b/kopete/protocols/oscar/oscarcontact.h
@@ -35,7 +35,7 @@ class OnlineStatus;
class OscarAccount;
class TQTimer;
class TQTextCodec;
-class KToggleAction;
+class TDEToggleAction;
/**
* Contact for oscar protocol
diff --git a/kopete/protocols/oscar/oscarmyselfcontact.h b/kopete/protocols/oscar/oscarmyselfcontact.h
index 3434d3e3..395c6e6c 100644
--- a/kopete/protocols/oscar/oscarmyselfcontact.h
+++ b/kopete/protocols/oscar/oscarmyselfcontact.h
@@ -28,7 +28,7 @@ class OnlineStatus;
class OscarAccount;
class TQTimer;
-class KToggleAction;
+class TDEToggleAction;
/**
* myself() contact for oscar protocol
diff --git a/kopete/protocols/sms/smsaccount.cpp b/kopete/protocols/sms/smsaccount.cpp
index f3b8c35b..6e09bd11 100644
--- a/kopete/protocols/sms/smsaccount.cpp
+++ b/kopete/protocols/sms/smsaccount.cpp
@@ -178,9 +178,9 @@ bool SMSAccount::createContact( const TQString &contactId,
return false;
}
-KActionMenu* SMSAccount::actionMenu()
+TDEActionMenu* SMSAccount::actionMenu()
{
- KActionMenu *theActionMenu = Kopete::Account::actionMenu();
+ TDEActionMenu *theActionMenu = Kopete::Account::actionMenu();
return theActionMenu;
}
diff --git a/kopete/protocols/sms/smsaccount.h b/kopete/protocols/sms/smsaccount.h
index b543d191..ab5af0dc 100644
--- a/kopete/protocols/sms/smsaccount.h
+++ b/kopete/protocols/sms/smsaccount.h
@@ -19,7 +19,7 @@
#include "kopeteaccount.h"
-class KActionMenu;
+class TDEActionMenu;
class SMSProtocol;
class SMSContact;
class SMSService;
@@ -36,7 +36,7 @@ public:
SMSAccount( SMSProtocol *parent, const TQString &accountID, const char *name = 0L );
~SMSAccount();
- virtual KActionMenu* actionMenu(); // Per-protocol actions for the systray and the status bar
+ virtual TDEActionMenu* actionMenu(); // Per-protocol actions for the systray and the status bar
virtual void setAway( bool away, const TQString & );
diff --git a/kopete/protocols/sms/smscontact.cpp b/kopete/protocols/sms/smscontact.cpp
index d5980050..5e4c9cb4 100644
--- a/kopete/protocols/sms/smscontact.cpp
+++ b/kopete/protocols/sms/smscontact.cpp
@@ -119,11 +119,11 @@ void SMSContact::setPhoneNumber( const TQString phoneNumber )
new SMSContact(account(), phoneNumber, nickName(), metaContact());
}
-TQPtrList<KAction>* SMSContact::customContextMenuActions()
+TQPtrList<TDEAction>* SMSContact::customContextMenuActions()
{
- TQPtrList<KAction> *m_actionCollection = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *m_actionCollection = new TQPtrList<TDEAction>();
if( !m_actionPrefs )
- m_actionPrefs = new KAction(i18n("&Contact Settings"), 0, this, TQT_SLOT(userPrefs()), this, "userPrefs");
+ m_actionPrefs = new TDEAction(i18n("&Contact Settings"), 0, this, TQT_SLOT(userPrefs()), this, "userPrefs");
m_actionCollection->append( m_actionPrefs );
diff --git a/kopete/protocols/sms/smscontact.h b/kopete/protocols/sms/smscontact.h
index 81d73bcd..4a3874fb 100644
--- a/kopete/protocols/sms/smscontact.h
+++ b/kopete/protocols/sms/smscontact.h
@@ -26,8 +26,8 @@ class SMSAccount;
namespace Kopete { class ChatSession; }
namespace Kopete { class MetaContact; }
-class KActionCollection;
-class KAction;
+class TDEActionCollection;
+class TDEAction;
class SMSContact : public Kopete::Contact
{
@@ -37,7 +37,7 @@ public:
SMSContact( Kopete::Account* _account, const TQString &phoneNumber,
const TQString &displayName, Kopete::MetaContact *parent );
- TQPtrList<KAction>* customContextMenuActions();
+ TQPtrList<TDEAction>* customContextMenuActions();
const TQString &phoneNumber();
void setPhoneNumber( const TQString phoneNumber );
@@ -62,7 +62,7 @@ private slots:
void slotChatSessionDestroyed();
private:
- KAction* m_actionPrefs;
+ TDEAction* m_actionPrefs;
TQString m_phoneNumber;
diff --git a/kopete/protocols/sms/smsprotocol.h b/kopete/protocols/sms/smsprotocol.h
index e25c0a24..89912174 100644
--- a/kopete/protocols/sms/smsprotocol.h
+++ b/kopete/protocols/sms/smsprotocol.h
@@ -28,8 +28,8 @@
#include "kopeteonlinestatus.h"
#include "kopetecontact.h"
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
namespace Kopete { class Contact; }
namespace Kopete { class MetaContact; }
diff --git a/kopete/protocols/testbed/testbedaccount.cpp b/kopete/protocols/testbed/testbedaccount.cpp
index cc906447..eb601ffc 100644
--- a/kopete/protocols/testbed/testbedaccount.cpp
+++ b/kopete/protocols/testbed/testbedaccount.cpp
@@ -43,15 +43,15 @@ TestbedAccount::~TestbedAccount()
delete m_server;
}
-KActionMenu* TestbedAccount::actionMenu()
+TDEActionMenu* TestbedAccount::actionMenu()
{
- KActionMenu *mActionMenu = Kopete::Account::actionMenu();
+ TDEActionMenu *mActionMenu = Kopete::Account::actionMenu();
mActionMenu->popupMenu()->insertSeparator();
- KAction *action;
+ TDEAction *action;
- action = new KAction (i18n ("Show my own video..."), "testbed_showvideo", 0, this, TQT_SLOT (slotShowVideo ()), this, "actionShowVideo");
+ action = new TDEAction (i18n ("Show my own video..."), "testbed_showvideo", 0, this, TQT_SLOT (slotShowVideo ()), this, "actionShowVideo");
mActionMenu->insert(action);
action->setEnabled( isConnected() );
diff --git a/kopete/protocols/testbed/testbedaccount.h b/kopete/protocols/testbed/testbedaccount.h
index f57d41d1..7eb319b8 100644
--- a/kopete/protocols/testbed/testbedaccount.h
+++ b/kopete/protocols/testbed/testbedaccount.h
@@ -20,7 +20,7 @@
#include <kopeteaccount.h>
#include "testbedwebcamdialog.h"
-class KActionMenu;
+class TDEActionMenu;
namespace Kopete { class Contact; }
namespace Kopete { class MetaContact; }
@@ -42,7 +42,7 @@ public:
/**
* Construct the context menu used for the status bar icon
*/
- virtual KActionMenu* actionMenu();
+ virtual TDEActionMenu* actionMenu();
/**
* Creates a protocol specific Kopete::Contact subclass and adds it to the supplie
@@ -85,19 +85,19 @@ protected:
protected slots:
/**
- * Change the account's status. Called by KActions and internally.
+ * Change the account's status. Called by TDEActions and internally.
*/
void slotGoOnline();
/**
- * Change the account's status. Called by KActions and internally.
+ * Change the account's status. Called by TDEActions and internally.
*/
void slotGoAway();
/**
- * Change the account's status. Called by KActions and internally.
+ * Change the account's status. Called by TDEActions and internally.
*/
void slotGoOffline();
/**
- * Show webcam. Called by KActions and internally.
+ * Show webcam. Called by TDEActions and internally.
*/
void slotShowVideo();
diff --git a/kopete/protocols/testbed/testbedcontact.cpp b/kopete/protocols/testbed/testbedcontact.cpp
index bf110872..d383c04c 100644
--- a/kopete/protocols/testbed/testbedcontact.cpp
+++ b/kopete/protocols/testbed/testbedcontact.cpp
@@ -82,11 +82,11 @@ Kopete::ChatSession* TestbedContact::manager( CanCreateFlags )
}
-TQPtrList<KAction> *TestbedContact::customContextMenuActions() //OBSOLETE
+TQPtrList<TDEAction> *TestbedContact::customContextMenuActions() //OBSOLETE
{
//FIXME!!! this function is obsolete, we should use XMLGUI instead
- /*m_actionCollection = new KActionCollection( this, "userColl" );
- m_actionPrefs = new KAction(i18n( "&Contact Settings" ), 0, this,
+ /*m_actionCollection = new TDEActionCollection( this, "userColl" );
+ m_actionPrefs = new TDEAction(i18n( "&Contact Settings" ), 0, this,
TQT_SLOT( showContactSettings( )), m_actionCollection, "contactSettings" );
return m_actionCollection;*/
diff --git a/kopete/protocols/testbed/testbedcontact.h b/kopete/protocols/testbed/testbedcontact.h
index 3ad16124..c4fb17dd 100644
--- a/kopete/protocols/testbed/testbedcontact.h
+++ b/kopete/protocols/testbed/testbedcontact.h
@@ -21,8 +21,8 @@
#include "kopetecontact.h"
#include "kopetemessage.h"
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
namespace Kopete { class Account; }
namespace Kopete { class ChatSession; }
namespace Kopete { class MetaContact; }
@@ -56,7 +56,7 @@ public:
/**
* Return the actions for this contact
*/
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
/**
* Returns a Kopete::ChatSession associated with this contact
*/
@@ -88,9 +88,9 @@ protected slots:
protected:
Kopete::ChatSession* m_msgManager;
- KActionCollection* m_actionCollection;
+ TDEActionCollection* m_actionCollection;
TestbedContactType m_type;
- KAction* m_actionPrefs;
+ TDEAction* m_actionPrefs;
};
#endif
diff --git a/kopete/protocols/winpopup/wpaccount.cpp b/kopete/protocols/winpopup/wpaccount.cpp
index 994735cc..5d9d2a99 100644
--- a/kopete/protocols/winpopup/wpaccount.cpp
+++ b/kopete/protocols/winpopup/wpaccount.cpp
@@ -32,7 +32,7 @@
// Local Includes
#include "wpaccount.h"
-class KPopupMenu;
+class TDEPopupMenu;
WPAccount::WPAccount(WPProtocol *parent, const TQString &accountID, const char *name)
: Kopete::Account(parent, accountID, name)
@@ -153,23 +153,23 @@ void WPAccount::setAway(bool status, const TQString &awayMessage)
myself()->setOnlineStatus(status ? mProtocol->WPAway : mProtocol->WPOnline);
}
-KActionMenu* WPAccount::actionMenu()
+TDEActionMenu* WPAccount::actionMenu()
{
kdDebug(14170) << "WPAccount::actionMenu()" << endl;
/// How to remove an action from Kopete::Account::actionMenu()? GF
- KActionMenu *theActionMenu = new KActionMenu(accountId() , myself()->onlineStatus().iconFor(this), this);
+ TDEActionMenu *theActionMenu = new TDEActionMenu(accountId() , myself()->onlineStatus().iconFor(this), this);
theActionMenu->popupMenu()->insertTitle(myself()->onlineStatus().iconFor(this), i18n("WinPopup (%1)").arg(accountId()));
if (mProtocol)
{
- KAction *goOnline = new KAction("Online", TQIconSet(mProtocol->WPOnline.iconFor(this)), 0,
+ TDEAction *goOnline = new TDEAction("Online", TQIconSet(mProtocol->WPOnline.iconFor(this)), 0,
this, TQT_SLOT(connect()), theActionMenu, "actionGoAvailable");
goOnline->setEnabled(isConnected() && isAway());
theActionMenu->insert(goOnline);
- KAction *goAway = new KAction("Away", TQIconSet(mProtocol->WPAway.iconFor(this)), 0,
+ TDEAction *goAway = new TDEAction("Away", TQIconSet(mProtocol->WPAway.iconFor(this)), 0,
this, TQT_SLOT(goAway()), theActionMenu, "actionGoAway");
goAway->setEnabled(isConnected() && !isAway());
theActionMenu->insert(goAway);
@@ -177,7 +177,7 @@ KActionMenu* WPAccount::actionMenu()
/// One can not really go offline manually - appears online as long as samba server is running. GF
theActionMenu->popupMenu()->insertSeparator();
- theActionMenu->insert(new KAction(i18n("Properties"), 0,
+ theActionMenu->insert(new TDEAction(i18n("Properties"), 0,
this, TQT_SLOT(editAccount()), theActionMenu, "actionAccountProperties"));
}
diff --git a/kopete/protocols/winpopup/wpaccount.h b/kopete/protocols/winpopup/wpaccount.h
index 2eb258c3..ee237286 100644
--- a/kopete/protocols/winpopup/wpaccount.h
+++ b/kopete/protocols/winpopup/wpaccount.h
@@ -36,9 +36,9 @@
#include "wpcontact.h"
#include "wpaddcontact.h"
-class KPopupMenu;
-class KActionMenu;
-class KAction;
+class TDEPopupMenu;
+class TDEActionMenu;
+class TDEAction;
class WPProtocol;
class KopeteWinPopup;
@@ -55,7 +55,7 @@ public:
WPAccount(WPProtocol *parent, const TQString& accountID, const char *name = 0);
~WPAccount();
- virtual KActionMenu* actionMenu(); // Per-protocol actions for the systray and the status bar
+ virtual TDEActionMenu* actionMenu(); // Per-protocol actions for the systray and the status bar
virtual void setAway(bool status, const TQString &); // Set user away
public slots:
diff --git a/kopete/protocols/winpopup/wpcontact.cpp b/kopete/protocols/winpopup/wpcontact.cpp
index 103a2a85..a7e78db0 100644
--- a/kopete/protocols/winpopup/wpcontact.cpp
+++ b/kopete/protocols/winpopup/wpcontact.cpp
@@ -55,9 +55,9 @@ WPContact::WPContact(Kopete::Account *account, const TQString &newHostName, cons
checkStatus.start(1000, false);
}
-TQPtrList<KAction> * WPContact::customContextMenuActions()
+TQPtrList<TDEAction> * WPContact::customContextMenuActions()
{
- //myActionCollection = new KActionCollection(parent);
+ //myActionCollection = new TDEActionCollection(parent);
return 0;
}
diff --git a/kopete/protocols/winpopup/wpcontact.h b/kopete/protocols/winpopup/wpcontact.h
index 73e5808e..f478c3ff 100644
--- a/kopete/protocols/winpopup/wpcontact.h
+++ b/kopete/protocols/winpopup/wpcontact.h
@@ -42,8 +42,8 @@
class TQTimer;
class TQListView;
class TQListViewItem;
-class KPopupMenu;
-class KAction;
+class TDEPopupMenu;
+class TDEAction;
namespace Kopete { class MetaContact; }
class WPContact: public Kopete::Contact
@@ -56,7 +56,7 @@ public:
// virtual bool isOnline() const;
virtual bool isReachable();
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
virtual Kopete::ChatSession *manager(Kopete::Contact::CanCreateFlags = Kopete::Contact::CannotCreate);
virtual void serialize(TQMap<TQString, TQString> &serializedData, TQMap<TQString, TQString> &addressBookData);
@@ -74,7 +74,7 @@ private:
bool myWasConnected; // true if protocol connected at last check
TQTimer checkStatus; // checks the status of this contact every second or so
-// KActionCollection *myActionCollection;
+// TDEActionCollection *myActionCollection;
// holds all the protocol specific actions (not many!)
Kopete::ChatSession *m_manager;
// holds the two message managers - one for email and one for chat
diff --git a/kopete/protocols/winpopup/wpprotocol.cpp b/kopete/protocols/winpopup/wpprotocol.cpp
index 1c52f2ee..0e193c39 100644
--- a/kopete/protocols/winpopup/wpprotocol.cpp
+++ b/kopete/protocols/winpopup/wpprotocol.cpp
@@ -40,7 +40,7 @@
#include "wpaccount.h"
#include "wpcontact.h"
-class KPopupMenu;
+class TDEPopupMenu;
WPProtocol *WPProtocol::sProtocol = 0;
diff --git a/kopete/protocols/winpopup/wpprotocol.h b/kopete/protocols/winpopup/wpprotocol.h
index 7a5ef92c..20743bb4 100644
--- a/kopete/protocols/winpopup/wpprotocol.h
+++ b/kopete/protocols/winpopup/wpprotocol.h
@@ -36,9 +36,9 @@
#include "wpaddcontact.h"
namespace Kopete { class Account; }
-class KPopupMenu;
-class KActionMenu;
-class KAction;
+class TDEPopupMenu;
+class TDEActionMenu;
+class TDEAction;
class WPContact;
class WPAccount;
diff --git a/kopete/protocols/yahoo/yahooaccount.cpp b/kopete/protocols/yahoo/yahooaccount.cpp
index 7e36d04e..4edc14e6 100644
--- a/kopete/protocols/yahoo/yahooaccount.cpp
+++ b/kopete/protocols/yahoo/yahooaccount.cpp
@@ -81,23 +81,23 @@ YahooAccount::YahooAccount(YahooProtocol *parent, const TQString& accountId, con
m_chatChatSession = 0;
// FIXME
- //m_openInboxAction = new KAction( KIcon("mail-folder-inbox"), i18n( "Open Inbo&x..." ), this );
+ //m_openInboxAction = new TDEAction( KIcon("mail-folder-inbox"), i18n( "Open Inbo&x..." ), this );
//, "m_openInboxAction" );
//TQObject::connect(m_openInboxAction, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotOpenInbox() ) );
- //m_openYABAction = new KAction( KIcon("x-office-address-book"), i18n( "Open &Address book..." ), this );
+ //m_openYABAction = new TDEAction( KIcon("x-office-address-book"), i18n( "Open &Address book..." ), this );
//, "m_openYABAction" );
//TQObject::connect(m_openYABAction, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotOpenYAB() ) );
- //m_editOwnYABEntry = new KAction( KIcon("document-properties"), i18n( "&Edit my contact details..."), this );
+ //m_editOwnYABEntry = new TDEAction( KIcon("document-properties"), i18n( "&Edit my contact details..."), this );
//, "m_editOwnYABEntry" );
//TQObject::connect(m_editOwnYABEntry, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotEditOwnYABEntry() ) );
- //m_joinChatAction = new KAction( KIcon("im-chat-room-join"), i18n( "&Join chat room..."), this );
+ //m_joinChatAction = new TDEAction( KIcon("im-chat-room-join"), i18n( "&Join chat room..."), this );
//, "m_joinChatAction" );
//TQObject::connect(m_joinChatAction, TQT_SIGNAL( triggered(bool) ), this, TQT_SLOT( slotJoinChatRoom() ) );
- m_openInboxAction = new KAction( i18n( "Open Inbo&x..." ), "mail_generic", 0, this, TQT_SLOT( slotOpenInbox() ), this, "m_openInboxAction" );
- m_openYABAction = new KAction( i18n( "Open &Addressbook..." ), "contents", 0, this, TQT_SLOT( slotOpenYAB() ), this, "m_openYABAction" );
- m_editOwnYABEntry = new KAction( i18n( "&Edit my contact details..."), "contents", 0, this, TQT_SLOT( slotEditOwnYABEntry() ), this, "m_editOwnYABEntry" );
- m_joinChatAction = new KAction( i18n( "&Join chat room..."), "contents", 0, this, TQT_SLOT( slotJoinChatRoom() ), this, "m_joinChatAction");
+ m_openInboxAction = new TDEAction( i18n( "Open Inbo&x..." ), "mail_generic", 0, this, TQT_SLOT( slotOpenInbox() ), this, "m_openInboxAction" );
+ m_openYABAction = new TDEAction( i18n( "Open &Addressbook..." ), "contents", 0, this, TQT_SLOT( slotOpenYAB() ), this, "m_openYABAction" );
+ m_editOwnYABEntry = new TDEAction( i18n( "&Edit my contact details..."), "contents", 0, this, TQT_SLOT( slotEditOwnYABEntry() ), this, "m_editOwnYABEntry" );
+ m_joinChatAction = new TDEAction( i18n( "&Join chat room..."), "contents", 0, this, TQT_SLOT( slotJoinChatRoom() ), this, "m_joinChatAction");
YahooContact* _myself=new YahooContact( this, accountId.lower(), accountId, Kopete::ContactList::self()->myself() );
setMyself( _myself );
@@ -634,13 +634,13 @@ void YahooAccount::slotGoOffline()
static_cast<YahooContact *>( myself() )->setOnlineStatus( m_protocol->Offline );
}
-KActionMenu* YahooAccount::actionMenu()
+TDEActionMenu* YahooAccount::actionMenu()
{
kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl;
// FIXME (to check)
//Kopete::Account::fillActionMenu( actionMenu );
- KActionMenu *theActionMenu = Kopete::Account::actionMenu();
+ TDEActionMenu *theActionMenu = Kopete::Account::actionMenu();
// FIXME: (to check)
//actionMenu->addSeparator();
diff --git a/kopete/protocols/yahoo/yahooaccount.h b/kopete/protocols/yahoo/yahooaccount.h
index 9f8d1d22..92a1aa43 100644
--- a/kopete/protocols/yahoo/yahooaccount.h
+++ b/kopete/protocols/yahoo/yahooaccount.h
@@ -38,8 +38,8 @@
#include "yahootypes.h"
class TQColor;
-class KAction;
-class KActionMenu;
+class TDEAction;
+class TDEActionMenu;
class YahooContact;
class YahooAccount;
class YahooProtocol;
@@ -78,7 +78,7 @@ public:
*/
YahooContact *contact(const TQString &id);
- virtual KActionMenu* actionMenu();
+ virtual TDEActionMenu* actionMenu();
/**
* Sets the yahoo away status
@@ -292,10 +292,10 @@ private:
YahooWebcam *m_webcam;
- KAction *m_openInboxAction; // Menu item openInbox
- KAction *m_openYABAction; // Menu item openYahooAddressbook
- KAction *m_editOwnYABEntry; // Menu item editOwnYABEntry
- KAction *m_joinChatAction; // Menu item joinChatAction
+ TDEAction *m_openInboxAction; // Menu item openInbox
+ TDEAction *m_openYABAction; // Menu item openYahooAddressbook
+ TDEAction *m_editOwnYABEntry; // Menu item editOwnYABEntry
+ TDEAction *m_joinChatAction; // Menu item joinChatAction
Client *m_session; // The Connection object
};
diff --git a/kopete/protocols/yahoo/yahoochatsession.cpp b/kopete/protocols/yahoo/yahoochatsession.cpp
index 3bb8e717..c8eaf102 100644
--- a/kopete/protocols/yahoo/yahoochatsession.cpp
+++ b/kopete/protocols/yahoo/yahoochatsession.cpp
@@ -53,11 +53,11 @@ YahooChatSession::YahooChatSession( Kopete::Protocol *protocol, const Kopete::Co
setInstance(protocol->instance());
// Add Actions
- new KAction( i18n( "Buzz Contact" ), TQIconSet(BarIcon("bell")), "Ctrl+G", this, TQT_SLOT( slotBuzzContact() ), actionCollection(), "yahooBuzz" ) ;
- new KAction( i18n( "Show User Info" ), TQIconSet(BarIcon("idea")), 0, this, TQT_SLOT( slotUserInfo() ), actionCollection(), "yahooShowInfo" ) ;
- new KAction( i18n( "Request Webcam" ), TQIconSet(BarIcon("webcamreceive")), 0, this, TQT_SLOT( slotRequestWebcam() ), actionCollection(), "yahooRequestWebcam" ) ;
- new KAction( i18n( "Invite to view your Webcam" ), TQIconSet(BarIcon("webcamsend")), 0, this, TQT_SLOT( slotInviteWebcam() ), actionCollection(), "yahooSendWebcam" ) ;
- new KAction( i18n( "Send File" ), TQIconSet(BarIcon("attach")), 0, this, TQT_SLOT( slotSendFile() ), actionCollection(), "yahooSendFile" );
+ new TDEAction( i18n( "Buzz Contact" ), TQIconSet(BarIcon("bell")), "Ctrl+G", this, TQT_SLOT( slotBuzzContact() ), actionCollection(), "yahooBuzz" ) ;
+ new TDEAction( i18n( "Show User Info" ), TQIconSet(BarIcon("idea")), 0, this, TQT_SLOT( slotUserInfo() ), actionCollection(), "yahooShowInfo" ) ;
+ new TDEAction( i18n( "Request Webcam" ), TQIconSet(BarIcon("webcamreceive")), 0, this, TQT_SLOT( slotRequestWebcam() ), actionCollection(), "yahooRequestWebcam" ) ;
+ new TDEAction( i18n( "Invite to view your Webcam" ), TQIconSet(BarIcon("webcamsend")), 0, this, TQT_SLOT( slotInviteWebcam() ), actionCollection(), "yahooSendWebcam" ) ;
+ new TDEAction( i18n( "Send File" ), TQIconSet(BarIcon("attach")), 0, this, TQT_SLOT( slotSendFile() ), actionCollection(), "yahooSendFile" );
YahooContact *c = static_cast<YahooContact*>( others.first() );
connect( c, TQT_SIGNAL( displayPictureChanged() ), this, TQT_SLOT( slotDisplayPictureChanged() ) );
@@ -127,17 +127,17 @@ void YahooChatSession::slotDisplayPictureChanged()
int sz=22;
// get the size of the toolbar were the aciton is plugged.
// if you know a better way to get the toolbar, let me know
- KMainWindow *w= view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
+ TDEMainWindow *w= view(false) ? dynamic_cast<TDEMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
if(w)
{
//We connected that in the constructor. we don't need to keep this slot active.
disconnect( Kopete::ChatSessionManager::self() , TQT_SIGNAL(viewActivated(KopeteView* )) , this, TQT_SLOT(slotDisplayPictureChanged()) );
- TQPtrListIterator<KToolBar> it=w->toolBarIterator() ;
- KAction *imgAction=actionCollection()->action("yahooDisplayPicture");
+ TQPtrListIterator<TDEToolBar> it=w->toolBarIterator() ;
+ TDEAction *imgAction=actionCollection()->action("yahooDisplayPicture");
if(imgAction) while(it)
{
- KToolBar *tb=*it;
+ TDEToolBar *tb=*it;
if(imgAction->isPlugged(tb))
{
sz=tb->iconSize();
diff --git a/kopete/protocols/yahoo/yahoochatsession.h b/kopete/protocols/yahoo/yahoochatsession.h
index 7109d816..f56b1a08 100644
--- a/kopete/protocols/yahoo/yahoochatsession.h
+++ b/kopete/protocols/yahoo/yahoochatsession.h
@@ -18,9 +18,9 @@
#include "kopetechatsession.h"
-class KActionCollection;
+class TDEActionCollection;
class YahooContact;
-class KActionMenu;
+class TDEActionMenu;
class TQLabel;
diff --git a/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp b/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp
index 8e6132b6..64656e75 100644
--- a/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp
+++ b/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp
@@ -47,7 +47,7 @@ YahooConferenceChatSession::YahooConferenceChatSession( const TQString & yahooRo
m_yahooRoom = yahooRoom;
- m_actionInvite = new KAction( i18n( "&Invite others" ), "kontact_contacts", this, TQT_SLOT( slotInviteOthers() ), actionCollection(), "yahooInvite");
+ m_actionInvite = new TDEAction( i18n( "&Invite others" ), "kontact_contacts", this, TQT_SLOT( slotInviteOthers() ), actionCollection(), "yahooInvite");
setXMLFile("yahooconferenceui.rc");
}
diff --git a/kopete/protocols/yahoo/yahooconferencemessagemanager.h b/kopete/protocols/yahoo/yahooconferencemessagemanager.h
index 363dc003..d09cee4f 100644
--- a/kopete/protocols/yahoo/yahooconferencemessagemanager.h
+++ b/kopete/protocols/yahoo/yahooconferencemessagemanager.h
@@ -21,10 +21,10 @@
#include "kopetechatsession.h"
-class KActionCollection;
+class TDEActionCollection;
class YahooContact;
class YahooAccount;
-class KActionMenu;
+class TDEActionMenu;
/**
* @author Duncan Mac-Vicar Prett
@@ -50,7 +50,7 @@ protected slots:
private:
TQString m_yahooRoom;
- KAction *m_actionInvite;
+ TDEAction *m_actionInvite;
};
#endif
diff --git a/kopete/protocols/yahoo/yahoocontact.cpp b/kopete/protocols/yahoo/yahoocontact.cpp
index 62b7c6c9..fbc1718d 100644
--- a/kopete/protocols/yahoo/yahoocontact.cpp
+++ b/kopete/protocols/yahoo/yahoocontact.cpp
@@ -361,12 +361,12 @@ void YahooContact::slotChatSessionDestroyed()
m_sessionActive = false;
}
-TQPtrList<KAction> *YahooContact::customContextMenuActions()
+TQPtrList<TDEAction> *YahooContact::customContextMenuActions()
{
- TQPtrList<KAction> *actionCollection = new TQPtrList<KAction>();
+ TQPtrList<TDEAction> *actionCollection = new TQPtrList<TDEAction>();
if ( !m_webcamAction )
{
- m_webcamAction = new KAction( i18n( "View &Webcam" ), "webcamreceive", KShortcut(),
+ m_webcamAction = new TDEAction( i18n( "View &Webcam" ), "webcamreceive", TDEShortcut(),
this, TQT_SLOT( requestWebcam() ), this, "view_webcam" );
}
if ( isReachable() )
@@ -377,7 +377,7 @@ TQPtrList<KAction> *YahooContact::customContextMenuActions()
if( !m_inviteWebcamAction )
{
- m_inviteWebcamAction = new KAction( i18n( "Invite to view your Webcam" ), "webcamsend", KShortcut(),
+ m_inviteWebcamAction = new TDEAction( i18n( "Invite to view your Webcam" ), "webcamsend", TDEShortcut(),
this, TQT_SLOT( inviteWebcam() ), this, "invite_webcam" );
}
if ( isReachable() )
@@ -388,7 +388,7 @@ TQPtrList<KAction> *YahooContact::customContextMenuActions()
if ( !m_buzzAction )
{
- m_buzzAction = new KAction( i18n( "&Buzz Contact" ), "bell", KShortcut(), this, TQT_SLOT( buzzContact() ), this, "buzz_contact");
+ m_buzzAction = new TDEAction( i18n( "&Buzz Contact" ), "bell", TDEShortcut(), this, TQT_SLOT( buzzContact() ), this, "buzz_contact");
}
if ( isReachable() )
m_buzzAction->setEnabled( true );
@@ -398,7 +398,7 @@ TQPtrList<KAction> *YahooContact::customContextMenuActions()
if ( !m_stealthAction )
{
- m_stealthAction = new KAction( i18n( "&Stealth Setting" ), "yahoo_stealthed", KShortcut(), this, TQT_SLOT( stealthContact() ), this, "stealth_contact");
+ m_stealthAction = new TDEAction( i18n( "&Stealth Setting" ), "yahoo_stealthed", TDEShortcut(), this, TQT_SLOT( stealthContact() ), this, "stealth_contact");
}
if ( isReachable() )
m_stealthAction->setEnabled( true );
@@ -408,7 +408,7 @@ TQPtrList<KAction> *YahooContact::customContextMenuActions()
if ( !m_inviteConferenceAction )
{
- m_inviteConferenceAction = new KAction( i18n( "&Invite to Conference" ), "kontact_contacts", KShortcut(), this, TQT_SLOT( inviteConference() ), this, "invite_conference");
+ m_inviteConferenceAction = new TDEAction( i18n( "&Invite to Conference" ), "kontact_contacts", TDEShortcut(), this, TQT_SLOT( inviteConference() ), this, "invite_conference");
}
if ( isReachable() )
m_inviteConferenceAction->setEnabled( true );
@@ -418,7 +418,7 @@ TQPtrList<KAction> *YahooContact::customContextMenuActions()
if ( !m_profileAction )
{
- m_profileAction = new KAction( i18n( "&View Yahoo Profile" ), "kontact_notes", KShortcut(), this, TQT_SLOT( slotUserProfile() ), this, "profile_contact");
+ m_profileAction = new TDEAction( i18n( "&View Yahoo Profile" ), "kontact_notes", TDEShortcut(), this, TQT_SLOT( slotUserProfile() ), this, "profile_contact");
}
m_profileAction->setEnabled( true );
actionCollection->append( m_profileAction );
diff --git a/kopete/protocols/yahoo/yahoocontact.h b/kopete/protocols/yahoo/yahoocontact.h
index dd2f9f8b..eb8c0d1d 100644
--- a/kopete/protocols/yahoo/yahoocontact.h
+++ b/kopete/protocols/yahoo/yahoocontact.h
@@ -24,7 +24,7 @@
/* Kopete Includes */
#include "kopetecontact.h"
-class KAction;
+class TDEAction;
class KTempFile;
namespace Kopete { class ChatSession; }
@@ -49,7 +49,7 @@ public:
/** Base Class Reimplementations **/
virtual bool isOnline() const;
virtual bool isReachable();
- virtual TQPtrList<KAction> *customContextMenuActions();
+ virtual TQPtrList<TDEAction> *customContextMenuActions();
virtual Kopete::ChatSession *manager( Kopete::Contact::CanCreateFlags canCreate= Kopete::Contact::CanCreate );
virtual void serialize( TQMap<TQString, TQString> &serializedData, TQMap<TQString, TQString> &addressBookData );
@@ -128,12 +128,12 @@ private:
bool m_receivingWebcam;
bool m_sessionActive;
- KAction* m_stealthAction;
- KAction* m_profileAction;
- KAction* m_webcamAction;
- KAction* m_inviteWebcamAction;
- KAction* m_buzzAction;
- KAction* m_inviteConferenceAction;
+ TDEAction* m_stealthAction;
+ TDEAction* m_profileAction;
+ TDEAction* m_webcamAction;
+ TDEAction* m_inviteWebcamAction;
+ TDEAction* m_buzzAction;
+ TDEAction* m_inviteConferenceAction;
};
#endif
diff --git a/kopete/protocols/yahoo/yahooprotocol.h b/kopete/protocols/yahoo/yahooprotocol.h
index 7acbea7d..075b84db 100644
--- a/kopete/protocols/yahoo/yahooprotocol.h
+++ b/kopete/protocols/yahoo/yahooprotocol.h
@@ -31,9 +31,9 @@
#include "kopetecontactproperty.h"
class YahooContact;
-class KPopupMenu;
-class KActionMenu;
-class KAction;
+class TDEPopupMenu;
+class TDEActionMenu;
+class TDEAction;
namespace Kopete { class MetaContact; }
namespace Kopete { class Message; }
class YahooPreferences;