akregator_view.cpp
150 TQString msg = i18n("<qt>Are you sure you want to delete tag <b>%1</b>? The tag will be removed from all articles.</qt>").arg(node->title());
151 if (KMessageBox::warningContinueCancel(0, msg, i18n("Delete Tag"), KStdGuiItem::del()) == KMessageBox::Continue)
169 msg = i18n("<qt>Are you sure you want to delete this folder and its feeds and subfolders?</qt>");
171 msg = i18n("<qt>Are you sure you want to delete folder <b>%1</b> and its feeds and subfolders?</qt>").arg(node->title());
173 if (KMessageBox::warningContinueCancel(0, msg, i18n("Delete Folder"), KStdGuiItem::del()) == KMessageBox::Continue)
189 if (KMessageBox::warningContinueCancel(0, msg, i18n("Delete Feed"), KStdGuiItem::del()) == KMessageBox::Continue)
236 connect (Kernel::self()->fetchQueue(), TQ_SIGNAL(fetched(Feed*)), this, TQ_SLOT(slotFeedFetched(Feed*)));
237 connect (Kernel::self()->fetchQueue(), TQ_SIGNAL(signalStarted()), this, TQ_SLOT(slotFetchingStarted()));
238 connect (Kernel::self()->fetchQueue(), TQ_SIGNAL(signalStopped()), this, TQ_SLOT(slotFetchingStopped()));
240 connect(Kernel::self()->tagSet(), TQ_SIGNAL(signalTagAdded(const Tag&)), this, TQ_SLOT(slotTagCreated(const Tag&)));
241 connect(Kernel::self()->tagSet(), TQ_SIGNAL(signalTagRemoved(const Tag&)), this, TQ_SLOT(slotTagRemoved(const Tag&)));
246 connect(m_listTabWidget, TQ_SIGNAL(signalNodeSelected(TreeNode*)), this, TQ_SLOT(slotNodeSelected(TreeNode*)));
252 m_listTabWidget->addView(m_feedListView, i18n("Feeds"), TDEGlobal::iconLoader()->loadIcon("folder", TDEIcon::Small));
254 connect(m_feedListView, TQ_SIGNAL(signalContextMenu(TDEListView*, TreeNode*, const TQPoint&)), this, TQ_SLOT(slotFeedTreeContextMenu(TDEListView*, TreeNode*, const TQPoint&)));
261 m_listTabWidget->addView(m_tagNodeListView, i18n("Tags"), TDEGlobal::iconLoader()->loadIcon("rss_tag", TDEIcon::Small));
263 connect(m_tagNodeListView, TQ_SIGNAL(signalContextMenu(TDEListView*, TreeNode*, const TQPoint&)), this, TQ_SLOT(slotFeedTreeContextMenu(TDEListView*, TreeNode*, const TQPoint&)));
295 connect( m_articleList, TQ_SIGNAL(signalMouseButtonPressed(int, const Article&, const TQPoint &, int)), this, TQ_SLOT(slotMouseButtonPressed(int, const Article&, const TQPoint &, int)));
308 connect(m_searchBar, TQ_SIGNAL(signalSearch(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)), m_articleList, TQ_SLOT(slotSetFilter(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)));
310 connect(m_searchBar, TQ_SIGNAL(signalSearch(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)), m_articleViewer, TQ_SLOT(slotSetFilter(const Akregator::Filters::ArticleMatcher&, const Akregator::Filters::ArticleMatcher&)));
318 connect( m_part, TQ_SIGNAL(signalSettingsChanged()), m_articleViewer, TQ_SLOT(slotPaletteOrFontChanged()));
355 connect(m_markReadTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotSetCurrentArticleReadDelayed()) );
382 m_listTabWidget->setViewMode(Settings::showTaggingGUI() ? ListTabWidget::verticalTabs : ListTabWidget::single);
436 connect( m_part, TQ_SIGNAL(signalSettingsChanged()), page, TQ_SLOT(slotPaletteOrFontChanged()));
446 connect(page, TQ_SIGNAL(setWindowCaption (const TQString &)), frame, TQ_SLOT(setTitle (const TQString &)));
469 connect(f, TQ_SIGNAL(statusText(const TQString &)), this, TQ_SLOT(slotStatusText(const TQString&)));
470 connect(f, TQ_SIGNAL(captionChanged (const TQString &)), this, TQ_SLOT(slotCaptionChanged (const TQString &)));
474 connect(f, TQ_SIGNAL(canceled(const TQString &)), this, TQ_SLOT(slotCanceled(const TQString&)));
530 title = KInputDialog::getText(i18n("Add Imported Folder"), i18n("Imported folder name:"), title, &ok);
841 KParts::URLArgs args = currentViewer ? currentViewer->browserExtension()->urlArgs() : KParts::URLArgs();
844 connect(r, TQ_SIGNAL(signalOpenInViewer(const KURL&, Akregator::Viewer*, Akregator::BrowserRun::OpeningMode)),
845 this, TQ_SLOT(slotOpenURLReply(const KURL&, Akregator::Viewer*, Akregator::BrowserRun::OpeningMode)));
850 void View::slotUrlClickedInViewer(const KURL& url, Viewer* viewer, bool newTab, bool background)
859 slotOpenURL(url, 0L, background ? BrowserRun::NEW_TAB_BACKGROUND : BrowserRun::NEW_TAB_FOREGROUND);
864 void View::slotOpenURLReply(const KURL& url, Viewer* currentViewer, BrowserRun::OpeningMode mode)
1070 m_listTabWidget->activeView()->selectedNode()->slotAddToFetchQueue(Kernel::self()->fetchQueue());
1102 if ((*it).status()==Article::New && ((*it).feed()->useNotification() || Settings::useNotifications()))
1133 for (TQValueList<Article>::Iterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it)
1147 for (TQValueList<Article>::Iterator it = selectedArticles.begin(); it != selectedArticles.end(); ++it)
1202 TDEToggleAction* maai = dynamic_cast<TDEToggleAction*>(m_actionManager->action("article_set_status_important"));
1324 msg = i18n("<qt>Are you sure you want to delete article <b>%1</b>?</qt>").arg(TQStyleSheet::escape(articles.first().title()));
1332 if (KMessageBox::warningContinueCancel(0, msg, i18n("Delete Article"), KStdGuiItem::del()) == KMessageBox::Continue)
1366 for (TQValueList<Article>::Iterator it = articles.begin(); allFlagsSet && it != articles.end(); ++it)
1521 connect(feedList->rootNode(), TQ_SIGNAL(signalChanged(TreeNode*)), this, TQ_SLOT(slotSetTotalUnread()));
1527 disconnect(feedList->rootNode(), TQ_SIGNAL(signalChanged(TreeNode*)), this, TQ_SLOT(slotSetTotalUnread()));
bool containsID(const TQString &id) const
returns true if this set contains a tag with a given ID
Definition: tagset.cpp:75
void slotFeedModify()
calls the properties dialog for feeds, starts renaming for feed groups
Definition: akregator_view.cpp:991
void slotSetSelectedArticleRead()
marks the currently selected article as read
Definition: akregator_view.cpp:1374
static NotificationManager * self()
singleton instance of notification manager
Definition: notificationmanager.cpp:134
void slotFeedRemove()
removes the currently selected feed (ask for confirmation)
Definition: akregator_view.cpp:980
virtual int unread() const =0
The unread count, returns the number of new/unread articles in the node (for groups: the accumulated ...
void slotNodeSelected(TreeNode *node)
selected tree node has changed
Definition: akregator_view.cpp:793
void slotFeedTreeContextMenu(TDEListView *, TreeNode *, const TQPoint &)
Shows requested popup menu for feed tree.
Definition: akregator_view.cpp:726
A proxy class for RSS::Article with some additional methods to assist sorting.
Definition: article.h:57
void slotFeedURLDropped(KURL::List &urls, TreeNode *after, Folder *parent)
called when URLs are dropped into the tree view
Definition: akregator_view.cpp:1284
void slotStatusText(const TQString &)
sets the status bar text to a given string
Definition: akregator_view.cpp:477
represents a set of tags (see Tag) In an application, there is usually one central tag set that is us...
Definition: tagset.h:47
void slotTextToSpeechRequest()
reads the currently selected articles using KTTSD
Definition: akregator_view.cpp:1385
virtual bool isGroup() const =0
Helps the rest of the app to decide if node should be handled as group or not.
bool importFeeds(const TQDomDocument &doc)
Adds the feeds in doc to the "Imported Folder".
Definition: akregator_view.cpp:513
void slotOpenHomepage()
opens the homepage of the currently selected feed
Definition: akregator_view.cpp:1034
virtual void insertChild(TreeNode *node, TreeNode *after)
inserts node as child after child node after.
Definition: folder.cpp:138
Akregator-specific implementation of the ActionManager interface.
Definition: actionmanagerimpl.h:50
void slotArticleToggleKeepFlag(bool enabled)
toggles the keep flag of the currently selected article
Definition: akregator_view.cpp:1358
const TQString & htmlUrl() const
returns the URL of the HTML page of this feed
Definition: feed.cpp:355
virtual TQValueList< TreeNode * > children() const
returns the (direct) children of this node.
Definition: folder.cpp:133
a powerful matcher supporting multiple criterions, which can be combined via logical OR or AND
Definition: articlefilter.h:216
void slotUpdateTagActions(bool enabled, const TQStringList &tagIds)
fills the remove tag menu with the given tags enables/disables tag menu action according to enabled
Definition: actionmanagerimpl.cpp:143
void slotShowArticle(const Article &article)
Show single article (normal view)
Definition: articleviewer.cpp:630
void slotFeedFetched(Feed *)
Feed has been fetched, populate article view if needed and update counters.
Definition: akregator_view.cpp:1092
virtual void slotDeleteExpiredArticles()=0
Deletes all expired articles in the node (depending on the expiry settings).
void addFeedToGroup(const TQString &url, const TQString &group)
Add a feed to a group.
Definition: akregator_view.cpp:611
void slotMouseButtonPressed(int button, const Article &article, const TQPoint &pos, int c)
special behaviour in article list view (TODO: move code there?)
Definition: akregator_view.cpp:1110
virtual bool mergePart(KParts::Part *)
merges a nested part's GUI into the gui of this part
Definition: akregator_part.cpp:502
void slotOpenNewTab(const KURL &url, bool background=false)
opens a page viewer in a new tab and loads an URL
Definition: akregator_view.cpp:432
void slotUrlClickedInViewer(const KURL &url, Viewer *viewer, bool newTab, bool background)
HACK: part of the url opening hack for 3.5.
Definition: akregator_view.cpp:850
void slotOpenURLReply(const KURL &url, Akregator::Viewer *currentViewer, Akregator::BrowserRun::OpeningMode mode)
HACK: receives signal from browserrun when the browserrun detects an HTML mimetype and actually loads...
Definition: akregator_view.cpp:864
View(Akregator::Part *part, TQWidget *parent, ActionManagerImpl *actionManager, const char *name)
constructor
Definition: akregator_view.cpp:215
void slotMarkAllFeedsRead()
marks all articles in all feeds in the tree as read
Definition: akregator_view.cpp:1023
void slotFrameChanged(Frame *f)
called when another part/frame is activated.
Definition: akregator_view.cpp:693
void slotShowNode(TreeNode *node)
Shows the articles of the tree node node (combined view).
Definition: articleviewer.cpp:719
void slotMarkAllRead()
marks all articles in the currently selected feed as read
Definition: akregator_view.cpp:1028
void append(FeedList *list, Folder *parent=0, TreeNode *after=0)
appends another feed list as sub tree.
Definition: feedlist.cpp:219
void slotMouseOverInfo(const KFileItem *kifi)
displays a URL in the status bar when the user moves the mouse over a link
Definition: akregator_view.cpp:1444
virtual bool readFromXML(const TQDomDocument &doc)
reads an OPML document and appends the items to this list
Definition: feedlist.cpp:145
void slotSetSelectedArticleUnread()
marks the currently selected article as unread
Definition: akregator_view.cpp:1412
virtual void setNotificationMode(bool doNotify, bool notifyOccurredChanges=true)
Definition: treenode.cpp:125
void slotCopyLinkAddress()
copies the link of current article to clipboard
Definition: akregator_view.cpp:1263
void slotNextUnreadArticle()
selects the next unread article in the article list
Definition: akregator_view.cpp:999
void slotCaptionChanged(const TQString &)
sets the window caption after a frame change
Definition: akregator_view.cpp:483
void slotSetCurrentArticleReadDelayed()
marks the currenctly selected article as read after a user-set delay
Definition: akregator_view.cpp:1434
virtual int totalCount() const =0
returns the number of total articles in the node (for groups: the accumulated count of the subtree)
void slotSetSelectedArticleNew()
marks the currently selected article as new
Definition: akregator_view.cpp:1423
void slotPrevUnreadArticle()
selects the previous unread article in the article list
Definition: akregator_view.cpp:1011
virtual TQValueList< Article > articles(const TQString &tag=TQString())
Returns a sequence of the articles this node contains.
Definition: feed.cpp:192
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:51
void slotNotifyArticle(const Article &article)
notifies an article.
Definition: notificationmanager.cpp:61
void slotToggleShowQuickFilter()
toggles the visibility of the filter bar
Definition: akregator_view.cpp:1293
void signalUnreadCountChanged(int)
emitted when the unread count of "All Feeds" was changed
bool loadFeeds(const TQDomDocument &doc, Folder *parent=0)
Parse OPML presentation of feeds and read in articles archive, if present.
Definition: akregator_view.cpp:545
void slotArticleSelected(const Article &)
the article selection has changed
Definition: akregator_view.cpp:1175
void slotOpenArticleExternal(const Article &article, const TQPoint &, int)
opens article of item in external browser
Definition: akregator_view.cpp:1212
void slotOpenCurrentArticleBackgroundTab()
opens the current article (currentItem) in background tab TODO: use selected instead of current?
Definition: akregator_view.cpp:1243
void slotOpenCurrentArticleExternal()
opens the current article (currentItem) in external browser TODO: use selected instead of current?
Definition: akregator_view.cpp:1238
void slotOpenCurrentArticle()
opens current article in new tab, background/foreground depends on settings TODO: use selected instea...
Definition: akregator_view.cpp:1219