Trinity Qt initial conversion

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent f587f20a6d
commit 7be55ffa06

@ -22,7 +22,7 @@
without including the source code for Qt in the source distribution.
*/
#include <qstring.h>
#include <tqstring.h>
#include "aboutdata.h"

@ -43,7 +43,7 @@ void ActionManager::setInstance(ActionManager* manager)
}
ActionManager::ActionManager(QObject* parent, const char* name) : QObject(parent, name), d(new ActionManagerPrivate)
ActionManager::ActionManager(TQObject* parent, const char* name) : TQObject(parent, name), d(new ActionManagerPrivate)
{}
ActionManager::~ActionManager()

@ -25,7 +25,7 @@
#ifndef AKREGATOR_ACTIONMANAGER_H
#define AKREGATOR_ACTIONMANAGER_H
#include <qobject.h>
#include <tqobject.h>
class QWidget;
@ -43,11 +43,11 @@ class ActionManager : public QObject
static ActionManager* getInstance();
static void setInstance(ActionManager* manager);
ActionManager(QObject* parent=0, const char* name=0);
ActionManager(TQObject* parent=0, const char* name=0);
virtual ~ActionManager();
virtual KAction* action(const char* name, const char* classname=0) = 0;
virtual QWidget* container(const char* name) = 0;
virtual TQWidget* container(const char* name) = 0;
private:

