lyx_mirror/src/frontends/qt4/GuiLog.h
Jürgen Spitzmüller 8e109a4153 * GuiLog.{cpp,h}:
* LogUi.ui:
	- add some basic navigation facilities.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30153 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-18 09:35:51 +00:00

90 lines
1.7 KiB
C++

// -*- C++ -*-
/**
* \file GuiLog.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUILOG_H
#define GUILOG_H
#include "GuiDialog.h"
#include "ui_LogUi.h"
#include "support/FileName.h"
namespace lyx {
namespace frontend {
class LogHighlighter;
class GuiLog : public GuiDialog, public Ui::LogUi
{
Q_OBJECT
public:
GuiLog(GuiView & lv);
private Q_SLOTS:
void updateContents();
/// copy log to clipboard
void on_copyPB_clicked();
/// find content
void find();
/// jump to next error message
void on_nextErrorPB_clicked();
/// jump to next warning
void on_nextWarningPB_clicked();
private:
/// Apply changes
void applyView() {}
/// log syntax highlighter
LogHighlighter * highlighter;
/** \param data should contain "<logtype> <logfile>"
* where <logtype> is one of "latex", "literate", "lyx2lyx", "vc".
*/
bool initialiseParams(std::string const & data);
///
void clearParams();
///
void dispatchParams() {}
///
bool isBufferDependent() const { return true; }
/// The title displayed by the dialog reflects the \c LogType
docstring title() const;
/// put the log file into the ostream
void getContents(std::ostream & ss) const;
/// go to the next occurence of the RegExp
void goTo(QRegExp const & exp) const;
/// does the document after cursor position contain the RegExp?
bool contains(QRegExp const & exp) const;
private:
/// Recognized log file-types
enum LogType {
LatexLog,
LiterateLog,
Lyx2lyxLog,
VCLog
};
LogType type_;
support::FileName logfile_;
};
} // namespace frontend
} // namespace lyx
#endif // GUILOG_H