2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiErrorList.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Alfredo Braunstein
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIERRORLIST_H
|
|
|
|
#define GUIERRORLIST_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-10-06 14:13:25 +00:00
|
|
|
#include "ErrorList.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_ErrorListUi.h"
|
2007-04-25 10:25:37 +00:00
|
|
|
|
2006-05-03 19:51:15 +00:00
|
|
|
class QListWidgetItem;
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-10-09 19:34:27 +00:00
|
|
|
class GuiErrorList : public GuiDialog, public Ui::ErrorListUi
|
2007-09-05 20:33:29 +00:00
|
|
|
{
|
2007-04-25 10:25:37 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-04-25 10:25:37 +00:00
|
|
|
public:
|
2007-11-23 09:44:02 +00:00
|
|
|
GuiErrorList(GuiView & lv);
|
2007-04-25 10:25:37 +00:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
2007-10-06 14:13:25 +00:00
|
|
|
/// select an entry
|
2008-05-29 12:37:22 +00:00
|
|
|
void select();
|
2009-11-14 15:52:54 +00:00
|
|
|
/// open the LaTeX log
|
|
|
|
void viewLog();
|
2015-03-31 22:54:49 +00:00
|
|
|
/// show the output file despite compilation errors
|
|
|
|
void showAnyway();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
|
|
|
private:
|
2007-10-06 14:13:25 +00:00
|
|
|
///
|
2007-04-25 10:25:37 +00:00
|
|
|
void showEvent(QShowEvent *);
|
2009-11-28 00:52:08 +00:00
|
|
|
///
|
|
|
|
void paramsToDialog();
|
2007-10-06 14:13:25 +00:00
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
///
|
|
|
|
bool initialiseParams(std::string const & data);
|
|
|
|
///
|
|
|
|
void clearParams() {}
|
|
|
|
///
|
|
|
|
void dispatchParams() {}
|
2008-10-30 11:49:18 +00:00
|
|
|
///
|
|
|
|
bool canApply() const { return true; }
|
2007-10-06 14:13:25 +00:00
|
|
|
|
2008-07-06 10:55:47 +00:00
|
|
|
/// goto this error in the parent bv. Returns success.
|
|
|
|
bool goTo(int item);
|
2007-10-06 14:13:25 +00:00
|
|
|
///
|
|
|
|
ErrorList const & errorList() const;
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
std::string error_type_;
|
2010-03-12 15:06:13 +00:00
|
|
|
///
|
|
|
|
mutable ErrorList error_list_;
|
|
|
|
///
|
|
|
|
Buffer const * buf_;
|
2007-10-06 14:13:25 +00:00
|
|
|
/// the parent document name
|
|
|
|
docstring name_;
|
2009-06-21 12:26:41 +00:00
|
|
|
///
|
|
|
|
bool from_master_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIERRORLIST_H
|