@ -22,7 +22,7 @@
without including the source code for Qt in the source distribution.
*/
#include <qwidget.h>
#include <tqwidget.h>
#include <kaction.h>
#include <kactioncollection.h>
#include <klocale.h>
@ -30,9 +30,9 @@
#include <kshortcut.h>
#include <kxmlguifactory.h>
#include <qmap.h>
#include <qstring.h>
#include <qvaluelist.h>
#include <tqmap.h>
#include <tqstring.h>
#include <tqvaluelist.h>
#include "actionmanagerimpl.h"
#include "akregatorconfig.h"
@ -134,19 +134,19 @@ public:
KActionMenu* tagMenu;
KActionCollection* actionCollection;
TagSet* tagSet;
QMap<QString, TagAction*> tagActions;
TQMap<TQString, TagAction*> tagActions;
TabWidget* tabWidget;
KAction* speakSelectedArticlesAction;
};
void ActionManagerImpl::slotUpdateTagActions(bool enabled, const QStringList& tagIds)
void ActionManagerImpl::slotUpdateTagActions(bool enabled, const TQStringList& tagIds)
{
if (Settings::showTaggingGUI() && d->tagMenu)
{
d->tagMenu->setEnabled(enabled);
QValueList<TagAction*> actions = d->tagActions.values();
TQValueList<TagAction*> actions = d->tagActions.values();
for (QValueList<TagAction*>::ConstIterator it = actions.begin(); it != actions.end(); ++it)
for (TQValueList<TagAction*>::ConstIterator it = actions.begin(); it != actions.end(); ++it)
{
(*it)->setChecked(tagIds.contains((*it)->tag().id()));
}
@ -160,20 +160,20 @@ void ActionManagerImpl::setTagSet(TagSet* tagSet)
if (d->tagSet != 0)
{
disconnect(d->tagSet, SIGNAL(signalTagAdded(const Tag&)), this, SLOT(slotTagAdded(const Tag&)));
disconnect(d->tagSet, SIGNAL(signalTagRemoved(const Tag&)), this, SLOT(slotTagRemoved(const Tag&)));
disconnect(d->tagSet, TQT_SIGNAL(signalTagAdded(const Tag&)), this, TQT_SLOT(slotTagAdded(const Tag&)));
disconnect(d->tagSet, TQT_SIGNAL(signalTagRemoved(const Tag&)), this, TQT_SLOT(slotTagRemoved(const Tag&)));
}
d->tagSet = tagSet;
if (tagSet != 0)
{
connect(d->tagSet, SIGNAL(signalTagAdded(const Tag&)), this, SLOT(slotTagAdded(const Tag&)));
connect(d->tagSet, SIGNAL(signalTagRemoved(const Tag&)), this, SLOT(slotTagRemoved(const Tag&)));
connect(d->tagSet, TQT_SIGNAL(signalTagAdded(const Tag&)), this, TQT_SLOT(slotTagAdded(const Tag&)));
connect(d->tagSet, TQT_SIGNAL(signalTagRemoved(const Tag&)), this, TQT_SLOT(slotTagRemoved(const Tag&)));
}
QValueList<TagAction*> actions = d->tagActions.values();
for (QValueList<TagAction*>::ConstIterator it = actions.begin(); it != actions.end(); ++it)
TQValueList<TagAction*> actions = d->tagActions.values();
for (TQValueList<TagAction*>::ConstIterator it = actions.begin(); it != actions.end(); ++it)
{
d->tagMenu->remove(*it);
delete *it;
@ -186,8 +186,8 @@ void ActionManagerImpl::setTagSet(TagSet* tagSet)
if (tagSet != 0L)
{
QValueList<Tag> list = tagSet->toMap().values();
for (QValueList<Tag>::ConstIterator it = list.begin(); it != list.end(); ++it)
TQValueList<Tag> list = tagSet->toMap().values();
for (TQValueList<Tag>::ConstIterator it = list.begin(); it != list.end(); ++it)
slotTagAdded(*it);
}
}
@ -199,7 +199,7 @@ void ActionManagerImpl::slotTagAdded(const Tag& tag)
if (!d->tagActions.contains(tag.id()))
{
d->tagActions[tag.id()] = new TagAction(tag, d->view, SLOT(slotAssignTag(const Tag&, bool)), d->tagMenu);
d->tagActions[tag.id()] = new TagAction(tag, d->view, TQT_SLOT(slotAssignTag(const Tag&, bool)), d->tagMenu);
d->tagMenu->insert(d->tagActions[tag.id()]);
}
}
@ -209,7 +209,7 @@ void ActionManagerImpl::slotTagRemoved(const Tag& tag)
if (!Settings::showTaggingGUI())
return;
QString id = tag.id();
TQString id = tag.id();
TagAction* action = d->tagActions[id];
d->tagMenu->remove(action);
d->tagActions.remove(id);
@ -222,7 +222,7 @@ void ActionManagerImpl::slotNodeSelected(TreeNode* node)
d->nodeSelectVisitor->visit(node);
}
ActionManagerImpl::ActionManagerImpl(Part* part, QObject* parent, const char* name) : ActionManager(parent, name), d(new ActionManagerImplPrivate)
ActionManagerImpl::ActionManagerImpl(Part* part, TQObject* parent, const char* name) : ActionManager(parent, name), d(new ActionManagerImplPrivate)
{
d->nodeSelectVisitor = new NodeSelectVisitor(this);
d->part = part;
@ -262,15 +262,15 @@ void ActionManagerImpl::initTrayIcon(TrayIcon* trayIcon)
void ActionManagerImpl::initPart()
{
new KAction(i18n("&Import Feeds..."), "", "", d->part, SLOT(fileImport()), d->actionCollection, "file_import");
new KAction(i18n("&Export Feeds..."), "", "", d->part, SLOT(fileExport()), d->actionCollection, "file_export");
//new KAction(i18n("&Get Feeds From Web..."), "", "", d->part, SLOT(fileGetFeeds()), d->actionCollection, "file_getfromweb");
new KAction(i18n("&Import Feeds..."), "", "", d->part, TQT_SLOT(fileImport()), d->actionCollection, "file_import");
new KAction(i18n("&Export Feeds..."), "", "", d->part, TQT_SLOT(fileExport()), d->actionCollection, "file_export");
//new KAction(i18n("&Get Feeds From Web..."), "", "", d->part, TQT_SLOT(fileGetFeeds()), d->actionCollection, "file_getfromweb");
new KAction(i18n("Send &Link Address..."), "mail_generic", "", d->part, SLOT(fileSendLink()), d->actionCollection, "file_sendlink");
new KAction(i18n("Send &File..."), "mail_generic", "", d->part, SLOT(fileSendFile()), d->actionCollection, "file_sendfile");
new KAction(i18n("Send &Link Address..."), "mail_generic", "", d->part, TQT_SLOT(fileSendLink()), d->actionCollection, "file_sendlink");
new KAction(i18n("Send &File..."), "mail_generic", "", d->part, TQT_SLOT(fileSendFile()), d->actionCollection, "file_sendfile");
KStdAction::configureNotifications(d->part, SLOT(showKNotifyOptions()), d->actionCollection); // options_configure_notifications
new KAction( i18n("Configure &Akregator..."), "configure", "", d->part, SLOT(showOptions()), d->actionCollection, "akregator_configure_akregator" );
KStdAction::configureNotifications(d->part, TQT_SLOT(showKNotifyOptions()), d->actionCollection); // options_configure_notifications
new KAction( i18n("Configure &Akregator..."), "configure", "", d->part, TQT_SLOT(showOptions()), d->actionCollection, "akregator_configure_akregator" );
}
void ActionManagerImpl::initView(View* view)
@ -281,51 +281,51 @@ void ActionManagerImpl::initView(View* view)
d->view = view;
// tag actions
new KAction(i18n("&New Tag..."), "", "", d->view, SLOT(slotNewTag()), actionCollection(), "tag_new");
new KAction(i18n("&New Tag..."), "", "", d->view, TQT_SLOT(slotNewTag()), actionCollection(), "tag_new");
// Feed/Feed Group popup menu
new KAction(i18n("&Open Homepage"), "", "Ctrl+H", d->view, SLOT(slotOpenHomepage()), actionCollection(), "feed_homepage");
new KAction(i18n("&Add Feed..."), "bookmark_add", "Insert", d->view, SLOT(slotFeedAdd()), actionCollection(), "feed_add");
new KAction(i18n("Ne&w Folder..."), "folder_new", "Shift+Insert", d->view, SLOT(slotFeedAddGroup()), actionCollection(), "feed_add_group");
new KAction(i18n("&Delete Feed"), "editdelete", "Alt+Delete", d->view, SLOT(slotFeedRemove()), actionCollection(), "feed_remove");
new KAction(i18n("&Edit Feed..."), "edit", "F2", d->view, SLOT(slotFeedModify()), actionCollection(), "feed_modify");
new KAction(i18n("&Open Homepage"), "", "Ctrl+H", d->view, TQT_SLOT(slotOpenHomepage()), actionCollection(), "feed_homepage");
new KAction(i18n("&Add Feed..."), "bookmark_add", "Insert", d->view, TQT_SLOT(slotFeedAdd()), actionCollection(), "feed_add");
new KAction(i18n("Ne&w Folder..."), "folder_new", "Shift+Insert", d->view, TQT_SLOT(slotFeedAddGroup()), actionCollection(), "feed_add_group");
new KAction(i18n("&Delete Feed"), "editdelete", "Alt+Delete", d->view, TQT_SLOT(slotFeedRemove()), actionCollection(), "feed_remove");
new KAction(i18n("&Edit Feed..."), "edit", "F2", d->view, TQT_SLOT(slotFeedModify()), actionCollection(), "feed_modify");
KActionMenu* vm = new KActionMenu( i18n( "&View Mode" ), actionCollection(), "view_mode" );
KRadioAction *ra = new KRadioAction(i18n("&Normal View"), "view_top_bottom", "Ctrl+Shift+1", d->view, SLOT(slotNormalView()), actionCollection(), "normal_view");
KRadioAction *ra = new KRadioAction(i18n("&Normal View"), "view_top_bottom", "Ctrl+Shift+1", d->view, TQT_SLOT(slotNormalView()), actionCollection(), "normal_view");
ra->setExclusiveGroup( "ViewMode" );
vm->insert(ra);
ra = new KRadioAction(i18n("&Widescreen View"), "view_left_right", "Ctrl+Shift+2", d->view, SLOT(slotWidescreenView()), actionCollection(), "widescreen_view");
ra = new KRadioAction(i18n("&Widescreen View"), "view_left_right", "Ctrl+Shift+2", d->view, TQT_SLOT(slotWidescreenView()), actionCollection(), "widescreen_view");
ra->setExclusiveGroup( "ViewMode" );
vm->insert(ra);
ra = new KRadioAction(i18n("C&ombined View"), "view_text", "Ctrl+Shift+3", d->view, SLOT(slotCombinedView()), actionCollection(), "combined_view");
ra = new KRadioAction(i18n("C&ombined View"), "view_text", "Ctrl+Shift+3", d->view, TQT_SLOT(slotCombinedView()), actionCollection(), "combined_view");
ra->setExclusiveGroup( "ViewMode" );
vm->insert(ra);
// toolbar / feed menu
new KAction(i18n("&Fetch Feed"), "down", KStdAccel::shortcut(KStdAccel::Reload), d->view, SLOT(slotFetchCurrentFeed()), actionCollection(), "feed_fetch");
new KAction(i18n("Fe&tch All Feeds"), "bottom", "Ctrl+L", d->view, SLOT(slotFetchAllFeeds()), actionCollection(), "feed_fetch_all");
new KAction(i18n("&Fetch Feed"), "down", KStdAccel::shortcut(KStdAccel::Reload), d->view, TQT_SLOT(slotFetchCurrentFeed()), actionCollection(), "feed_fetch");
new KAction(i18n("Fe&tch All Feeds"), "bottom", "Ctrl+L", d->view, TQT_SLOT(slotFetchAllFeeds()), actionCollection(), "feed_fetch_all");
KAction* stopAction = new KAction(i18n( "&Abort Fetches" ), "stop", Key_Escape, Kernel::self()->fetchQueue(), SLOT(slotAbort()), actionCollection(), "feed_stop");
KAction* stopAction = new KAction(i18n( "&Abort Fetches" ), "stop", Key_Escape, Kernel::self()->fetchQueue(), TQT_SLOT(slotAbort()), actionCollection(), "feed_stop");
stopAction->setEnabled(false);
new KAction(i18n("&Mark Feed as Read"), "goto", "Ctrl+R", d->view, SLOT(slotMarkAllRead()), actionCollection(), "feed_mark_all_as_read");
new KAction(i18n("Ma&rk All Feeds as Read"), "goto", "Ctrl+Shift+R", d->view, SLOT(slotMarkAllFeedsRead()), actionCollection(), "feed_mark_all_feeds_as_read");
new KAction(i18n("&Mark Feed as Read"), "goto", "Ctrl+R", d->view, TQT_SLOT(slotMarkAllRead()), actionCollection(), "feed_mark_all_as_read");
new KAction(i18n("Ma&rk All Feeds as Read"), "goto", "Ctrl+Shift+R", d->view, TQT_SLOT(slotMarkAllFeedsRead()), actionCollection(), "feed_mark_all_feeds_as_read");
// Settings menu
KToggleAction* sqf = new KToggleAction(i18n("Show Quick Filter"), QString::null, 0, d->view, SLOT(slotToggleShowQuickFilter()), actionCollection(), "show_quick_filter");
KToggleAction* sqf = new KToggleAction(i18n("Show Quick Filter"), TQString::null, 0, d->view, TQT_SLOT(slotToggleShowQuickFilter()), actionCollection(), "show_quick_filter");
sqf->setChecked( Settings::showQuickFilter() );
new KAction( i18n("Open in Tab"), "tab_new", "Shift+Return", d->view, SLOT(slotOpenCurrentArticle()), actionCollection(), "article_open" );
new KAction( i18n("Open in Background Tab"), QString::null, "tab_new", d->view, SLOT(slotOpenCurrentArticleBackgroundTab()), actionCollection(), "article_open_background_tab" );
new KAction( i18n("Open in External Browser"), "window_new", "Ctrl+Shift+Return", d->view, SLOT(slotOpenCurrentArticleExternal()), actionCollection(), "article_open_external" );
new KAction( i18n("Copy Link Address"), QString::null, QString::null, d->view, SLOT(slotCopyLinkAddress()), actionCollection(), "article_copy_link_address" );
new KAction( i18n("Open in Tab"), "tab_new", "Shift+Return", d->view, TQT_SLOT(slotOpenCurrentArticle()), actionCollection(), "article_open" );
new KAction( i18n("Open in Background Tab"), TQString::null, "tab_new", d->view, TQT_SLOT(slotOpenCurrentArticleBackgroundTab()), actionCollection(), "article_open_background_tab" );
new KAction( i18n("Open in External Browser"), "window_new", "Ctrl+Shift+Return", d->view, TQT_SLOT(slotOpenCurrentArticleExternal()), actionCollection(), "article_open_external" );
new KAction( i18n("Copy Link Address"), TQString::null, TQString::null, d->view, TQT_SLOT(slotCopyLinkAddress()), actionCollection(), "article_copy_link_address" );
new KAction(i18n("Pre&vious Unread Article"), "", Key_Minus, d->view, SLOT(slotPrevUnreadArticle()),actionCollection(), "go_prev_unread_article");
new KAction(i18n("Ne&xt Unread Article"), "", Key_Plus, d->view, SLOT(slotNextUnreadArticle()),actionCollection(), "go_next_unread_article");
new KAction(i18n("Pre&vious Unread Article"), "", Key_Minus, d->view, TQT_SLOT(slotPrevUnreadArticle()),actionCollection(), "go_prev_unread_article");
new KAction(i18n("Ne&xt Unread Article"), "", Key_Plus, d->view, TQT_SLOT(slotNextUnreadArticle()),actionCollection(), "go_next_unread_article");
new KAction(i18n("&Delete"), "editdelete", "Delete", d->view, SLOT(slotArticleDelete()), actionCollection(), "article_delete");
new KAction(i18n("&Delete"), "editdelete", "Delete", d->view, TQT_SLOT(slotArticleDelete()), actionCollection(), "article_delete");
if (Settings::showTaggingGUI())
{
@ -335,39 +335,39 @@ void ActionManagerImpl::initView(View* view)
KActionMenu* statusMenu = new KActionMenu ( i18n( "&Mark As" ),
actionCollection(), "article_set_status" );
d->speakSelectedArticlesAction = new KAction(i18n("&Speak Selected Articles"), "kttsd", "", d->view, SLOT(slotTextToSpeechRequest()), actionCollection(), "akr_texttospeech");
d->speakSelectedArticlesAction = new KAction(i18n("&Speak Selected Articles"), "kttsd", "", d->view, TQT_SLOT(slotTextToSpeechRequest()), actionCollection(), "akr_texttospeech");
KAction* abortTTS = new KAction(i18n( "&Stop Speaking" ), "player_stop", Key_Escape, SpeechClient::self(), SLOT(slotAbortJobs()), actionCollection(), "akr_aborttexttospeech");
KAction* abortTTS = new KAction(i18n( "&Stop Speaking" ), "player_stop", Key_Escape, SpeechClient::self(), TQT_SLOT(slotAbortJobs()), actionCollection(), "akr_aborttexttospeech");
abortTTS->setEnabled(false);
connect(SpeechClient::self(), SIGNAL(signalActivated(bool)),
abortTTS, SLOT(setEnabled(bool)));
connect(SpeechClient::self(), TQT_SIGNAL(signalActivated(bool)),
abortTTS, TQT_SLOT(setEnabled(bool)));
statusMenu->insert(new KAction(KGuiItem(i18n("as in: mark as read","&Read"), "",
i18n("Mark selected article as read")),
"Ctrl+E", d->view, SLOT(slotSetSelectedArticleRead()),
"Ctrl+E", d->view, TQT_SLOT(slotSetSelectedArticleRead()),
actionCollection(), "article_set_status_read"));
statusMenu->insert(new KAction(KGuiItem(i18n("&New"), "",
i18n("Mark selected article as new")),
"Ctrl+N", d->view, SLOT(slotSetSelectedArticleNew()),
"Ctrl+N", d->view, TQT_SLOT(slotSetSelectedArticleNew()),
actionCollection(), "article_set_status_new" ));
statusMenu->insert(new KAction(KGuiItem(i18n("&Unread"), "",
i18n("Mark selected article as unread")),
"Ctrl+U", d->view, SLOT(slotSetSelectedArticleUnread()),
"Ctrl+U", d->view, TQT_SLOT(slotSetSelectedArticleUnread()),
actionCollection(), "article_set_status_unread"));
KToggleAction* importantAction = new KToggleAction(i18n("&Mark as Important"), "flag", "Ctrl+I", actionCollection(), "article_set_status_important");
importantAction->setCheckedState(i18n("Remove &Important Mark"));
connect(importantAction, SIGNAL(toggled(bool)), d->view, SLOT(slotArticleToggleKeepFlag(bool)));
connect(importantAction, TQT_SIGNAL(toggled(bool)), d->view, TQT_SLOT(slotArticleToggleKeepFlag(bool)));
new KAction( i18n("Move Node Up"), QString::null, "Shift+Alt+Up", view, SLOT(slotMoveCurrentNodeUp()), d->actionCollection, "feedstree_move_up" );
new KAction( i18n("Move Node Down"), QString::null, "Shift+Alt+Down", view, SLOT(slotMoveCurrentNodeDown()), d->actionCollection, "feedstree_move_down" );
new KAction( i18n("Move Node Left"), QString::null, "Shift+Alt+Left", view, SLOT(slotMoveCurrentNodeLeft()), d->actionCollection, "feedstree_move_left" );
new KAction( i18n("Move Node Right"), QString::null, "Shift+Alt+Right", view, SLOT(slotMoveCurrentNodeRight()), d->actionCollection, "feedstree_move_right");
new KAction( i18n("Move Node Up"), TQString::null, "Shift+Alt+Up", view, TQT_SLOT(slotMoveCurrentNodeUp()), d->actionCollection, "feedstree_move_up" );
new KAction( i18n("Move Node Down"), TQString::null, "Shift+Alt+Down", view, TQT_SLOT(slotMoveCurrentNodeDown()), d->actionCollection, "feedstree_move_down" );
new KAction( i18n("Move Node Left"), TQString::null, "Shift+Alt+Left", view, TQT_SLOT(slotMoveCurrentNodeLeft()), d->actionCollection, "feedstree_move_left" );
new KAction( i18n("Move Node Right"), TQString::null, "Shift+Alt+Right", view, TQT_SLOT(slotMoveCurrentNodeRight()), d->actionCollection, "feedstree_move_right");
}
void ActionManagerImpl::initArticleViewer(ArticleViewer* articleViewer)
@ -385,8 +385,8 @@ void ActionManagerImpl::initArticleListView(ArticleListView* articleList)
else
d->articleList = articleList;
new KAction( i18n("&Previous Article"), QString::null, "Left", articleList, SLOT(slotPreviousArticle()), actionCollection(), "go_previous_article" );
new KAction( i18n("&Next Article"), QString::null, "Right", articleList, SLOT(slotNextArticle()), actionCollection(), "go_next_article" );
new KAction( i18n("&Previous Article"), TQString::null, "Left", articleList, TQT_SLOT(slotPreviousArticle()), actionCollection(), "go_previous_article" );
new KAction( i18n("&Next Article"), TQString::null, "Right", articleList, TQT_SLOT(slotNextArticle()), actionCollection(), "go_next_article" );
}
void ActionManagerImpl::initListTabWidget(ListTabWidget* listTabWidget)
@ -396,17 +396,17 @@ void ActionManagerImpl::initListTabWidget(ListTabWidget* listTabWidget)
else
d->listTabWidget = listTabWidget;
new KAction(i18n("&Previous Feed"), "", "P", listTabWidget, SLOT(slotPrevFeed()),actionCollection(), "go_prev_feed");
new KAction(i18n("&Next Feed"), "", "N", listTabWidget, SLOT(slotNextFeed()),actionCollection(), "go_next_feed");
new KAction(i18n("N&ext Unread Feed"), "", "Alt+Plus", listTabWidget, SLOT(slotNextUnreadFeed()),actionCollection(), "go_next_unread_feed");
new KAction(i18n("Prev&ious Unread Feed"), "", "Alt+Minus", listTabWidget, SLOT(slotPrevUnreadFeed()),actionCollection(), "go_prev_unread_feed");
new KAction( i18n("Go to Top of Tree"), QString::null, "Ctrl+Home", listTabWidget, SLOT(slotItemBegin()), d->actionCollection, "feedstree_home" );
new KAction( i18n("Go to Bottom of Tree"), QString::null, "Ctrl+End", listTabWidget, SLOT(slotItemEnd()), d->actionCollection, "feedstree_end" );
new KAction( i18n("Go Left in Tree"), QString::null, "Ctrl+Left", listTabWidget, SLOT(slotItemLeft()), d->actionCollection, "feedstree_left" );
new KAction( i18n("Go Right in Tree"), QString::null, "Ctrl+Right", listTabWidget, SLOT(slotItemRight()), d->actionCollection, "feedstree_right" );
new KAction( i18n("Go Up in Tree"), QString::null, "Ctrl+Up", listTabWidget, SLOT(slotItemUp()), d->actionCollection, "feedstree_up" );
new KAction( i18n("Go Down in Tree"), QString::null, "Ctrl+Down", listTabWidget, SLOT(slotItemDown()), d->actionCollection, "feedstree_down" );
new KAction(i18n("&Previous Feed"), "", "P", listTabWidget, TQT_SLOT(slotPrevFeed()),actionCollection(), "go_prev_feed");
new KAction(i18n("&Next Feed"), "", "N", listTabWidget, TQT_SLOT(slotNextFeed()),actionCollection(), "go_next_feed");
new KAction(i18n("N&ext Unread Feed"), "", "Alt+Plus", listTabWidget, TQT_SLOT(slotNextUnreadFeed()),actionCollection(), "go_next_unread_feed");
new KAction(i18n("Prev&ious Unread Feed"), "", "Alt+Minus", listTabWidget, TQT_SLOT(slotPrevUnreadFeed()),actionCollection(), "go_prev_unread_feed");
new KAction( i18n("Go to Top of Tree"), TQString::null, "Ctrl+Home", listTabWidget, TQT_SLOT(slotItemBegin()), d->actionCollection, "feedstree_home" );
new KAction( i18n("Go to Bottom of Tree"), TQString::null, "Ctrl+End", listTabWidget, TQT_SLOT(slotItemEnd()), d->actionCollection, "feedstree_end" );
new KAction( i18n("Go Left in Tree"), TQString::null, "Ctrl+Left", listTabWidget, TQT_SLOT(slotItemLeft()), d->actionCollection, "feedstree_left" );
new KAction( i18n("Go Right in Tree"), TQString::null, "Ctrl+Right", listTabWidget, TQT_SLOT(slotItemRight()), d->actionCollection, "feedstree_right" );
new KAction( i18n("Go Up in Tree"), TQString::null, "Ctrl+Up", listTabWidget, TQT_SLOT(slotItemUp()), d->actionCollection, "feedstree_up" );
new KAction( i18n("Go Down in Tree"), TQString::null, "Ctrl+Down", listTabWidget, TQT_SLOT(slotItemDown()), d->actionCollection, "feedstree_down" );
}
void ActionManagerImpl::initTabWidget(TabWidget* tabWidget)
@ -416,14 +416,14 @@ void ActionManagerImpl::initTabWidget(TabWidget* tabWidget)
else
d->tabWidget = tabWidget;
new KAction(i18n("Select Next Tab"), "", "Ctrl+Period", d->tabWidget, SLOT(slotNextTab()),actionCollection(), "select_next_tab");
new KAction(i18n("Select Previous Tab"), "", "Ctrl+Comma", d->tabWidget, SLOT(slotPreviousTab()),actionCollection(), "select_previous_tab");
new KAction( i18n("Detach Tab"), "tab_breakoff", CTRL+SHIFT+Key_B, d->tabWidget, SLOT(slotDetachTab()), actionCollection(), "tab_detach" );
new KAction( i18n("Copy Link Address"), QString::null, QString::null, d->tabWidget, SLOT(slotCopyLinkAddress()), actionCollection(), "tab_copylinkaddress" );
new KAction( i18n("&Close Tab"), "tab_remove", KStdAccel::close(), d->tabWidget, SLOT(slotCloseTab()), actionCollection(), "tab_remove" );
new KAction(i18n("Select Next Tab"), "", "Ctrl+Period", d->tabWidget, TQT_SLOT(slotNextTab()),actionCollection(), "select_next_tab");
new KAction(i18n("Select Previous Tab"), "", "Ctrl+Comma", d->tabWidget, TQT_SLOT(slotPreviousTab()),actionCollection(), "select_previous_tab");
new KAction( i18n("Detach Tab"), "tab_breakoff", CTRL+SHIFT+Key_B, d->tabWidget, TQT_SLOT(slotDetachTab()), actionCollection(), "tab_detach" );
new KAction( i18n("Copy Link Address"), TQString::null, TQString::null, d->tabWidget, TQT_SLOT(slotCopyLinkAddress()), actionCollection(), "tab_copylinkaddress" );
new KAction( i18n("&Close Tab"), "tab_remove", KStdAccel::close(), d->tabWidget, TQT_SLOT(slotCloseTab()), actionCollection(), "tab_remove" );
}
QWidget* ActionManagerImpl::container(const char* name)
TQWidget* ActionManagerImpl::container(const char* name)
{
return d->part->factory()->container(name, d->part);
}

