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,20 +33,18 @@
#ifndef OUTPUTWINDOW_H
#define OUTPUTWINDOW_H
#include "core_global.h"
#include "icontext.h"
#include <utils/outputformatter.h>
#include <coreplugin/icontext.h>
#include <QtGui/QPlainTextEdit>
namespace Core {
class IContext;
}
namespace ProjectExplorer {
class IContext;
namespace Internal {
class OutputWindow : public QPlainTextEdit
class CORE_EXPORT OutputWindow : public QPlainTextEdit
{
Q_OBJECT
@@ -59,7 +57,7 @@ public:
void appendMessage(const QString &out, Utils::OutputFormat format);
/// appends a \p text using \p format without using formater
void appendText(const QString &text, const QTextCharFormat &format, int maxLineCount);
void appendText(const QString &text, const QTextCharFormat &format = QTextCharFormat(), int maxLineCount = -1);
void grayOutOldContent();
void clear();
@@ -93,7 +91,6 @@ private:
bool m_mousePressed;
};
} // namespace Internal
} // namespace ProjectExplorer
} // namespace Core
#endif // OUTPUTWINDOW_H