#include "GuiApplication.h"
#include "qt_helpers.h"
-#include "support/gettext.h"
#include "Lexer.h"
-#include <QCloseEvent>
+#include "support/docstring.h"
+#include "support/gettext.h"
+
#include <QTextBrowser>
#include <QSyntaxHighlighter>
#include <QClipboard>
/////////////////////////////////////////////////////////////////////
GuiLog::GuiLog(GuiView & lv)
- : GuiDialog(lv, "log"), type_(LatexLog)
+ : GuiDialog(lv, "log", qt_("LaTeX Log")), type_(LatexLog)
{
setupUi(this);
}
-void GuiLog::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiLog::updateContents()
{
- setViewTitle(title());
+ setTitle(toqstr(title()));
ostringstream ss;
getContents(ss);
bool GuiLog::initialiseParams(string const & data)
{
istringstream is(data);
- Lexer lex(0,0);
+ Lexer lex;
lex.setStream(is);
string logtype, logfile;