rssguard/src/gui/feedmessageviewer.h
2013-12-22 11:29:10 +01:00

54 lines
1.1 KiB
C++

#ifndef FEEDMESSAGEVIEWER_H
#define FEEDMESSAGEVIEWER_H
#include "gui/tabcontent.h"
class WebBrowser;
class FeedsView;
class MessagesView;
class FeedDownloader;
class QToolBar;
class QSplitter;
class FeedMessageViewer : public TabContent {
Q_OBJECT
public:
// Constructors and destructors.
explicit FeedMessageViewer(QWidget *parent = 0);
virtual ~FeedMessageViewer();
// WebBrowser getter from TabContent interface.
WebBrowser *webBrowser();
// Loads/saves sizes and states of ALL
// underlying widgets, this contains primarily
// splitters, toolbar and views.
void saveSize();
void loadSize();
protected:
// Initializes some properties of the widget.
void initialize();
// Initializes both messages/feeds views.
void initializeViews();
// Sets up connections.
void createConnections();
private:
QToolBar *m_toolBar;
QSplitter *m_feedSplitter;
QSplitter *m_messageSplitter;
MessagesView *m_messagesView;
FeedsView *m_feedsView;
WebBrowser *m_messagesBrowser;
FeedDownloader *m_feedDownloader;
};
#endif // FEEDMESSAGEVIEWER_H