4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS.
16 #include "GuiDialog.h"
19 #include "support/FileName.h"
27 class GuiLog : public GuiDialog, public Ui::LogUi
35 void updateContents();
36 /// copy log to clipboard
37 void on_copyPB_clicked();
40 /// jump to next error message
41 void on_nextErrorPB_clicked();
42 /// jump to next warning
43 void on_nextWarningPB_clicked();
45 void typeChanged(int);
51 /// log syntax highlighter
52 LogHighlighter * highlighter;
54 /** \param data should contain "<logtype> <logfile>"
55 * where <logtype> is one of "latex", "literate", "lyx2lyx", "vc".
57 bool initialiseParams(std::string const & data);
61 void dispatchParams() {}
63 bool isBufferDependent() const { return true; }
65 /// The title displayed by the dialog reflects the \c LogType
66 docstring title() const;
67 /// put the log file into the ostream
68 void getContents(std::ostream & ss) const;
69 /// go to the next occurence of the RegExp
70 void goTo(QRegExp const & exp) const;
71 /// does the document after cursor position contain the RegExp?
72 bool contains(QRegExp const & exp) const;
75 /// Recognized log file-types
84 support::FileName logfile_;
88 } // namespace frontend