From 9c9412b30c54468adc9e506cc76c5d113fbf5056 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:14:03 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- dcoprss/feedbrowser.cpp | 14 +- dcoprss/feedbrowser.h | 8 +- .../advanced/kcm_sambaconf/hiddenfileview.cpp | 12 +- .../advanced/kcm_sambaconf/hiddenfileview.h | 14 +- filesharing/advanced/kcm_sambaconf/kcminterface.ui | 8 +- .../advanced/kcm_sambaconf/kcmsambaconf.cpp | 4 +- filesharing/advanced/kcm_sambaconf/share.ui | 2 +- filesharing/advanced/kcm_sambaconf/sharedlgimpl.h | 4 +- filesharing/advanced/kcm_sambaconf/usertabimpl.h | 2 +- filesharing/advanced/nfs/nfsdialog.cpp | 2 +- filesharing/advanced/nfs/nfsdialoggui.ui | 2 +- filesharing/simple/controlcenter.ui | 2 +- filesharing/simple/fileshare.cpp | 2 +- filesharing/simple/groupconfiggui.ui | 2 +- kdict/actions.cpp | 38 ++-- kdict/actions.h | 8 +- kdict/matchview.cpp | 2 +- kdict/matchview.h | 4 +- kdict/options.cpp | 4 +- kdict/queryview.cpp | 6 +- kdict/queryview.h | 8 +- kdict/toplevel.cpp | 34 ++-- kdict/toplevel.h | 14 +- kget/dlgIndividual.cpp | 8 +- kget/dlgIndividual.h | 4 +- kget/dlgsystembase.ui | 2 +- kget/dockindividual.cpp | 2 +- kget/dockindividual.h | 4 +- kget/docking.cpp | 4 +- kget/docking.h | 8 +- kget/droptarget.cpp | 4 +- kget/droptarget.h | 12 +- kget/kget_plug_in/kget_linkview.cpp | 12 +- kget/kget_plug_in/kget_linkview.h | 4 +- kget/kget_plug_in/kget_plug_in.cpp | 8 +- kget/kget_plug_in/kget_plug_in.h | 2 +- kget/kmainwidget.cpp | 198 ++++++++++----------- kget/kmainwidget.h | 42 ++--- kget/main.cpp | 6 +- kget/transfer.cpp | 20 +-- kget/transfer.h | 12 +- kget/transferlist.cpp | 2 +- kget/transferlist.h | 2 +- knewsticker/knewsticker.cpp | 4 +- knewsticker/knewsticker.h | 2 +- knewsticker/knewstickerconfig.cpp | 16 +- knewsticker/knewstickerconfig.h | 2 +- knewsticker/knewstickerconfigwidget.ui | 4 +- .../kntsrcfilepropsdlg/kntsrcfilepropsdlgwidget.ui | 2 +- .../addaccountwizard/addaccountwizardpage1.ui | 2 +- .../addcontactwizard/addcontactwizard_base.ui | 4 +- .../addcontactwizard/fastaddcontactwizard_base.ui | 2 +- kopete/kopete/chatwindow/chatmemberslistwidget.cpp | 18 +- kopete/kopete/chatwindow/chatmemberslistwidget.h | 6 +- kopete/kopete/chatwindow/chatmessagepart.cpp | 20 +-- kopete/kopete/chatwindow/chatmessagepart.h | 4 +- kopete/kopete/chatwindow/chatview.cpp | 2 +- kopete/kopete/chatwindow/kopetechatwindow.cpp | 50 +++--- kopete/kopete/chatwindow/kopetechatwindow.h | 44 ++--- kopete/kopete/chatwindow/kopeteemailwindow.cpp | 16 +- kopete/kopete/chatwindow/kopeteemoticonaction.cpp | 18 +- kopete/kopete/chatwindow/kopeteemoticonaction.h | 14 +- kopete/kopete/chatwindow/krichtexteditpart.cpp | 30 ++-- kopete/kopete/chatwindow/krichtexteditpart.h | 34 ++-- .../kopete/config/accounts/kopeteaccountconfig.cpp | 4 +- .../config/accounts/kopeteaccountconfigbase.ui | 2 +- .../appearance/appearanceconfig_chatwindow.ui | 2 +- .../config/appearance/appearanceconfig_colors.ui | 8 +- .../appearance/appearanceconfig_emoticons.ui | 2 +- .../config/appearance/emoticonseditdialog.cpp | 4 +- .../config/appearance/emoticonseditwidget.ui | 2 +- .../kopete/config/appearance/tooltipeditdialog.cpp | 10 +- .../kopete/config/appearance/tooltipeditwidget.ui | 4 +- kopete/kopete/contactlist/kopeteaddrbookexport.cpp | 6 +- kopete/kopete/contactlist/kopeteaddrbookexport.h | 8 +- .../kopete/contactlist/kopeteaddrbookexportui.ui | 8 +- .../kopete/contactlist/kopetecontactlistview.cpp | 56 +++--- kopete/kopete/contactlist/kopetecontactlistview.h | 40 ++--- .../kopete/contactlist/kopetegrouplistaction.cpp | 4 +- kopete/kopete/contactlist/kopetegrouplistaction.h | 4 +- kopete/kopete/contactlist/kopetegroupviewitem.cpp | 10 +- kopete/kopete/contactlist/kopetegroupviewitem.h | 2 +- kopete/kopete/contactlist/kopetemetacontactlvi.cpp | 24 +-- kopete/kopete/contactlist/kopetemetacontactlvi.h | 8 +- kopete/kopete/kopeteapplication.cpp | 4 +- kopete/kopete/kopeteeditglobalidentitywidget.cpp | 2 +- kopete/kopete/kopetewindow.cpp | 88 ++++----- kopete/kopete/kopetewindow.h | 58 +++--- kopete/kopete/systemtray.cpp | 4 +- kopete/kopete/systemtray.h | 10 +- .../compat/kpixmapregionselectorwidget.cpp | 10 +- .../libkopete/compat/kpixmapregionselectorwidget.h | 6 +- kopete/libkopete/kautoconfig.cpp | 8 +- kopete/libkopete/kopeteaccount.cpp | 6 +- kopete/libkopete/kopeteaccount.h | 4 +- kopete/libkopete/kopeteaccountmanager.h | 2 +- kopete/libkopete/kopeteawayaction.cpp | 8 +- kopete/libkopete/kopeteawayaction.h | 12 +- kopete/libkopete/kopetecommandhandler.cpp | 8 +- kopete/libkopete/kopetecommandhandler.h | 4 +- kopete/libkopete/kopetecontact.cpp | 20 +-- kopete/libkopete/kopetecontact.h | 12 +- kopete/libkopete/kopetecontactlist.h | 2 +- kopete/libkopete/kopeteonlinestatus.h | 2 +- kopete/libkopete/kopeteonlinestatusmanager.cpp | 8 +- kopete/libkopete/kopeteonlinestatusmanager.h | 6 +- kopete/libkopete/kopeteplugin.h | 2 +- kopete/libkopete/private/kopetecommand.cpp | 6 +- kopete/libkopete/private/kopetecommand.h | 4 +- kopete/libkopete/ui/accountselector.cpp | 8 +- kopete/libkopete/ui/accountselector.h | 6 +- kopete/libkopete/ui/addressbookselectorwidget.cpp | 2 +- .../libkopete/ui/addressbookselectorwidget_base.ui | 4 +- kopete/libkopete/ui/addresseeitem.cpp | 2 +- kopete/libkopete/ui/addresseeitem.h | 2 +- kopete/libkopete/ui/kopetecontactaction.cpp | 6 +- kopete/libkopete/ui/kopetecontactaction.h | 6 +- kopete/libkopete/ui/kopetelistview.cpp | 10 +- kopete/libkopete/ui/kopetelistview.h | 4 +- kopete/libkopete/ui/kopetelistviewitem.cpp | 14 +- kopete/libkopete/ui/kopetelistviewitem.h | 2 +- kopete/libkopete/ui/kopetelistviewsearchline.cpp | 8 +- kopete/libkopete/ui/kopetelistviewsearchline.h | 4 +- kopete/libkopete/ui/kopetestdaction.cpp | 52 +++--- kopete/libkopete/ui/kopetestdaction.h | 28 +-- kopete/libkopete/ui/kopeteview.h | 4 +- kopete/plugins/alias/aliasdialog.ui | 2 +- kopete/plugins/alias/aliasdialogbase.ui | 2 +- kopete/plugins/contactnotes/contactnotesplugin.cpp | 2 +- kopete/plugins/contactnotes/contactnotesplugin.h | 4 +- .../plugins/cryptography/cryptographyguiclient.cpp | 2 +- .../plugins/cryptography/cryptographyguiclient.h | 4 +- kopete/plugins/cryptography/cryptographyplugin.cpp | 8 +- kopete/plugins/cryptography/kgpgselkey.cpp | 6 +- kopete/plugins/cryptography/kgpgselkey.h | 4 +- kopete/plugins/cryptography/popuppublic.cpp | 20 +-- kopete/plugins/cryptography/popuppublic.h | 6 +- kopete/plugins/highlight/highlightprefsbase.ui | 2 +- kopete/plugins/history/historydialog.cpp | 34 ++-- kopete/plugins/history/historydialog.h | 8 +- kopete/plugins/history/historyguiclient.cpp | 2 +- kopete/plugins/history/historyguiclient.h | 8 +- kopete/plugins/history/historyplugin.cpp | 2 +- kopete/plugins/history/historyplugin.h | 2 +- kopete/plugins/history/historyviewer.ui | 4 +- kopete/plugins/latex/latexguiclient.cpp | 2 +- kopete/plugins/netmeeting/netmeetingguiclient.cpp | 2 +- kopete/plugins/nowlistening/DESIGN | 2 +- .../plugins/nowlistening/nowlisteningguiclient.cpp | 2 +- .../plugins/nowlistening/nowlisteningguiclient.h | 4 +- kopete/plugins/nowlistening/nowlisteningprefs.ui | 2 +- kopete/plugins/smpppdcs/smpppdcsprefs.ui | 2 +- kopete/plugins/statistics/statisticsdialog.cpp | 2 +- kopete/plugins/statistics/statisticsplugin.cpp | 2 +- kopete/plugins/statistics/statisticsplugin.h | 2 +- kopete/plugins/texteffect/texteffectprefs.ui | 2 +- kopete/plugins/translator/translatorguiclient.cpp | 2 +- kopete/plugins/translator/translatorplugin.cpp | 2 +- kopete/plugins/translator/translatorplugin.h | 4 +- kopete/plugins/webpresence/webpresenceplugin.h | 4 +- kopete/protocols/gadu/gaduaccount.cpp | 38 ++-- kopete/protocols/gadu/gaduaccount.h | 4 +- kopete/protocols/gadu/gaducontact.cpp | 8 +- kopete/protocols/gadu/gaducontact.h | 10 +- kopete/protocols/gadu/gaduprotocol.h | 4 +- kopete/protocols/gadu/ui/gadusearch.ui | 2 +- kopete/protocols/groupwise/gwaccount.cpp | 12 +- kopete/protocols/groupwise/gwaccount.h | 14 +- kopete/protocols/groupwise/gwcontact.cpp | 6 +- kopete/protocols/groupwise/gwcontact.h | 12 +- kopete/protocols/groupwise/gwmessagemanager.cpp | 22 +-- kopete/protocols/groupwise/gwmessagemanager.h | 12 +- kopete/protocols/groupwise/ui/gwchatpropswidget.ui | 2 +- .../protocols/groupwise/ui/gwchatsearchwidget.ui | 2 +- .../protocols/groupwise/ui/gwcontactproperties.cpp | 2 +- .../protocols/groupwise/ui/gwcontactproperties.h | 4 +- .../protocols/groupwise/ui/gwcontactpropswidget.ui | 2 +- .../protocols/groupwise/ui/gwcustomstatuswidget.ui | 2 +- kopete/protocols/irc/ircaccount.cpp | 12 +- kopete/protocols/irc/ircaccount.h | 10 +- kopete/protocols/irc/ircchannelcontact.cpp | 24 +-- kopete/protocols/irc/ircchannelcontact.h | 30 ++-- kopete/protocols/irc/ircguiclient.cpp | 6 +- kopete/protocols/irc/ircprotocol.cpp | 2 +- kopete/protocols/irc/ircprotocol.h | 2 +- kopete/protocols/irc/ircservercontact.h | 6 +- kopete/protocols/irc/ircusercontact.cpp | 32 ++-- kopete/protocols/irc/ircusercontact.h | 16 +- kopete/protocols/irc/kcodecaction.cpp | 4 +- kopete/protocols/irc/kcodecaction.h | 4 +- kopete/protocols/irc/ui/channellist.cpp | 18 +- kopete/protocols/irc/ui/channellist.h | 4 +- kopete/protocols/irc/ui/irceditaccount.ui | 4 +- kopete/protocols/irc/ui/irceditaccountwidget.cpp | 12 +- kopete/protocols/irc/ui/irceditaccountwidget.h | 6 +- kopete/protocols/jabber/jabberaccount.cpp | 14 +- kopete/protocols/jabber/jabberaccount.h | 4 +- kopete/protocols/jabber/jabberbasecontact.h | 2 +- kopete/protocols/jabber/jabberbookmarks.cpp | 4 +- kopete/protocols/jabber/jabberbookmarks.h | 4 +- kopete/protocols/jabber/jabberchatsession.cpp | 4 +- kopete/protocols/jabber/jabbercontact.cpp | 40 ++--- kopete/protocols/jabber/jabbercontact.h | 2 +- kopete/protocols/jabber/jabbergroupcontact.cpp | 6 +- kopete/protocols/jabber/jabbergroupcontact.h | 2 +- .../protocols/jabber/jabbergroupmembercontact.cpp | 2 +- kopete/protocols/jabber/jabbergroupmembercontact.h | 2 +- kopete/protocols/jabber/jabbertransport.cpp | 18 +- kopete/protocols/jabber/jabbertransport.h | 2 +- kopete/protocols/meanwhile/meanwhileaccount.cpp | 6 +- kopete/protocols/meanwhile/meanwhileaccount.h | 2 +- kopete/protocols/meanwhile/meanwhilecontact.h | 4 +- kopete/protocols/meanwhile/meanwhileplugin.cpp | 2 +- kopete/protocols/meanwhile/meanwhileplugin.h | 2 +- kopete/protocols/msn/msnaccount.cpp | 14 +- kopete/protocols/msn/msnaccount.h | 12 +- kopete/protocols/msn/msnchatsession.cpp | 28 +-- kopete/protocols/msn/msnchatsession.h | 14 +- kopete/protocols/msn/msncontact.cpp | 14 +- kopete/protocols/msn/msncontact.h | 16 +- kopete/protocols/msn/msnprotocol.h | 4 +- kopete/protocols/oscar/aim/aimaccount.cpp | 16 +- kopete/protocols/oscar/aim/aimaccount.h | 4 +- kopete/protocols/oscar/aim/aimcontact.cpp | 10 +- kopete/protocols/oscar/aim/aimcontact.h | 8 +- kopete/protocols/oscar/icq/icqaccount.cpp | 12 +- kopete/protocols/oscar/icq/icqaccount.h | 4 +- kopete/protocols/oscar/icq/icqcontact.cpp | 18 +- kopete/protocols/oscar/icq/icqcontact.h | 20 +-- kopete/protocols/oscar/icq/ui/icqsearchbase.ui | 2 +- kopete/protocols/oscar/oscaraccount.h | 2 +- kopete/protocols/oscar/oscarcontact.h | 2 +- kopete/protocols/oscar/oscarmyselfcontact.h | 2 +- kopete/protocols/sms/smsaccount.cpp | 4 +- kopete/protocols/sms/smsaccount.h | 4 +- kopete/protocols/sms/smscontact.cpp | 6 +- kopete/protocols/sms/smscontact.h | 8 +- kopete/protocols/sms/smsprotocol.h | 4 +- kopete/protocols/testbed/testbedaccount.cpp | 8 +- kopete/protocols/testbed/testbedaccount.h | 12 +- kopete/protocols/testbed/testbedcontact.cpp | 6 +- kopete/protocols/testbed/testbedcontact.h | 10 +- kopete/protocols/winpopup/wpaccount.cpp | 12 +- kopete/protocols/winpopup/wpaccount.h | 8 +- kopete/protocols/winpopup/wpcontact.cpp | 4 +- kopete/protocols/winpopup/wpcontact.h | 8 +- kopete/protocols/winpopup/wpprotocol.cpp | 2 +- kopete/protocols/winpopup/wpprotocol.h | 6 +- kopete/protocols/yahoo/yahooaccount.cpp | 20 +-- kopete/protocols/yahoo/yahooaccount.h | 14 +- kopete/protocols/yahoo/yahoochatsession.cpp | 18 +- kopete/protocols/yahoo/yahoochatsession.h | 4 +- .../yahoo/yahooconferencemessagemanager.cpp | 2 +- .../yahoo/yahooconferencemessagemanager.h | 6 +- kopete/protocols/yahoo/yahoocontact.cpp | 16 +- kopete/protocols/yahoo/yahoocontact.h | 16 +- kopete/protocols/yahoo/yahooprotocol.h | 6 +- kpf/src/ActiveMonitorWindow.cpp | 4 +- kpf/src/ActiveMonitorWindow.h | 6 +- kpf/src/AppletItem.cpp | 2 +- kpf/src/AppletItem.h | 4 +- kpf/src/DirSelectWidget.cpp | 2 +- kpf/src/DirSelectWidget.h | 2 +- kppp/docking.h | 2 +- kppp/logview/main.cpp | 2 +- kppp/logview/main.h | 2 +- kppp/logview/monthly.cpp | 4 +- kppp/logview/monthly.h | 6 +- kppp/miniterm.cpp | 4 +- kppp/miniterm.h | 4 +- krdc/hostprofiles.ui | 2 +- krdc/hostprofiles.ui.h | 2 +- krdc/krdc.cpp | 28 +-- krdc/krdc.h | 4 +- krdc/maindialogbase.ui | 2 +- krdc/maindialogwidget.cpp | 4 +- krfb/krfb/configuration.cc | 4 +- krfb/krfb/invitation.cc | 4 +- krfb/krfb/invitation.h | 6 +- krfb/krfb/manageinvitations.ui | 2 +- krfb/krfb/trayicon.cpp | 4 +- krfb/krfb/trayicon.h | 8 +- ksirc/KSPrefs/page_autoconnectbase.ui | 2 +- ksirc/KSPrefs/page_font.cpp | 2 +- ksirc/KSPrefs/page_font.h | 2 +- ksirc/KSTicker/ksticker.cpp | 4 +- ksirc/ahistlineedit.cpp | 4 +- ksirc/chanButtons.cpp | 2 +- ksirc/chanButtons.h | 4 +- ksirc/dccManager.cpp | 18 +- ksirc/dccManager.h | 12 +- ksirc/dccManagerbase.ui | 2 +- ksirc/dccToplevel.cpp | 4 +- ksirc/dccToplevel.h | 2 +- ksirc/displayMgrMDI.cpp | 18 +- ksirc/dockservercontroller.cpp | 8 +- ksirc/dockservercontroller.h | 4 +- ksirc/ksirc.cpp | 2 +- ksirc/ksview.cpp | 2 +- ksirc/mditoplevel.cpp | 10 +- ksirc/mditoplevel.h | 6 +- ksirc/servercontroller.cpp | 8 +- ksirc/servercontroller.h | 6 +- ksirc/toplevel.cpp | 14 +- ksirc/toplevel.h | 6 +- wifi/kwifimanager.cpp | 18 +- wifi/kwifimanager.h | 16 +- 307 files changed, 1419 insertions(+), 1419 deletions(-) diff --git a/dcoprss/feedbrowser.cpp b/dcoprss/feedbrowser.cpp index 1e853055..00c49838 100644 --- a/dcoprss/feedbrowser.cpp +++ b/dcoprss/feedbrowser.cpp @@ -13,15 +13,15 @@ #include #include -CategoryItem::CategoryItem( KListView *parent, const TQString &category ) - : KListViewItem( parent ), +CategoryItem::CategoryItem( TDEListView *parent, const TQString &category ) + : TDEListViewItem( parent ), m_category( category ) { init(); } -CategoryItem::CategoryItem( KListViewItem *parent, const TQString &category ) - : KListViewItem( parent ), +CategoryItem::CategoryItem( TDEListViewItem *parent, const TQString &category ) + : TDEListViewItem( parent ), m_category( category ) { init(); @@ -41,7 +41,7 @@ void CategoryItem::setOpen( bool open ) populate(); m_populated = true; } - KListViewItem::setOpen( open ); + TDEListViewItem::setOpen( open ); } void CategoryItem::populate() @@ -63,7 +63,7 @@ void CategoryItem::gotCategories( const TQStringList &categories ) new CategoryItem( this, *it ); if ( !categories.isEmpty() ) - KListViewItem::setOpen( true ); + TDEListViewItem::setOpen( true ); } DCOPRSSIface::DCOPRSSIface( TQObject *parent, const char *name ) : @@ -97,7 +97,7 @@ FeedBrowserDlg::FeedBrowserDlg( TQWidget *parent, const char *name ) TQVBox *mainWidget = makeVBoxMainWidget(); - m_feedList = new KListView( mainWidget, "m_feedList" ); + m_feedList = new TDEListView( mainWidget, "m_feedList" ); m_feedList->setAllColumnsShowFocus( true ); m_feedList->setRootIsDecorated( true ); m_feedList->addColumn( i18n( "Name" ) ); diff --git a/dcoprss/feedbrowser.h b/dcoprss/feedbrowser.h index 5d5344ab..00745006 100644 --- a/dcoprss/feedbrowser.h +++ b/dcoprss/feedbrowser.h @@ -24,13 +24,13 @@ class DCOPRSSIface : public TQObject, public DCOPObject void gotCategories( const TQStringList &categories ); }; -class CategoryItem : public TQObject, public KListViewItem +class CategoryItem : public TQObject, public TDEListViewItem { Q_OBJECT // public: - CategoryItem( KListView *parent, const TQString &category ); - CategoryItem( KListViewItem *parent, const TQString &category ); + CategoryItem( TDEListView *parent, const TQString &category ); + CategoryItem( TDEListViewItem *parent, const TQString &category ); virtual void setOpen( bool open ); @@ -62,7 +62,7 @@ class FeedBrowserDlg : public KDialogBase void getTopCategories(); DCOPRSSIface *m_dcopIface; - KListView *m_feedList; + TDEListView *m_feedList; }; #endif // FEEDBROWSER_H diff --git a/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp b/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp index ba0f760c..0eb74f54 100644 --- a/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp +++ b/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp @@ -112,9 +112,9 @@ HiddenFileView::HiddenFileView(ShareDlgImpl* shareDlg, SambaShare* share) _share = share; _dlg = shareDlg; - _hiddenActn = new KToggleAction(i18n("&Hide")); - _vetoActn = new KToggleAction(i18n("&Veto")); - _vetoOplockActn = new KToggleAction(i18n("&Veto Oplock")); + _hiddenActn = new TDEToggleAction(i18n("&Hide")); + _vetoActn = new TDEToggleAction(i18n("&Veto")); + _vetoOplockActn = new TDEToggleAction(i18n("&Veto Oplock")); initListView(); @@ -166,14 +166,14 @@ void HiddenFileView::initListView() _vetoList = createRegExpList(_share->getValue("veto files")); _vetoOplockList = createRegExpList(_share->getValue("veto oplock files")); - _popup = new KPopupMenu(_dlg->hiddenListView); + _popup = new TDEPopupMenu(_dlg->hiddenListView); _hiddenActn->plug(_popup); _vetoActn->plug(_popup); _vetoOplockActn->plug(_popup); connect( _dlg->hiddenListView, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged())); - connect( _dlg->hiddenListView, TQT_SIGNAL(contextMenu(KListView*,TQListViewItem*,const TQPoint&)), + connect( _dlg->hiddenListView, TQT_SIGNAL(contextMenu(TDEListView*,TQListViewItem*,const TQPoint&)), this, TQT_SLOT(showContextMenu())); connect( _dlg->hideDotFilesChk, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(hideDotFilesChkClicked(bool))); @@ -360,7 +360,7 @@ void HiddenFileView::selectionChanged() } } -void HiddenFileView::checkBoxClicked(TQCheckBox* chkBox,KToggleAction* action,TQLineEdit* edit, int column,TQPtrList & reqExpList,bool b) { +void HiddenFileView::checkBoxClicked(TQCheckBox* chkBox,TDEToggleAction* action,TQLineEdit* edit, int column,TQPtrList & reqExpList,bool b) { // We don't save the old state so // disable the tristate mode chkBox->setTristate(false); diff --git a/filesharing/advanced/kcm_sambaconf/hiddenfileview.h b/filesharing/advanced/kcm_sambaconf/hiddenfileview.h index 3d3d0aa8..f7e09e19 100644 --- a/filesharing/advanced/kcm_sambaconf/hiddenfileview.h +++ b/filesharing/advanced/kcm_sambaconf/hiddenfileview.h @@ -54,8 +54,8 @@ protected: KFileItem *_fileItem; }; -class KToggleAction; -class KPopupMenu; +class TDEToggleAction; +class TDEPopupMenu; class ShareDlgImpl; @@ -95,11 +95,11 @@ protected: TQPtrList _vetoList; TQPtrList _vetoOplockList; - KToggleAction* _hiddenActn; - KToggleAction* _vetoActn; - KToggleAction* _vetoOplockActn; + TDEToggleAction* _hiddenActn; + TDEToggleAction* _vetoActn; + TDEToggleAction* _vetoOplockActn; - KPopupMenu* _popup; + TDEPopupMenu* _popup; void initListView(); @@ -130,7 +130,7 @@ protected slots: void hiddenChkClicked(bool b); void vetoChkClicked(bool b); void vetoOplockChkClicked(bool b); - void checkBoxClicked(TQCheckBox* chkBox,KToggleAction* action,TQLineEdit* edit,int column,TQPtrList &reqExpList,bool b); + void checkBoxClicked(TQCheckBox* chkBox,TDEToggleAction* action,TQLineEdit* edit,int column,TQPtrList &reqExpList,bool b); void columnClicked(int column); void showContextMenu(); void updateView(); diff --git a/filesharing/advanced/kcm_sambaconf/kcminterface.ui b/filesharing/advanced/kcm_sambaconf/kcminterface.ui index c5a92b22..045c552e 100644 --- a/filesharing/advanced/kcm_sambaconf/kcminterface.ui +++ b/filesharing/advanced/kcm_sambaconf/kcminterface.ui @@ -659,7 +659,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. 6 - + Name @@ -807,7 +807,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. 6 - + Name @@ -983,7 +983,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. 6 - + Name @@ -1161,7 +1161,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. 6 - + Name diff --git a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp index 622e1f08..f22fbfba 100644 --- a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp +++ b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp @@ -1080,7 +1080,7 @@ void KcmSambaConf::loadUserTab() it=added.find(unixUser->name); if (it == added.end()) - new KListViewItem(_interface->unixUsersListView, unixUser->name, TQString::number(unixUser->uid)); + new TDEListViewItem(_interface->unixUsersListView, unixUser->name, TQString::number(unixUser->uid)); } _interface->unixUsersListView->setSelectionMode(TQListView::Extended); @@ -1215,7 +1215,7 @@ void KcmSambaConf::removeSambaUserBtnClicked() continue; } - new KListViewItem(_interface->unixUsersListView, item->text(0), item->text(1)); + new TDEListViewItem(_interface->unixUsersListView, item->text(0), item->text(1)); list.remove(item); delete item; } diff --git a/filesharing/advanced/kcm_sambaconf/share.ui b/filesharing/advanced/kcm_sambaconf/share.ui index ba600d17..91673c1a 100644 --- a/filesharing/advanced/kcm_sambaconf/share.ui +++ b/filesharing/advanced/kcm_sambaconf/share.ui @@ -566,7 +566,7 @@ 6 - + Name diff --git a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.h b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.h index 0ca38b6c..5d0c630f 100644 --- a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.h +++ b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.h @@ -40,8 +40,8 @@ class SambaShare; class TQWidget; -class KPopupMenu; -class KToggleAction; +class TDEPopupMenu; +class TDEToggleAction; class TQGroupBox; class UserTabImpl; class HiddenFileView; diff --git a/filesharing/advanced/kcm_sambaconf/usertabimpl.h b/filesharing/advanced/kcm_sambaconf/usertabimpl.h index a955c6b1..c9b0b159 100644 --- a/filesharing/advanced/kcm_sambaconf/usertabimpl.h +++ b/filesharing/advanced/kcm_sambaconf/usertabimpl.h @@ -37,7 +37,7 @@ *@author Jan Schäfer */ -class KListViewItem; +class TDEListViewItem; class SambaShare; /** diff --git a/filesharing/advanced/nfs/nfsdialog.cpp b/filesharing/advanced/nfs/nfsdialog.cpp index 69ec1032..c580c1c3 100644 --- a/filesharing/advanced/nfs/nfsdialog.cpp +++ b/filesharing/advanced/nfs/nfsdialog.cpp @@ -65,7 +65,7 @@ void NFSDialog::initGUI() { TQVBoxLayout *layout = new TQVBoxLayout( page ); layout->addWidget( m_gui ); - KAccel* accel = new KAccel( m_gui->listView ); + TDEAccel* accel = new TDEAccel( m_gui->listView ); accel->insert( "Delete", TQt::Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotRemoveHost())); } diff --git a/filesharing/advanced/nfs/nfsdialoggui.ui b/filesharing/advanced/nfs/nfsdialoggui.ui index ca77e192..3cd15997 100644 --- a/filesharing/advanced/nfs/nfsdialoggui.ui +++ b/filesharing/advanced/nfs/nfsdialoggui.ui @@ -96,7 +96,7 @@ The first column shows the name or address of the host, the second column shows - + Name/Address diff --git a/filesharing/simple/controlcenter.ui b/filesharing/simple/controlcenter.ui index 7eec18af..9aab272f 100644 --- a/filesharing/simple/controlcenter.ui +++ b/filesharing/simple/controlcenter.ui @@ -297,7 +297,7 @@ unnamed - + Path diff --git a/filesharing/simple/fileshare.cpp b/filesharing/simple/fileshare.cpp index d2f49515..9a0cf6a9 100644 --- a/filesharing/simple/fileshare.cpp +++ b/filesharing/simple/fileshare.cpp @@ -163,7 +163,7 @@ void KFileShareConfig::updateShareListView() TQPixmap cancelPix = SmallIcon("button_cancel"); for ( TQStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it ) { - KListViewItem* item = new KListViewItem(m_ccgui->listView); + TDEListViewItem* item = new TDEListViewItem(m_ccgui->listView); item->setText(0,*it); item->setPixmap(0, folderPix); diff --git a/filesharing/simple/groupconfiggui.ui b/filesharing/simple/groupconfiggui.ui index 13b26dc3..1024bfe2 100644 --- a/filesharing/simple/groupconfiggui.ui +++ b/filesharing/simple/groupconfiggui.ui @@ -71,7 +71,7 @@ unnamed - + listBox diff --git a/kdict/actions.cpp b/kdict/actions.cpp index 5acf3c3c..9587d9cc 100644 --- a/kdict/actions.cpp +++ b/kdict/actions.cpp @@ -9,7 +9,7 @@ ------------------------------------------------------------- - DictComboAction, special KAction subclasses used + DictComboAction, special TDEAction subclasses used DictLabelAction, in the toolbar DictButtonAction @@ -26,7 +26,7 @@ DictComboAction::DictComboAction( const TQString &text, TQObject *parent, const char *name, bool editable, bool autoSized ) - : KAction( text, 0, parent, name ), m_editable(editable), m_autoSized(autoSized), m_compMode(TDEGlobalSettings::completionMode()) + : TDEAction( text, 0, parent, name ), m_editable(editable), m_autoSized(autoSized), m_compMode(TDEGlobalSettings::completionMode()) { } @@ -38,10 +38,10 @@ DictComboAction::~DictComboAction() int DictComboAction::plug( TQWidget *widget, int index ) { - if ( widget->inherits( "KToolBar" ) ) + if ( widget->inherits( "TDEToolBar" ) ) { - KToolBar* bar = static_cast( widget ); - int id_ = KAction::getToolButtonID(); + TDEToolBar* bar = static_cast( widget ); + int id_ = TDEAction::getToolButtonID(); m_combo = new KComboBox(m_editable,bar); m_combo->setCompletionMode(m_compMode); @@ -68,9 +68,9 @@ int DictComboAction::plug( TQWidget *widget, int index ) void DictComboAction::unplug( TQWidget *widget ) { - if ( widget->inherits( "KToolBar" ) ) + if ( widget->inherits( "TDEToolBar" ) ) { - KToolBar *bar = (KToolBar *)widget; + TDEToolBar *bar = (TDEToolBar *)widget; int idx = findContainer( bar ); @@ -194,7 +194,7 @@ void DictComboAction::slotComboActivated(const TQString &s) DictLabelAction::DictLabelAction( const TQString &text, TQObject *parent, const char *name ) - : KAction( text, 0, parent, name ) + : TDEAction( text, 0, parent, name ) { } @@ -206,11 +206,11 @@ DictLabelAction::~DictLabelAction() int DictLabelAction::plug( TQWidget *widget, int index ) { - if ( widget->inherits( "KToolBar" ) ) + if ( widget->inherits( "TDEToolBar" ) ) { - KToolBar *tb = (KToolBar *)widget; + TDEToolBar *tb = (TDEToolBar *)widget; - int id = KAction::getToolButtonID(); + int id = TDEAction::getToolButtonID(); TQLabel *label = new TQLabel( text(), widget, "kde toolbar widget" ); label->setMinimumWidth(label->sizeHint().width()); @@ -235,9 +235,9 @@ int DictLabelAction::plug( TQWidget *widget, int index ) void DictLabelAction::unplug( TQWidget *widget ) { - if ( widget->inherits( "KToolBar" ) ) + if ( widget->inherits( "TDEToolBar" ) ) { - KToolBar *bar = (KToolBar *)widget; + TDEToolBar *bar = (TDEToolBar *)widget; int idx = findContainer( bar ); @@ -264,7 +264,7 @@ void DictLabelAction::setBuddy(TQWidget *buddy) DictButtonAction::DictButtonAction( const TQString& text, TQObject* receiver, const char* slot, TQObject* parent, const char* name ) - : KAction( text, 0, receiver, slot, parent, name ) + : TDEAction( text, 0, receiver, slot, parent, name ) { } @@ -276,11 +276,11 @@ DictButtonAction::~DictButtonAction() int DictButtonAction::plug( TQWidget *widget, int index ) { - if ( widget->inherits( "KToolBar" ) ) + if ( widget->inherits( "TDEToolBar" ) ) { - KToolBar *tb = (KToolBar *)widget; + TDEToolBar *tb = (TDEToolBar *)widget; - int id = KAction::getToolButtonID(); + int id = TDEAction::getToolButtonID(); TQPushButton *button = new TQPushButton( text(), widget ); button->adjustSize(); @@ -302,9 +302,9 @@ int DictButtonAction::plug( TQWidget *widget, int index ) void DictButtonAction::unplug( TQWidget *widget ) { - if ( widget->inherits( "KToolBar" ) ) + if ( widget->inherits( "TDEToolBar" ) ) { - KToolBar *bar = (KToolBar *)widget; + TDEToolBar *bar = (TDEToolBar *)widget; int idx = findContainer( bar ); diff --git a/kdict/actions.h b/kdict/actions.h index bf7553d2..6963acdd 100644 --- a/kdict/actions.h +++ b/kdict/actions.h @@ -9,7 +9,7 @@ ------------------------------------------------------------- - DictComboAction, special KAction subclasses used + DictComboAction, special TDEAction subclasses used DictLabelAction, in the toolbar DictButtonAction @@ -28,7 +28,7 @@ class TQLabel; class TQPushButton; -class DictComboAction : public KAction +class DictComboAction : public TDEAction { Q_OBJECT @@ -71,7 +71,7 @@ class DictComboAction : public KAction }; -class DictLabelAction : public KAction +class DictLabelAction : public TDEAction { Q_OBJECT @@ -91,7 +91,7 @@ class DictLabelAction : public KAction }; -class DictButtonAction : public KAction +class DictButtonAction : public TDEAction { Q_OBJECT diff --git a/kdict/matchview.cpp b/kdict/matchview.cpp index 61a8bc70..1502c8fe 100644 --- a/kdict/matchview.cpp +++ b/kdict/matchview.cpp @@ -157,7 +157,7 @@ MatchView::MatchView(TQWidget *parent, const char *name) connect(w_getAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(getAll())); boxLayout->addWidget(w_getAll,0); connect(interface,TQT_SIGNAL(matchReady(const TQStringList &)),this,TQT_SLOT(newList(const TQStringList &))); - rightBtnMenu = new KPopupMenu(); + rightBtnMenu = new TDEPopupMenu(); } diff --git a/kdict/matchview.h b/kdict/matchview.h index 980e8c43..5b193e5d 100644 --- a/kdict/matchview.h +++ b/kdict/matchview.h @@ -18,7 +18,7 @@ #define _MATCHVIEW_H_ #include -class KPopupMenu; +class TDEPopupMenu; //********* MatchViewItem ******************************************** @@ -98,7 +98,7 @@ private: bool getOn, getAllOn; - KPopupMenu *rightBtnMenu; + TDEPopupMenu *rightBtnMenu; MatchViewItem *popupCurrent; TQString popupClip; // needed for rightbtn-popup menu }; diff --git a/kdict/options.cpp b/kdict/options.cpp index aeff39a9..05b9e0fd 100644 --- a/kdict/options.cpp +++ b/kdict/options.cpp @@ -901,9 +901,9 @@ void OptionsDialog::slotFontItemSelected(TQListBoxItem *it) if (it) { FontListItem *fontItem = static_cast(it); TQFont font = fontItem->font(); - int result = KFontDialog::getFont(font,false,this); + int result = TDEFontDialog::getFont(font,false,this); - if (result == KFontDialog::Accepted) { + if (result == TDEFontDialog::Accepted) { fontItem->setFont(font); f_List->triggerUpdate(false); slotChanged(); diff --git a/kdict/queryview.cpp b/kdict/queryview.cpp index 7dbeaba4..0aa6f1b8 100644 --- a/kdict/queryview.cpp +++ b/kdict/queryview.cpp @@ -143,7 +143,7 @@ QueryView::QueryView(TQWidget *_parent) setFocusPolicy(TQ_NoFocus); connect(part, TQT_SIGNAL(completed()), TQT_SLOT(partCompleted())); connect(part, TQT_SIGNAL(middleButtonClicked()), TQT_SLOT(middleButtonClicked())); - rightBtnMenu = new KPopupMenu(this); + rightBtnMenu = new TDEPopupMenu(this); connect(part,TQT_SIGNAL(popupMenu(const TQString &, const TQPoint &)),this,TQT_SLOT(buildPopupMenu(const TQString &, const TQPoint &))); connect(part->browserExtension(),TQT_SIGNAL(openURLRequest(const KURL &,const KParts::URLArgs &)), this,TQT_SLOT(slotURLRequest(const KURL &,const KParts::URLArgs &))); @@ -157,7 +157,7 @@ QueryView::~QueryView() {} -void QueryView::setActions(KToolBarPopupAction* NactBack, KToolBarPopupAction* NactForward, DictComboAction* NactQueryCombo) +void QueryView::setActions(TDEToolBarPopupAction* NactBack, TDEToolBarPopupAction* NactForward, DictComboAction* NactQueryCombo) { actBack = NactBack; connect(actBack->popupMenu(),TQT_SIGNAL(activated(int)),TQT_SLOT(browseBack(int))); @@ -282,7 +282,7 @@ void QueryView::copySelection() void QueryView::showFindDialog() { - KAction *act = part->actionCollection()->action("find"); + TDEAction *act = part->actionCollection()->action("find"); if (act) act->activate(); } diff --git a/kdict/queryview.h b/kdict/queryview.h index 359eac85..475e480a 100644 --- a/kdict/queryview.h +++ b/kdict/queryview.h @@ -24,7 +24,7 @@ class TQFile; class KTempFile; -class KPopupMenu; +class TDEPopupMenu; class DictComboAction; @@ -106,7 +106,7 @@ public: QueryView(TQWidget *_parent = 0L); ~QueryView(); - void setActions(KToolBarPopupAction* NactBack, KToolBarPopupAction* NactForward, DictComboAction* NactQueryCombo); + void setActions(TDEToolBarPopupAction* NactBack, TDEToolBarPopupAction* NactForward, DictComboAction* NactQueryCombo); bool browseBackPossible() const; bool browseForwardPossible() const; @@ -164,10 +164,10 @@ private: DictHTMLPart *part; // Widgets - KToolBarPopupAction *actBack, *actForward; + TDEToolBarPopupAction *actBack, *actForward; DictComboAction *actQueryCombo; - KPopupMenu *rightBtnMenu; + TDEPopupMenu *rightBtnMenu; TQString popupLink,popupSelect; // needed for rightbtn-popup menu TQPtrList browseList; diff --git a/kdict/toplevel.cpp b/kdict/toplevel.cpp index a1bacd2b..6c67fd7c 100644 --- a/kdict/toplevel.cpp +++ b/kdict/toplevel.cpp @@ -51,7 +51,7 @@ GlobalData *global; TopLevel::TopLevel(TQWidget* parent, const char* name) - : DCOPObject("KDictIface"), KMainWindow(parent, name, WType_TopLevel), + : DCOPObject("KDictIface"), TDEMainWindow(parent, name, WType_TopLevel), optDlg(0L), setsDlg(0L), stopRef(0) { kapp->dcopClient()->setDefaultObject(objId()); @@ -313,9 +313,9 @@ void TopLevel::setupActions() actSave->setEnabled(false); actPrint = KStdAction::print(TQT_TQOBJECT(queryView), TQT_SLOT(printQuery()), actionCollection()); actPrint->setEnabled(false); - actStartQuery = new KAction(i18n("St&art Query"),"reload", 0 , TQT_TQOBJECT(this), + actStartQuery = new TDEAction(i18n("St&art Query"),"reload", 0 , TQT_TQOBJECT(this), TQT_SLOT(doDefine()), actionCollection(), "start_query"); - actStopQuery = new KAction(i18n("St&op Query"),"stop", 0 , TQT_TQOBJECT(this), + actStopQuery = new TDEAction(i18n("St&op Query"),"stop", 0 , TQT_TQOBJECT(this), TQT_SLOT(stopClients()), actionCollection(), "stop_query"); actStopQuery->setEnabled(false); KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(closeAllWindows()), actionCollection()); @@ -324,43 +324,43 @@ void TopLevel::setupActions() actCopy = KStdAction::copy(TQT_TQOBJECT(queryView), TQT_SLOT(copySelection()), actionCollection()); actCopy->setEnabled(false); KStdAction::selectAll(TQT_TQOBJECT(queryView), TQT_SLOT(selectAll()), actionCollection()); - new KAction(i18n("&Define Clipboard Content"), "define_clip", 0 , TQT_TQOBJECT(this), + new TDEAction(i18n("&Define Clipboard Content"), "define_clip", 0 , TQT_TQOBJECT(this), TQT_SLOT(defineClipboard()), actionCollection(), "define_clipboard"); - new KAction(i18n("&Match Clipboard Content"), 0 , TQT_TQOBJECT(this), + new TDEAction(i18n("&Match Clipboard Content"), 0 , TQT_TQOBJECT(this), TQT_SLOT(matchClipboard()), actionCollection(), "match_clipboard"); KStdAction::find(TQT_TQOBJECT(queryView), TQT_SLOT(showFindDialog()), actionCollection()); // history menu... - actBack = new KToolBarPopupAction(i18n("&Back"), "back", KStdAccel::shortcut(KStdAccel::Back), + actBack = new TDEToolBarPopupAction(i18n("&Back"), "back", TDEStdAccel::shortcut(TDEStdAccel::Back), TQT_TQOBJECT(queryView), TQT_SLOT(browseBack()), actionCollection(),"browse_back"); actBack->setDelayed(true); actBack->setStickyMenu(false); actBack->setEnabled(false); - actForward = new KToolBarPopupAction(i18n("&Forward"), "forward", KStdAccel::shortcut(KStdAccel::Forward), + actForward = new TDEToolBarPopupAction(i18n("&Forward"), "forward", TDEStdAccel::shortcut(TDEStdAccel::Forward), TQT_TQOBJECT(queryView), TQT_SLOT(browseForward()), actionCollection(),"browse_forward"); actForward->setDelayed(true); actForward->setStickyMenu(false); actForward->setEnabled(false); - new KAction(i18n("&Clear History"), 0 , TQT_TQOBJECT(this), + new TDEAction(i18n("&Clear History"), 0 , TQT_TQOBJECT(this), TQT_SLOT(clearQueryHistory()), actionCollection(), "clear_history"); // server menu... - new KAction(i18n("&Get Capabilities"), 0 , interface, + new TDEAction(i18n("&Get Capabilities"), 0 , interface, TQT_SLOT(updateServer()), actionCollection(), "get_capabilities"); - new KAction(i18n("Edit &Database Sets..."), "edit", 0 , TQT_TQOBJECT(this), + new TDEAction(i18n("Edit &Database Sets..."), "edit", 0 , TQT_TQOBJECT(this), TQT_SLOT(showSetsDialog()), actionCollection(), "edit_sets"); - new KAction(i18n("&Summary"), 0 , interface, + new TDEAction(i18n("&Summary"), 0 , interface, TQT_SLOT(showDatabases()), actionCollection(), "db_summary"); - new KAction(i18n("S&trategy Information"), 0 , interface, + new TDEAction(i18n("S&trategy Information"), 0 , interface, TQT_SLOT(showStrategies()), actionCollection(), "strategy_info"); - new KAction(i18n("&Server Information"), 0 , interface, + new TDEAction(i18n("&Server Information"), 0 , interface, TQT_SLOT(showInfo()), actionCollection(), "server_info"); // settings menu... createStandardStatusBarAction(); setStandardToolBarMenuEnabled(true); - actShowMatchList = new KToggleAction(i18n("Show &Match List"), 0 , TQT_TQOBJECT(this), + actShowMatchList = new TDEToggleAction(i18n("Show &Match List"), 0 , TQT_TQOBJECT(this), TQT_SLOT(toggleMatchListShow()), actionCollection(), "show_match"); actShowMatchList->setCheckedState(i18n("Hide &Match List")); actShowMatchList->setChecked(global->showMatchList); @@ -370,7 +370,7 @@ actionCollection()); KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showOptionsDialog()), actionCollection()); // toolbar... - new KAction(i18n("Clear Input Field"), "query_erase", 0 , TQT_TQOBJECT(this), + new TDEAction(i18n("Clear Input Field"), "query_erase", 0 , TQT_TQOBJECT(this), TQT_SLOT(clearInput()), actionCollection(), "clear_query"); actQueryLabel = new DictLabelAction(i18n("&Look for:"), actionCollection(), "look_label"); @@ -503,7 +503,7 @@ void TopLevel::buildHistMenu() unsigned int i = 0; while ((i<10)&&(iqueryHistory.count())) { - historyActionList.append( new KAction(getShortString(global->queryHistory[i],70), 0, TQT_TQOBJECT(this), TQT_SLOT(queryHistMenu()), + historyActionList.append( new TDEAction(getShortString(global->queryHistory[i],70), 0, TQT_TQOBJECT(this), TQT_SLOT(queryHistMenu()), (TQObject*)0, global->queryHistory[i].utf8().data()) ); i++; } @@ -542,7 +542,7 @@ void TopLevel::stratDbChanged() dbActionList.clear(); for (unsigned int i=0;iserverDatabases.count();i++) - dbActionList.append( new KAction(global->serverDatabases[i], 0, TQT_TQOBJECT(this), TQT_SLOT(dbInfoMenuClicked()), + dbActionList.append( new TDEAction(global->serverDatabases[i], 0, TQT_TQOBJECT(this), TQT_SLOT(dbInfoMenuClicked()), (TQObject*)0, global->serverDatabases[i].utf8().data()) ); plugActionList("db_detail", dbActionList); diff --git a/kdict/toplevel.h b/kdict/toplevel.h index d9653413..f6ecb6a9 100644 --- a/kdict/toplevel.h +++ b/kdict/toplevel.h @@ -23,8 +23,8 @@ class TQSplitter; -class KToggleAction; -class KToolBarPopupAction; +class TDEToggleAction; +class TDEToolBarPopupAction; class DictLabelAction; class DictComboAction; @@ -35,7 +35,7 @@ class OptionsDialog; class DbSetsDialog; -class TopLevel : public KMainWindow, virtual public KDictIface +class TopLevel : public TDEMainWindow, virtual public KDictIface { Q_OBJECT @@ -129,13 +129,13 @@ private slots: private: - KAction *actSave, *actPrint, *actStartQuery, *actStopQuery, *actCopy; - KToggleAction *actShowMatchList; + TDEAction *actSave, *actPrint, *actStartQuery, *actStopQuery, *actCopy; + TDEToggleAction *actShowMatchList; DictLabelAction *actQueryLabel, *actDbLabel; DictComboAction *actQueryCombo, *actDbCombo; DictButtonAction *actDefineBtn, *actMatchBtn; - TQPtrList historyActionList, dbActionList; - KToolBarPopupAction *actBack, *actForward; + TQPtrList historyActionList, dbActionList; + TDEToolBarPopupAction *actBack, *actForward; TQSplitter *splitter; // widgets.... QueryView *queryView; diff --git a/kget/dlgIndividual.cpp b/kget/dlgIndividual.cpp index 5acd3b7a..9c70962b 100644 --- a/kget/dlgIndividual.cpp +++ b/kget/dlgIndividual.cpp @@ -63,7 +63,7 @@ DlgIndividual::DlgIndividual(Transfer * _item) // Actions - m_paDock = new KToggleAction(i18n("&Dock"),"tool_dock.png", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleDock()), TQT_TQOBJECT(this), "dockIndividual"); + m_paDock = new TDEToggleAction(i18n("&Dock"),"tool_dock.png", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleDock()), TQT_TQOBJECT(this), "dockIndividual"); TQVBoxLayout *topLayout = new TQVBoxLayout( this, KDialog::marginHint(),KDialog::spacingHint() ); @@ -101,9 +101,9 @@ DlgIndividual::DlgIndividual(Transfer * _item) topLayout->addWidget(speedLabel); // setup toolbar - KToolBar *toolBar = new KToolBar(this); - toolBar->setIconText(KToolBar::IconOnly); - toolBar->setBarPos(KToolBar::Bottom); + TDEToolBar *toolBar = new TDEToolBar(this); + toolBar->setIconText(TDEToolBar::IconOnly); + toolBar->setBarPos(TDEToolBar::Bottom); toolBar->setMovingEnabled(false); toolBar->setFlat(true); diff --git a/kget/dlgIndividual.h b/kget/dlgIndividual.h index 399e548b..7415997b 100644 --- a/kget/dlgIndividual.h +++ b/kget/dlgIndividual.h @@ -42,7 +42,7 @@ class TQTextEdit; class TQCheckBox; class KPushButton; class KProgress; -class KToggleAction; +class TDEToggleAction; class KDateTimeWidget; class DockIndividual; @@ -95,7 +95,7 @@ protected: KPushButton * pbAdvanced ; TQTabWidget * panelAdvanced; - KToggleAction * m_paDock; + TDEToggleAction * m_paDock; TQDateTime qdt; KDateTimeWidget *spins; diff --git a/kget/dlgsystembase.ui b/kget/dlgsystembase.ui index 03fa75fe..a64575f7 100644 --- a/kget/dlgsystembase.ui +++ b/kget/dlgsystembase.ui @@ -46,7 +46,7 @@ Font: - + le_font diff --git a/kget/dockindividual.cpp b/kget/dockindividual.cpp index e8f02645..76ed5753 100644 --- a/kget/dockindividual.cpp +++ b/kget/dockindividual.cpp @@ -93,7 +93,7 @@ void DockIndividual::setTip(const TQString & _tip) #include "dockindividual.moc" /** No descriptions */ -void DockIndividual::contextMenuAboutToShow ( KPopupMenu* menu ) +void DockIndividual::contextMenuAboutToShow ( TDEPopupMenu* menu ) { menu->removeItemAt (3); } diff --git a/kget/dockindividual.h b/kget/dockindividual.h index 4a9131b1..d1bdf7d1 100644 --- a/kget/dockindividual.h +++ b/kget/dockindividual.h @@ -31,7 +31,7 @@ #include #include "common.h" -class KPopupMenu; +class TDEPopupMenu; class DockIndividual : public KSystemTray { Q_OBJECT @@ -43,7 +43,7 @@ public: void setTip(const TQString &); void setValue(int value); /** No descriptions */ - virtual void contextMenuAboutToShow ( KPopupMenu* menu ); + virtual void contextMenuAboutToShow ( TDEPopupMenu* menu ); }; #endif diff --git a/kget/docking.cpp b/kget/docking.cpp index b13e04a5..e0e70f86 100644 --- a/kget/docking.cpp +++ b/kget/docking.cpp @@ -38,14 +38,14 @@ #include "docking.h" -DockWidget::DockWidget(KMainWidget * _parent):KSystemTray(_parent) +DockWidget::DockWidget(TDEMainWidget * _parent):KSystemTray(_parent) { parent = _parent; setPixmap( loadIcon( "kget_dock" )); // popup menu for right mouse button - KPopupMenu *popupMenu = contextMenu(); + TDEPopupMenu *popupMenu = contextMenu(); parent->action("paste_transfer")->plug(popupMenu); parent->action("drop_target")->plug(popupMenu); parent->action("konqueror_integration")->plug(popupMenu); diff --git a/kget/docking.h b/kget/docking.h index 8c00cb32..82bfad23 100644 --- a/kget/docking.h +++ b/kget/docking.h @@ -35,8 +35,8 @@ #include -class KPopupMenu; -class KMainWidget; +class TDEPopupMenu; +class TDEMainWidget; class DynamicTip : public TQToolTip { @@ -58,7 +58,7 @@ class DockWidget:public KSystemTray public: - DockWidget(KMainWidget * parent); + DockWidget(TDEMainWidget * parent); ~DockWidget(); /** No descriptions */ void updateToolTip( const TQString& ); @@ -75,7 +75,7 @@ protected: void dropEvent(TQDropEvent *); private: - KMainWidget *parent; + TDEMainWidget *parent; DynamicTip * dtip; }; diff --git a/kget/droptarget.cpp b/kget/droptarget.cpp index c731938a..44bb1ef1 100644 --- a/kget/droptarget.cpp +++ b/kget/droptarget.cpp @@ -50,7 +50,7 @@ #include "settings.h" #include "droptarget.h" -DropTarget::DropTarget(KMainWindow * mainWin):TQWidget() +DropTarget::DropTarget(TDEMainWindow * mainWin):TQWidget() { int x = ksettings.dropPosition.x(); int y = ksettings.dropPosition.y(); @@ -85,7 +85,7 @@ DropTarget::DropTarget(KMainWindow * mainWin):TQWidget() setBackgroundPixmap( bgnd ); // popup menu for right mouse button - popupMenu = new KPopupMenu(); + popupMenu = new TDEPopupMenu(); popupMenu->insertTitle(kapp->caption()); popupMenu->setCheckable(true); diff --git a/kget/droptarget.h b/kget/droptarget.h index 0b5eddda..3c4ebe46 100644 --- a/kget/droptarget.h +++ b/kget/droptarget.h @@ -31,9 +31,9 @@ #include #include -class KPopupMenu; -class KMainWidget; -class KMainWindow; +class TDEPopupMenu; +class TDEMainWidget; +class TDEMainWindow; class DropTarget:public TQWidget { @@ -41,7 +41,7 @@ class DropTarget:public TQWidget public: - DropTarget(KMainWindow *); + DropTarget(TDEMainWindow *); ~DropTarget(); void updateStickyState(); @@ -64,8 +64,8 @@ private slots: void toggleMinimizeRestore(); private: - KPopupMenu * popupMenu; - KMainWidget *parent; + TDEPopupMenu * popupMenu; + TDEMainWidget *parent; bool b_sticky; diff --git a/kget/kget_plug_in/kget_linkview.cpp b/kget/kget_plug_in/kget_linkview.cpp index fccb2130..8a5f69cc 100644 --- a/kget/kget_plug_in/kget_linkview.cpp +++ b/kget/kget_plug_in/kget_linkview.cpp @@ -38,16 +38,16 @@ LinkViewItem::LinkViewItem( TQListView *parent, const LinkItem *lnk ) /////////////////////////////////////////////////////////////////// KGetLinkView::KGetLinkView( TQWidget *parent, const char *name ) - : KMainWindow( parent, name ) + : TDEMainWindow( parent, name ) { setPlainCaption( i18n( "KGet" ) ); - KAction* actionDownload = new KAction( i18n("Download Selected Files"), + TDEAction* actionDownload = new TDEAction( i18n("Download Selected Files"), "kget", CTRL+Key_D, TQT_TQOBJECT(this), TQT_SLOT( slotStartLeech() ), actionCollection(), "startDownload" ); - KAction* actionSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ), + TDEAction* actionSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ), actionCollection() ); m_links.setAutoDelete( true ); @@ -59,7 +59,7 @@ KGetLinkView::KGetLinkView( TQWidget *parent, const char *name ) TQVBoxLayout *layout = new TQVBoxLayout( mainWidget ); setCentralWidget( mainWidget ); - m_view = new KListView( mainWidget, "listview" ); + m_view = new TDEListView( mainWidget, "listview" ); m_view->setSelectionMode( TQListView::Extended ); m_view->addColumn( i18n("File Name") ); m_view->addColumn( i18n("Description") ); @@ -67,14 +67,14 @@ KGetLinkView::KGetLinkView( TQWidget *parent, const char *name ) m_view->addColumn( i18n("Location (URL)") ); m_view->setShowSortIndicator( true ); - KListViewSearchLineWidget *line = new KListViewSearchLineWidget( m_view, mainWidget, "search line" ); + TDEListViewSearchLineWidget *line = new TDEListViewSearchLineWidget( m_view, mainWidget, "search line" ); layout->addWidget( line ); layout->addWidget( m_view ); // setting a fixed (not floating) toolbar toolBar()->setMovingEnabled( false ); // setting Text next to Icons - toolBar()->setIconText( KToolBar::IconTextRight ); + toolBar()->setIconText( TDEToolBar::IconTextRight ); } KGetLinkView::~KGetLinkView() diff --git a/kget/kget_plug_in/kget_linkview.h b/kget/kget_plug_in/kget_linkview.h index 74af3765..ab39541f 100644 --- a/kget/kget_plug_in/kget_linkview.h +++ b/kget/kget_plug_in/kget_linkview.h @@ -24,7 +24,7 @@ public: }; -class KGetLinkView : public KMainWindow +class KGetLinkView : public TDEMainWindow { Q_OBJECT @@ -48,7 +48,7 @@ private: TQPtrList m_links; - KListView *m_view; + TDEListView *m_view; }; diff --git a/kget/kget_plug_in/kget_plug_in.cpp b/kget/kget_plug_in/kget_plug_in.cpp index c8e5ccf2..b40f50dd 100644 --- a/kget/kget_plug_in/kget_plug_in.cpp +++ b/kget/kget_plug_in/kget_plug_in.cpp @@ -49,19 +49,19 @@ KGet_plug_in::KGet_plug_in( TQObject* parent, const char* name ) { TQPixmap pix = TDEGlobal::iconLoader()->loadIcon("kget", KIcon::MainToolbar); - KActionMenu *menu = new KActionMenu( i18n("Download Manager"), pix, + TDEActionMenu *menu = new TDEActionMenu( i18n("Download Manager"), pix, actionCollection(), "kget_menu" ); menu->setDelayed( false ); connect( menu->popupMenu(), TQT_SIGNAL( aboutToShow() ), TQT_SLOT( showPopup() )); - m_paToggleDropTarget=new KToggleAction(i18n("Show Drop Target"), - KShortcut(), + m_paToggleDropTarget=new TDEToggleAction(i18n("Show Drop Target"), + TDEShortcut(), this, TQT_SLOT(slotShowDrop()), actionCollection(), "show_drop" ); menu->insert( m_paToggleDropTarget ); - KAction *action = new KAction(i18n("List All Links"), KShortcut(), + TDEAction *action = new TDEAction(i18n("List All Links"), TDEShortcut(), this, TQT_SLOT( slotShowLinks() ), actionCollection(), "show_links"); menu->insert( action ); diff --git a/kget/kget_plug_in/kget_plug_in.h b/kget/kget_plug_in/kget_plug_in.h index 25dd4c65..10a0d205 100644 --- a/kget/kget_plug_in/kget_plug_in.h +++ b/kget/kget_plug_in/kget_plug_in.h @@ -30,7 +30,7 @@ class KGet_plug_in : public KParts::Plugin public: KGet_plug_in( TQObject* parent = 0, const char* name = 0 ); - KToggleAction *m_paToggleDropTarget ; + TDEToggleAction *m_paToggleDropTarget ; DCOPClient* p_dcopServer; virtual ~KGet_plug_in(); diff --git a/kget/kmainwidget.cpp b/kget/kmainwidget.cpp index 382faa20..4e852c66 100644 --- a/kget/kmainwidget.cpp +++ b/kget/kmainwidget.cpp @@ -99,7 +99,7 @@ struct KURLPair KURL src; }; -KMainWidget *kmain = 0L; +TDEMainWidget *kmain = 0L; #define LOAD_ICON(X) TDEGlobal::iconLoader()->loadIcon(X, KIcon::MainToolbar) @@ -118,9 +118,9 @@ int ddp_sock = -1; /* Appletalk DDP socket */ -KMainWidget::KMainWidget(bool bStartDocked) +TDEMainWidget::TDEMainWidget(bool bStartDocked) : KGetIface( "KGet-Interface" ), - KMainWindow(0, "kget mainwindow",0), + TDEMainWindow(0, "kget mainwindow",0), prefDlg( 0 ), kdock( 0 ) { #ifdef _DEBUG @@ -273,7 +273,7 @@ KMainWidget::KMainWidget(bool bStartDocked) } -KMainWidget::~KMainWidget() +TDEMainWidget::~TDEMainWidget() { #ifdef _DEBUG sDebugIn << endl; @@ -291,7 +291,7 @@ KMainWidget::~KMainWidget() } -void KMainWidget::log(const TQString & message, bool statusbar) +void TDEMainWidget::log(const TQString & message, bool statusbar) { #ifdef _DEBUG sDebugIn <<" message= "<< message << endl; @@ -309,7 +309,7 @@ void KMainWidget::log(const TQString & message, bool statusbar) } -void KMainWidget::slotSaveYourself() +void TDEMainWidget::slotSaveYourself() { #ifdef _DEBUG sDebugIn << endl; @@ -324,7 +324,7 @@ void KMainWidget::slotSaveYourself() } -void KMainWidget::setupGUI() +void TDEMainWidget::setupGUI() { #ifdef _DEBUG sDebugIn << endl; @@ -335,7 +335,7 @@ void KMainWidget::setupGUI() myTransferList->setSorting(-1); setListFont(); - KActionCollection *coll = actionCollection(); + TDEActionCollection *coll = actionCollection(); connect(myTransferList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotUpdateActions())); connect(myTransferList, TQT_SIGNAL(transferSelected(Transfer *)), this, TQT_SLOT(slotOpenIndividual())); @@ -345,45 +345,45 @@ void KMainWidget::setupGUI() m_paOpenTransfer = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(slotOpenTransfer()), coll, "open_transfer"); m_paPasteTransfer = KStdAction::paste(TQT_TQOBJECT(this), TQT_SLOT(slotPasteTransfer()), coll, "paste_transfer"); - m_paExportTransfers = new KAction(i18n("&Export Transfer List..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotExportTransfers()), coll, "export_transfers"); - m_paImportTransfers = new KAction(i18n("&Import Transfer List..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotImportTransfers()), coll, "import_transfers"); + m_paExportTransfers = new TDEAction(i18n("&Export Transfer List..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotExportTransfers()), coll, "export_transfers"); + m_paImportTransfers = new TDEAction(i18n("&Import Transfer List..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotImportTransfers()), coll, "import_transfers"); - m_paImportText = new KAction(i18n("Import Text &File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotImportTextFile()), coll, "import_text"); + m_paImportText = new TDEAction(i18n("Import Text &File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotImportTextFile()), coll, "import_text"); m_paQuit = KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotQuit()), coll, "quit"); // transfer actions - m_paCopy = new KAction(i18n("&Copy URL to Clipboard"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyToClipboard()), coll, "copy_url"); - m_paIndividual = new KAction(i18n("&Open Individual Window"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotOpenIndividual()), coll, "open_individual"); + m_paCopy = new TDEAction(i18n("&Copy URL to Clipboard"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCopyToClipboard()), coll, "copy_url"); + m_paIndividual = new TDEAction(i18n("&Open Individual Window"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotOpenIndividual()), coll, "open_individual"); - m_paMoveToBegin = new KAction(i18n("Move to &Beginning"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotMoveToBegin()), coll, "move_begin"); + m_paMoveToBegin = new TDEAction(i18n("Move to &Beginning"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotMoveToBegin()), coll, "move_begin"); - m_paMoveToEnd = new KAction(i18n("Move to &End"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotMoveToEnd()), coll, "move_end"); + m_paMoveToEnd = new TDEAction(i18n("Move to &End"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotMoveToEnd()), coll, "move_end"); #ifdef _DEBUG sDebug << "Loading pics" << endl; #endif - m_paResume = new KAction(i18n("&Resume"),"tool_resume", 0, TQT_TQOBJECT(this), TQT_SLOT(slotResumeCurrent()), coll, "resume"); - m_paPause = new KAction(i18n("&Pause"),"tool_pause", 0, TQT_TQOBJECT(this), TQT_SLOT(slotPauseCurrent()), coll, "pause"); - m_paDelete = new KAction(i18n("&Delete"),"editdelete", TQt::Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotDeleteCurrent()), coll, "delete"); - m_paRestart = new KAction(i18n("Re&start"),"tool_restart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotRestartCurrent()), coll, "restart"); + m_paResume = new TDEAction(i18n("&Resume"),"tool_resume", 0, TQT_TQOBJECT(this), TQT_SLOT(slotResumeCurrent()), coll, "resume"); + m_paPause = new TDEAction(i18n("&Pause"),"tool_pause", 0, TQT_TQOBJECT(this), TQT_SLOT(slotPauseCurrent()), coll, "pause"); + m_paDelete = new TDEAction(i18n("&Delete"),"editdelete", TQt::Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotDeleteCurrent()), coll, "delete"); + m_paRestart = new TDEAction(i18n("Re&start"),"tool_restart", 0, TQT_TQOBJECT(this), TQT_SLOT(slotRestartCurrent()), coll, "restart"); - m_paQueue = new KRadioAction(i18n("&Queue"),"tool_queue", 0, TQT_TQOBJECT(this), TQT_SLOT(slotQueueCurrent()), coll, "queue"); - m_paTimer = new KRadioAction(i18n("&Timer"),"tool_timer", 0, TQT_TQOBJECT(this), TQT_SLOT(slotTimerCurrent()), coll, "timer"); - m_paDelay = new KRadioAction(i18n("De&lay"),"tool_delay", 0, TQT_TQOBJECT(this), TQT_SLOT(slotDelayCurrent()), coll, "delay"); + m_paQueue = new TDERadioAction(i18n("&Queue"),"tool_queue", 0, TQT_TQOBJECT(this), TQT_SLOT(slotQueueCurrent()), coll, "queue"); + m_paTimer = new TDERadioAction(i18n("&Timer"),"tool_timer", 0, TQT_TQOBJECT(this), TQT_SLOT(slotTimerCurrent()), coll, "timer"); + m_paDelay = new TDERadioAction(i18n("De&lay"),"tool_delay", 0, TQT_TQOBJECT(this), TQT_SLOT(slotDelayCurrent()), coll, "delay"); m_paQueue->setExclusiveGroup("TransferMode"); m_paTimer->setExclusiveGroup("TransferMode"); m_paDelay->setExclusiveGroup("TransferMode"); // options actions - m_paUseAnimation = new KToggleAction(i18n("Use &Animation"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAnimation()), coll, "toggle_animation"); - m_paExpertMode = new KToggleAction(i18n("&Expert Mode"),"tool_expert", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleExpertMode()), coll, "expert_mode"); - m_paUseLastDir = new KToggleAction(i18n("&Use-Last-Folder Mode"),"tool_uselastdir", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleUseLastDir()), coll, "use_last_dir"); - m_paAutoDisconnect = new KToggleAction(i18n("Auto-&Disconnect Mode"),"tool_disconnect", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAutoDisconnect()), coll, "auto_disconnect"); - m_paAutoShutdown = new KToggleAction(i18n("Auto-S&hutdown Mode"), "tool_shutdown", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAutoShutdown()), coll, "auto_shutdown"); - m_paOfflineMode = new KToggleAction(i18n("&Offline Mode"),"tool_offline_mode_off", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleOfflineMode()), coll, "offline_mode"); - m_paAutoPaste = new KToggleAction(i18n("Auto-Pas&te Mode"),"tool_clipboard", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAutoPaste()), coll, "auto_paste"); + m_paUseAnimation = new TDEToggleAction(i18n("Use &Animation"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAnimation()), coll, "toggle_animation"); + m_paExpertMode = new TDEToggleAction(i18n("&Expert Mode"),"tool_expert", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleExpertMode()), coll, "expert_mode"); + m_paUseLastDir = new TDEToggleAction(i18n("&Use-Last-Folder Mode"),"tool_uselastdir", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleUseLastDir()), coll, "use_last_dir"); + m_paAutoDisconnect = new TDEToggleAction(i18n("Auto-&Disconnect Mode"),"tool_disconnect", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAutoDisconnect()), coll, "auto_disconnect"); + m_paAutoShutdown = new TDEToggleAction(i18n("Auto-S&hutdown Mode"), "tool_shutdown", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAutoShutdown()), coll, "auto_shutdown"); + m_paOfflineMode = new TDEToggleAction(i18n("&Offline Mode"),"tool_offline_mode_off", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleOfflineMode()), coll, "offline_mode"); + m_paAutoPaste = new TDEToggleAction(i18n("Auto-Pas&te Mode"),"tool_clipboard", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleAutoPaste()), coll, "auto_paste"); m_paPreferences = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(slotPreferences()), coll); @@ -397,10 +397,10 @@ void KMainWidget::setupGUI() // view actions createStandardStatusBarAction(); - m_paShowLog = new KToggleAction(i18n("Show &Log Window"),"tool_logwindow", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleLogWindow()), coll, "toggle_log"); + m_paShowLog = new TDEToggleAction(i18n("Show &Log Window"),"tool_logwindow", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleLogWindow()), coll, "toggle_log"); m_paShowLog->setCheckedState(i18n("Hide &Log Window")); - m_paDropTarget = new KAction(i18n("Show Drop &Target"),"tool_drop_target", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleDropTarget()), coll, "drop_target"); - m_paKonquerorIntegration = new KAction(i18n("Enable &KGet as Konqueror Download Manager"), "konqueror", 0, TQT_TQOBJECT(this), TQT_SLOT(slotKonquerorIntegration()), coll, "konqueror_integration"); + m_paDropTarget = new TDEAction(i18n("Show Drop &Target"),"tool_drop_target", 0, TQT_TQOBJECT(this), TQT_SLOT(slotToggleDropTarget()), coll, "drop_target"); + m_paKonquerorIntegration = new TDEAction(i18n("Enable &KGet as Konqueror Download Manager"), "konqueror", 0, TQT_TQOBJECT(this), TQT_SLOT(slotKonquerorIntegration()), coll, "konqueror_integration"); if (ksettings.b_KonquerorIntegration) { m_paKonquerorIntegration->setText(i18n("Disable &KGet as Konqueror Download Manager")); } @@ -429,7 +429,7 @@ void KMainWidget::setupGUI() } -void KMainWidget::setupWhatsThis() +void TDEMainWidget::setupWhatsThis() { #ifdef _DEBUG sDebugIn << endl; @@ -502,7 +502,7 @@ void KMainWidget::setupWhatsThis() } -void KMainWidget::slotConfigureToolbars() +void TDEMainWidget::slotConfigureToolbars() { #ifdef _DEBUG sDebugIn << endl; @@ -519,7 +519,7 @@ void KMainWidget::slotConfigureToolbars() } -void KMainWidget::slotNewToolbarConfig() +void TDEMainWidget::slotNewToolbarConfig() { #ifdef _DEBUG sDebugIn << endl; @@ -534,7 +534,7 @@ void KMainWidget::slotNewToolbarConfig() } -void KMainWidget::slotImportTextFile() +void TDEMainWidget::slotImportTextFile() { #ifdef _DEBUG sDebugIn << endl; @@ -567,7 +567,7 @@ void KMainWidget::slotImportTextFile() } -void KMainWidget::slotImportTransfers() +void TDEMainWidget::slotImportTransfers() { #ifdef _DEBUG sDebugIn << endl; @@ -581,7 +581,7 @@ void KMainWidget::slotImportTransfers() } -void KMainWidget::readTransfers(bool ask_for_name) +void TDEMainWidget::readTransfers(bool ask_for_name) { #ifdef _DEBUG sDebugIn << endl; @@ -601,7 +601,7 @@ void KMainWidget::readTransfers(bool ask_for_name) #endif } -void KMainWidget::readTransfersEx(const KURL & file) +void TDEMainWidget::readTransfersEx(const KURL & file) { #ifdef _DEBUG sDebugIn << endl; @@ -629,7 +629,7 @@ void KMainWidget::readTransfersEx(const KURL & file) } -void KMainWidget::slotExportTransfers() +void TDEMainWidget::slotExportTransfers() { #ifdef _DEBUG sDebugIn << endl; @@ -642,7 +642,7 @@ void KMainWidget::slotExportTransfers() #endif } -void KMainWidget::writeTransfers(bool ask_for_name) +void TDEMainWidget::writeTransfers(bool ask_for_name) { #ifdef _DEBUG sDebugIn << endl; @@ -680,7 +680,7 @@ void KMainWidget::writeTransfers(bool ask_for_name) } -void KMainWidget::writeLog() +void TDEMainWidget::writeLog() { #ifdef _DEBUG sDebugIn << "Writing log to file : " << logFileName.ascii() << endl; @@ -695,7 +695,7 @@ void KMainWidget::writeLog() } -void KMainWidget::slotQuit() +void TDEMainWidget::slotQuit() { #ifdef _DEBUG sDebugIn << endl; @@ -730,7 +730,7 @@ void KMainWidget::slotQuit() } -void KMainWidget::slotResumeCurrent() +void TDEMainWidget::slotResumeCurrent() { #ifdef _DEBUG sDebugIn << endl; @@ -750,7 +750,7 @@ void KMainWidget::slotResumeCurrent() } -void KMainWidget::slotPauseCurrent() +void TDEMainWidget::slotPauseCurrent() { #ifdef _DEBUG sDebugIn << endl; @@ -775,7 +775,7 @@ void KMainWidget::slotPauseCurrent() -void KMainWidget::slotRestartCurrent() +void TDEMainWidget::slotRestartCurrent() { #ifdef _DEBUG sDebugIn << endl; @@ -795,7 +795,7 @@ void KMainWidget::slotRestartCurrent() } -void KMainWidget::slotDeleteCurrent() +void TDEMainWidget::slotDeleteCurrent() { #ifdef _DEBUG sDebugIn << endl; @@ -867,7 +867,7 @@ void KMainWidget::slotDeleteCurrent() } -void KMainWidget::stopAll() +void TDEMainWidget::stopAll() { #ifdef _DEBUG sDebugIn << endl; @@ -890,7 +890,7 @@ void KMainWidget::stopAll() } -void KMainWidget::slotQueueCurrent() +void TDEMainWidget::slotQueueCurrent() { #ifdef _DEBUG sDebugIn << endl; @@ -913,7 +913,7 @@ void KMainWidget::slotQueueCurrent() } -void KMainWidget::slotTimerCurrent() +void TDEMainWidget::slotTimerCurrent() { #ifdef _DEBUG sDebugIn << endl; @@ -933,7 +933,7 @@ void KMainWidget::slotTimerCurrent() } -void KMainWidget::slotDelayCurrent() +void TDEMainWidget::slotDelayCurrent() { #ifdef _DEBUG sDebugIn << endl; @@ -951,7 +951,7 @@ void KMainWidget::slotDelayCurrent() } -void KMainWidget::slotOpenTransfer() +void TDEMainWidget::slotOpenTransfer() { #ifdef _DEBUG sDebugIn << endl; @@ -991,7 +991,7 @@ void KMainWidget::slotOpenTransfer() -void KMainWidget::slotCheckClipboard() +void TDEMainWidget::slotCheckClipboard() { #ifdef _DEBUG //sDebugIn << endl; @@ -1018,7 +1018,7 @@ void KMainWidget::slotCheckClipboard() } -void KMainWidget::slotPasteTransfer() +void TDEMainWidget::slotPasteTransfer() { #ifdef _DEBUG sDebugIn << endl; @@ -1054,7 +1054,7 @@ void KMainWidget::slotPasteTransfer() // destFile must be a filename, not a directory! And it will be deleted, if // it exists already, without further notice. -void KMainWidget::addTransferEx(const KURL& url, const KURL& destFile) +void TDEMainWidget::addTransferEx(const KURL& url, const KURL& destFile) { #ifdef _DEBUG sDebugIn << endl; @@ -1156,7 +1156,7 @@ void KMainWidget::addTransferEx(const KURL& url, const KURL& destFile) } -void KMainWidget::addTransfers( const KURL::List& src, const TQString& destDir ) +void TDEMainWidget::addTransfers( const KURL::List& src, const TQString& destDir ) { TQValueList urls_orig; @@ -1327,7 +1327,7 @@ void KMainWidget::addTransfers( const KURL::List& src, const TQString& destDir ) checkQueue(); } -void KMainWidget::addTransfer(const TQString& src) +void TDEMainWidget::addTransfer(const TQString& src) { #ifdef _DEBUG sDebugIn << endl; @@ -1345,7 +1345,7 @@ void KMainWidget::addTransfer(const TQString& src) } -void KMainWidget::checkQueue() +void TDEMainWidget::checkQueue() { #ifdef _DEBUG sDebugIn << endl; @@ -1406,7 +1406,7 @@ void KMainWidget::checkQueue() } -void KMainWidget::slotAnimTimeout() +void TDEMainWidget::slotAnimTimeout() { #ifdef _DEBUG //sDebugIn << endl; @@ -1432,7 +1432,7 @@ void KMainWidget::slotAnimTimeout() } -void KMainWidget::slotTransferTimeout() +void TDEMainWidget::slotTransferTimeout() { #ifdef _DEBUG //sDebugIn << endl; @@ -1465,7 +1465,7 @@ void KMainWidget::slotTransferTimeout() } -void KMainWidget::slotAutosaveTimeout() +void TDEMainWidget::slotAutosaveTimeout() { #ifdef _DEBUG //sDebugIn << endl; @@ -1479,7 +1479,7 @@ void KMainWidget::slotAutosaveTimeout() } -void KMainWidget::slotStatusChanged(Transfer * item, int _operation) +void TDEMainWidget::slotStatusChanged(Transfer * item, int _operation) { #ifdef _DEBUG //sDebugIn << endl; @@ -1551,7 +1551,7 @@ void KMainWidget::slotStatusChanged(Transfer * item, int _operation) } -void KMainWidget::dragEnterEvent(TQDragEnterEvent * event) +void TDEMainWidget::dragEnterEvent(TQDragEnterEvent * event) { #ifdef _DEBUG //sDebugIn << endl; @@ -1565,7 +1565,7 @@ void KMainWidget::dragEnterEvent(TQDragEnterEvent * event) } -void KMainWidget::dropEvent(TQDropEvent * event) +void TDEMainWidget::dropEvent(TQDropEvent * event) { #ifdef _DEBUG //sDebugIn << endl; @@ -1583,7 +1583,7 @@ void KMainWidget::dropEvent(TQDropEvent * event) } -void KMainWidget::slotCopyToClipboard() +void TDEMainWidget::slotCopyToClipboard() { #ifdef _DEBUG //sDebugIn << endl; @@ -1605,7 +1605,7 @@ void KMainWidget::slotCopyToClipboard() } -void KMainWidget::slotMoveToBegin() +void TDEMainWidget::slotMoveToBegin() { #ifdef _DEBUG sDebugIn << endl; @@ -1620,7 +1620,7 @@ void KMainWidget::slotMoveToBegin() } -void KMainWidget::slotMoveToEnd() +void TDEMainWidget::slotMoveToEnd() { #ifdef _DEBUG sDebugIn << endl; @@ -1634,7 +1634,7 @@ void KMainWidget::slotMoveToEnd() } -void KMainWidget::slotOpenIndividual() +void TDEMainWidget::slotOpenIndividual() { #ifdef _DEBUG sDebugIn << endl; @@ -1650,7 +1650,7 @@ void KMainWidget::slotOpenIndividual() #endif } -bool KMainWidget::queryClose() +bool TDEMainWidget::queryClose() { if( kapp->sessionSaving()) return true; @@ -1658,7 +1658,7 @@ bool KMainWidget::queryClose() return false; } -void KMainWidget::setAutoSave() +void TDEMainWidget::setAutoSave() { #ifdef _DEBUG sDebugIn << endl; @@ -1676,7 +1676,7 @@ void KMainWidget::setAutoSave() -void KMainWidget::setAutoDisconnect() +void TDEMainWidget::setAutoDisconnect() { #ifdef _DEBUG sDebugIn << endl; @@ -1690,7 +1690,7 @@ void KMainWidget::setAutoDisconnect() #endif } -void KMainWidget::slotPreferences() +void TDEMainWidget::slotPreferences() { #ifdef _DEBUG sDebugIn << endl; @@ -1706,12 +1706,12 @@ void KMainWidget::slotPreferences() #endif } -void KMainWidget::slotConfigureNotifications() +void TDEMainWidget::slotConfigureNotifications() { KNotifyDialog::configure(this); } -void KMainWidget::slotToggleLogWindow() +void TDEMainWidget::slotToggleLogWindow() { #ifdef _DEBUG sDebugIn << endl; @@ -1729,7 +1729,7 @@ void KMainWidget::slotToggleLogWindow() } -void KMainWidget::slotToggleAnimation() +void TDEMainWidget::slotToggleAnimation() { #ifdef _DEBUG sDebugIn << endl; @@ -1751,7 +1751,7 @@ void KMainWidget::slotToggleAnimation() #endif } -void KMainWidget::slotToggleOfflineMode() +void TDEMainWidget::slotToggleOfflineMode() { #ifdef _DEBUG sDebugIn "ksettings.b_offlineMode = " << ksettings.b_offlineMode << endl; @@ -1781,7 +1781,7 @@ void KMainWidget::slotToggleOfflineMode() } -void KMainWidget::slotToggleExpertMode() +void TDEMainWidget::slotToggleExpertMode() { #ifdef _DEBUG sDebugIn << endl; @@ -1802,7 +1802,7 @@ void KMainWidget::slotToggleExpertMode() } -void KMainWidget::slotToggleUseLastDir() +void TDEMainWidget::slotToggleUseLastDir() { #ifdef _DEBUG sDebugIn << endl; @@ -1822,7 +1822,7 @@ void KMainWidget::slotToggleUseLastDir() } -void KMainWidget::slotToggleAutoDisconnect() +void TDEMainWidget::slotToggleAutoDisconnect() { #ifdef _DEBUG sDebugIn << endl; @@ -1843,7 +1843,7 @@ void KMainWidget::slotToggleAutoDisconnect() } -void KMainWidget::slotToggleAutoShutdown() +void TDEMainWidget::slotToggleAutoShutdown() { #ifdef _DEBUG sDebugIn << endl; @@ -1866,7 +1866,7 @@ void KMainWidget::slotToggleAutoShutdown() } -void KMainWidget::slotToggleAutoPaste() +void TDEMainWidget::slotToggleAutoPaste() { #ifdef _DEBUG sDebugIn << endl; @@ -1889,7 +1889,7 @@ void KMainWidget::slotToggleAutoPaste() } -void KMainWidget::slotToggleDropTarget() +void TDEMainWidget::slotToggleDropTarget() { #ifdef _DEBUG sDebugIn << endl; @@ -1913,7 +1913,7 @@ void KMainWidget::slotToggleDropTarget() } -void KMainWidget::slotKonquerorIntegration() +void TDEMainWidget::slotKonquerorIntegration() { #ifdef _DEBUG sDebugIn << endl; @@ -1940,7 +1940,7 @@ void KMainWidget::slotKonquerorIntegration() } -void KMainWidget::slotPopupMenu(Transfer * item) +void TDEMainWidget::slotPopupMenu(Transfer * item) { #ifdef _DEBUG sDebugIn << endl; @@ -1963,7 +1963,7 @@ void KMainWidget::slotPopupMenu(Transfer * item) } -void KMainWidget::setListFont() +void TDEMainWidget::setListFont() { #ifdef _DEBUG sDebugIn << endl; @@ -1976,7 +1976,7 @@ void KMainWidget::setListFont() #endif } -void KMainWidget::slotUpdateActions() +void TDEMainWidget::slotUpdateActions() { #ifdef _DEBUG sDebugIn << endl; @@ -2137,7 +2137,7 @@ void KMainWidget::slotUpdateActions() } -void KMainWidget::updateStatusBar() +void TDEMainWidget::updateStatusBar() { #ifdef _DEBUG //sDebugIn << endl; @@ -2201,7 +2201,7 @@ void KMainWidget::updateStatusBar() } -void KMainWidget::onlineDisconnect() +void TDEMainWidget::onlineDisconnect() { #ifdef _DEBUG sDebugIn << endl; @@ -2229,7 +2229,7 @@ void KMainWidget::onlineDisconnect() } -void KMainWidget::slotCheckConnection() +void TDEMainWidget::slotCheckConnection() { #ifdef _DEBUG //sDebugIn << endl; @@ -2255,7 +2255,7 @@ void KMainWidget::slotCheckConnection() } -void KMainWidget::checkOnline() +void TDEMainWidget::checkOnline() { #ifdef _DEBUG //sDebugIn << endl; @@ -2351,7 +2351,7 @@ static int sockets_open() /** No descriptions */ -void KMainWidget::customEvent(TQCustomEvent * _e) +void TDEMainWidget::customEvent(TQCustomEvent * _e) { #ifdef _DEBUG //sDebugIn << endl; @@ -2433,7 +2433,7 @@ void KMainWidget::customEvent(TQCustomEvent * _e) #endif } -TQString KMainWidget::getSaveDirectoryFor( const TQString& filename ) const +TQString TDEMainWidget::getSaveDirectoryFor( const TQString& filename ) const { // first set destination directory to current directory ( which is also last used ) TQString destDir = ksettings.lastDirectory; @@ -2456,7 +2456,7 @@ TQString KMainWidget::getSaveDirectoryFor( const TQString& filename ) const return destDir; } -bool KMainWidget::sanityChecksSuccessful( const KURL& url ) +bool TDEMainWidget::sanityChecksSuccessful( const KURL& url ) { if (!url.isValid() || !KProtocolInfo::supportsReading( url ) ) { @@ -2508,12 +2508,12 @@ bool KMainWidget::sanityChecksSuccessful( const KURL& url ) return true; } -bool KMainWidget::isDropTargetVisible() const +bool TDEMainWidget::isDropTargetVisible() const { return m_showDropTarget; } -void KMainWidget::setDropTargetVisible( bool setVisible ) +void TDEMainWidget::setDropTargetVisible( bool setVisible ) { if ( setVisible != isDropTargetVisible() ) { @@ -2521,23 +2521,23 @@ void KMainWidget::setDropTargetVisible( bool setVisible ) } } -void KMainWidget::setOfflineMode( bool offline ) +void TDEMainWidget::setOfflineMode( bool offline ) { if ( ksettings.b_offlineMode != offline ) slotToggleOfflineMode(); } -bool KMainWidget::isOfflineMode() const +bool TDEMainWidget::isOfflineMode() const { return ksettings.b_offlineMode; } -void KMainWidget::activateDropTarget() +void TDEMainWidget::activateDropTarget() { setDropTargetVisible( true ); } -void KMainWidget::slotShowMenubar() +void TDEMainWidget::slotShowMenubar() { if(m_menubarAction->isChecked()) menuBar()->show(); diff --git a/kget/kmainwidget.h b/kget/kmainwidget.h index efbcf318..cd2ce92d 100644 --- a/kget/kmainwidget.h +++ b/kget/kmainwidget.h @@ -35,9 +35,9 @@ #include "kget_iface.h" -class KAction; -//class KToggleAction; -class KRadioAction; +class TDEAction; +//class TDEToggleAction; +class TDERadioAction; class DockWidget; class DropTarget; @@ -49,7 +49,7 @@ class TransferList; class Settings; -class KMainWidget:public KMainWindow, virtual public KGetIface +class TDEMainWidget:public TDEMainWindow, virtual public KGetIface { Q_OBJECT @@ -59,8 +59,8 @@ public: enum StatusbarFields { ID_TOTAL_TRANSFERS = 1, ID_TOTAL_FILES, ID_TOTAL_SIZE, ID_TOTAL_TIME , ID_TOTAL_SPEED }; - KMainWidget(bool bShowMain = false); - ~KMainWidget(); + TDEMainWidget(bool bShowMain = false); + ~TDEMainWidget(); void addTransfer( const TQString& src ); void addTransferEx( const KURL& url, @@ -82,10 +82,10 @@ public: friend class Settings; // Actions - KToggleAction *m_paShowLog; - KToggleAction *m_menubarAction; - KAction *m_paPreferences; - KAction *m_paQuit; + TDEToggleAction *m_paShowLog; + TDEToggleAction *m_menubarAction; + TDEAction *m_paPreferences; + TDEAction *m_paQuit; bool b_viewLogWindow; void readTransfersEx(const KURL & url); @@ -210,24 +210,24 @@ private: int _sock; // Actions - KAction *m_paOpenTransfer, *m_paPasteTransfer, *m_paExportTransfers, *m_paImportTransfers; - KAction *m_paImportText; + TDEAction *m_paOpenTransfer, *m_paPasteTransfer, *m_paExportTransfers, *m_paImportTransfers; + TDEAction *m_paImportText; - KAction *m_paMoveToBegin, *m_paMoveToEnd, *m_paCopy, *m_paIndividual; - KAction *m_paResume, *m_paPause, *m_paDelete, *m_paRestart; - KRadioAction *m_paQueue, *m_paTimer, *m_paDelay; + TDEAction *m_paMoveToBegin, *m_paMoveToEnd, *m_paCopy, *m_paIndividual; + TDEAction *m_paResume, *m_paPause, *m_paDelete, *m_paRestart; + TDERadioAction *m_paQueue, *m_paTimer, *m_paDelay; - KToggleAction *m_paUseAnimation; - KToggleAction *m_paExpertMode, *m_paUseLastDir, *m_paOfflineMode; - KToggleAction *m_paAutoDisconnect, *m_paAutoShutdown, *m_paAutoPaste; + TDEToggleAction *m_paUseAnimation; + TDEToggleAction *m_paExpertMode, *m_paUseLastDir, *m_paOfflineMode; + TDEToggleAction *m_paAutoDisconnect, *m_paAutoShutdown, *m_paAutoPaste; - KAction *m_paDropTarget; - KAction *m_paKonquerorIntegration; + TDEAction *m_paDropTarget; + TDEAction *m_paKonquerorIntegration; bool m_showDropTarget; }; -extern KMainWidget *kmain; +extern TDEMainWidget *kmain; extern DropTarget *kdrop; #endif // _KMAINWIDGET_H_ diff --git a/kget/main.cpp b/kget/main.cpp index 27b8634b..ea6ab350 100644 --- a/kget/main.cpp +++ b/kget/main.cpp @@ -101,7 +101,7 @@ static void cleanup(void) class KGetApp : public KUniqueApplication { private: - KMainWidget *kmainwidget; + TDEMainWidget *kmainwidget; public: KGetApp() : KUniqueApplication() @@ -141,9 +141,9 @@ public: if (kmainwidget==0) { if(args->count()>0) - kmainwidget=new KMainWidget(true); + kmainwidget=new TDEMainWidget(true); else - kmainwidget=new KMainWidget(); + kmainwidget=new TDEMainWidget(); setMainWidget(kmain); } diff --git a/kget/transfer.cpp b/kget/transfer.cpp index 477183f3..e9631091 100644 --- a/kget/transfer.cpp +++ b/kget/transfer.cpp @@ -55,7 +55,7 @@ extern Settings ksettings; Transfer::Transfer(TransferList * _view, const KURL & _src, const KURL & _dest, const uint _id) : TQObject( _view ), - KListViewItem(_view), + TDEListViewItem(_view), dlgIndividual( 0 ) { sDebugIn << endl; @@ -72,7 +72,7 @@ Transfer::Transfer(TransferList * _view, const KURL & _src, const KURL & _dest, Transfer::Transfer(TransferList * _view, Transfer * after, const KURL & _src, const KURL & _dest, const uint _id) : TQObject( _view ), - KListViewItem(_view, (TQListViewItem *) after), + TDEListViewItem(_view, (TQListViewItem *) after), src(_src), dest(_dest), view(_view), dlgIndividual( 0 ) { @@ -124,19 +124,19 @@ Transfer::init(const uint _id) connect(this, TQT_SIGNAL(log(uint, const TQString &, const TQString &)), kmain->logwin(), TQT_SLOT(logTransfer(uint, const TQString &, const TQString &))); // setup actions - m_paResume = new KAction(i18n("&Resume"), "tool_resume", 0, this, TQT_SLOT(slotResume()), this, "resume"); + m_paResume = new TDEAction(i18n("&Resume"), "tool_resume", 0, this, TQT_SLOT(slotResume()), this, "resume"); - m_paPause = new KAction(i18n("&Pause"), "tool_pause", 0, this, TQT_SLOT(slotRequestPause()), this, "pause"); + m_paPause = new TDEAction(i18n("&Pause"), "tool_pause", 0, this, TQT_SLOT(slotRequestPause()), this, "pause"); - m_paDelete = new KAction(i18n("&Delete"), "editdelete", 0, this, TQT_SLOT(slotRequestRemove()), this, "delete"); + m_paDelete = new TDEAction(i18n("&Delete"), "editdelete", 0, this, TQT_SLOT(slotRequestRemove()), this, "delete"); - m_paRestart = new KAction(i18n("Re&start"), "tool_restart", 0, this, TQT_SLOT(slotRequestRestart()), this, "restart"); + m_paRestart = new TDEAction(i18n("Re&start"), "tool_restart", 0, this, TQT_SLOT(slotRequestRestart()), this, "restart"); - m_paQueue = new KRadioAction(i18n("&Queue"), "tool_queue", 0, this, TQT_SLOT(slotQueue()), this, "queue"); + m_paQueue = new TDERadioAction(i18n("&Queue"), "tool_queue", 0, this, TQT_SLOT(slotQueue()), this, "queue"); - m_paTimer = new KRadioAction(i18n("&Timer"), "tool_timer", 0, this, TQT_SLOT(slotRequestSchedule()), this, "timer"); + m_paTimer = new TDERadioAction(i18n("&Timer"), "tool_timer", 0, this, TQT_SLOT(slotRequestSchedule()), this, "timer"); - m_paDelay = new KRadioAction(i18n("De&lay"), "tool_delay", 0, this, TQT_SLOT(slotRequestDelay()), this, "delay"); + m_paDelay = new TDERadioAction(i18n("De&lay"), "tool_delay", 0, this, TQT_SLOT(slotRequestDelay()), this, "delay"); m_paQueue->setExclusiveGroup("TransferMode"); m_paTimer->setExclusiveGroup("TransferMode"); @@ -144,7 +144,7 @@ Transfer::init(const uint _id) // Actions - // m_paDock = new KAction(i18n("&Dock"),"tool_dock", 0, this,TQT_SLOT(slotRequestDelay()), this, "dockIndividual"); + // m_paDock = new TDEAction(i18n("&Dock"),"tool_dock", 0, this,TQT_SLOT(slotRequestDelay()), this, "dockIndividual"); // setup individual transfer dialog diff --git a/kget/transfer.h b/kget/transfer.h index f147f011..2673faf7 100644 --- a/kget/transfer.h +++ b/kget/transfer.h @@ -41,8 +41,8 @@ class TQTimer; class KSimpleConfig; -class KAction; -class KRadioAction; +class TDEAction; +class TDERadioAction; @@ -50,7 +50,7 @@ class DlgIndividual; class TransferList; -class Transfer:public TQObject, public KListViewItem +class Transfer:public TQObject, public TDEListViewItem { Q_OBJECT @@ -146,9 +146,9 @@ public: // actions - KAction *m_paResume, *m_paPause, *m_paDelete, *m_paRestart; - //KAction *m_paDock; - KRadioAction *m_paQueue, *m_paTimer, *m_paDelay; + TDEAction *m_paResume, *m_paPause, *m_paDelete, *m_paRestart; + //TDEAction *m_paDock; + TDERadioAction *m_paQueue, *m_paTimer, *m_paDelay; public: void slotExecPause(); diff --git a/kget/transferlist.cpp b/kget/transferlist.cpp index 768460d1..16d2f4d6 100644 --- a/kget/transferlist.cpp +++ b/kget/transferlist.cpp @@ -53,7 +53,7 @@ static int defaultColumnWidth[] = { TransferList::TransferList(TQWidget * parent, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { // enable selection of more than one item setSelectionMode( TQListView::Extended ); diff --git a/kget/transferlist.h b/kget/transferlist.h index 8b4772cf..3ffa22ac 100644 --- a/kget/transferlist.h +++ b/kget/transferlist.h @@ -54,7 +54,7 @@ public: }; -class TransferList:public KListView +class TransferList:public TDEListView { Q_OBJECT diff --git a/knewsticker/knewsticker.cpp b/knewsticker/knewsticker.cpp index 735b5106..1c8854e9 100644 --- a/knewsticker/knewsticker.cpp +++ b/knewsticker/knewsticker.cpp @@ -402,7 +402,7 @@ void KNewsTicker::setupArrowButton() } KNewsTickerMenu::KNewsTickerMenu(KNewsTicker *parent, const char *name) - : KPopupMenu(parent, name), + : TDEPopupMenu(parent, name), m_parent(parent), m_fullMenu(false) { @@ -428,7 +428,7 @@ void KNewsTickerMenu::populateMenu() for (; nIt != sources.end(); ++nIt) { NewsSourceBase::Ptr ns = *nIt; - KPopupMenu *submenu = new KPopupMenu; + TDEPopupMenu *submenu = new TDEPopupMenu; int checkNewsId = submenu->insertItem(lookIcon, i18n("Check News"), TQT_TQOBJECT(this), TQT_SLOT(slotCheckNews(int)), 0, sources.findIndex(ns) + 1000); setItemParameter(checkNewsId, sources.findIndex(ns)); diff --git a/knewsticker/knewsticker.h b/knewsticker/knewsticker.h index 85c57ce3..c70f568b 100644 --- a/knewsticker/knewsticker.h +++ b/knewsticker/knewsticker.h @@ -120,7 +120,7 @@ class KNewsTicker : public KPanelApplet, virtual public ConfigIface, TQStringList m_pendingNewsUpdates; }; -class KNewsTickerMenu : public KPopupMenu +class KNewsTickerMenu : public TDEPopupMenu { Q_OBJECT // diff --git a/knewsticker/knewstickerconfig.cpp b/knewsticker/knewstickerconfig.cpp index aec193cb..6bb6407c 100644 --- a/knewsticker/knewstickerconfig.cpp +++ b/knewsticker/knewstickerconfig.cpp @@ -103,7 +103,7 @@ KNewsTickerConfig::KNewsTickerConfig(ConfigAccess *cfg, TQWidget *parent, const m_child->niInterval->setRange(4, 180); m_child->lvNewsSources->setShowSortIndicator(true); - m_child->lvNewsSources->setSelectionModeExt(KListView::Extended); + m_child->lvNewsSources->setSelectionModeExt(TDEListView::Extended); m_child->lvNewsSources->setAcceptDrops(true); m_child->lvNewsSources->viewport()->setAcceptDrops(true); m_child->lvNewsSources->viewport()->installEventFilter(this); @@ -112,8 +112,8 @@ KNewsTickerConfig::KNewsTickerConfig(ConfigAccess *cfg, TQWidget *parent, const connect(m_newsIconMgr, TQT_SIGNAL(gotIcon(const KURL &, const TQPixmap &)), TQT_SLOT(slotGotNewsIcon(const KURL &, const TQPixmap &))); connect(m_child->bChooseFont, TQT_SIGNAL(clicked()), TQT_SLOT(slotChooseFont())); - connect(m_child->lvNewsSources, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint &)), - TQT_SLOT(slotNewsSourceContextMenu(KListView *, TQListViewItem *, const TQPoint &))); + connect(m_child->lvNewsSources, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)), + TQT_SLOT(slotNewsSourceContextMenu(TDEListView *, TQListViewItem *, const TQPoint &))); connect(m_child->lvNewsSources, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotNewsSourceSelectionChanged())); connect(m_child->lvNewsSources, TQT_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)), @@ -221,7 +221,7 @@ void KNewsTickerConfig::save() bool KNewsTickerConfig::eventFilter(TQObject *o, TQEvent *e) { // - // "if ( e->type() == TQEvent::DragEnter ) {" shoult normaly be enough. but there must be a bug somewhere in KListView. + // "if ( e->type() == TQEvent::DragEnter ) {" shoult normaly be enough. but there must be a bug somewhere in TDEListView. if ( e->type() == TQEvent::DragMove ) { // TQDragEnterEvent *d = (TQDragEnterEvent*)e; @@ -349,12 +349,12 @@ void KNewsTickerConfig::removeFilter(TQListViewItem *item) } } -void KNewsTickerConfig::slotNewsSourceContextMenu(KListView *, TQListViewItem *item, const TQPoint &) +void KNewsTickerConfig::slotNewsSourceContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &) { if (!dynamic_cast(item)) return; - KPopupMenu *menu = new KPopupMenu(); + TDEPopupMenu *menu = new TDEPopupMenu(); TQPixmap addIcon = SmallIcon(TQString::fromLatin1("news_subscribe")); TQPixmap modifyIcon = SmallIcon(TQString::fromLatin1("edit")); @@ -388,11 +388,11 @@ void KNewsTickerConfig::slotNewsSourceContextMenu(KListView *, TQListViewItem *i void KNewsTickerConfig::slotChooseFont() { - KFontDialog fd(this, "Font Dialog", false, true); + TDEFontDialog fd(this, "Font Dialog", false, true); fd.setFont(m_font); - if (fd.exec() == KFontDialog::Accepted) { + if (fd.exec() == TDEFontDialog::Accepted) { if (m_font != fd.font()) { m_font = fd.font(); } diff --git a/knewsticker/knewstickerconfig.h b/knewsticker/knewstickerconfig.h index 057372cf..559cdf29 100644 --- a/knewsticker/knewstickerconfig.h +++ b/knewsticker/knewstickerconfig.h @@ -78,7 +78,7 @@ class KNewsTickerConfig : public KDialogBase void getNewsIcon(NewsSourceItem *, const KURL &); protected slots: - void slotNewsSourceContextMenu(KListView *, TQListViewItem *, const TQPoint &); + void slotNewsSourceContextMenu(TDEListView *, TQListViewItem *, const TQPoint &); void slotChooseFont(); void slotAddNewsSource(); void slotAddFilter(); diff --git a/knewsticker/knewstickerconfigwidget.ui b/knewsticker/knewstickerconfigwidget.ui index 72f73171..200144c7 100644 --- a/knewsticker/knewstickerconfigwidget.ui +++ b/knewsticker/knewstickerconfigwidget.ui @@ -244,7 +244,7 @@ The default value (30 minutes) should be appropriate and reasonable in most case 4 - + Name of Site @@ -382,7 +382,7 @@ Note that you can also right-click on the list to open a menu which lets you add 4 - + Action diff --git a/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlgwidget.ui b/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlgwidget.ui index fa2f0751..beb57001 100644 --- a/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlgwidget.ui +++ b/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlgwidget.ui @@ -173,7 +173,7 @@ This list shows the headlines and links to the corresponding complete articles which have been stored in the source file whose properties you are watching. - + lbArticles 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 @@ - + Name 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 @@ groupList - + Groups @@ -343,7 +343,7 @@ <p><i>Note</i>: 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.</p> - + Account 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 @@ <p><h2>Select IM Accounts</h2></p> - + Account 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(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 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(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 */ -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( 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( 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 Copyright (c) 2003 by Martijn Klingens @@ -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( widget ); + TDEToolBar *bar = static_cast( 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 Copyright (c) 2003 by Martijn Klingens @@ -23,7 +23,7 @@ #include -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 @@ Remove selected account - + Protocol 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 @@ Horizontal - + styleList 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 @@ Background color: - + fontFace @@ -253,7 +253,7 @@ Group font: - + mGroupFont @@ -282,7 +282,7 @@ Normal font: - + mNormalFont @@ -311,7 +311,7 @@ Small font: - + mSmallFont 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 @@ Select emoticon theme: - + icon_theme_list 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::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 @@ - + klvEmoticons 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 #include -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 @@ unnamed - + @@ -179,7 +179,7 @@ - + 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 @@ mPhones - + mWorkPhones @@ -49,7 +49,7 @@ Extended - + mMobilePhones @@ -57,7 +57,7 @@ Extended - + mHomePhones @@ -124,7 +124,7 @@ comboBox2 - + mEmails 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 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 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(topLevelWidget()); + TDEMainWindow *window = dynamic_cast(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( + TDEPopupMenu *popup = dynamic_cast( 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: ' ()'", "%2 <%1>" ). arg( c->contactId(), nick ); @@ -727,7 +727,7 @@ void KopeteContactListView::slotContextMenu( KListView * /*listview*/, } else if ( groupvi && nb == 1 ) { - KPopupMenu *popup = dynamic_cast( + TDEPopupMenu *popup = dynamic_cast( 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( + TDEPopupMenu *popup = dynamic_cast( window->factory()->container( "contactlistitems_popup", window ) ); if ( popup ) popup->popup( point ); } else { - KPopupMenu *popup = dynamic_cast( + TDEPopupMenu *popup = dynamic_cast( 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 m_accountAddContactMap; + TDEActionMenu *actionAddContact; + TQMap 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 Copyright (c) 2002-2004 by Martijn Klingens @@ -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(KListViewItem::parent()); + KopeteGroupViewItem *group_item = dynamic_cast(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 Copyright (c) 2002-2003 by Olivier Goffart @@ -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 it(*KMainWindow::memberList); + TQPtrListIterator 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( target ); - KAction* resetAction = actionCollection()->action( "quicksearch_reset" ); + TDEToolBar* toolBar = dynamic_cast( 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( 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 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( sender() )); - m_globalStatusMessageMenu = static_cast( TQT_TQWIDGET(senderObj) ); + m_globalStatusMessageMenu = static_cast( 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. */ -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 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( 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 #include -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 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 */ -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 it( mCommands ); it.current(); ++it ) { - KAction *a = static_cast( it.current() ); + TDEAction *a = static_cast( 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 processMap; bool inCommand; - TQPtrList m_commands; + TQPtrList 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 *customActions = customContextMenuActions( manager ); + TQPtrList *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 *Contact::customContextMenuActions() +TQPtrList *Contact::customContextMenuActions() { return 0L; } -TQPtrList *Contact::customContextMenuActions( ChatSession * /* manager */ ) +TQPtrList *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 *customContextMenuActions(); + virtual TQPtrList *customContextMenuActions(); /** * @todo What is this function for ? */ - virtual TQPtrList *customContextMenuActions( ChatSession *manager ); + virtual TQPtrList *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( account->child( actionName ) ) ) ) + if ( !( action = static_cast( 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 //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 #include -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 */ 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 @@ - + Photo @@ -153,7 +153,7 @@ kListViewSearchLine - + kListViewSearchLine 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 @@ -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 @@ -29,7 +29,7 @@ class Contact; /** * @author Martijn Klingens */ -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 * @author Richard Smith */ -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 */ -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) &Cancel - + Protocols 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 @@ unnamed - + Alias 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::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 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 -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 @@ Rename... - + Filters 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 #include -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(i); + TDEListViewDateItem* item = static_cast(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(it); + TDEListViewDateItem *item = static_cast(it); if (!item) return; @@ -420,11 +420,11 @@ void HistoryDialog::slotSearchTextChanged(const TQString& searchText) void HistoryDialog::listViewShowElements(bool s) { - KListViewDateItem* item = static_cast(mMainWidget->dateListView->firstChild()); + TDEListViewDateItem* item = static_cast(mMainWidget->dateListView->firstChild()); while (item != 0) { item->setVisible(s); - item = static_cast(item->nextSibling()); + item = static_cast(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(mMainWidget->dateListView->firstChild()); + for(TDEListViewDateItem *curItem = static_cast(mMainWidget->dateListView->firstChild()); curItem != 0; - curItem = static_cast(curItem->nextSibling()) + curItem = static_cast(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 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 @@ 0 - + dateSearchLine @@ -173,7 +173,7 @@ - + Date 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::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 #include -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. Use &specified media player - + kcfg_SelectedMediaPlayer 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 @@ Choose the accounts to ignore: - + Account 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 @@ unnamed - + mColorsListBox 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 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(p->friendsModeAction)->setChecked( p->forFriends ); + static_cast(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* +TQPtrList* GaduContact::customContextMenuActions() { - TQPtrList *fakeCollection = new TQPtrList(); + TQPtrList *fakeCollection = new TQPtrList(); //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 -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&, TQMap& ); - virtual TQPtrList* customContextMenuActions(); + virtual TQPtrList* 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 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 @@ unnamed - + Status 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 -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 *GroupWiseContact::customContextMenuActions() +TQPtrList *GroupWiseContact::customContextMenuActions() { - TQPtrList *m_actionCollection = new TQPtrList; + TQPtrList *m_actionCollection = new TQPtrList; // 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 *customContextMenuActions(); + virtual TQPtrList *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( view(false)->mainWidget()->topLevelWidget() ) : 0L; + TQWidget * w = view(false) ? dynamic_cast( 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( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( 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( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( 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( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( 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( view(false)->mainWidget()->topLevelWidget() ) : + TQWidget * w = ( view(false) ? dynamic_cast( 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 m_inviteActions; + TDEActionMenu *m_actionInvite; + TQPtrList 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 @@ kListBox1 - + m_acl 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 @@ unnamed - + Chatroom 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 @@ Additional properties: - + Property 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 @@ unnamed - + Name 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 *IRCChannelContact::customContextMenuActions() +TQPtrList *IRCChannelContact::customContextMenuActions() { - TQPtrList *mCustomActions = new TQPtrList(); + TQPtrList *mCustomActions = new TQPtrList(); 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 *customContextMenuActions(); + virtual TQPtrList *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 *actions = m_user->customContextMenuActions( parent ); + TQPtrList *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 *actions = m_user->customContextMenuActions( parent ); + TQPtrList *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 *IRCProtocol::customChatWindowPopupActions( const Kopete::Message &m, DOM::Node &n ) +TQPtrList *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 *customChatWindowPopupActions( const Kopete::Message &, DOM::Node & ); + virtual TQPtrList *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 #include -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 *IRCUserContact::customContextMenuActions( Kopete::ChatSession *manager ) +TQPtrList *IRCUserContact::customContextMenuActions( Kopete::ChatSession *manager ) { if( manager ) { - TQPtrList *mCustomActions = new TQPtrList (); + TQPtrList *mCustomActions = new TQPtrList (); mActiveManager = manager; Kopete::ContactPtrList members = mActiveManager->members(); IRCChannelContact *isChannel = dynamic_cast( 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 (*!*user@host.domain.net)"), 0, this, + actionBanMenu->insert( new TDEAction(i18n("User@Host (*!*user@host.domain.net)"), 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 *customContextMenuActions( Kopete::ChatSession *manager ); + virtual TQPtrList *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 #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 #include -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 @@ unnamed - + CTCP @@ -915,7 +915,7 @@ - + Command 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 *customContextMenuActions () = 0; + virtual TQPtrList *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 *JabberContact::customContextMenuActions () +TQPtrList *JabberContact::customContextMenuActions () { - TQPtrList *actionCollection = new TQPtrList(); + TQPtrList *actionCollection = new TQPtrList(); - 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 *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 *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 *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( sender() )->name () ).toUInt (); + int currentItem = TQString ( static_cast( 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(sender())->text(); + TQString selectedResource = static_cast(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 *customContextMenuActions (); + TQPtrList *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 *JabberGroupContact::customContextMenuActions () +TQPtrList *JabberGroupContact::customContextMenuActions () { - TQPtrList *actionCollection = new TQPtrList(); + TQPtrList *actionCollection = new TQPtrList(); - 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 *customContextMenuActions (); + TQPtrList *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 *JabberGroupMemberContact::customContextMenuActions () +TQPtrList *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 *customContextMenuActions (); + TQPtrList *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 *customActions = myself()->customContextMenuActions( ); + TQPtrList *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( 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( view(false)->mainWidget()->topLevelWidget() ) : 0L; + TDEMainWindow *w= view(false) ? dynamic_cast( 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 it=w->toolBarIterator() ; - KAction *imgAction=actionCollection()->action("msnDisplayPicture"); + TQPtrListIterator 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 m_inviteactions; - KAction *m_actionNudge; - KAction *m_actionWebcamReceive; - KAction *m_actionWebcamSend; + TDEActionMenu *m_actionInvite; + TQPtrList m_inviteactions; + TDEAction *m_actionNudge; + TDEAction *m_actionWebcamReceive; + TDEAction *m_actionWebcamSend; //Messages sent before the ending of the connection are queued TQValueList 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 *MSNContact::customContextMenuActions() +TQPtrList *MSNContact::customContextMenuActions() { - TQPtrList *m_actionCollection = new TQPtrList; + TQPtrList *m_actionCollection = new TQPtrList; // 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 *customContextMenuActions(); + virtual TQPtrList *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 *AIMContact::customContextMenuActions() +TQPtrList *AIMContact::customContextMenuActions() { - TQPtrList *actionCollection = new TQPtrList(); + TQPtrList *actionCollection = new TQPtrList(); 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 *customContextMenuActions(); + TQPtrList *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 *ICQContact::customContextMenuActions() +TQPtrList *ICQContact::customContextMenuActions() { - TQPtrList *actionCollection = new TQPtrList(); + TQPtrList *actionCollection = new TQPtrList(); /* TQString awTxt; TQString awIcn; @@ -684,12 +684,12 @@ TQPtrList *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 *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 *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 *customContextMenuActions(); + virtual TQPtrList *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 @@ - + UIN 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* SMSContact::customContextMenuActions() +TQPtrList* SMSContact::customContextMenuActions() { - TQPtrList *m_actionCollection = new TQPtrList(); + TQPtrList *m_actionCollection = new TQPtrList(); 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* customContextMenuActions(); + TQPtrList* 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 #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 *TestbedContact::customContextMenuActions() //OBSOLETE +TQPtrList *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 *customContextMenuActions(); + virtual TQPtrList *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 * WPContact::customContextMenuActions() +TQPtrList * 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 *customContextMenuActions(); + virtual TQPtrList *customContextMenuActions(); virtual Kopete::ChatSession *manager(Kopete::Contact::CanCreateFlags = Kopete::Contact::CannotCreate); virtual void serialize(TQMap &serializedData, TQMap &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( 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( 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( view(false)->mainWidget()->topLevelWidget() ) : 0L; + TDEMainWindow *w= view(false) ? dynamic_cast( 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 it=w->toolBarIterator() ; - KAction *imgAction=actionCollection()->action("yahooDisplayPicture"); + TQPtrListIterator 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 *YahooContact::customContextMenuActions() +TQPtrList *YahooContact::customContextMenuActions() { - TQPtrList *actionCollection = new TQPtrList(); + TQPtrList *actionCollection = new TQPtrList(); 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 *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 *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 *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 *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 *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 *customContextMenuActions(); + virtual TQPtrList *customContextMenuActions(); virtual Kopete::ChatSession *manager( Kopete::Contact::CanCreateFlags canCreate= Kopete::Contact::CanCreate ); virtual void serialize( TQMap &serializedData, TQMap &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; diff --git a/kpf/src/ActiveMonitorWindow.cpp b/kpf/src/ActiveMonitorWindow.cpp index 0e0450b4..22545816 100644 --- a/kpf/src/ActiveMonitorWindow.cpp +++ b/kpf/src/ActiveMonitorWindow.cpp @@ -37,7 +37,7 @@ namespace KPF TQWidget * parent, const char * name ) - : KMainWindow(parent, name) + : TDEMainWindow(parent, name) { setCaption(i18n("Monitoring %1 - kpf").arg(server->root())); @@ -46,7 +46,7 @@ namespace KPF setCentralWidget(monitor_); killAction_ = - new KAction + new TDEAction ( i18n("&Cancel Selected Transfers"), "stop", diff --git a/kpf/src/ActiveMonitorWindow.h b/kpf/src/ActiveMonitorWindow.h index a10cb06b..63c502b9 100644 --- a/kpf/src/ActiveMonitorWindow.h +++ b/kpf/src/ActiveMonitorWindow.h @@ -26,7 +26,7 @@ #include -class KAction; +class TDEAction; namespace KPF { @@ -39,7 +39,7 @@ namespace KPF * A wrapper window is used to avoid forcing ActiveMonitor to be * toplevel, so it can be used elsewhere if desired. */ - class ActiveMonitorWindow : public KMainWindow + class ActiveMonitorWindow : public TDEMainWindow { Q_OBJECT @@ -96,7 +96,7 @@ namespace KPF ActiveMonitor * monitor_; - KAction * killAction_; + TDEAction * killAction_; }; } // End namespace KPF diff --git a/kpf/src/AppletItem.cpp b/kpf/src/AppletItem.cpp index 489b2036..6741eb19 100644 --- a/kpf/src/AppletItem.cpp +++ b/kpf/src/AppletItem.cpp @@ -64,7 +64,7 @@ namespace KPF TQString popupTitle(i18n("kpf - %1").arg(server_->root())); - popup_ = new KPopupMenu(this); + popup_ = new TDEPopupMenu(this); popup_->insertTitle (SmallIcon("kpf"), popupTitle, Title, Title); diff --git a/kpf/src/AppletItem.h b/kpf/src/AppletItem.h index e505304c..d516597f 100644 --- a/kpf/src/AppletItem.h +++ b/kpf/src/AppletItem.h @@ -27,7 +27,7 @@ #include #include -class KPopupMenu; +class TDEPopupMenu; namespace KPF { @@ -159,7 +159,7 @@ namespace KPF SingleServerConfigDialog * configDialog_; ActiveMonitorWindow * monitorWindow_; BandwidthGraph * graph_; - KPopupMenu * popup_; + TDEPopupMenu * popup_; }; } diff --git a/kpf/src/DirSelectWidget.cpp b/kpf/src/DirSelectWidget.cpp index cda49a4a..f492e1e4 100644 --- a/kpf/src/DirSelectWidget.cpp +++ b/kpf/src/DirSelectWidget.cpp @@ -42,7 +42,7 @@ namespace KPF TQWidget * parent, const char * name ) - : KListView(parent, name) + : TDEListView(parent, name) { d = new Private; d->pathToMakeVisible = pathToMakeVisible; diff --git a/kpf/src/DirSelectWidget.h b/kpf/src/DirSelectWidget.h index dc4f7e25..e542b5a2 100644 --- a/kpf/src/DirSelectWidget.h +++ b/kpf/src/DirSelectWidget.h @@ -31,7 +31,7 @@ namespace KPF /** * Allows the user to choose a directory, with some restrictions. */ - class DirSelectWidget : public KListView + class DirSelectWidget : public TDEListView { Q_OBJECT diff --git a/kppp/docking.h b/kppp/docking.h index ad447e05..31a1f4a5 100644 --- a/kppp/docking.h +++ b/kppp/docking.h @@ -60,7 +60,7 @@ private: int toggleID; PPPStats *stats; - KPopupMenu *popup_m; + TDEPopupMenu *popup_m; TQPixmap dock_none_pixmap; TQPixmap dock_left_pixmap; diff --git a/kppp/logview/main.cpp b/kppp/logview/main.cpp index 89356ea2..bdf55499 100644 --- a/kppp/logview/main.cpp +++ b/kppp/logview/main.cpp @@ -46,7 +46,7 @@ static KCmdLineOptions option[] = }; -TopWidget::TopWidget() : KMainWindow(0, "") { +TopWidget::TopWidget() : TDEMainWindow(0, "") { // Check command line args for "-kppp" TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kppp/logview/main.h b/kppp/logview/main.h index 13df9003..8b90481e 100644 --- a/kppp/logview/main.h +++ b/kppp/logview/main.h @@ -26,7 +26,7 @@ #include #include "monthly.h" -class TopWidget : public KMainWindow { +class TopWidget : public TDEMainWindow { Q_OBJECT public: diff --git a/kppp/logview/monthly.cpp b/kppp/logview/monthly.cpp index 0838417d..35937219 100644 --- a/kppp/logview/monthly.cpp +++ b/kppp/logview/monthly.cpp @@ -172,7 +172,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : { tl = 0; - lv = new KListView(this); + lv = new TDEListView(this); lv->addColumn(i18n("Connection")); lv->addColumn(i18n("Day")); lv->addColumn(i18n("From")); @@ -198,7 +198,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) : selectionItem = 0L; connect(lv, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChanged())); - lv2 = new KListView(this); + lv2 = new TDEListView(this); lv2->addColumn(i18n("Connection")); lv2->addColumn(i18n("Duration")); lv2->addColumn(i18n("Costs")); diff --git a/kppp/logview/monthly.h b/kppp/logview/monthly.h index c38499f5..af0d7757 100644 --- a/kppp/logview/monthly.h +++ b/kppp/logview/monthly.h @@ -32,7 +32,7 @@ #include -class KListView; +class TDEListView; class TQComboBox; class LogListItem; @@ -68,8 +68,8 @@ private: TQComboBox *cboConnections; KButtonBox *bbox; - KListView *lv; - KListView *lv2; + TDEListView *lv; + TDEListView *lv2; LogListItem* selectionItem; TQLabel *title; TQPushButton *next, *prev, *today, *exportBttn; diff --git a/kppp/miniterm.cpp b/kppp/miniterm.cpp index 25d0d94a..51d1b9d2 100644 --- a/kppp/miniterm.cpp +++ b/kppp/miniterm.cpp @@ -100,7 +100,7 @@ MiniTerm::~MiniTerm() { void MiniTerm::setupToolbar() { - toolbar = new KToolBar( this ); + toolbar = new TDEToolBar( this ); toolbar->insertButton("exit", 0, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), @@ -114,7 +114,7 @@ void MiniTerm::setupToolbar() { TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(help()), TRUE, i18n("Help")); - toolbar->setBarPos( KToolBar::Top ); + toolbar->setBarPos( TDEToolBar::Top ); toolbar->setMovingEnabled(false); toolbar->updateRects(true); } diff --git a/kppp/miniterm.h b/kppp/miniterm.h index 910ee0a4..e58e5603 100644 --- a/kppp/miniterm.h +++ b/kppp/miniterm.h @@ -38,7 +38,7 @@ class KHelpMenu; class TQTimer; class TQMenuBar; -class KToolBar; +class TDEToolBar; class KHelpMenu; class TQPushButton; class TQLabel; @@ -84,7 +84,7 @@ protected: TQTimer *inittimer; TQMenuBar * menubar; - KToolBar * toolbar; + TDEToolBar * toolbar; TQPopupMenu * m_file; TQPopupMenu * m_edit; TQPopupMenu * m_options; diff --git a/krdc/hostprofiles.ui b/krdc/hostprofiles.ui index 25f52e48..f32ef2e5 100644 --- a/krdc/hostprofiles.ui +++ b/krdc/hostprofiles.ui @@ -19,7 +19,7 @@ 0 - + Host diff --git a/krdc/hostprofiles.ui.h b/krdc/hostprofiles.ui.h index a1577cc1..36be0998 100644 --- a/krdc/hostprofiles.ui.h +++ b/krdc/hostprofiles.ui.h @@ -71,7 +71,7 @@ void HostProfiles::load() while ( it != hplist.end() ) { HostPref *hp = *it; - new KListViewItem( hostListView, hp->host(), hp->type(), + new TDEListViewItem( hostListView, hp->host(), hp->type(), hp->prefDescription() ); ++it; } diff --git a/krdc/krdc.cpp b/krdc/krdc.cpp index 634921f6..b052f6b3 100644 --- a/krdc/krdc.cpp +++ b/krdc/krdc.cpp @@ -386,7 +386,7 @@ TQSize KRDC::sizeHint() } TQPopupMenu *KRDC::createPopupMenu(TQWidget *parent) const { - KPopupMenu *pu = new KPopupMenu(parent); + TDEPopupMenu *pu = new TDEPopupMenu(parent); pu->insertItem(i18n("View Only"), this, TQT_SLOT(viewOnlyToggled()), 0, VIEW_ONLY_ID); pu->setCheckable(true); pu->setItemChecked(VIEW_ONLY_ID, m_view->viewOnly()); @@ -467,7 +467,7 @@ void KRDC::switchToFullscreen(bool scaling) connect(m_fsToolbar, TQT_SIGNAL(mouseEnter()), TQT_SLOT(showFullscreenToolbar())); connect(m_fsToolbar, TQT_SIGNAL(mouseLeave()), TQT_SLOT(hideFullscreenToolbarDelayed())); - KToolBar *t = new KToolBar(m_fsToolbar); + TDEToolBar *t = new TDEToolBar(m_fsToolbar); m_fsToolbarWidget = t; t->setIconSize(KIcon::Panel); @@ -475,14 +475,14 @@ void KRDC::switchToFullscreen(bool scaling) pinIconSet.setPixmap(m_pinup, TQIconSet::Automatic, TQIconSet::Normal, TQIconSet::On); pinIconSet.setPixmap(m_pindown, TQIconSet::Automatic, TQIconSet::Normal, TQIconSet::Off); t->insertButton("pinup", FS_AUTOHIDE_ID); - KToolBarButton *pinButton = t->getButton(FS_AUTOHIDE_ID); + TDEToolBarButton *pinButton = t->getButton(FS_AUTOHIDE_ID); pinButton->setIconSet(pinIconSet); TQToolTip::add(pinButton, i18n("Autohide on/off")); t->setToggle(FS_AUTOHIDE_ID); t->addConnection(FS_AUTOHIDE_ID, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(setFsToolbarAutoHide(bool))); t->insertButton("window_nofullscreen", FS_FULLSCREEN_ID); - KToolBarButton *fullscreenButton = t->getButton(FS_FULLSCREEN_ID); + TDEToolBarButton *fullscreenButton = t->getButton(FS_FULLSCREEN_ID); TQToolTip::add(fullscreenButton, i18n("Fullscreen")); t->setToggle(FS_FULLSCREEN_ID); t->setButton(FS_FULLSCREEN_ID, true); @@ -490,7 +490,7 @@ void KRDC::switchToFullscreen(bool scaling) m_popup = createPopupMenu(t); t->insertButton("configure", FS_ADVANCED_ID, m_popup, true, i18n("Advanced options")); - KToolBarButton *advancedButton = t->getButton(FS_ADVANCED_ID); + TDEToolBarButton *advancedButton = t->getButton(FS_ADVANCED_ID); TQToolTip::add(advancedButton, i18n("Advanced options")); TQLabel *hostLabel = new TQLabel(t); @@ -502,7 +502,7 @@ void KRDC::switchToFullscreen(bool scaling) if (scalingPossible) { t->insertButton("viewmagfit", FS_SCALE_ID); - KToolBarButton *scaleButton = t->getButton(FS_SCALE_ID); + TDEToolBarButton *scaleButton = t->getButton(FS_SCALE_ID); TQToolTip::add(scaleButton, i18n("Scale view")); t->setToggle(FS_SCALE_ID); t->setButton(FS_SCALE_ID, scaling); @@ -510,12 +510,12 @@ void KRDC::switchToFullscreen(bool scaling) } t->insertButton("iconify", FS_ICONIFY_ID); - KToolBarButton *iconifyButton = t->getButton(FS_ICONIFY_ID); + TDEToolBarButton *iconifyButton = t->getButton(FS_ICONIFY_ID); TQToolTip::add(iconifyButton, i18n("Minimize")); t->addConnection(FS_ICONIFY_ID, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(iconify())); t->insertButton("close", FS_CLOSE_ID); - KToolBarButton *closeButton = t->getButton(FS_CLOSE_ID); + TDEToolBarButton *closeButton = t->getButton(FS_CLOSE_ID); TQToolTip::add(closeButton, i18n("Close")); t->addConnection(FS_CLOSE_ID, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(quit())); @@ -577,12 +577,12 @@ void KRDC::switchToNormal(bool scaling) m_dockArea = new TQDockArea(Qt::Horizontal, TQDockArea::Normal, this); m_dockArea->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed)); - KToolBar *t = new KToolBar(m_dockArea); + TDEToolBar *t = new TDEToolBar(m_dockArea); m_toolbar = t; - t->setIconText(KToolBar::IconTextRight); + t->setIconText(TDEToolBar::IconTextRight); connect(t, TQT_SIGNAL(placeChanged(TQDockWindow::Place)), TQT_SLOT(toolbarChanged())); t->insertButton("window_fullscreen", 0, true, i18n("Fullscreen")); - KToolBarButton *fullscreenButton = t->getButton(0); + TDEToolBarButton *fullscreenButton = t->getButton(0); TQToolTip::add(fullscreenButton, i18n("Fullscreen")); TQWhatsThis::add(fullscreenButton, i18n("Switches to full screen. If the remote desktop has a different screen resolution, Remote Desktop Connection will automatically switch to the nearest resolution.")); t->setToggle(0); @@ -591,7 +591,7 @@ void KRDC::switchToNormal(bool scaling) if (m_view->supportsScaling()) { t->insertButton("viewmagfit", 1, true, i18n("Scale")); - KToolBarButton *scaleButton = t->getButton(1); + TDEToolBarButton *scaleButton = t->getButton(1); TQToolTip::add(scaleButton, i18n("Scale view")); TQWhatsThis::add(scaleButton, i18n("This option scales the remote screen to fit your window size.")); t->setToggle(1); @@ -600,7 +600,7 @@ void KRDC::switchToNormal(bool scaling) } t->insertButton("key_enter", 2, true, i18n("Special Keys")); - KToolBarButton *skButton = t->getButton(2); + TDEToolBarButton *skButton = t->getButton(2); TQToolTip::add(skButton, i18n("Enter special keys.")); TQWhatsThis::add(skButton, i18n("This option allows you to send special key combinations like Ctrl-Alt-Del to the remote host.")); t->addConnection(2, TQT_SIGNAL(clicked()), TQT_TQOBJECT(m_keyCaptureDialog), TQT_SLOT(execute())); @@ -612,7 +612,7 @@ void KRDC::switchToNormal(bool scaling) m_popup = createPopupMenu(t); t->insertButton("configure", 3, m_popup, true, i18n("Advanced")); - KToolBarButton *advancedButton = t->getButton(3); + TDEToolBarButton *advancedButton = t->getButton(3); TQToolTip::add(advancedButton, i18n("Advanced options")); if (m_layout) diff --git a/krdc/krdc.h b/krdc/krdc.h index 58724b61..a55637fa 100644 --- a/krdc/krdc.h +++ b/krdc/krdc.h @@ -34,7 +34,7 @@ #include "keycapturedialog.h" class TQPixmap; -class KToolBar; +class TDEToolBar; class TQPopupMenu; class TQDockArea; @@ -76,7 +76,7 @@ private: TQWidget *m_fsToolbarWidget; // qt designer widget for fs toolbar // (invalid in normal mode) TQPixmap m_pinup, m_pindown; // fs toolbar imaged for autohide button - KToolBar *m_toolbar; // toolbar in normal mode (0 in fs mode) + TDEToolBar *m_toolbar; // toolbar in normal mode (0 in fs mode) TQDockArea *m_dockArea; // dock area for toolbar in normal mode (0 in fs mode) TQPopupMenu *m_popup; // advanced options popup (0 in fs mode) TQDesktopWidget m_desktopWidget; diff --git a/krdc/maindialogbase.ui b/krdc/maindialogbase.ui index c1757016..34006ec2 100644 --- a/krdc/maindialogbase.ui +++ b/krdc/maindialogbase.ui @@ -236,7 +236,7 @@ Remote Desktop Connection only supports systems that use VNC. An administrator can configure the network to have several scopes. If this is the case, you can select the scope to scan here. - + Name diff --git a/krdc/maindialogwidget.cpp b/krdc/maindialogwidget.cpp index 09b0de52..befd8656 100644 --- a/krdc/maindialogwidget.cpp +++ b/krdc/maindialogwidget.cpp @@ -34,14 +34,14 @@ static const TQString DEFAULT_SCOPE = "default"; -class UrlListViewItem : public KListViewItem +class UrlListViewItem : public TDEListViewItem { public: UrlListViewItem( TQListView *v, const TQString &url, const TQString &host, const TQString &protocol, const TQString &type, const TQString &userid, const TQString &fullname, const TQString &desc, const TQString &serviceid ) - : KListViewItem( v, host, i18n( "unknown" ), host, protocol ), + : TDEListViewItem( v, host, i18n( "unknown" ), host, protocol ), m_url( url ), m_serviceid( serviceid ) { if ( !type.isNull() ) diff --git a/krfb/krfb/configuration.cc b/krfb/krfb/configuration.cc index e34c1ec8..b0be2c25 100644 --- a/krfb/krfb/configuration.cc +++ b/krfb/krfb/configuration.cc @@ -217,7 +217,7 @@ void Configuration::saveToDialogs() { while (it != invitationList.end()) { Invitation &inv = *(it++); if (!inv.getViewItem()) - inv.setViewItem(new KListViewItem(invMngDlg.listView, + inv.setViewItem(new TDEListViewItem(invMngDlg.listView, inv.creationTime().toString(Qt::LocalDate), inv.expirationTime().toString(Qt::LocalDate))); } @@ -372,7 +372,7 @@ void Configuration::invMngDlgDeleteOnePressed() { TQValueList::iterator it = invitationList.begin(); while (it != invitationList.end()) { Invitation &ix = (*it); - KListViewItem *iv = ix.getViewItem(); + TDEListViewItem *iv = ix.getViewItem(); if (iv && iv->isSelected()) it = invitationList.remove(it); else diff --git a/krfb/krfb/invitation.cc b/krfb/krfb/invitation.cc index 480ab771..bb5ebe9d 100644 --- a/krfb/krfb/invitation.cc +++ b/krfb/krfb/invitation.cc @@ -114,12 +114,12 @@ bool Invitation::isValid() const { return m_expirationTime > TQDateTime::currentDateTime(); } -void Invitation::setViewItem(KListViewItem *i) { +void Invitation::setViewItem(TDEListViewItem *i) { if (m_viewItem) delete m_viewItem; m_viewItem = i; } -KListViewItem *Invitation::getViewItem() const{ +TDEListViewItem *Invitation::getViewItem() const{ return m_viewItem; } diff --git a/krfb/krfb/invitation.h b/krfb/krfb/invitation.h index 49b116ed..fd72f0fd 100644 --- a/krfb/krfb/invitation.h +++ b/krfb/krfb/invitation.h @@ -43,15 +43,15 @@ public: TQDateTime creationTime() const; bool isValid() const; - void setViewItem(KListViewItem*); - KListViewItem* getViewItem() const; + void setViewItem(TDEListViewItem*); + TDEListViewItem* getViewItem() const; void save(TDEConfig *config, int num) const; private: TQString m_password; TQDateTime m_creationTime; TQDateTime m_expirationTime; - KListViewItem *m_viewItem; + TDEListViewItem *m_viewItem; }; #endif diff --git a/krfb/krfb/manageinvitations.ui b/krfb/krfb/manageinvitations.ui index d6cfa41b..b6c5f888 100644 --- a/krfb/krfb/manageinvitations.ui +++ b/krfb/krfb/manageinvitations.ui @@ -62,7 +62,7 @@ - + Created diff --git a/krfb/krfb/trayicon.cpp b/krfb/krfb/trayicon.cpp index c0cc9aa3..98824109 100644 --- a/krfb/krfb/trayicon.cpp +++ b/krfb/krfb/trayicon.cpp @@ -60,14 +60,14 @@ TrayIcon::TrayIcon(KDialog *d, Configuration *c) : setPixmap(trayIconClosed); TQToolTip::add(this, i18n("Desktop Sharing - connecting")); - manageInvitationsAction = new KAction(i18n("Manage &Invitations"), TQString(), + manageInvitationsAction = new TDEAction(i18n("Manage &Invitations"), TQString(), 0, TQT_TQOBJECT(this), TQT_SIGNAL(showManageInvitations()), &actionCollection); manageInvitationsAction->plug(contextMenu()); contextMenu()->insertSeparator(); - enableControlAction = new KToggleAction(i18n("Enable Remote Control")); + enableControlAction = new TDEToggleAction(i18n("Enable Remote Control")); enableControlAction->setCheckedState(i18n("Disable Remote Control")); enableControlAction->plug(contextMenu()); enableControlAction->setEnabled(false); diff --git a/krfb/krfb/trayicon.h b/krfb/krfb/trayicon.h index 9b8c8c21..66799e6e 100644 --- a/krfb/krfb/trayicon.h +++ b/krfb/krfb/trayicon.h @@ -79,10 +79,10 @@ private: KPixmap trayIconClosed; Configuration *configuration; KDialog* aboutDialog; - KActionCollection actionCollection; - KAction* manageInvitationsAction; - KAction* aboutAction; - KToggleAction* enableControlAction; + TDEActionCollection actionCollection; + TDEAction* manageInvitationsAction; + TDEAction* aboutAction; + TDEToggleAction* enableControlAction; bool quitting; private slots: diff --git a/ksirc/KSPrefs/page_autoconnectbase.ui b/ksirc/KSPrefs/page_autoconnectbase.ui index 0c385e7b..664bf30f 100644 --- a/ksirc/KSPrefs/page_autoconnectbase.ui +++ b/ksirc/KSPrefs/page_autoconnectbase.ui @@ -22,7 +22,7 @@ 0 - + Auto Connect List diff --git a/ksirc/KSPrefs/page_font.cpp b/ksirc/KSPrefs/page_font.cpp index 5ea0dd9b..a4a59c1b 100644 --- a/ksirc/KSPrefs/page_font.cpp +++ b/ksirc/KSPrefs/page_font.cpp @@ -4,7 +4,7 @@ PageFont::PageFont( TQWidget *parent, const char *name ) : TQWidget( parent, name) { layout = new TQHBoxLayout(this); - fontchooser = new KFontChooser(this); + fontchooser = new TDEFontChooser(this); layout->addWidget(fontchooser); connect(fontchooser,TQT_SIGNAL(fontSelected ( const TQFont&)), this, TQT_SLOT(update())); } diff --git a/ksirc/KSPrefs/page_font.h b/ksirc/KSPrefs/page_font.h index 89462313..154ff014 100644 --- a/ksirc/KSPrefs/page_font.h +++ b/ksirc/KSPrefs/page_font.h @@ -56,7 +56,7 @@ class PageFont : public TQWidget void modified(); private: - KFontChooser* fontchooser; /** The font choosing widget from kdelib */ + TDEFontChooser* fontchooser; /** The font choosing widget from kdelib */ TQHBoxLayout* layout; }; diff --git a/ksirc/KSTicker/ksticker.cpp b/ksirc/KSTicker/ksticker.cpp index f2d77e39..60e137bf 100644 --- a/ksirc/KSTicker/ksticker.cpp +++ b/ksirc/KSTicker/ksticker.cpp @@ -424,8 +424,8 @@ void KSTicker::mousePressEvent( TQMouseEvent *e) } void KSTicker::fontSelector() { - int result = KFontDialog::getFont( ourFont, true ); - if ( result == KFontDialog::Accepted ) { + int result = TDEFontDialog::getFont( ourFont, true ); + if ( result == TDEFontDialog::Accepted ) { updateFont(ourFont); } } diff --git a/ksirc/ahistlineedit.cpp b/ksirc/ahistlineedit.cpp index 686c530a..f741646f 100644 --- a/ksirc/ahistlineedit.cpp +++ b/ksirc/ahistlineedit.cpp @@ -309,9 +309,9 @@ bool aHistLineEdit::processKeyEvent( TQKeyEvent *e ) bool eat = false; -// kdDebug(5008) << "Key: " << KShortcut( KKey( e ) ).toString() << " StdAccel: " << KStdAccel::paste().toString() << endl; +// kdDebug(5008) << "Key: " << TDEShortcut( KKey( e ) ).toString() << " StdAccel: " << TDEStdAccel::paste().toString() << endl; - if ( KStdAccel::paste().contains(KKey( e ))) { + if ( TDEStdAccel::paste().contains(KKey( e ))) { e->ignore(); eat = true; } diff --git a/ksirc/chanButtons.cpp b/ksirc/chanButtons.cpp index 5aafba1c..ad56d000 100644 --- a/ksirc/chanButtons.cpp +++ b/ksirc/chanButtons.cpp @@ -26,7 +26,7 @@ chanButtons::chanButtons(KSircProcess *proc, TQWidget *parent, const char *name) : TQWidget(parent, name), m_proc(proc) { - Popupmenu = new KPopupMenu( this ); + Popupmenu = new TDEPopupMenu( this ); Popupmenu->insertTitle(i18n("Channel Modes")); toggleMenu[0] = Popupmenu->insertItem(i18n("i (invite-only)"), this, TQT_SLOT(invite())); toggleMenu[1] = Popupmenu->insertItem(i18n("l (limited users)"), this, TQT_SLOT(limited())); diff --git a/ksirc/chanButtons.h b/ksirc/chanButtons.h index b26f6e3d..223390c1 100644 --- a/ksirc/chanButtons.h +++ b/ksirc/chanButtons.h @@ -9,7 +9,7 @@ class TQHBoxLayout; class TQVBoxLayout; -class KPopupMenu; +class TDEPopupMenu; class chanbuttonsDialog; class KIntSpinBox; class TQLineEdit; @@ -53,7 +53,7 @@ class chanButtons : public TQWidget TQPushButton *moderateButton; TQPushButton *outsideButton; TQPushButton *menuButton; - KPopupMenu *Popupmenu; + TDEPopupMenu *Popupmenu; chanbuttonsDialog *chanDialog; KSircProcess *m_proc; }; diff --git a/ksirc/dccManager.cpp b/ksirc/dccManager.cpp index 386644b9..cc741d25 100644 --- a/ksirc/dccManager.cpp +++ b/ksirc/dccManager.cpp @@ -22,8 +22,8 @@ #define COL_CPS 4 #define COL_PER 5 -dccItem::dccItem( KListView *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dccStatus status, unsigned int size ) - : TQObject(), KListViewItem(parent), m_who(who), m_file(file), m_type(type) +dccItem::dccItem( TDEListView *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dccStatus status, unsigned int size ) + : TQObject(), TDEListViewItem(parent), m_who(who), m_file(file), m_type(type) { m_percent = 0; m_status = status; @@ -43,8 +43,8 @@ dccItem::dccItem( KListView *parent, dccManager *manager, enum dccType type, con } -dccItem::dccItem( KListViewItem *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dccStatus status, unsigned int size ) -: TQObject(), KListViewItem(parent), m_who(who), m_file(file), m_type(type) +dccItem::dccItem( TDEListViewItem *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dccStatus status, unsigned int size ) +: TQObject(), TDEListViewItem(parent), m_who(who), m_file(file), m_type(type) { m_percent = 0; m_status = status; @@ -175,7 +175,7 @@ void dccItem::doRename() void dccItem::okRename(int col) { - KListViewItem::okRename(col); + TDEListViewItem::okRename(col); if(type() == dccGet){ TQString oldfile = m_file; changeFilename(text(COL_FILE)); @@ -193,7 +193,7 @@ void dccItem::okRename(int col) void dccItem::cancelRename(int col) { - KListViewItem::cancelRename(col); + TDEListViewItem::cancelRename(col); if(type() == dccChat){ setWhoPostfix(m_post); } @@ -203,9 +203,9 @@ dccManager::dccManager( TQWidget *parent, const char *name ) : dccManagerbase( p { dccNewDialog = 0x0; - m_getit = new KListViewItem(klvBox, i18n("Get")); - m_sendit = new KListViewItem(klvBox, i18n("Send")); - m_chatit = new KListViewItem(klvBox, i18n("Chat")); + m_getit = new TDEListViewItem(klvBox, i18n("Get")); + m_sendit = new TDEListViewItem(klvBox, i18n("Send")); + m_chatit = new TDEListViewItem(klvBox, i18n("Chat")); m_getit->setOpen(true); m_sendit->setOpen(true); diff --git a/ksirc/dccManager.h b/ksirc/dccManager.h index 89cfcc02..519c0dca 100644 --- a/ksirc/dccManager.h +++ b/ksirc/dccManager.h @@ -23,7 +23,7 @@ class TQSignal; class TQObject; class dccItem : public TQObject, - public KListViewItem + public TDEListViewItem { Q_OBJECT @@ -47,8 +47,8 @@ public: dccSend }; - dccItem( KListView *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dccStatus, unsigned int size ); - dccItem( KListViewItem *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dccStatus, unsigned int size ); + dccItem( TDEListView *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dccStatus, unsigned int size ); + dccItem( TDEListViewItem *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dccStatus, unsigned int size ); virtual ~dccItem(); void changeStatus(enum dccStatus); @@ -130,9 +130,9 @@ protected slots: private: - KListViewItem *m_getit; - KListViewItem *m_sendit; - KListViewItem *m_chatit; + TDEListViewItem *m_getit; + TDEListViewItem *m_sendit; + TDEListViewItem *m_chatit; dccNew *dccNewDialog; }; diff --git a/ksirc/dccManagerbase.ui b/ksirc/dccManagerbase.ui index 542a28eb..7c768f47 100644 --- a/ksirc/dccManagerbase.ui +++ b/ksirc/dccManagerbase.ui @@ -25,7 +25,7 @@ unnamed - + Who diff --git a/ksirc/dccToplevel.cpp b/ksirc/dccToplevel.cpp index 86d07d5e..e5288290 100644 --- a/ksirc/dccToplevel.cpp +++ b/ksirc/dccToplevel.cpp @@ -16,7 +16,7 @@ extern DisplayMgr *displayMgr; #define DTL_WINDOW_ID 10 dccTopLevel::dccTopLevel(TQWidget *parent, const char *name) - : KMainWindow(parent, name, TQt::WDestructiveClose) + : TDEMainWindow(parent, name, TQt::WDestructiveClose) { m_mgr = new dccManager(this, TQCString(TQT_TQOBJECT(this)->name()) + "_dccManager"); // m_mgr->show(); @@ -25,7 +25,7 @@ dccTopLevel::dccTopLevel(TQWidget *parent, const char *name) connect(m_mgr, TQT_SIGNAL(changed(bool, TQString)), this, TQT_SIGNAL(changed(bool, TQString))); TQPopupMenu *win = new TQPopupMenu(this, TQCString(TQT_TQOBJECT(this)->name()) + "_popup_window"); - KAction *act = KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() ); + TDEAction *act = KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() ); act->plug(win); menuBar()->insertItem(i18n("&File"), win, DTL_WINDOW_ID, -1); diff --git a/ksirc/dccToplevel.h b/ksirc/dccToplevel.h index 4b2265fa..d7a64341 100644 --- a/ksirc/dccToplevel.h +++ b/ksirc/dccToplevel.h @@ -7,7 +7,7 @@ class dccManager; -class dccTopLevel : public KMainWindow +class dccTopLevel : public TDEMainWindow { Q_OBJECT diff --git a/ksirc/displayMgrMDI.cpp b/ksirc/displayMgrMDI.cpp index d554004a..ec488275 100644 --- a/ksirc/displayMgrMDI.cpp +++ b/ksirc/displayMgrMDI.cpp @@ -38,8 +38,8 @@ void DisplayMgrMDI::newTopLevel( TQWidget *w, bool show ) KSircTopLevel *t = static_cast(w); connect(m_topLevel->tabWidget(), TQT_SIGNAL(currentChanged(TQWidget *)), t, TQT_SLOT(focusChange(TQWidget *))); } - if(w->inherits("KMainWindow")){ - KMainWindow *t = static_cast(w); + if(w->inherits("TDEMainWindow")){ + TDEMainWindow *t = static_cast(w); TQMenuBar *cmenu = t->menuBar(); if(cmenu){ @@ -60,11 +60,11 @@ void DisplayMgrMDI::newTopLevel( TQWidget *w, bool show ) TQPopupMenu *sm = new TQPopupMenu(t, "settings" ); - KToggleAction *showmenu = KStdAction::showMenubar( 0, 0, t->actionCollection() ); + TDEToggleAction *showmenu = KStdAction::showMenubar( 0, 0, t->actionCollection() ); showmenu->plug( sm ); connect( showmenu, TQT_SIGNAL(toggled(bool)), cmenu, TQT_SLOT(setShown(bool)) ); - KSelectAction *selectTabbar = new KSelectAction(i18n("&Tab Bar"), 0, this, "tabbar" ); + TDESelectAction *selectTabbar = new TDESelectAction(i18n("&Tab Bar"), 0, this, "tabbar" ); TQStringList tabbaritems; tabbaritems << i18n("&Top") << i18n("&Bottom"); selectTabbar->setItems(tabbaritems); @@ -72,7 +72,7 @@ void DisplayMgrMDI::newTopLevel( TQWidget *w, bool show ) selectTabbar->plug( sm ); connect( selectTabbar, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setTabPosition(int)) ); - KToggleAction *showfull = KStdAction::fullScreen( 0, 0, t->actionCollection(), t ); + TDEToggleAction *showfull = KStdAction::fullScreen( 0, 0, t->actionCollection(), t ); showfull->plug( sm ); connect( showfull, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setFullScreen(bool)) ); @@ -185,7 +185,7 @@ void DisplayMgrMDI::reparentReq() kdDebug(5008) << "Kapp says no widget has focus!" << endl; o = TQT_TQWIDGET(kapp->activeWindow()); - if(o->inherits("KMainWindow") == false) + if(o->inherits("TDEMainWindow") == false) return; s = o; @@ -199,7 +199,7 @@ void DisplayMgrMDI::reparentReq() while(s->parentWidget()){ kdDebug(5008) << "Got a: " << s->className() << endl; s = s->parentWidget(); - if(s->inherits("KMainWindow")) + if(s->inherits("TDEMainWindow")) break; } @@ -208,7 +208,7 @@ void DisplayMgrMDI::reparentReq() // TQWidget *s = m_topLevel->tabWidget()->currentPage(); can't do this since you can never reattach if(s){ - KMainWindow *kst = static_cast(s); + TDEMainWindow *kst = static_cast(s); kdDebug(5008) << "Top is: " << kst->name("none give") <menuBar(); @@ -238,7 +238,7 @@ MDITopLevel *DisplayMgrMDI::topLevel() m_topLevel = new MDITopLevel(0x0, "MDITopLevel"); m_topLevel->show(); - KAccel *a = new KAccel( m_topLevel ); + TDEAccel *a = new TDEAccel( m_topLevel ); a->insert( "cycle left", i18n("Cycle left"), TQString(), ALT+Key_Left, ALT+Key_Left, this, TQT_SLOT(slotCycleTabsLeft()) ); a->insert( "cycle right", i18n("Cycle right"), TQString(), ALT+Key_Right, ALT+Key_Right, this, TQT_SLOT(slotCycleTabsRight()) ); } diff --git a/ksirc/dockservercontroller.cpp b/ksirc/dockservercontroller.cpp index 7deb5b2f..a433c99b 100644 --- a/ksirc/dockservercontroller.cpp +++ b/ksirc/dockservercontroller.cpp @@ -59,7 +59,7 @@ dockServerController::dockServerController(servercontroller *sc, TQWidget *paren { m_nicks.setAutoDelete(true); - KPopupMenu *pop = contextMenu(); + TDEPopupMenu *pop = contextMenu(); pop->setName("dockServerController_menu_pop"); #ifndef NDEBUG @@ -116,7 +116,7 @@ dockServerController::dockServerController(servercontroller *sc, TQWidget *paren ALT+CTRL+Key_Down, KKey::QtWIN+CTRL+Key_Down, TQT_TQOBJECT(this), TQT_SLOT(blinkClear())); -// mainPop = new KPopupMenu(this, "dockServerController_main_pop"); +// mainPop = new TDEPopupMenu(this, "dockServerController_main_pop"); // mainPop->setTitle(i18n("KSirc Dock Menu")); } @@ -160,7 +160,7 @@ void dockServerController::createMainPopup() if(mainPop) delete mainPop; - mainPop = new KPopupMenu(this, "dockservercontrller_main_pop"); + mainPop = new TDEPopupMenu(this, "dockservercontrller_main_pop"); connect(mainPop, TQT_SIGNAL(activated(int)), this, TQT_SLOT(mainActivated(int))); connect(mainPop, TQT_SIGNAL(aboutToShow()), @@ -171,7 +171,7 @@ void dockServerController::createMainPopup() TQDictIterator it( m_nicks ); for( ; it.current(); ++it){ - KPopupMenu *sub = new KPopupMenu(mainPop); + TDEPopupMenu *sub = new TDEPopupMenu(mainPop); if(it.current()->status() == dscNickInfo::isOnline){ sub->insertItem(i18n("Came Online: ") + it.current()->online().toString("hh:mm")); if( ! it.current()->offline().isNull() ){ diff --git a/ksirc/dockservercontroller.h b/ksirc/dockservercontroller.h index 0d037b52..03b673c3 100644 --- a/ksirc/dockservercontroller.h +++ b/ksirc/dockservercontroller.h @@ -13,7 +13,7 @@ class TQPopupMenu; class TQWidget; class servercontroller; class TQMouseEvent; -class KPopupMenu; +class TDEPopupMenu; class TQTimer; class dscNickInfo @@ -89,7 +89,7 @@ private: void raiseWindow(TQString server, TQString name); TQDict m_nicks; servercontroller *m_sc; - KPopupMenu *mainPop; + TDEPopupMenu *mainPop; TQString m_last_nick; TQString m_last_server; diff --git a/ksirc/ksirc.cpp b/ksirc/ksirc.cpp index ba9dbcda..1664f607 100644 --- a/ksirc/ksirc.cpp +++ b/ksirc/ksirc.cpp @@ -98,7 +98,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv ) servercontroller *sc = new servercontroller(0, "servercontroller"); app.setMainWidget(sc); - if (KMainWindow::canBeRestored(1)) + if (TDEMainWindow::canBeRestored(1)) { sc->restore(1, false ); } diff --git a/ksirc/ksview.cpp b/ksirc/ksview.cpp index 3d895513..e093450f 100644 --- a/ksirc/ksview.cpp +++ b/ksirc/ksview.cpp @@ -282,7 +282,7 @@ void KSircView::anchorClicked(const TQMouseEvent *ev, const TQString &url) static const int copyLinkLocationID = 1; // Adding a nice contextmenu - KPopupMenu* menu = new KPopupMenu( this ); + TDEPopupMenu* menu = new TDEPopupMenu( this ); menu->insertTitle( i18n( "URL" ) ); menu->insertItem( i18n("Open URL"), openURLID ); menu->insertItem( i18n("Copy Link Address"), copyLinkLocationID ); diff --git a/ksirc/mditoplevel.cpp b/ksirc/mditoplevel.cpp index c6047674..55992ccb 100644 --- a/ksirc/mditoplevel.cpp +++ b/ksirc/mditoplevel.cpp @@ -30,7 +30,7 @@ void KSTabWidget::mousePressEvent(TQMouseEvent *e) } MDITopLevel::MDITopLevel(TQWidget *parent, const char *name) - : KMainWindow(parent, name) + : TDEMainWindow(parent, name) { m_closing = false; @@ -53,7 +53,7 @@ MDITopLevel::MDITopLevel(TQWidget *parent, const char *name) m_dirtyIcon = UserIcon( "star" ); m_addressedIcon = UserIcon( "info" ); - m_pop = new KPopupMenu(m_tab, ""); + m_pop = new TDEPopupMenu(m_tab, ""); m_pop->insertItem( SmallIcon("fileclose"), i18n("Close"), this, TQT_SLOT( slotCloseLastWid() )); } @@ -161,7 +161,7 @@ void MDITopLevel::closeEvent( TQCloseEvent *ev ) delete (TQWidget *)w; } - KMainWindow::closeEvent( ev ); + TDEMainWindow::closeEvent( ev ); m_closing = false; } @@ -207,7 +207,7 @@ void MDITopLevel::slotMarkPageDirty( bool addressed ) { // This is called when a line appeared in this channel. // addressed is true if it was addressed to the user - KMainWindow *window = dynamic_cast( TQT_TQWIDGET(const_cast( sender() )) ); + TDEMainWindow *window = dynamic_cast( TQT_TQWIDGET(const_cast( sender() )) ); if ( !window ) return; @@ -225,7 +225,7 @@ void MDITopLevel::slotMarkPageDirty( bool addressed ) void MDITopLevel::slotChangeChannelName( const TQString &, const TQString &channelName ) { - KMainWindow *window = dynamic_cast( TQT_TQWIDGET(const_cast( sender() )) ); + TDEMainWindow *window = dynamic_cast( TQT_TQWIDGET(const_cast( sender() )) ); if ( !window ) return; diff --git a/ksirc/mditoplevel.h b/ksirc/mditoplevel.h index 53dfc1c3..78350561 100644 --- a/ksirc/mditoplevel.h +++ b/ksirc/mditoplevel.h @@ -25,9 +25,9 @@ signals: }; class TQLabel; -class KPopupMenu; +class TDEPopupMenu; -class MDITopLevel : public KMainWindow +class MDITopLevel : public TDEMainWindow { Q_OBJECT @@ -65,7 +65,7 @@ private slots: private: KSTabWidget *m_tab; - KPopupMenu *m_pop; + TDEPopupMenu *m_pop; TQWidget *m_last_pop_wid; TQPtrList m_tabWidgets; TQPtrList m_addressed; diff --git a/ksirc/servercontroller.cpp b/ksirc/servercontroller.cpp index 4eea7003..58d46517 100644 --- a/ksirc/servercontroller.cpp +++ b/ksirc/servercontroller.cpp @@ -117,7 +117,7 @@ DisplayMgr *displayMgr; servercontroller *servercontroller::s_self = 0; servercontroller::servercontroller( TQWidget*, const char* name ) - : KMainWindow( 0, name ) + : TDEMainWindow( 0, name ) { we_are_exiting = false; m_notificationCount = 0; @@ -625,7 +625,7 @@ void servercontroller::readGlobalProperties(TDEConfig *ksc) // ksc == K Session Config - // KMainWindow silently disables our menubar, when we quit in a docked + // TDEMainWindow silently disables our menubar, when we quit in a docked // state, so we have to force showing it here. menuBar()->show(); @@ -754,7 +754,7 @@ void servercontroller::closeEvent( TQCloseEvent *e ) { we_are_exiting = true; saveSessionConfig(); - KMainWindow::closeEvent( e ); + TDEMainWindow::closeEvent( e ); } void servercontroller::WindowSelected(TQListViewItem *item) @@ -953,7 +953,7 @@ scInside::scInside ( TQWidget * parent, const char * name, WFlags asfont.setBold(TRUE); ASConn->setFont(asfont); - ConnectionTree = new KListView(this, "connectiontree"); + ConnectionTree = new TDEListView(this, "connectiontree"); ConnectionTree->addColumn(TQString()); ConnectionTree->setRootIsDecorated( true ); ConnectionTree->setSorting( 0 ); diff --git a/ksirc/servercontroller.h b/ksirc/servercontroller.h index 7115f23a..7111a458 100644 --- a/ksirc/servercontroller.h +++ b/ksirc/servercontroller.h @@ -77,12 +77,12 @@ class scInside : TQFrame virtual void resizeEvent ( TQResizeEvent * ); private: - KListView *ConnectionTree; + TDEListView *ConnectionTree; TQLabel *ASConn; }; -class servercontroller : public KMainWindow +class servercontroller : public TDEMainWindow { Q_OBJECT @@ -216,7 +216,7 @@ private: // La raison d'etre. We don't run ConnectionTree ourselves, but // we get it from our helper class scInside. - KListView *ConnectionTree; + TDEListView *ConnectionTree; scInside *sci; diff --git a/ksirc/toplevel.cpp b/ksirc/toplevel.cpp index 3d502a52..a6b7518d 100644 --- a/ksirc/toplevel.cpp +++ b/ksirc/toplevel.cpp @@ -107,7 +107,7 @@ KSircTopLevel::initColors() } KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInfo, const char * name) - : KMainWindow(0, name, 0/*no WDestructiveClose !*/), + : TDEMainWindow(0, name, 0/*no WDestructiveClose !*/), UnicodeMessageReceiver(_proc), lastBeep( TQTime::currentTime() ), m_channelInfo(channelInfo) @@ -115,7 +115,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf { // prevent us from being quitted when closing a channel-window. Only // closing the servercontroller shall quit. - // KMainWindow will deref() us in closeEvent + // TDEMainWindow will deref() us in closeEvent kapp->ref(); @@ -155,7 +155,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf file = new TQPopupMenu(this, TQCString(TQT_TQOBJECT(this)->name()) + "_popup_file"); file->setCheckable(true); - KAction *act = KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT( newWindow() ), actionCollection() ); + TDEAction *act = KStdAction::openNew( TQT_TQOBJECT(this), TQT_SLOT( newWindow() ), actionCollection() ); act->plug( file ); file->insertItem(i18n("New Ser&ver..."), servercontroller::self(), TQT_SLOT(new_connection()), Key_F2); file->insertSeparator(); @@ -172,7 +172,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf beepitem = file->insertItem(i18n("N&otify on Change"), this, TQT_SLOT(toggleBeep()), CTRL + Key_P); file->setItemChecked(beepitem, ksopts->chan(m_channelInfo).beepOnMsg); - encodingAction = new KSelectAction( i18n( "&Encoding" ), 0, TQT_TQOBJECT(this) ); + encodingAction = new TDESelectAction( i18n( "&Encoding" ), 0, TQT_TQOBJECT(this) ); connect( encodingAction, TQT_SIGNAL( activated() ), this, TQT_SLOT( setEncoding() ) ); TQStringList encodings = TDEGlobal::charsets()->descriptiveEncodingNames(); @@ -683,7 +683,7 @@ void KSircTopLevel::insertText() void KSircTopLevel::show() { - KMainWindow::show(); + TDEMainWindow::show(); linee->setFocus(); mainw->scrollToBottom(true); } @@ -1199,7 +1199,7 @@ void KSircTopLevel::newWindow() void KSircTopLevel::closeEvent(TQCloseEvent *e) { - KMainWindow::closeEvent( e ); + TDEMainWindow::closeEvent( e ); e->accept(); //Let's not part the channel till we are acutally delete. @@ -1654,7 +1654,7 @@ bool KSircTopLevel::event( TQEvent *e) TQTimer::singleShot(750, this, TQT_SLOT(initColors())); initColors(); } - return KMainWindow::event(e); + return TDEMainWindow::event(e); } void KSircTopLevel::saveCurrLog() diff --git a/ksirc/toplevel.h b/ksirc/toplevel.h index 52e18be0..de5e2a27 100644 --- a/ksirc/toplevel.h +++ b/ksirc/toplevel.h @@ -20,14 +20,14 @@ class UserControlMenu; class ChannelParser; class charSelector; class LogFile; -class KSelectAction; +class TDESelectAction; class TQLabel; class TQVBox; class TQListBoxItem; class TQPopupMenu; -class KSircTopLevel : public KMainWindow, +class KSircTopLevel : public TDEMainWindow, public UnicodeMessageReceiver { Q_OBJECT @@ -521,7 +521,7 @@ private: LogFile *logFile; - KSelectAction *encodingAction; + TDESelectAction *encodingAction; static TQStringList cmd_menu; diff --git a/wifi/kwifimanager.cpp b/wifi/kwifimanager.cpp index 40efb22f..71d7bf29 100644 --- a/wifi/kwifimanager.cpp +++ b/wifi/kwifimanager.cpp @@ -66,7 +66,7 @@ TQStringList APs; bool useAlternateStrengthCalc; KWiFiManagerApp::KWiFiManagerApp (TQWidget *, const char *name): -DCOPObject("dcop_interface"), KMainWindow (0, name), device(0), m_shuttingDown(false), m_iconSize( 22 ) +DCOPObject("dcop_interface"), TDEMainWindow (0, name), device(0), m_shuttingDown(false), m_iconSize( 22 ) { statistik = 0; disablePower = 0; @@ -304,43 +304,43 @@ KWiFiManagerApp::initActions () TDEConfig* config = kapp->config(); if (config->hasGroup("General")) config->setGroup("General"); - fileDisableRadio = new KToggleAction (i18n ("&Disable Radio"), 0, TQT_TQOBJECT(this), + fileDisableRadio = new TDEToggleAction (i18n ("&Disable Radio"), 0, TQT_TQOBJECT(this), TQT_SLOT (slotDisableRadio ()), actionCollection (), "disable_radio"); fileDisableRadio->setChecked( false ); settingsUseAlternateCalc = - new KToggleAction (i18n ("&Use Alternate Strength Calculation"), 0, TQT_TQOBJECT(this), + new TDEToggleAction (i18n ("&Use Alternate Strength Calculation"), 0, TQT_TQOBJECT(this), TQT_SLOT (slotToggleStrengthCalc ()), actionCollection (), "use_alt_calculation"); settingsUseAlternateCalc->setChecked( config->readBoolEntry("useAlternateStrengthCalculation") ); slotToggleStrengthCalc(); //set to value saved by TDEConfig settingsShowStatsNoise = - new KToggleAction (i18n ("Show &Noise Graph in Statistics Window"), 0, TQT_TQOBJECT(this), + new TDEToggleAction (i18n ("Show &Noise Graph in Statistics Window"), 0, TQT_TQOBJECT(this), TQT_SLOT (slotShowStatsNoise ()), actionCollection (), "show_stats_noise"); settingsShowStatsNoise->setChecked( config->readBoolEntry("showStatsNoise") ); slotShowStatsNoise(); //set to value saved by TDEConfig - settingsShowStrengthNumber = new KToggleAction (i18n ("&Show Strength Number in System Tray"), 0, TQT_TQOBJECT(this), + settingsShowStrengthNumber = new TDEToggleAction (i18n ("&Show Strength Number in System Tray"), 0, TQT_TQOBJECT(this), TQT_SLOT (slotToggleShowStrengthNumber ()), actionCollection (), "show_strength_number_in_tray"); settingsShowStrengthNumber->setChecked( config->readBoolEntry("showStrengthNumberInTray") ); slotToggleShowStrengthNumber (); //set to value saved by TDEConfig KStdAction::quit (TQT_TQOBJECT(this), TQT_SLOT (slotFileQuit ()), actionCollection ()); - new KAction (i18n ("Configuration &Editor..."), 0, TQT_TQOBJECT(this), + new TDEAction (i18n ("Configuration &Editor..."), 0, TQT_TQOBJECT(this), TQT_SLOT (slotStartConfigEditor ()), actionCollection (), "configuration_editor"); - new KAction (i18n ("Connection &Statistics"), 0, TQT_TQOBJECT(this), + new TDEAction (i18n ("Connection &Statistics"), 0, TQT_TQOBJECT(this), TQT_SLOT (slotStartStatViewer ()), actionCollection (), "connection_statistics"); - settingsAcousticScanning = new KToggleAction (i18n ("&Acoustic Scanning"), 0, TQT_TQOBJECT(this), + settingsAcousticScanning = new TDEToggleAction (i18n ("&Acoustic Scanning"), 0, TQT_TQOBJECT(this), TQT_SLOT (slotToggleTric ()), actionCollection (), "acoustic_scanning"); settingsAcousticScanning->setChecked( config->readBoolEntry("acousticScanning") ); #ifdef WITHOUT_ARTS settingsAcousticScanning->setEnabled( false); #endif - settingsStayInSystrayOnClose = new KToggleAction (i18n ("Stay in System &Tray on Close"), 0, TQT_TQOBJECT(this), + settingsStayInSystrayOnClose = new TDEToggleAction (i18n ("Stay in System &Tray on Close"), 0, TQT_TQOBJECT(this), TQT_SLOT (slotToggleStayInSystray()), actionCollection (), "stay_in_systray_on_close"); settingsStayInSystrayOnClose->setChecked( config->readBoolEntry("stayInSystrayOnClose") ); diff --git a/wifi/kwifimanager.h b/wifi/kwifimanager.h index b8683a76..5222cd4b 100644 --- a/wifi/kwifimanager.h +++ b/wifi/kwifimanager.h @@ -32,7 +32,7 @@ class TQStringList; // include files for KDE #include class KSystemTray; -class KToggleAction; +class TDEToggleAction; class TDEProcess; // application specific includes @@ -77,7 +77,7 @@ struct configuration_data packetmode packet[5]; }; -class KWiFiManagerApp:public KMainWindow, virtual public dcop_interface +class KWiFiManagerApp:public TDEMainWindow, virtual public dcop_interface { Q_OBJECT @@ -122,12 +122,12 @@ private: NetworkScanning* scanwidget; TQWidget *view; Statistics *statistik; - KToggleAction *fileDisableRadio; - KToggleAction *settingsUseAlternateCalc; - KToggleAction *settingsStayInSystrayOnClose; - KToggleAction *settingsAcousticScanning; - KToggleAction *settingsShowStatsNoise; - KToggleAction *settingsShowStrengthNumber; + TDEToggleAction *fileDisableRadio; + TDEToggleAction *settingsUseAlternateCalc; + TDEToggleAction *settingsStayInSystrayOnClose; + TDEToggleAction *settingsAcousticScanning; + TDEToggleAction *settingsShowStatsNoise; + TDEToggleAction *settingsShowStrengthNumber; KSystemTray *trayicon; void init_whois_db (); TQTimer *tricorder_trigger, *counter; -- cgit v1.2.1