4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "QDialogView.h"
21 #include <QCloseEvent>
22 #include <QSyntaxHighlighter>
29 class QLogDialog : public QDialog, public Ui::QLogUi {
32 QLogDialog(QLog * form);
34 virtual void updateClicked();
36 virtual void closeEvent(QCloseEvent * e);
47 : public QController<ControlLog, QView<QLogDialog> >
51 friend class QLogDialog;
56 virtual void apply() {}
58 virtual void update_contents();
60 virtual void build_dialog();
61 /// log syntax highlighter
62 LogHighlighter * highlighter;
67 class LogHighlighter : public QSyntaxHighlighter
70 LogHighlighter(QTextDocument * parent);
73 void highlightBlock(QString const & text);
76 QTextCharFormat infoFormat;
77 QTextCharFormat warningFormat;
78 QTextCharFormat errorFormat;
82 } // namespace frontend