27 #ifndef _AKREGATORVIEW_H_ 28 #define _AKREGATORVIEW_H_ 35 #include "akregator_run.h" 49 class TDEListViewItem;
60 class AboutPageViewer;
61 class ActionManagerImpl;
63 class ArticleListView;
80 class View :
public TQWidget
101 void slotSettingsChanged();
105 bool importFeeds(
const TQDomDocument& doc);
111 bool loadFeeds(
const TQDomDocument& doc,
Folder* parent = 0);
116 TQDomDocument feedListToOPML();
124 void addFeedToGroup(
const TQString& url,
const TQString& group);
127 virtual void readProperties(TDEConfig* config);
128 virtual void saveProperties(TDEConfig* config);
130 Frame* currentFrame()
const {
return m_currentFrame; }
134 void signalUnreadCountChanged(
int);
136 void setWindowCaption(
const TQString&);
137 void setStatusBarText(
const TQString&);
138 void setProgress(
int);
139 void signalStarted(TDEIO::Job*);
140 void signalCompleted();
141 void signalCanceled(
const TQString&);
145 void slotOnShutdown();
148 void slotNodeSelected(
TreeNode* node);
151 void slotArticleSelected(
const Article&);
154 void slotFeedTreeContextMenu(TDEListView*,
TreeNode*,
const TQPoint&);
157 void slotSetTotalUnread();
160 void slotMouseButtonPressed(
int button,
const Article& article,
const TQPoint & pos,
int c);
163 void slotOpenArticleExternal(
const Article& article,
const TQPoint&,
int);
167 void slotOpenCurrentArticleExternal();
171 void slotOpenCurrentArticleBackgroundTab();
174 void slotOpenCurrentArticle();
178 void slotCopyLinkAddress();
183 void slotOpenNewTab(
const KURL& url,
bool background =
false);
187 void slotFrameChanged(Frame *f);
190 void slotCaptionChanged(
const TQString &);
193 void slotFeedURLDropped (KURL::List &urls,
TreeNode* after,
Folder *parent);
196 void slotMouseOverInfo(
const KFileItem *kifi);
199 void slotStatusText(
const TQString &);
202 void slotCanceled(
const TQString &);
203 void slotCompleted();
204 void slotLoadingProgress(
int);
206 void slotFetchingStarted();
207 void slotFetchingStopped();
211 void slotFeedFetched(
Feed *);
216 void slotFeedAddGroup();
218 void slotFeedRemove();
220 void slotFeedModify();
222 void slotFetchCurrentFeed();
224 void slotFetchAllFeeds();
226 void slotMarkAllRead();
228 void slotMarkAllFeedsRead();
230 void slotOpenHomepage();
233 void slotArticleToggleKeepFlag(
bool enabled);
235 void slotArticleDelete();
237 void slotSetSelectedArticleRead();
239 void slotSetSelectedArticleUnread();
241 void slotSetSelectedArticleNew();
243 void slotSetCurrentArticleReadDelayed();
246 void slotTextToSpeechRequest();
248 void slotAssignTag(
const Tag& tag,
bool assign);
251 void slotTagCreated(
const Tag& tag);
252 void slotTagRemoved(
const Tag& tag);
255 void slotNormalView();
257 void slotWidescreenView();
259 void slotCombinedView();
261 void slotToggleShowQuickFilter();
264 void slotPrevUnreadArticle();
266 void slotNextUnreadArticle();
268 void slotMoveCurrentNodeUp();
269 void slotMoveCurrentNodeDown();
270 void slotMoveCurrentNodeLeft();
271 void slotMoveCurrentNodeRight();
275 void addFeed(
const TQString& url,
TreeNode* after,
Folder* parent,
bool autoExec =
true);
277 void connectToFeedList(
FeedList* feedList);
278 void disconnectFromFeedList(
FeedList* feedList);
280 void updateTagActions();
284 void connectFrame(Frame *);
286 void setTabIcon(
const TQPixmap&);
288 void slotDoIntervalFetches();
289 void slotDeleteExpiredArticles();
292 void slotOpenURLReply(
const KURL& url, Akregator::Viewer* currentViewer, Akregator::BrowserRun::OpeningMode mode);
295 void slotUrlClickedInViewer(
const KURL& url, Viewer* viewer,
bool newTab,
bool background);
297 void slotOpenURL(
const KURL& url, Akregator::Viewer* currentViewer, Akregator::BrowserRun::OpeningMode mode);
302 enum ViewMode { NormalView=0, WidescreenView, CombinedView };
305 TagNodeList* m_tagNodeList;
306 NodeListView* m_feedListView;
307 NodeListView* m_tagNodeListView;
308 ArticleListView *m_articleList;
314 Frame *m_currentFrame;
316 SearchBar* m_searchBar;
318 TQSplitter *m_articleSplitter;
319 TQSplitter *m_horizontalSplitter;
325 TQTimer *m_fetchTimer;
326 TQTimer* m_expiryTimer;
327 TQTimer *m_markReadTimer;
330 bool m_displayingAboutPage;
334 TQPixmap m_keepFlagIcon;
335 friend class EditNodePropertiesVisitor;
336 class EditNodePropertiesVisitor;
337 EditNodePropertiesVisitor* m_editNodePropertiesVisitor;
338 friend class DeleteNodeVisitor;
339 class DeleteNodeVisitor;
340 DeleteNodeVisitor* m_deleteNodeVisitor;
344 #endif // _AKREGATORVIEW_H_ This HTML viewer is used to display articles.
This is a RSS Aggregator "Part".
The model of a feed tree, represents an OPML document.
Akregator-specific implementation of the ActionManager interface.
This is the main widget of the view, containing tree view, article list, viewer etc.
Represents a folder (containing feeds and/or other folders)
A proxy class for RSS::Article with some additional methods to assist sorting.
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...