New toolbar class.
This commit is contained in:
parent
772f7f1e27
commit
4891b5c2f4
@ -292,6 +292,7 @@ set(APP_SOURCES
|
|||||||
src/gui/messagebox.cpp
|
src/gui/messagebox.cpp
|
||||||
src/gui/formupdate.cpp
|
src/gui/formupdate.cpp
|
||||||
src/gui/comboboxwithstatus.cpp
|
src/gui/comboboxwithstatus.cpp
|
||||||
|
src/gui/messagestoolbar.cpp
|
||||||
|
|
||||||
# DYNAMIC-SHORTCUTS sources.
|
# DYNAMIC-SHORTCUTS sources.
|
||||||
src/dynamic-shortcuts/shortcutcatcher.cpp
|
src/dynamic-shortcuts/shortcutcatcher.cpp
|
||||||
@ -365,6 +366,7 @@ set(APP_HEADERS
|
|||||||
src/gui/messagebox.h
|
src/gui/messagebox.h
|
||||||
src/gui/formupdate.h
|
src/gui/formupdate.h
|
||||||
src/gui/comboboxwithstatus.h
|
src/gui/comboboxwithstatus.h
|
||||||
|
src/gui/messagestoolbar.h
|
||||||
|
|
||||||
# DYNAMIC-SHORTCUTS headers.
|
# DYNAMIC-SHORTCUTS headers.
|
||||||
src/dynamic-shortcuts/dynamicshortcutswidget.h
|
src/dynamic-shortcuts/dynamicshortcutswidget.h
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "gui/statusbar.h"
|
#include "gui/statusbar.h"
|
||||||
#include "gui/systemtrayicon.h"
|
#include "gui/systemtrayicon.h"
|
||||||
#include "gui/messagebox.h"
|
#include "gui/messagebox.h"
|
||||||
|
#include "gui/messagestoolbar.h"
|
||||||
|
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QSplitter>
|
#include <QSplitter>
|
||||||
@ -52,7 +53,7 @@ FeedMessageViewer::FeedMessageViewer(QWidget *parent)
|
|||||||
m_toolBarsEnabled(true),
|
m_toolBarsEnabled(true),
|
||||||
m_listHeadersEnabled(true),
|
m_listHeadersEnabled(true),
|
||||||
m_toolBarFeeds(new QToolBar(tr("Toolbar for feeds"), this)),
|
m_toolBarFeeds(new QToolBar(tr("Toolbar for feeds"), this)),
|
||||||
m_toolBarMessages(new QToolBar(tr("Toolbar for messages"), this)),
|
m_toolBarMessages(new MessagesToolBar(tr("Toolbar for messages"), this)),
|
||||||
m_messagesView(new MessagesView(this)),
|
m_messagesView(new MessagesView(this)),
|
||||||
m_feedsView(new FeedsView(this)),
|
m_feedsView(new FeedsView(this)),
|
||||||
m_messagesBrowser(new WebBrowser(this)),
|
m_messagesBrowser(new WebBrowser(this)),
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
class WebBrowser;
|
class WebBrowser;
|
||||||
class MessagesView;
|
class MessagesView;
|
||||||
|
class MessagesToolBar;
|
||||||
class FeedsView;
|
class FeedsView;
|
||||||
class FeedDownloader;
|
class FeedDownloader;
|
||||||
class FeedsModelFeed;
|
class FeedsModelFeed;
|
||||||
@ -106,7 +107,7 @@ class FeedMessageViewer : public TabContent {
|
|||||||
bool m_toolBarsEnabled;
|
bool m_toolBarsEnabled;
|
||||||
bool m_listHeadersEnabled;
|
bool m_listHeadersEnabled;
|
||||||
QToolBar *m_toolBarFeeds;
|
QToolBar *m_toolBarFeeds;
|
||||||
QToolBar *m_toolBarMessages;
|
MessagesToolBar *m_toolBarMessages;
|
||||||
|
|
||||||
QSplitter *m_feedSplitter;
|
QSplitter *m_feedSplitter;
|
||||||
QSplitter *m_messageSplitter;
|
QSplitter *m_messageSplitter;
|
||||||
|
9
src/gui/messagestoolbar.cpp
Normal file
9
src/gui/messagestoolbar.cpp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include "gui/messagestoolbar.h"
|
||||||
|
|
||||||
|
|
||||||
|
MessagesToolBar::MessagesToolBar(const QString &title, QWidget *parent)
|
||||||
|
: QToolBar(title, parent) {
|
||||||
|
}
|
||||||
|
|
||||||
|
MessagesToolBar::~MessagesToolBar() {
|
||||||
|
}
|
20
src/gui/messagestoolbar.h
Normal file
20
src/gui/messagestoolbar.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#ifndef NEWSTOOLBAR_H
|
||||||
|
#define NEWSTOOLBAR_H
|
||||||
|
|
||||||
|
#include <QToolBar>
|
||||||
|
|
||||||
|
class MessagesToolBar : public QToolBar {
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
// Constructors and destructors.
|
||||||
|
explicit MessagesToolBar(const QString &title, QWidget *parent = 0);
|
||||||
|
virtual ~MessagesToolBar();
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // NEWSTOOLBAR_H
|
Loading…
x
Reference in New Issue
Block a user