@ -52,11 +52,11 @@ class ActionManagerImpl : public ActionManager
Q_OBJECT
public:
ActionManagerImpl(Part* part, QObject* parent=0, const char* name=0);
ActionManagerImpl(Part* part, TQObject* parent=0, const char* name=0);
virtual ~ActionManagerImpl();
virtual KAction* action(const char* name, const char* classname=0);
virtual QWidget* container(const char* name);
virtual TQWidget* container(const char* name);
void initView(View* view);
void initTrayIcon(TrayIcon* trayIcon);
@ -70,7 +70,7 @@ class ActionManagerImpl : public ActionManager
/** fills the remove tag menu with the given tags
enables/disables tag menu action according to @c enabled */
void slotUpdateTagActions(bool enabled, const QStringList& tagIds);
void slotUpdateTagActions(bool enabled, const TQStringList& tagIds);
void slotNodeSelected(TreeNode* node);

@ -25,7 +25,7 @@
#include "feed.h"
#include "addfeeddialog.h"
#include <qcheckbox.h>
#include <tqcheckbox.h>
#include <kapplication.h>
#include <kurl.h>
@ -39,21 +39,21 @@
namespace Akregator {
AddFeedWidget::AddFeedWidget(QWidget *parent, const char *name)
AddFeedWidget::AddFeedWidget(TQWidget *parent, const char *name)
: AddFeedWidgetBase(parent, name)
{
pixmapLabel1->setPixmap(kapp->iconLoader()->loadIcon( "package_network",KIcon::Desktop,KIcon::SizeHuge, KIcon::DefaultState, 0, true));
statusLabel->setText(QString::null);
statusLabel->setText(TQString::null);
}
AddFeedWidget::~AddFeedWidget()
{}
AddFeedDialog::AddFeedDialog(QWidget *parent, const char *name)
AddFeedDialog::AddFeedDialog(TQWidget *parent, const char *name)
: KDialogBase(KDialogBase::Swallow, Qt::WStyle_DialogBorder, parent, name, true, i18n("Add Feed"), KDialogBase::Ok|KDialogBase::Cancel)
{
widget = new AddFeedWidget(this);
connect(widget->urlEdit, SIGNAL(textChanged(const QString&)), this, SLOT(textChanged(const QString&)));
connect(widget->urlEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(textChanged(const TQString&)));
enableButtonOK(false);
setMainWidget(widget);
}
@ -61,7 +61,7 @@ AddFeedDialog::AddFeedDialog(QWidget *parent, const char *name)
AddFeedDialog::~AddFeedDialog()
{}
void AddFeedDialog::setURL(const QString& t)
void AddFeedDialog::setURL(const TQString& t)
{
widget->urlEdit->setText(t);
}
@ -85,12 +85,12 @@ void AddFeedDialog::slotOk( )
widget->statusLabel->setText( i18n("Downloading %1").arg(feedURL) );
connect( feed, SIGNAL(fetched(Feed* )),
this, SLOT(fetchCompleted(Feed *)) );
connect( feed, SIGNAL(fetchError(Feed* )),
this, SLOT(fetchError(Feed *)) );
connect( feed, SIGNAL(fetchDiscovery(Feed* )),
this, SLOT(fetchDiscovery(Feed *)) );
connect( feed, TQT_SIGNAL(fetched(Feed* )),
this, TQT_SLOT(fetchCompleted(Feed *)) );
connect( feed, TQT_SIGNAL(fetchError(Feed* )),
this, TQT_SLOT(fetchError(Feed *)) );
connect( feed, TQT_SIGNAL(fetchDiscovery(Feed* )),
this, TQT_SLOT(fetchDiscovery(Feed *)) );
f->fetch(true);
}
@ -112,7 +112,7 @@ void AddFeedDialog::fetchDiscovery(Feed *f)
feedURL=f->xmlUrl();
}
void AddFeedDialog::textChanged(const QString& text)
void AddFeedDialog::textChanged(const TQString& text)
{
enableButtonOK(!text.isEmpty());
}

