#include "Buffer.h"
#include "BufferView.h"
+#include "FuncRequest.h"
#include "ParIterator.h"
#include "Text.h"
connect(closePB, SIGNAL(clicked()),
this, SLOT(slotClose()));
+ connect(viewLogPB, SIGNAL(clicked()),
+ this, SLOT(viewLog()));
connect(errorsLW, SIGNAL(currentRowChanged(int)),
this, SLOT(select()));
void GuiErrorList::showEvent(QShowEvent * e)
{
select();
- updateContents();
+ paramsToDialog();
e->accept();
}
}
-void GuiErrorList::updateContents()
+void GuiErrorList::viewLog()
+{
+ dispatch(FuncRequest(LFUN_DIALOG_SHOW, "latexlog"));
+}
+
+
+void GuiErrorList::paramsToDialog()
{
setTitle(toqstr(name_));
errorsLW->clear();
: &bufferview()->buffer();
name_ = bformat(_("%1$s Errors (%2$s)"), _(error_type),
from_utf8(buf->absFileName()));
+ paramsToDialog();
return true;
}