Re-use output window implementation for general messages.

Moving the implementation to core plugin.
This commit is contained in:
con
2011-04-21 13:42:17 +02:00
parent ef77155291
commit feefdfdc38
12 changed files with 40 additions and 90 deletions

View File

@@ -33,7 +33,8 @@
#ifndef MESSAGEOUTPUTWINDOW_H
#define MESSAGEOUTPUTWINDOW_H
#include <coreplugin/ioutputpane.h>
#include "ioutputpane.h"
#include "outputwindow.h"
#include <QtGui/QShowEvent>
#include <QtGui/QResizeEvent>
@@ -42,21 +43,6 @@
namespace Core {
namespace Internal {
class TextView : public QTextEdit
{
Q_OBJECT
public:
TextView(QWidget *parent = 0) : QTextEdit(parent) {}
void showEvent(QShowEvent *);
void scrollToBottom();
bool isScrollbarAtBottom() const;
protected:
void resizeEvent(QResizeEvent *e);
};
class MessageOutputWindow : public Core::IOutputPane
{
Q_OBJECT
@@ -85,7 +71,7 @@ public:
bool canNavigate();
private:
TextView *m_widget;
OutputWindow *m_widget;
};
} // namespace Internal