forked from qt-creator/qt-creator
Add show output task handler
* Add a taskhandler that shows the compile output that originally created the task. Task-number: QTCREATORBUG-107 Reviewed-by: dt
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
#define COMPILEOUTPUTWINDOW_H
|
||||
|
||||
#include <coreplugin/ioutputpane.h>
|
||||
|
||||
#include <QtCore/QHash>
|
||||
|
||||
#include <QtGui/QColor>
|
||||
#include <QtGui/QTextCharFormat>
|
||||
|
||||
@@ -41,15 +44,20 @@ QT_END_NAMESPACE
|
||||
namespace ProjectExplorer {
|
||||
|
||||
class BuildManager;
|
||||
class Task;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class ShowOutputTaskHandler;
|
||||
|
||||
class CompileOutputWindow : public Core::IOutputPane
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CompileOutputWindow(BuildManager *bm);
|
||||
~CompileOutputWindow();
|
||||
|
||||
QWidget *outputWidget(QWidget *);
|
||||
QList<QWidget*> toolBarWidgets() const { return QList<QWidget *>(); }
|
||||
QString displayName() const { return tr("Compile Output"); }
|
||||
@@ -67,8 +75,14 @@ public:
|
||||
void goToPrev();
|
||||
bool canNavigate();
|
||||
|
||||
void registerPositionOf(const Task &task);
|
||||
bool knowsPositionOf(const Task &task);
|
||||
void showPositionOf(const Task &task);
|
||||
|
||||
private:
|
||||
QPlainTextEdit *m_textEdit;
|
||||
QHash<unsigned int, int> m_taskPositions;
|
||||
ShowOutputTaskHandler * m_handler;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user