+ logTB->setFont(font);
+}
+
+
+void GuiLog::updateContents()
+{
+ setTitle(toqstr(title()));
+
+ ostringstream ss;
+ getContents(ss);
+
+ logTB->setPlainText(toqstr(ss.str()));
+}
+
+
+bool GuiLog::initialiseParams(string const & data)
+{
+ istringstream is(data);
+ Lexer lex;
+ lex.setStream(is);
+
+ string logtype, logfile;
+ lex >> logtype;
+ if (lex) {
+ lex.next(true);
+ logfile = lex.getString();
+ }
+ if (!lex)
+ // Parsing of the data failed.
+ return false;
+
+ if (logtype == "latex")
+ type_ = LatexLog;
+ else if (logtype == "literate")
+ type_ = LiterateLog;
+ else if (logtype == "lyx2lyx")
+ type_ = Lyx2lyxLog;
+ else if (logtype == "vc")
+ type_ = VCLog;
+ else
+ return false;
+
+ logfile_ = FileName(logfile);
+
+ updateContents();
+
+ return true;