@ -42,7 +42,7 @@ namespace Akregator
{
Q_OBJECT
public:
AddFeedWidget(QWidget *parent = 0, const char *name = 0);
AddFeedWidget(TQWidget *parent = 0, const char *name = 0);
~AddFeedWidget();
};
@ -50,10 +50,10 @@ namespace Akregator
{
Q_OBJECT
public:
AddFeedDialog(QWidget *parent = 0, const char *name = 0);
AddFeedDialog(TQWidget *parent = 0, const char *name = 0);
~AddFeedDialog();
void setURL(const QString& t);
void setURL(const TQString& t);
Feed *feed;
public slots:
@ -63,11 +63,11 @@ namespace Akregator
void fetchError(Feed *);
private slots:
void textChanged(const QString&);
void textChanged(const TQString&);
private:
AddFeedWidget *widget;
QString feedURL;
TQString feedURL;
};
}

@ -49,11 +49,11 @@
#include <kparts/genericfactory.h>
#include <kparts/partmanager.h>
#include <qfile.h>
#include <qobjectlist.h>
#include <qstringlist.h>
#include <qtimer.h>
#include <qwidgetlist.h>
#include <tqfile.h>
#include <tqobjectlist.h>
#include <tqstringlist.h>
#include <tqtimer.h>
#include <tqwidgetlist.h>
#include <private/qucomextra_p.h>
#include <cerrno>
@ -116,8 +116,8 @@ class Part::ApplyFiltersInterceptor : public ArticleInterceptor
}
};
Part::Part( QWidget *parentWidget, const char * /*widgetName*/,
QObject *parent, const char *name, const QStringList& )
Part::Part( TQWidget *parentWidget, const char * /*widgetName*/,
TQObject *parent, const char *name, const TQStringList& )
: DCOPObject("AkregatorIface")
, MyBasePart(parent, name)
, m_standardListLoaded(false)
@ -144,9 +144,9 @@ Part::Part( QWidget *parentWidget, const char * /*widgetName*/,
m_storage = 0;
Backend::StorageFactory* factory = Backend::StorageFactoryRegistry::self()->getFactory(Settings::archiveBackend());
QStringList storageParams;
TQStringList storageParams;
storageParams.append(QString("taggingEnabled=%1").arg(Settings::showTaggingGUI() ? "true" : "false"));
storageParams.append(TQString("taggingEnabled=%1").arg(Settings::showTaggingGUI() ? "true" : "false"));
if (factory != 0)
{
@ -193,12 +193,12 @@ Part::Part( QWidget *parentWidget, const char * /*widgetName*/,
m_extension = new BrowserExtension(this, "ak_extension");
connect(m_view, SIGNAL(setWindowCaption(const QString&)), this, SIGNAL(setWindowCaption(const QString&)));
connect(m_view, SIGNAL(setStatusBarText(const QString&)), this, SIGNAL(setStatusBarText(const QString&)));
connect(m_view, SIGNAL(setProgress(int)), m_extension, SIGNAL(loadingProgress(int)));
connect(m_view, SIGNAL(signalCanceled(const QString&)), this, SIGNAL(canceled(const QString&)));
connect(m_view, SIGNAL(signalStarted(KIO::Job*)), this, SIGNAL(started(KIO::Job*)));
connect(m_view, SIGNAL(signalCompleted()), this, SIGNAL(completed()));
connect(m_view, TQT_SIGNAL(setWindowCaption(const TQString&)), this, TQT_SIGNAL(setWindowCaption(const TQString&)));
connect(m_view, TQT_SIGNAL(setStatusBarText(const TQString&)), this, TQT_SIGNAL(setStatusBarText(const TQString&)));
connect(m_view, TQT_SIGNAL(setProgress(int)), m_extension, TQT_SIGNAL(loadingProgress(int)));
connect(m_view, TQT_SIGNAL(signalCanceled(const TQString&)), this, TQT_SIGNAL(canceled(const TQString&)));
connect(m_view, TQT_SIGNAL(signalStarted(KIO::Job*)), this, TQT_SIGNAL(started(KIO::Job*)));
connect(m_view, TQT_SIGNAL(signalCompleted()), this, TQT_SIGNAL(completed()));
// notify the part that this is our internal widget
setWidget(m_view);
@ -207,7 +207,7 @@ Part::Part( QWidget *parentWidget, const char * /*widgetName*/,
TrayIcon::setInstance(trayIcon);
m_actionManager->initTrayIcon(trayIcon);
connect(trayIcon, SIGNAL(showPart()), this, SIGNAL(showPart()));
connect(trayIcon, TQT_SIGNAL(showPart()), this, TQT_SIGNAL(showPart()));
if ( isTrayIconEnabled() )
{
@ -217,22 +217,22 @@ Part::Part( QWidget *parentWidget, const char * /*widgetName*/,
else
NotificationManager::self()->setWidget(getMainWindow(), instance());
connect( trayIcon, SIGNAL(quitSelected()),
kapp, SLOT(quit())) ;
connect( trayIcon, TQT_SIGNAL(quitSelected()),
kapp, TQT_SLOT(quit())) ;
connect( m_view, SIGNAL(signalUnreadCountChanged(int)), trayIcon, SLOT(slotSetUnread(int)) );
connect( m_view, TQT_SIGNAL(signalUnreadCountChanged(int)), trayIcon, TQT_SLOT(slotSetUnread(int)) );
connect(kapp, SIGNAL(shutDown()), this, SLOT(slotOnShutdown()));
connect(kapp, TQT_SIGNAL(shutDown()), this, TQT_SLOT(slotOnShutdown()));
m_autosaveTimer = new QTimer(this);
connect(m_autosaveTimer, SIGNAL(timeout()), this, SLOT(slotSaveFeedList()));
m_autosaveTimer = new TQTimer(this);
connect(m_autosaveTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSaveFeedList()));
m_autosaveTimer->start(5*60*1000); // 5 minutes
setXMLFile("akregator_part.rc", true);
initFonts();
RSS::FileRetriever::setUserAgent(QString("Akregator/%1; librss/remnants").arg(AKREGATOR_VERSION));
RSS::FileRetriever::setUserAgent(TQString("Akregator/%1; librss/remnants").arg(AKREGATOR_VERSION));
}
void Part::loadPlugins()
@ -252,7 +252,7 @@ void Part::slotOnShutdown()
{
m_shuttingDown = true;
const QString lockLocation = locateLocal("data", "akregator/lock");
const TQString lockLocation = locateLocal("data", "akregator/lock");
KSimpleConfig config(lockLocation);
config.writeEntry("pid", -1);
config.sync();
@ -276,7 +276,7 @@ void Part::slotSettingsChanged()
RSS::FileRetriever::setUseCache(Settings::useHTMLCache());
QStringList fonts;
TQStringList fonts;
fonts.append(Settings::standardFont());
fonts.append(Settings::fixedFont());
fonts.append(Settings::sansSerifFont());
@ -338,56 +338,56 @@ void Part::openStandardFeedList()
m_standardListLoaded = true;
}
QDomDocument Part::createDefaultFeedList()
TQDomDocument Part::createDefaultFeedList()
{
QDomDocument doc;
QDomProcessingInstruction z = doc.createProcessingInstruction("xml","version=\"1.0\" encoding=\"UTF-8\"");
TQDomDocument doc;
TQDomProcessingInstruction z = doc.createProcessingInstruction("xml","version=\"1.0\" encoding=\"UTF-8\"");
doc.appendChild( z );
QDomElement root = doc.createElement( "opml" );
TQDomElement root = doc.createElement( "opml" );
root.setAttribute("version","1.0");
doc.appendChild( root );
QDomElement head = doc.createElement( "head" );
TQDomElement head = doc.createElement( "head" );
root.appendChild(head);
QDomElement text = doc.createElement( "text" );
TQDomElement text = doc.createElement( "text" );
text.appendChild(doc.createTextNode(i18n("Feeds")));
head.appendChild(text);
QDomElement body = doc.createElement( "body" );
TQDomElement body = doc.createElement( "body" );
root.appendChild(body);
QDomElement mainFolder = doc.createElement( "outline" );
TQDomElement mainFolder = doc.createElement( "outline" );
mainFolder.setAttribute("text","KDE");
body.appendChild(mainFolder);
QDomElement ak = doc.createElement( "outline" );
TQDomElement ak = doc.createElement( "outline" );
ak.setAttribute("text",i18n("Akregator News"));
ak.setAttribute("xmlUrl","http://akregator.sf.net/rss2.php");
mainFolder.appendChild(ak);
QDomElement akb = doc.createElement( "outline" );
TQDomElement akb = doc.createElement( "outline" );
akb.setAttribute("text",i18n("Akregator Blog"));
akb.setAttribute("xmlUrl","http://akregator.pwsp.net/blog/?feed=rss2");
mainFolder.appendChild(akb);
QDomElement dot = doc.createElement( "outline" );
TQDomElement dot = doc.createElement( "outline" );
dot.setAttribute("text",i18n("KDE Dot News"));
dot.setAttribute("xmlUrl","http://www.kde.org/dotkdeorg.rdf");
mainFolder.appendChild(dot);
QDomElement plan = doc.createElement( "outline" );
TQDomElement plan = doc.createElement( "outline" );
plan.setAttribute("text",i18n("Planet KDE"));
plan.setAttribute("xmlUrl","http://planetkde.org/rss20.xml");
mainFolder.appendChild(plan);
QDomElement apps = doc.createElement( "outline" );
TQDomElement apps = doc.createElement( "outline" );
apps.setAttribute("text",i18n("KDE Apps"));
apps.setAttribute("xmlUrl","http://www.kde.org/dot/kde-apps-content.rdf");
mainFolder.appendChild(apps);
QDomElement look = doc.createElement( "outline" );
TQDomElement look = doc.createElement( "outline" );
look.setAttribute("text",i18n("KDE Look"));
look.setAttribute("xmlUrl","http://www.kde.org/kde-look-content.rdf");
mainFolder.appendChild(look);
@ -399,14 +399,14 @@ bool Part::openFile()
{
emit setStatusBarText(i18n("Opening Feed List...") );
QString str;
// m_file is always local so we can use QFile on it
QFile file(m_file);
TQString str;
// m_file is always local so we can use TQFile on it
TQFile file(m_file);
bool fileExists = file.exists();
QString listBackup = m_storage->restoreFeedList();
TQString listBackup = m_storage->restoreFeedList();
QDomDocument doc;
TQDomDocument doc;
if (!fileExists)
{
@ -417,8 +417,8 @@ bool Part::openFile()
if (file.open(IO_ReadOnly))
{
// Read OPML feeds list and build QDom tree.
QTextStream stream(&file);
stream.setEncoding(QTextStream::UnicodeUTF8); // FIXME not all opmls are in utf8
TQTextStream stream(&file);
stream.setEncoding(TQTextStream::UnicodeUTF8); // FIXME not all opmls are in utf8
str = stream.read();
file.close();
}
@ -428,7 +428,7 @@ bool Part::openFile()
if (file.size() > 0) // don't backup empty files
{
QString backup = m_file + "-backup." + QString::number(QDateTime::currentDateTime().toTime_t());
TQString backup = m_file + "-backup." + TQString::number(TQDateTime::currentDateTime().toTime_t());
copyFile(backup);
@ -444,7 +444,7 @@ bool Part::openFile()
{
if (file.size() > 0) // don't backup empty files
{
QString backup = m_file + "-backup." + QString::number(QDateTime::currentDateTime().toTime_t());
TQString backup = m_file + "-backup." + TQString::number(TQDateTime::currentDateTime().toTime_t());
copyFile(backup);
KMessageBox::error(m_view, i18n("<qt>The standard feed list is corrupted (no valid OPML). A backup was created:<p><b>%2</b></p></qt>").arg(backup), i18n("OPML Parsing Error") );
@ -452,7 +452,7 @@ bool Part::openFile()
m_view->loadFeeds(createDefaultFeedList());
}
emit setStatusBarText(QString::null);
emit setStatusBarText(TQString::null);
if( Settings::markAllFeedsReadOnStartup() )
@ -473,16 +473,16 @@ void Part::slotSaveFeedList()
// the first time we overwrite the feed list, we create a backup
if (!m_backedUpList)
{
QString backup = m_file + "~";
TQString backup = m_file + "~";
if (copyFile(backup))
m_backedUpList = true;
}
QString xmlStr = m_view->feedListToOPML().toString();
TQString xmlStr = m_view->feedListToOPML().toString();
m_storage->storeFeedList(xmlStr);
QFile file(m_file);
TQFile file(m_file);
if (file.open(IO_WriteOnly) == false)
{
//FIXME: allow to save the feedlist into different location -tpr 20041118
@ -490,9 +490,9 @@ void Part::slotSaveFeedList()
return;
}
// use QTextStream to dump the text to the file
QTextStream stream(&file);
stream.setEncoding(QTextStream::UnicodeUTF8);
// use TQTextStream to dump the text to the file
TQTextStream stream(&file);
stream.setEncoding(TQTextStream::UnicodeUTF8);
// Write OPML data file.
// Archive data files are saved elsewhere.
@ -534,31 +534,31 @@ bool Part::mergePart(KParts::Part* part)
return true;
}
QWidget* Part::getMainWindow()
TQWidget* Part::getMainWindow()
{
// this is a dirty fix to get the main window used for the tray icon
QWidgetList *l = kapp->topLevelWidgets();
QWidgetListIt it( *l );
QWidget *wid;
TQWidgetList *l = kapp->topLevelWidgets();
TQWidgetListIt it( *l );
TQWidget *wid;
// check if there is an akregator main window
while ( (wid = it.current()) != 0 )
{
++it;
//kdDebug() << "win name: " << wid->name() << endl;
if (QString(wid->name()) == "akregator_mainwindow")
if (TQString(wid->name()) == "akregator_mainwindow")
{
delete l;
return wid;
}
}
// if not, check for kontact main window
QWidgetListIt it2( *l );
TQWidgetListIt it2( *l );
while ( (wid = it2.current()) != 0 )
{
++it2;
if (QString(wid->name()).startsWith("kontact-mainwindow"))
if (TQString(wid->name()).startsWith("kontact-mainwindow"))
{
delete l;
return wid;
@ -568,11 +568,11 @@ QWidget* Part::getMainWindow()
return 0;
}
void Part::loadTagSet(const QString& path)
void Part::loadTagSet(const TQString& path)
{
QDomDocument doc;
TQDomDocument doc;
QFile file(path);
TQFile file(path);
if (file.open(IO_ReadOnly))
{
doc.setContent(file.readAll());
@ -594,19 +594,19 @@ void Part::loadTagSet(const QString& path)
}
}
void Part::saveTagSet(const QString& path)
void Part::saveTagSet(const TQString& path)
{
QString xmlStr = Kernel::self()->tagSet()->toXML().toString();
TQString xmlStr = Kernel::self()->tagSet()->toXML().toString();
m_storage->storeTagSet(xmlStr);
QFile file(path);
TQFile file(path);
if ( file.open(IO_WriteOnly) )
{
QTextStream stream(&file);
stream.setEncoding(QTextStream::UnicodeUTF8);
TQTextStream stream(&file);
stream.setEncoding(TQTextStream::UnicodeUTF8);
stream << xmlStr << "\n";
file.close();
}
@ -614,7 +614,7 @@ void Part::saveTagSet(const QString& path)
void Part::importFile(const KURL& url)
{
QString filename;
TQString filename;
bool isRemote = false;
@ -631,11 +631,11 @@ void Part::importFile(const KURL& url)
}
}
QFile file(filename);
TQFile file(filename);
if (file.open(IO_ReadOnly))
{
// Read OPML feeds list and build QDom tree.
QDomDocument doc;
TQDomDocument doc;
if (doc.setContent(file.readAll()))
m_view->importFeeds(doc);
else
@ -652,7 +652,7 @@ void Part::exportFile(const KURL& url)
{
if (url.isLocalFile())
{
QFile file(url.path());
TQFile file(url.path());
if ( file.exists() &&
KMessageBox::questionYesNo(m_view,
@ -668,8 +668,8 @@ void Part::exportFile(const KURL& url)
return;
}
QTextStream stream(&file);
stream.setEncoding(QTextStream::UnicodeUTF8);
TQTextStream stream(&file);
stream.setEncoding(TQTextStream::UnicodeUTF8);
stream << m_view->feedListToOPML().toString() << "\n";
file.close();
@ -679,8 +679,8 @@ void Part::exportFile(const KURL& url)
KTempFile tmpfile;
tmpfile.setAutoDelete(true);
QTextStream stream(tmpfile.file());
stream.setEncoding(QTextStream::UnicodeUTF8);
TQTextStream stream(tmpfile.file());
stream.setEncoding(TQTextStream::UnicodeUTF8);
stream << m_view->feedListToOPML().toString() << "\n";
tmpfile.close();
@ -692,7 +692,7 @@ void Part::exportFile(const KURL& url)
void Part::fileImport()
{
KURL url = KFileDialog::getOpenURL( QString::null,
KURL url = KFileDialog::getOpenURL( TQString::null,
"*.opml *.xml|" + i18n("OPML Outlines (*.opml, *.xml)")
+"\n*|" + i18n("All Files") );
@ -702,7 +702,7 @@ void Part::fileImport()
void Part::fileExport()
{
KURL url= KFileDialog::getSaveURL( QString::null,
KURL url= KFileDialog::getSaveURL( TQString::null,
"*.opml *.xml|" + i18n("OPML Outlines (*.opml, *.xml)")
+"\n*|" + i18n("All Files") );
@ -720,7 +720,7 @@ void Part::fileGetFeeds()
void Part::fileSendArticle(bool attach)
{
// FIXME: you have to open article to tab to be able to send...
QString title, text;
TQString title, text;
text = m_view->currentFrame()->part()->url().prettyURL();
if(text.isEmpty() || text.isNull())
@ -751,14 +751,14 @@ void Part::fetchAllFeeds()
m_view->slotFetchAllFeeds();
}
void Part::fetchFeedUrl(const QString&s)
void Part::fetchFeedUrl(const TQString&s)
{
kdDebug() << "fetchFeedURL==" << s << endl;
}
void Part::addFeedsToGroup(const QStringList& urls, const QString& group)
void Part::addFeedsToGroup(const TQStringList& urls, const TQString& group)
{
for (QStringList::ConstIterator it = urls.begin(); it != urls.end(); ++it)
for (TQStringList::ConstIterator it = urls.begin(); it != urls.end(); ++it)
{
kdDebug() << "Akregator::Part::addFeedToGroup adding feed with URL " << *it << " to group " << group << endl;
m_view->addFeedToGroup(*it, group);
@ -790,10 +790,10 @@ void Part::showOptions()
KConfigDialog* dialog = new ConfigDialog( m_view, "settings", Settings::self() );
connect( dialog, SIGNAL(settingsChanged()),
this, SLOT(slotSettingsChanged()) );
connect( dialog, SIGNAL(settingsChanged()),
TrayIcon::getInstance(), SLOT(settingsChanged()) );
connect( dialog, TQT_SIGNAL(settingsChanged()),
this, TQT_SLOT(slotSettingsChanged()) );
connect( dialog, TQT_SIGNAL(settingsChanged()),
TrayIcon::getInstance(), TQT_SLOT(settingsChanged()) );
dialog->show();
}
@ -811,10 +811,10 @@ void Part::partActivateEvent(KParts::PartActivateEvent* event)
MyBasePart::partActivateEvent(event);
}
KParts::Part* Part::hitTest(QWidget *widget, const QPoint &globalPos)
KParts::Part* Part::hitTest(TQWidget *widget, const TQPoint &globalPos)
{
bool child = false;
QWidget *me = this->widget();
TQWidget *me = this->widget();
while (widget) {
if (widget == me) {
child = true;
@ -834,7 +834,7 @@ KParts::Part* Part::hitTest(QWidget *widget, const QPoint &globalPos)
void Part::initFonts()
{
QStringList fonts = Settings::fonts();
TQStringList fonts = Settings::fonts();
if (fonts.isEmpty())
{
fonts.append(KGlobalSettings::generalFont().family());
@ -893,17 +893,17 @@ void Part::initFonts()
}
bool Part::copyFile(const QString& backup)
bool Part::copyFile(const TQString& backup)
{
QFile file(m_file);
TQFile file(m_file);
if (file.open(IO_ReadOnly))
{
QFile backupFile(backup);
TQFile backupFile(backup);
if (backupFile.open(IO_WriteOnly))
{
QTextStream in(&file);
QTextStream out(&backupFile);
TQTextStream in(&file);
TQTextStream out(&backupFile);
while (!in.atEnd())